Interface ManagedInstancesProvider.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ManagedInstancesProvider.Builder,
,ManagedInstancesProvider> SdkBuilder<ManagedInstancesProvider.Builder,
,ManagedInstancesProvider> SdkPojo
- Enclosing class:
ManagedInstancesProvider
-
Method Summary
Modifier and TypeMethodDescriptioninfrastructureRoleArn
(String infrastructureRoleArn) The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS assumes to manage instances.default ManagedInstancesProvider.Builder
instanceLaunchTemplate
(Consumer<InstanceLaunchTemplate.Builder> instanceLaunchTemplate) The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances.instanceLaunchTemplate
(InstanceLaunchTemplate instanceLaunchTemplate) The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances.propagateTags
(String propagateTags) Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances.propagateTags
(PropagateMITags propagateTags) Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
infrastructureRoleArn
The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS assumes to manage instances. This role must include permissions for Amazon EC2 instance lifecycle management, networking, and any additional Amazon Web Services services required for your workloads.
For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide.
- Parameters:
infrastructureRoleArn
- The Amazon Resource Name (ARN) of the infrastructure role that Amazon ECS assumes to manage instances. This role must include permissions for Amazon EC2 instance lifecycle management, networking, and any additional Amazon Web Services services required for your workloads.For more information, see Amazon ECS infrastructure IAM role in the Amazon ECS Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceLaunchTemplate
ManagedInstancesProvider.Builder instanceLaunchTemplate(InstanceLaunchTemplate instanceLaunchTemplate) The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.
For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide.
- Parameters:
instanceLaunchTemplate
- The launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide.
- 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 launch template that defines how Amazon ECS launches Amazon ECS Managed Instances. This includes the instance profile for your tasks, network and storage configuration, and instance requirements that determine which Amazon EC2 instance types can be used.
For more information, see Store instance launch parameters in Amazon EC2 launch templates in the Amazon EC2 User Guide.
This is a convenience method that creates an instance of theInstanceLaunchTemplate.Builder
avoiding the need to create one manually viaInstanceLaunchTemplate.builder()
.When the
Consumer
completes,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:
-
propagateTags
Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.
- Parameters:
propagateTags
- Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
propagateTags
Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.
- Parameters:
propagateTags
- Determines whether tags from the capacity provider are automatically applied to Amazon ECS Managed Instances. This helps with cost allocation and resource management by ensuring consistent tagging across your infrastructure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-