Interface UpdateManagedInstancesProviderConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UpdateManagedInstancesProviderConfiguration.Builder,,UpdateManagedInstancesProviderConfiguration> SdkBuilder<UpdateManagedInstancesProviderConfiguration.Builder,,UpdateManagedInstancesProviderConfiguration> SdkPojo
- Enclosing class:
UpdateManagedInstancesProviderConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioninfrastructureOptimization(Consumer<InfrastructureOptimization.Builder> infrastructureOptimization) The updated infrastructure optimization configuration.infrastructureOptimization(InfrastructureOptimization infrastructureOptimization) The updated infrastructure optimization configuration.infrastructureRoleArn(String infrastructureRoleArn) The updated Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf.instanceLaunchTemplate(Consumer<InstanceLaunchTemplateUpdate.Builder> instanceLaunchTemplate) The updated instance launch configuration for the Amazon ECS Managed Instances capacity provider.instanceLaunchTemplate(InstanceLaunchTemplateUpdate instanceLaunchTemplate) The updated 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— 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— Does not propagate tags to instances.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
infrastructureRoleArn
UpdateManagedInstancesProviderConfiguration.Builder infrastructureRoleArn(String infrastructureRoleArn) The updated Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf.
- Parameters:
infrastructureRoleArn- The updated Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceLaunchTemplate
UpdateManagedInstancesProviderConfiguration.Builder instanceLaunchTemplate(InstanceLaunchTemplateUpdate instanceLaunchTemplate) The updated instance launch configuration for the Amazon ECS Managed Instances capacity provider.
- Parameters:
instanceLaunchTemplate- The updated instance launch configuration for the Amazon ECS Managed Instances capacity provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceLaunchTemplate
default UpdateManagedInstancesProviderConfiguration.Builder instanceLaunchTemplate(Consumer<InstanceLaunchTemplateUpdate.Builder> instanceLaunchTemplate) The updated instance launch configuration for the Amazon ECS Managed Instances capacity provider.
This is a convenience method that creates an instance of theInstanceLaunchTemplateUpdate.Builderavoiding the need to create one manually viaInstanceLaunchTemplateUpdate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceLaunchTemplate(InstanceLaunchTemplateUpdate).- Parameters:
instanceLaunchTemplate- a consumer that will call methods onInstanceLaunchTemplateUpdate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
infrastructureOptimization
UpdateManagedInstancesProviderConfiguration.Builder infrastructureOptimization(InfrastructureOptimization infrastructureOptimization) The updated infrastructure optimization configuration.
- Parameters:
infrastructureOptimization- The updated infrastructure optimization configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureOptimization
default UpdateManagedInstancesProviderConfiguration.Builder infrastructureOptimization(Consumer<InfrastructureOptimization.Builder> infrastructureOptimization) The updated infrastructure optimization configuration.
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:
-