Class: Aws::ECS::Types::InstanceLaunchTemplate

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

The launch template configuration for Amazon ECS Managed Instances. This defines how Amazon ECS launches Amazon EC2 instances, including the instance profile for your tasks, network and storage configuration, capacity options, and instance requirements for flexible instance type selection.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#capacity_option_typeString

The capacity option type. This determines whether Amazon ECS launches On-Demand or Spot Instances for your managed instance capacity provider.

Valid values are:

  • ‘ON_DEMAND` - Launches standard On-Demand Instances. On-Demand Instances provide predictable pricing and availability.

  • ‘SPOT` - Launches Spot Instances that use spare Amazon EC2 capacity at reduced cost. Spot Instances can be interrupted by Amazon EC2 with a two-minute notification when the capacity is needed back.

The default is On-Demand

For more information about Amazon EC2 capacity options, see

Instance purchasing options][1

in the *Amazon EC2 User Guide*.

[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html

Returns:

  • (String)


6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/aws-sdk-ecs/types.rb', line 6912

class InstanceLaunchTemplate < Struct.new(
  :ec2_instance_profile_arn,
  :network_configuration,
  :storage_configuration,
  :monitoring,
  :capacity_option_type,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#ec2_instance_profile_arnString

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*.

[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/managed-instances-instance-profile.html

Returns:

  • (String)


6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/aws-sdk-ecs/types.rb', line 6912

class InstanceLaunchTemplate < Struct.new(
  :ec2_instance_profile_arn,
  :network_configuration,
  :storage_configuration,
  :monitoring,
  :capacity_option_type,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#instance_requirementsTypes::InstanceRequirementsRequest

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.



6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/aws-sdk-ecs/types.rb', line 6912

class InstanceLaunchTemplate < Struct.new(
  :ec2_instance_profile_arn,
  :network_configuration,
  :storage_configuration,
  :monitoring,
  :capacity_option_type,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#monitoringString

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.

[1]: docs.aws.amazon.com/AmazonECS/latest/developerguide/detailed-monitoring-managed-instances.html

Returns:

  • (String)


6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/aws-sdk-ecs/types.rb', line 6912

class InstanceLaunchTemplate < Struct.new(
  :ec2_instance_profile_arn,
  :network_configuration,
  :storage_configuration,
  :monitoring,
  :capacity_option_type,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#network_configurationTypes::ManagedInstancesNetworkConfiguration

The network configuration for Amazon ECS Managed Instances. This specifies the subnets and security groups that instances use for network connectivity.



6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/aws-sdk-ecs/types.rb', line 6912

class InstanceLaunchTemplate < Struct.new(
  :ec2_instance_profile_arn,
  :network_configuration,
  :storage_configuration,
  :monitoring,
  :capacity_option_type,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end

#storage_configurationTypes::ManagedInstancesStorageConfiguration

The storage configuration for Amazon ECS Managed Instances. This defines the root volume size and type for the instances.



6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/aws-sdk-ecs/types.rb', line 6912

class InstanceLaunchTemplate < Struct.new(
  :ec2_instance_profile_arn,
  :network_configuration,
  :storage_configuration,
  :monitoring,
  :capacity_option_type,
  :instance_requirements)
  SENSITIVE = []
  include Aws::Structure
end