Interface ManagedInstancesProvider.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ManagedInstancesProvider.Builder,,ManagedInstancesProvider> SdkBuilder<ManagedInstancesProvider.Builder,,ManagedInstancesProvider> SdkPojo
- Enclosing class:
ManagedInstancesProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault ManagedInstancesProvider.BuilderinfrastructureOptimization(Consumer<InfrastructureOptimization.Builder> infrastructureOptimization) The infrastructure optimization configuration for the capacity provider.infrastructureOptimization(InfrastructureOptimization infrastructureOptimization) The infrastructure optimization configuration for the capacity provider.infrastructureRoleArn(String infrastructureRoleArn) The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf.default ManagedInstancesProvider.BuilderinstanceLaunchTemplate(Consumer<InstanceLaunchTemplate.Builder> instanceLaunchTemplate) The instance launch configuration for the Amazon ECS Managed Instances capacity provider.instanceLaunchTemplate(InstanceLaunchTemplate instanceLaunchTemplate) The instance launch configuration for the Amazon ECS Managed Instances capacity provider.propagateTags(String propagateTags) Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
propagateTags
Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:
-
CAPACITY_PROVIDER— Propagates tags to instances. -
NONE(default) — Does not propagate tags to instances.
- Parameters:
propagateTags- Specifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches. Valid values:-
CAPACITY_PROVIDER— Propagates tags to instances. -
NONE(default) — Does not propagate tags to instances.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
infrastructureRoleArn
The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy for
ecs.amazonaws.com. You must have theiam:PassRolepermission for this role with the conditioniam:PassedToService: ecs.amazonaws.com.- Parameters:
infrastructureRoleArn- The Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf. This role must have a trust policy forecs.amazonaws.com. You must have theiam:PassRolepermission for this role with the conditioniam:PassedToService: ecs.amazonaws.com.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceLaunchTemplate
ManagedInstancesProvider.Builder instanceLaunchTemplate(InstanceLaunchTemplate instanceLaunchTemplate) The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.
- Parameters:
instanceLaunchTemplate- The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceLaunchTemplate
default ManagedInstancesProvider.Builder instanceLaunchTemplate(Consumer<InstanceLaunchTemplate.Builder> instanceLaunchTemplate) The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.
This is a convenience method that creates an instance of theInstanceLaunchTemplate.Builderavoiding the need to create one manually viaInstanceLaunchTemplate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceLaunchTemplate(InstanceLaunchTemplate).- Parameters:
instanceLaunchTemplate- a consumer that will call methods onInstanceLaunchTemplate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
infrastructureOptimization
ManagedInstancesProvider.Builder infrastructureOptimization(InfrastructureOptimization infrastructureOptimization) The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.
- Parameters:
infrastructureOptimization- The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureOptimization
default ManagedInstancesProvider.Builder infrastructureOptimization(Consumer<InfrastructureOptimization.Builder> infrastructureOptimization) The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.
This is a convenience method that creates an instance of theInfrastructureOptimization.Builderavoiding the need to create one manually viaInfrastructureOptimization.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinfrastructureOptimization(InfrastructureOptimization).- Parameters:
infrastructureOptimization- a consumer that will call methods onInfrastructureOptimization.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-