Interface InstanceLaunchTemplate.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceLaunchTemplate.Builder,
,InstanceLaunchTemplate> SdkBuilder<InstanceLaunchTemplate.Builder,
,InstanceLaunchTemplate> SdkPojo
- Enclosing class:
InstanceLaunchTemplate
-
Method Summary
Modifier and TypeMethodDescriptionec2InstanceProfileArn
(String ec2InstanceProfileArn) The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances.default InstanceLaunchTemplate.Builder
instanceRequirements
(Consumer<InstanceRequirementsRequest.Builder> instanceRequirements) The instance requirements.instanceRequirements
(InstanceRequirementsRequest instanceRequirements) The instance requirements.monitoring
(String monitoring) CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring.monitoring
(ManagedInstancesMonitoringOptions monitoring) CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring.default InstanceLaunchTemplate.Builder
networkConfiguration
(Consumer<ManagedInstancesNetworkConfiguration.Builder> networkConfiguration) The network configuration for Amazon ECS Managed Instances.networkConfiguration
(ManagedInstancesNetworkConfiguration networkConfiguration) The network configuration for Amazon ECS Managed Instances.default InstanceLaunchTemplate.Builder
storageConfiguration
(Consumer<ManagedInstancesStorageConfiguration.Builder> storageConfiguration) The storage configuration for Amazon ECS Managed Instances.storageConfiguration
(ManagedInstancesStorageConfiguration storageConfiguration) The storage configuration for 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
-
ec2InstanceProfileArn
The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances. This instance profile must include the necessary permissions for your tasks to access Amazon Web Services services and resources.
For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide.
- Parameters:
ec2InstanceProfileArn
- The Amazon Resource Name (ARN) of the instance profile that Amazon ECS applies to Amazon ECS Managed Instances. This instance profile must include the necessary permissions for your tasks to access Amazon Web Services services and resources.For more information, see Amazon ECS instance profile for Managed Instances in the Amazon ECS Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
InstanceLaunchTemplate.Builder networkConfiguration(ManagedInstancesNetworkConfiguration networkConfiguration) The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.
- Parameters:
networkConfiguration
- The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default InstanceLaunchTemplate.Builder networkConfiguration(Consumer<ManagedInstancesNetworkConfiguration.Builder> networkConfiguration) The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.
This is a convenience method that creates an instance of theManagedInstancesNetworkConfiguration.Builder
avoiding the need to create one manually viaManagedInstancesNetworkConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkConfiguration(ManagedInstancesNetworkConfiguration)
.- Parameters:
networkConfiguration
- a consumer that will call methods onManagedInstancesNetworkConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
storageConfiguration
InstanceLaunchTemplate.Builder storageConfiguration(ManagedInstancesStorageConfiguration storageConfiguration) The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.
- Parameters:
storageConfiguration
- The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageConfiguration
default InstanceLaunchTemplate.Builder storageConfiguration(Consumer<ManagedInstancesStorageConfiguration.Builder> storageConfiguration) The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.
This is a convenience method that creates an instance of theManagedInstancesStorageConfiguration.Builder
avoiding the need to create one manually viaManagedInstancesStorageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorageConfiguration(ManagedInstancesStorageConfiguration)
.- Parameters:
storageConfiguration
- a consumer that will call methods onManagedInstancesStorageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoring
CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.
- Parameters:
monitoring
- CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitoring
CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.
- Parameters:
monitoring
- CloudWatch provides two categories of monitoring: basic monitoring and detailed monitoring. By default, your managed instance is configured for basic monitoring. You can optionally enable detailed monitoring to help you more quickly identify and act on operational issues. You can enable or turn off detailed monitoring at launch or when the managed instance is running or stopped. For more information, see Detailed monitoring for Amazon ECS Managed Instances in the Amazon ECS Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceRequirements
InstanceLaunchTemplate.Builder instanceRequirements(InstanceRequirementsRequest instanceRequirements) The instance requirements. You can specify:
-
The instance types
-
Instance requirements such as vCPU count, memory, network performance, and accelerator specifications
Amazon ECS automatically selects the instances that match the specified criteria.
- Parameters:
instanceRequirements
- The instance requirements. You can specify:-
The instance types
-
Instance requirements such as vCPU count, memory, network performance, and accelerator specifications
Amazon ECS automatically selects the instances that match the specified criteria.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
instanceRequirements
default InstanceLaunchTemplate.Builder instanceRequirements(Consumer<InstanceRequirementsRequest.Builder> instanceRequirements) The instance requirements. You can specify:
-
The instance types
-
Instance requirements such as vCPU count, memory, network performance, and accelerator specifications
Amazon ECS automatically selects the instances that match the specified criteria.
This is a convenience method that creates an instance of theInstanceRequirementsRequest.Builder
avoiding the need to create one manually viaInstanceRequirementsRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceRequirements(InstanceRequirementsRequest)
.- Parameters:
instanceRequirements
- a consumer that will call methods onInstanceRequirementsRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-