CfnLaunchTemplate

class aws_cdk.aws_ec2.CfnLaunchTemplate(scope, id, *, launch_template_data=None, launch_template_name=None)

Bases: aws_cdk.core.CfnResource

A CloudFormation AWS::EC2::LaunchTemplate.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html

CloudformationResource

AWS::EC2::LaunchTemplate

Create a new AWS::EC2::LaunchTemplate.

Parameters
  • scope (Construct) –

    • scope in which this resource is defined.

  • id (str) –

    • scoped id of the resource.

  • launch_template_data (Union[IResolvable, LaunchTemplateDataProperty, None]) – AWS::EC2::LaunchTemplate.LaunchTemplateData.

  • launch_template_name (Optional[str]) – AWS::EC2::LaunchTemplate.LaunchTemplateName.

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters

path (str) – The path of the value to delete.

Return type

None

add_depends_on(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters

target (CfnResource) –

Return type

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters
  • key (str) –

  • value (Any) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

None

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}
Parameters
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermdediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters

property_path (str) – The path to the property.

Return type

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

Parameters
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resoure, please consult that specific resource’s documentation.

Return type

None

get_att(attribute_name)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters

attribute_name (str) – The name of the attribute.

Return type

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters

key (str) –

See

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

Return type

Any

inspect(inspector)

(experimental) Examines the CloudFormation resource and discloses attributes.

Parameters

inspector (TreeInspector) –

  • tree inspector to collect and process attributes.

Stability

experimental

Return type

None

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters

new_logical_id (str) – The new logical ID to use for this stack element.

Return type

None

to_string()

Returns a string representation of this construct.

Return type

str

Returns

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::EC2::LaunchTemplate'
attr_default_version_number

DefaultVersionNumber

Type

cloudformationAttribute

Return type

str

attr_latest_version_number

LatestVersionNumber

Type

cloudformationAttribute

Return type

str

cfn_options

Options for this resource, such as condition, update policy etc.

Return type

ICfnResourceOptions

cfn_resource_type

AWS resource type.

Return type

str

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

Return type

List[str]

launch_template_data

AWS::EC2::LaunchTemplate.LaunchTemplateData.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatedata

Return type

Union[IResolvable, LaunchTemplateDataProperty, None]

launch_template_name

AWS::EC2::LaunchTemplate.LaunchTemplateName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-launchtemplatename

Return type

Optional[str]

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Return type

str

Returns

the logical ID as a stringified token. This value will only get resolved during synthesis.

node

The construct tree node associated with this construct.

Return type

ConstructNode

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

Return type

str

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Return type

Stack

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters

x (Any) –

Return type

bool

Returns

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(construct)

Check whether the given construct is a CfnResource.

Parameters

construct (IConstruct) –

Return type

bool

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool

BlockDeviceMappingProperty

class CfnLaunchTemplate.BlockDeviceMappingProperty(*, device_name=None, ebs=None, no_device=None, virtual_name=None)

Bases: object

Parameters
  • device_name (Optional[str]) – CfnLaunchTemplate.BlockDeviceMappingProperty.DeviceName.

  • ebs (Union[IResolvable, EbsProperty, None]) – CfnLaunchTemplate.BlockDeviceMappingProperty.Ebs.

  • no_device (Optional[str]) – CfnLaunchTemplate.BlockDeviceMappingProperty.NoDevice.

  • virtual_name (Optional[str]) – CfnLaunchTemplate.BlockDeviceMappingProperty.VirtualName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html

Attributes

device_name

CfnLaunchTemplate.BlockDeviceMappingProperty.DeviceName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-devicename

Return type

Optional[str]

ebs

CfnLaunchTemplate.BlockDeviceMappingProperty.Ebs.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs

Return type

Union[IResolvable, EbsProperty, None]

no_device

CfnLaunchTemplate.BlockDeviceMappingProperty.NoDevice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-nodevice

Return type

Optional[str]

virtual_name

CfnLaunchTemplate.BlockDeviceMappingProperty.VirtualName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping.html#cfn-ec2-launchtemplate-blockdevicemapping-virtualname

Return type

Optional[str]

CapacityReservationSpecificationProperty

class CfnLaunchTemplate.CapacityReservationSpecificationProperty(*, capacity_reservation_preference=None, capacity_reservation_target=None)

Bases: object

Parameters
  • capacity_reservation_preference (Optional[str]) – CfnLaunchTemplate.CapacityReservationSpecificationProperty.CapacityReservationPreference.

  • capacity_reservation_target (Union[IResolvable, CapacityReservationTargetProperty, None]) – CfnLaunchTemplate.CapacityReservationSpecificationProperty.CapacityReservationTarget.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification.html

Attributes

capacity_reservation_preference

CfnLaunchTemplate.CapacityReservationSpecificationProperty.CapacityReservationPreference.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification-capacityreservationpreference

Return type

Optional[str]

capacity_reservation_target

CfnLaunchTemplate.CapacityReservationSpecificationProperty.CapacityReservationTarget.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification-capacityreservationtarget

Return type

Union[IResolvable, CapacityReservationTargetProperty, None]

CapacityReservationTargetProperty

class CfnLaunchTemplate.CapacityReservationTargetProperty(*, capacity_reservation_id=None, capacity_reservation_resource_group_arn=None)

Bases: object

Parameters
  • capacity_reservation_id (Optional[str]) – CfnLaunchTemplate.CapacityReservationTargetProperty.CapacityReservationId.

  • capacity_reservation_resource_group_arn (Optional[str]) – CfnLaunchTemplate.CapacityReservationTargetProperty.CapacityReservationResourceGroupArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-capacityreservationtarget.html

Attributes

capacity_reservation_id

CfnLaunchTemplate.CapacityReservationTargetProperty.CapacityReservationId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-capacityreservationtarget.html#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationid

Return type

Optional[str]

capacity_reservation_resource_group_arn

CfnLaunchTemplate.CapacityReservationTargetProperty.CapacityReservationResourceGroupArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-capacityreservationtarget.html#cfn-ec2-launchtemplate-capacityreservationtarget-capacityreservationresourcegrouparn

Return type

Optional[str]

CpuOptionsProperty

class CfnLaunchTemplate.CpuOptionsProperty(*, core_count=None, threads_per_core=None)

Bases: object

Parameters
  • core_count (Union[int, float, None]) – CfnLaunchTemplate.CpuOptionsProperty.CoreCount.

  • threads_per_core (Union[int, float, None]) – CfnLaunchTemplate.CpuOptionsProperty.ThreadsPerCore.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-cpuoptions.html

Attributes

core_count

CfnLaunchTemplate.CpuOptionsProperty.CoreCount.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-cpuoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-cpuoptions-corecount

Return type

Union[int, float, None]

threads_per_core

CfnLaunchTemplate.CpuOptionsProperty.ThreadsPerCore.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-cpuoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-cpuoptions-threadspercore

Return type

Union[int, float, None]

CreditSpecificationProperty

class CfnLaunchTemplate.CreditSpecificationProperty(*, cpu_credits=None)

Bases: object

Parameters

cpu_credits (Optional[str]) – CfnLaunchTemplate.CreditSpecificationProperty.CpuCredits.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html

Attributes

cpu_credits

CfnLaunchTemplate.CreditSpecificationProperty.CpuCredits.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-creditspecification.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecification-cpucredits

Return type

Optional[str]

EbsProperty

class CfnLaunchTemplate.EbsProperty(*, delete_on_termination=None, encrypted=None, iops=None, kms_key_id=None, snapshot_id=None, volume_size=None, volume_type=None)

Bases: object

Parameters
  • delete_on_termination (Union[bool, IResolvable, None]) – CfnLaunchTemplate.EbsProperty.DeleteOnTermination.

  • encrypted (Union[bool, IResolvable, None]) – CfnLaunchTemplate.EbsProperty.Encrypted.

  • iops (Union[int, float, None]) – CfnLaunchTemplate.EbsProperty.Iops.

  • kms_key_id (Optional[str]) – CfnLaunchTemplate.EbsProperty.KmsKeyId.

  • snapshot_id (Optional[str]) – CfnLaunchTemplate.EbsProperty.SnapshotId.

  • volume_size (Union[int, float, None]) – CfnLaunchTemplate.EbsProperty.VolumeSize.

  • volume_type (Optional[str]) – CfnLaunchTemplate.EbsProperty.VolumeType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html

Attributes

delete_on_termination

CfnLaunchTemplate.EbsProperty.DeleteOnTermination.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-deleteontermination

Return type

Union[bool, IResolvable, None]

encrypted

CfnLaunchTemplate.EbsProperty.Encrypted.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-encrypted

Return type

Union[bool, IResolvable, None]

iops

CfnLaunchTemplate.EbsProperty.Iops.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-iops

Return type

Union[int, float, None]

kms_key_id

CfnLaunchTemplate.EbsProperty.KmsKeyId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-kmskeyid

Return type

Optional[str]

snapshot_id

CfnLaunchTemplate.EbsProperty.SnapshotId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-snapshotid

Return type

Optional[str]

volume_size

CfnLaunchTemplate.EbsProperty.VolumeSize.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumesize

Return type

Union[int, float, None]

volume_type

CfnLaunchTemplate.EbsProperty.VolumeType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-blockdevicemapping-ebs.html#cfn-ec2-launchtemplate-blockdevicemapping-ebs-volumetype

Return type

Optional[str]

ElasticGpuSpecificationProperty

class CfnLaunchTemplate.ElasticGpuSpecificationProperty(*, type=None)

Bases: object

Parameters

type (Optional[str]) – CfnLaunchTemplate.ElasticGpuSpecificationProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html

Attributes

type

CfnLaunchTemplate.ElasticGpuSpecificationProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-elasticgpuspecification.html#cfn-ec2-launchtemplate-elasticgpuspecification-type

Return type

Optional[str]

HibernationOptionsProperty

class CfnLaunchTemplate.HibernationOptionsProperty(*, configured=None)

Bases: object

Parameters

configured (Union[bool, IResolvable, None]) – CfnLaunchTemplate.HibernationOptionsProperty.Configured.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-hibernationoptions.html

Attributes

configured

CfnLaunchTemplate.HibernationOptionsProperty.Configured.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-hibernationoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-hibernationoptions-configured

Return type

Union[bool, IResolvable, None]

IamInstanceProfileProperty

class CfnLaunchTemplate.IamInstanceProfileProperty(*, arn=None, name=None)

Bases: object

Parameters
  • arn (Optional[str]) – CfnLaunchTemplate.IamInstanceProfileProperty.Arn.

  • name (Optional[str]) – CfnLaunchTemplate.IamInstanceProfileProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html

Attributes

arn

CfnLaunchTemplate.IamInstanceProfileProperty.Arn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-arn

Return type

Optional[str]

name

CfnLaunchTemplate.IamInstanceProfileProperty.Name.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile-name

Return type

Optional[str]

InstanceMarketOptionsProperty

class CfnLaunchTemplate.InstanceMarketOptionsProperty(*, market_type=None, spot_options=None)

Bases: object

Parameters
  • market_type (Optional[str]) – CfnLaunchTemplate.InstanceMarketOptionsProperty.MarketType.

  • spot_options (Union[IResolvable, SpotOptionsProperty, None]) – CfnLaunchTemplate.InstanceMarketOptionsProperty.SpotOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html

Attributes

market_type

CfnLaunchTemplate.InstanceMarketOptionsProperty.MarketType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-markettype

Return type

Optional[str]

spot_options

CfnLaunchTemplate.InstanceMarketOptionsProperty.SpotOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions

Return type

Union[IResolvable, SpotOptionsProperty, None]

Ipv6AddProperty

class CfnLaunchTemplate.Ipv6AddProperty(*, ipv6_address=None)

Bases: object

Parameters

ipv6_address (Optional[str]) – CfnLaunchTemplate.Ipv6AddProperty.Ipv6Address.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html

Attributes

ipv6_address

CfnLaunchTemplate.Ipv6AddProperty.Ipv6Address.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html#cfn-ec2-launchtemplate-ipv6add-ipv6address

Return type

Optional[str]

LaunchTemplateDataProperty

class CfnLaunchTemplate.LaunchTemplateDataProperty(*, block_device_mappings=None, capacity_reservation_specification=None, cpu_options=None, credit_specification=None, disable_api_termination=None, ebs_optimized=None, elastic_gpu_specifications=None, elastic_inference_accelerators=None, hibernation_options=None, iam_instance_profile=None, image_id=None, instance_initiated_shutdown_behavior=None, instance_market_options=None, instance_type=None, kernel_id=None, key_name=None, license_specifications=None, metadata_options=None, monitoring=None, network_interfaces=None, placement=None, ram_disk_id=None, security_group_ids=None, security_groups=None, tag_specifications=None, user_data=None)

Bases: object

Parameters
  • block_device_mappings (Union[IResolvable, List[Union[IResolvable, BlockDeviceMappingProperty]], None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.BlockDeviceMappings.

  • capacity_reservation_specification (Union[IResolvable, CapacityReservationSpecificationProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.CapacityReservationSpecification.

  • cpu_options (Union[IResolvable, CpuOptionsProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.CpuOptions.

  • credit_specification (Union[IResolvable, CreditSpecificationProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.CreditSpecification.

  • disable_api_termination (Union[bool, IResolvable, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.DisableApiTermination.

  • ebs_optimized (Union[bool, IResolvable, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.EbsOptimized.

  • elastic_gpu_specifications (Union[IResolvable, List[Union[IResolvable, ElasticGpuSpecificationProperty]], None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.ElasticGpuSpecifications.

  • elastic_inference_accelerators (Union[IResolvable, List[Union[IResolvable, LaunchTemplateElasticInferenceAcceleratorProperty]], None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.ElasticInferenceAccelerators.

  • hibernation_options (Union[IResolvable, HibernationOptionsProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.HibernationOptions.

  • iam_instance_profile (Union[IResolvable, IamInstanceProfileProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.IamInstanceProfile.

  • image_id (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.ImageId.

  • instance_initiated_shutdown_behavior (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceInitiatedShutdownBehavior.

  • instance_market_options (Union[IResolvable, InstanceMarketOptionsProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceMarketOptions.

  • instance_type (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceType.

  • kernel_id (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.KernelId.

  • key_name (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.KeyName.

  • license_specifications (Union[IResolvable, List[Union[IResolvable, LicenseSpecificationProperty]], None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.LicenseSpecifications.

  • metadata_options (Union[IResolvable, MetadataOptionsProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.MetadataOptions.

  • monitoring (Union[IResolvable, MonitoringProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.Monitoring.

  • network_interfaces (Union[IResolvable, List[Union[IResolvable, NetworkInterfaceProperty]], None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.NetworkInterfaces.

  • placement (Union[IResolvable, PlacementProperty, None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.Placement.

  • ram_disk_id (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.RamDiskId.

  • security_group_ids (Optional[List[str]]) – CfnLaunchTemplate.LaunchTemplateDataProperty.SecurityGroupIds.

  • security_groups (Optional[List[str]]) – CfnLaunchTemplate.LaunchTemplateDataProperty.SecurityGroups.

  • tag_specifications (Union[IResolvable, List[Union[IResolvable, TagSpecificationProperty]], None]) – CfnLaunchTemplate.LaunchTemplateDataProperty.TagSpecifications.

  • user_data (Optional[str]) – CfnLaunchTemplate.LaunchTemplateDataProperty.UserData.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html

Attributes

block_device_mappings

CfnLaunchTemplate.LaunchTemplateDataProperty.BlockDeviceMappings.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-blockdevicemappings

Return type

Union[IResolvable, List[Union[IResolvable, BlockDeviceMappingProperty]], None]

capacity_reservation_specification

CfnLaunchTemplate.LaunchTemplateDataProperty.CapacityReservationSpecification.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-capacityreservationspecification

Return type

Union[IResolvable, CapacityReservationSpecificationProperty, None]

cpu_options

CfnLaunchTemplate.LaunchTemplateDataProperty.CpuOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-cpuoptions

Return type

Union[IResolvable, CpuOptionsProperty, None]

credit_specification

CfnLaunchTemplate.LaunchTemplateDataProperty.CreditSpecification.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-creditspecification

Return type

Union[IResolvable, CreditSpecificationProperty, None]

disable_api_termination

CfnLaunchTemplate.LaunchTemplateDataProperty.DisableApiTermination.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-disableapitermination

Return type

Union[bool, IResolvable, None]

ebs_optimized

CfnLaunchTemplate.LaunchTemplateDataProperty.EbsOptimized.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ebsoptimized

Return type

Union[bool, IResolvable, None]

elastic_gpu_specifications

CfnLaunchTemplate.LaunchTemplateDataProperty.ElasticGpuSpecifications.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-elasticgpuspecifications

Return type

Union[IResolvable, List[Union[IResolvable, ElasticGpuSpecificationProperty]], None]

elastic_inference_accelerators

CfnLaunchTemplate.LaunchTemplateDataProperty.ElasticInferenceAccelerators.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-elasticinferenceaccelerators

Return type

Union[IResolvable, List[Union[IResolvable, LaunchTemplateElasticInferenceAcceleratorProperty]], None]

hibernation_options

CfnLaunchTemplate.LaunchTemplateDataProperty.HibernationOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-hibernationoptions

Return type

Union[IResolvable, HibernationOptionsProperty, None]

iam_instance_profile

CfnLaunchTemplate.LaunchTemplateDataProperty.IamInstanceProfile.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-iaminstanceprofile

Return type

Union[IResolvable, IamInstanceProfileProperty, None]

image_id

CfnLaunchTemplate.LaunchTemplateDataProperty.ImageId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-imageid

Return type

Optional[str]

instance_initiated_shutdown_behavior

CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceInitiatedShutdownBehavior.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instanceinitiatedshutdownbehavior

Return type

Optional[str]

instance_market_options

CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceMarketOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions

Return type

Union[IResolvable, InstanceMarketOptionsProperty, None]

instance_type

CfnLaunchTemplate.LaunchTemplateDataProperty.InstanceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-instancetype

Return type

Optional[str]

kernel_id

CfnLaunchTemplate.LaunchTemplateDataProperty.KernelId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-kernelid

Return type

Optional[str]

key_name

CfnLaunchTemplate.LaunchTemplateDataProperty.KeyName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-keyname

Return type

Optional[str]

license_specifications

CfnLaunchTemplate.LaunchTemplateDataProperty.LicenseSpecifications.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-licensespecifications

Return type

Union[IResolvable, List[Union[IResolvable, LicenseSpecificationProperty]], None]

metadata_options

CfnLaunchTemplate.LaunchTemplateDataProperty.MetadataOptions.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-metadataoptions

Return type

Union[IResolvable, MetadataOptionsProperty, None]

monitoring

CfnLaunchTemplate.LaunchTemplateDataProperty.Monitoring.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoring

Return type

Union[IResolvable, MonitoringProperty, None]

network_interfaces

CfnLaunchTemplate.LaunchTemplateDataProperty.NetworkInterfaces.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-networkinterfaces

Return type

Union[IResolvable, List[Union[IResolvable, NetworkInterfaceProperty]], None]

placement

CfnLaunchTemplate.LaunchTemplateDataProperty.Placement.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-placement

Return type

Union[IResolvable, PlacementProperty, None]

ram_disk_id

CfnLaunchTemplate.LaunchTemplateDataProperty.RamDiskId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-ramdiskid

Return type

Optional[str]

security_group_ids

CfnLaunchTemplate.LaunchTemplateDataProperty.SecurityGroupIds.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-securitygroupids

Return type

Optional[List[str]]

security_groups

CfnLaunchTemplate.LaunchTemplateDataProperty.SecurityGroups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-securitygroups

Return type

Optional[List[str]]

tag_specifications

CfnLaunchTemplate.LaunchTemplateDataProperty.TagSpecifications.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-tagspecifications

Return type

Union[IResolvable, List[Union[IResolvable, TagSpecificationProperty]], None]

user_data

CfnLaunchTemplate.LaunchTemplateDataProperty.UserData.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html#cfn-ec2-launchtemplate-launchtemplatedata-userdata

Return type

Optional[str]

LaunchTemplateElasticInferenceAcceleratorProperty

class CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty(*, count=None, type=None)

Bases: object

Parameters
  • count (Union[int, float, None]) – CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty.Count.

  • type (Optional[str]) – CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator.html

Attributes

count

CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty.Count.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator.html#cfn-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator-count

Return type

Union[int, float, None]

type

CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty.Type.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator.html#cfn-ec2-launchtemplate-launchtemplateelasticinferenceaccelerator-type

Return type

Optional[str]

LicenseSpecificationProperty

class CfnLaunchTemplate.LicenseSpecificationProperty(*, license_configuration_arn=None)

Bases: object

Parameters

license_configuration_arn (Optional[str]) – CfnLaunchTemplate.LicenseSpecificationProperty.LicenseConfigurationArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-licensespecification.html

Attributes

license_configuration_arn

CfnLaunchTemplate.LicenseSpecificationProperty.LicenseConfigurationArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-licensespecification.html#cfn-ec2-launchtemplate-licensespecification-licenseconfigurationarn

Return type

Optional[str]

MetadataOptionsProperty

class CfnLaunchTemplate.MetadataOptionsProperty(*, http_endpoint=None, http_put_response_hop_limit=None, http_tokens=None)

Bases: object

Parameters
  • http_endpoint (Optional[str]) – CfnLaunchTemplate.MetadataOptionsProperty.HttpEndpoint.

  • http_put_response_hop_limit (Union[int, float, None]) – CfnLaunchTemplate.MetadataOptionsProperty.HttpPutResponseHopLimit.

  • http_tokens (Optional[str]) – CfnLaunchTemplate.MetadataOptionsProperty.HttpTokens.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

Attributes

http_endpoint

CfnLaunchTemplate.MetadataOptionsProperty.HttpEndpoint.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-metadataoptions-httpendpoint

Return type

Optional[str]

http_put_response_hop_limit

CfnLaunchTemplate.MetadataOptionsProperty.HttpPutResponseHopLimit.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-metadataoptions-httpputresponsehoplimit

Return type

Union[int, float, None]

http_tokens

CfnLaunchTemplate.MetadataOptionsProperty.HttpTokens.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-metadataoptions-httptokens

Return type

Optional[str]

MonitoringProperty

class CfnLaunchTemplate.MonitoringProperty(*, enabled=None)

Bases: object

Parameters

enabled (Union[bool, IResolvable, None]) – CfnLaunchTemplate.MonitoringProperty.Enabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html

Attributes

enabled

CfnLaunchTemplate.MonitoringProperty.Enabled.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-monitoring.html#cfn-ec2-launchtemplate-launchtemplatedata-monitoring-enabled

Return type

Union[bool, IResolvable, None]

NetworkInterfaceProperty

class CfnLaunchTemplate.NetworkInterfaceProperty(*, associate_carrier_ip_address=None, associate_public_ip_address=None, delete_on_termination=None, description=None, device_index=None, groups=None, interface_type=None, ipv6_address_count=None, ipv6_addresses=None, network_card_index=None, network_interface_id=None, private_ip_address=None, private_ip_addresses=None, secondary_private_ip_address_count=None, subnet_id=None)

Bases: object

Parameters
  • associate_carrier_ip_address (Union[bool, IResolvable, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.AssociateCarrierIpAddress.

  • associate_public_ip_address (Union[bool, IResolvable, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.AssociatePublicIpAddress.

  • delete_on_termination (Union[bool, IResolvable, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.DeleteOnTermination.

  • description (Optional[str]) – CfnLaunchTemplate.NetworkInterfaceProperty.Description.

  • device_index (Union[int, float, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.DeviceIndex.

  • groups (Optional[List[str]]) – CfnLaunchTemplate.NetworkInterfaceProperty.Groups.

  • interface_type (Optional[str]) – CfnLaunchTemplate.NetworkInterfaceProperty.InterfaceType.

  • ipv6_address_count (Union[int, float, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.Ipv6AddressCount.

  • ipv6_addresses (Union[IResolvable, List[Union[IResolvable, Ipv6AddProperty]], None]) – CfnLaunchTemplate.NetworkInterfaceProperty.Ipv6Addresses.

  • network_card_index (Union[int, float, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.NetworkCardIndex.

  • network_interface_id (Optional[str]) – CfnLaunchTemplate.NetworkInterfaceProperty.NetworkInterfaceId.

  • private_ip_address (Optional[str]) – CfnLaunchTemplate.NetworkInterfaceProperty.PrivateIpAddress.

  • private_ip_addresses (Union[IResolvable, List[Union[IResolvable, PrivateIpAddProperty]], None]) – CfnLaunchTemplate.NetworkInterfaceProperty.PrivateIpAddresses.

  • secondary_private_ip_address_count (Union[int, float, None]) – CfnLaunchTemplate.NetworkInterfaceProperty.SecondaryPrivateIpAddressCount.

  • subnet_id (Optional[str]) – CfnLaunchTemplate.NetworkInterfaceProperty.SubnetId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html

Attributes

associate_carrier_ip_address

CfnLaunchTemplate.NetworkInterfaceProperty.AssociateCarrierIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-associatecarrieripaddress

Return type

Union[bool, IResolvable, None]

associate_public_ip_address

CfnLaunchTemplate.NetworkInterfaceProperty.AssociatePublicIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-associatepublicipaddress

Return type

Union[bool, IResolvable, None]

delete_on_termination

CfnLaunchTemplate.NetworkInterfaceProperty.DeleteOnTermination.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deleteontermination

Return type

Union[bool, IResolvable, None]

description

CfnLaunchTemplate.NetworkInterfaceProperty.Description.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-description

Return type

Optional[str]

device_index

CfnLaunchTemplate.NetworkInterfaceProperty.DeviceIndex.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-deviceindex

Return type

Union[int, float, None]

groups

CfnLaunchTemplate.NetworkInterfaceProperty.Groups.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-groups

Return type

Optional[List[str]]

interface_type

CfnLaunchTemplate.NetworkInterfaceProperty.InterfaceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-interfacetype

Return type

Optional[str]

ipv6_address_count

CfnLaunchTemplate.NetworkInterfaceProperty.Ipv6AddressCount.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresscount

Return type

Union[int, float, None]

ipv6_addresses

CfnLaunchTemplate.NetworkInterfaceProperty.Ipv6Addresses.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-ipv6addresses

Return type

Union[IResolvable, List[Union[IResolvable, Ipv6AddProperty]], None]

network_card_index

CfnLaunchTemplate.NetworkInterfaceProperty.NetworkCardIndex.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-networkcardindex

Return type

Union[int, float, None]

network_interface_id

CfnLaunchTemplate.NetworkInterfaceProperty.NetworkInterfaceId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-networkinterfaceid

Return type

Optional[str]

private_ip_address

CfnLaunchTemplate.NetworkInterfaceProperty.PrivateIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddress

Return type

Optional[str]

private_ip_addresses

CfnLaunchTemplate.NetworkInterfaceProperty.PrivateIpAddresses.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-privateipaddresses

Return type

Union[IResolvable, List[Union[IResolvable, PrivateIpAddProperty]], None]

secondary_private_ip_address_count

CfnLaunchTemplate.NetworkInterfaceProperty.SecondaryPrivateIpAddressCount.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-secondaryprivateipaddresscount

Return type

Union[int, float, None]

subnet_id

CfnLaunchTemplate.NetworkInterfaceProperty.SubnetId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-networkinterface.html#cfn-ec2-launchtemplate-networkinterface-subnetid

Return type

Optional[str]

PlacementProperty

class CfnLaunchTemplate.PlacementProperty(*, affinity=None, availability_zone=None, group_name=None, host_id=None, host_resource_group_arn=None, partition_number=None, spread_domain=None, tenancy=None)

Bases: object

Parameters
  • affinity (Optional[str]) – CfnLaunchTemplate.PlacementProperty.Affinity.

  • availability_zone (Optional[str]) – CfnLaunchTemplate.PlacementProperty.AvailabilityZone.

  • group_name (Optional[str]) – CfnLaunchTemplate.PlacementProperty.GroupName.

  • host_id (Optional[str]) – CfnLaunchTemplate.PlacementProperty.HostId.

  • host_resource_group_arn (Optional[str]) – CfnLaunchTemplate.PlacementProperty.HostResourceGroupArn.

  • partition_number (Union[int, float, None]) – CfnLaunchTemplate.PlacementProperty.PartitionNumber.

  • spread_domain (Optional[str]) – CfnLaunchTemplate.PlacementProperty.SpreadDomain.

  • tenancy (Optional[str]) – CfnLaunchTemplate.PlacementProperty.Tenancy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html

Attributes

affinity

CfnLaunchTemplate.PlacementProperty.Affinity.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-affinity

Return type

Optional[str]

availability_zone

CfnLaunchTemplate.PlacementProperty.AvailabilityZone.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-availabilityzone

Return type

Optional[str]

group_name

CfnLaunchTemplate.PlacementProperty.GroupName.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-groupname

Return type

Optional[str]

host_id

CfnLaunchTemplate.PlacementProperty.HostId.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostid

Return type

Optional[str]

host_resource_group_arn

CfnLaunchTemplate.PlacementProperty.HostResourceGroupArn.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-hostresourcegrouparn

Return type

Optional[str]

partition_number

CfnLaunchTemplate.PlacementProperty.PartitionNumber.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-partitionnumber

Return type

Union[int, float, None]

spread_domain

CfnLaunchTemplate.PlacementProperty.SpreadDomain.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-spreaddomain

Return type

Optional[str]

tenancy

CfnLaunchTemplate.PlacementProperty.Tenancy.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-placement.html#cfn-ec2-launchtemplate-launchtemplatedata-placement-tenancy

Return type

Optional[str]

PrivateIpAddProperty

class CfnLaunchTemplate.PrivateIpAddProperty(*, primary=None, private_ip_address=None)

Bases: object

Parameters
  • primary (Union[bool, IResolvable, None]) – CfnLaunchTemplate.PrivateIpAddProperty.Primary.

  • private_ip_address (Optional[str]) – CfnLaunchTemplate.PrivateIpAddProperty.PrivateIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html

Attributes

primary

CfnLaunchTemplate.PrivateIpAddProperty.Primary.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-primary

Return type

Union[bool, IResolvable, None]

private_ip_address

CfnLaunchTemplate.PrivateIpAddProperty.PrivateIpAddress.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-privateipadd.html#cfn-ec2-launchtemplate-privateipadd-privateipaddress

Return type

Optional[str]

SpotOptionsProperty

class CfnLaunchTemplate.SpotOptionsProperty(*, block_duration_minutes=None, instance_interruption_behavior=None, max_price=None, spot_instance_type=None, valid_until=None)

Bases: object

Parameters
  • block_duration_minutes (Union[int, float, None]) – CfnLaunchTemplate.SpotOptionsProperty.BlockDurationMinutes.

  • instance_interruption_behavior (Optional[str]) – CfnLaunchTemplate.SpotOptionsProperty.InstanceInterruptionBehavior.

  • max_price (Optional[str]) – CfnLaunchTemplate.SpotOptionsProperty.MaxPrice.

  • spot_instance_type (Optional[str]) – CfnLaunchTemplate.SpotOptionsProperty.SpotInstanceType.

  • valid_until (Optional[str]) – CfnLaunchTemplate.SpotOptionsProperty.ValidUntil.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html

Attributes

block_duration_minutes

CfnLaunchTemplate.SpotOptionsProperty.BlockDurationMinutes.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-blockdurationminutes

Return type

Union[int, float, None]

instance_interruption_behavior

CfnLaunchTemplate.SpotOptionsProperty.InstanceInterruptionBehavior.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-instanceinterruptionbehavior

Return type

Optional[str]

max_price

CfnLaunchTemplate.SpotOptionsProperty.MaxPrice.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-maxprice

Return type

Optional[str]

spot_instance_type

CfnLaunchTemplate.SpotOptionsProperty.SpotInstanceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-spotinstancetype

Return type

Optional[str]

valid_until

CfnLaunchTemplate.SpotOptionsProperty.ValidUntil.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions.html#cfn-ec2-launchtemplate-launchtemplatedata-instancemarketoptions-spotoptions-validuntil

Return type

Optional[str]

TagSpecificationProperty

class CfnLaunchTemplate.TagSpecificationProperty(*, resource_type=None, tags=None)

Bases: object

Parameters
  • resource_type (Optional[str]) – CfnLaunchTemplate.TagSpecificationProperty.ResourceType.

  • tags (Optional[List[CfnTag]]) – CfnLaunchTemplate.TagSpecificationProperty.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html

Attributes

resource_type

CfnLaunchTemplate.TagSpecificationProperty.ResourceType.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-resourcetype

Return type

Optional[str]

tags

CfnLaunchTemplate.TagSpecificationProperty.Tags.

See

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html#cfn-ec2-launchtemplate-tagspecification-tags

Return type

Optional[List[CfnTag]]