Class ManagedInstancesProvider
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ManagedInstancesProvider.Builder,ManagedInstancesProvider>
The configuration for an Amazon ECS Managed Instances capacity provider. This object is required when creating a
compute environment with computeResources.type set to ECS_MANAGED_INSTANCES.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()The infrastructure optimization configuration for the capacity provider.final StringThe Amazon Resource Name (ARN) of the IAM role that Amazon ECS assumes to manage Amazon EC2 instances on your behalf.final InstanceLaunchTemplateThe instance launch configuration for the Amazon ECS Managed Instances capacity provider.final StringSpecifies whether tags on the capacity provider are propagated to the Amazon EC2 instances it launches.static Class<? extends ManagedInstancesProvider.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
- Returns:
- 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.
-
-
-
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.- Returns:
- 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.
-
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:
- The instance launch configuration for the Amazon ECS Managed Instances capacity provider. Contains networking, instance profile, instance requirements, capacity type, storage, and monitoring configuration.
-
infrastructureOptimization
The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.
- Returns:
- The infrastructure optimization configuration for the capacity provider. Specifies the idle-instance scale-in behavior.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ManagedInstancesProvider.Builder,ManagedInstancesProvider>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-