Class CapacityProviderManagedInstancesProvider


  • public final class CapacityProviderManagedInstancesProvider
    extends java.lang.Object
    • Method Detail

      • infrastructureOptimization

        public java.util.Optional<CapacityProviderManagedInstancesProviderInfrastructureOptimization> infrastructureOptimization()
        Returns:
        Configuration block for how Amazon ECS Managed Instances optimizes the infrastructure in your capacity provider, including whether to turn optimization on or off and how long to delay optimizing idle EC2 instances. Detailed below.
      • infrastructureRoleArn

        public java.lang.String infrastructureRoleArn()
        Returns:
        ARN of the infrastructure role that Amazon ECS uses to manage instances on your behalf. This role must have permissions to launch, terminate, and manage Amazon EC2 instances, as well as access to other AWS services required for Amazon ECS Managed Instances functionality. For more information, see [Amazon ECS infrastructure IAM role](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/infrastructure_IAM_role.html) in the Amazon ECS Developer Guide.
      • instanceLaunchTemplate

        public CapacityProviderManagedInstancesProviderInstanceLaunchTemplate instanceLaunchTemplate()
        Returns:
        Launch template configuration that specifies how Amazon ECS should launch Amazon EC2 instances. This includes the instance profile, network configuration, storage settings, and instance requirements for attribute-based instance type selection. For more information, see [Store instance launch parameters in Amazon EC2 launch templates](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) in the Amazon EC2 User Guide. Detailed below.
      • propagateTags

        public java.util.Optional<java.lang.String> propagateTags()
        Returns:
        Whether to propagate tags from the capacity provider to the Amazon ECS Managed Instances. When enabled, tags applied to the capacity provider are automatically applied to all instances launched by this provider. Valid values are `CAPACITY_PROVIDER` and `NONE`.