CfnLaunchConfigurationProps

class aws_cdk.aws_autoscaling.CfnLaunchConfigurationProps(*, associate_public_ip_address=None, block_device_mappings=None, classic_link_vpc_id=None, classic_link_vpc_security_groups=None, ebs_optimized=None, iam_instance_profile=None, image_id, instance_id=None, instance_monitoring=None, instance_type, kernel_id=None, key_name=None, launch_configuration_name=None, metadata_options=None, placement_tenancy=None, ram_disk_id=None, security_groups=None, spot_price=None, user_data=None)

Bases: object

Properties for defining a AWS::AutoScaling::LaunchConfiguration.

Parameters
  • associate_public_ip_address (Union[bool, IResolvable, None]) – AWS::AutoScaling::LaunchConfiguration.AssociatePublicIpAddress.

  • block_device_mappings (Union[IResolvable, Sequence[Union[IResolvable, BlockDeviceMappingProperty]], None]) – AWS::AutoScaling::LaunchConfiguration.BlockDeviceMappings.

  • classic_link_vpc_id (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.ClassicLinkVPCId.

  • classic_link_vpc_security_groups (Optional[Sequence[str]]) – AWS::AutoScaling::LaunchConfiguration.ClassicLinkVPCSecurityGroups.

  • ebs_optimized (Union[bool, IResolvable, None]) – AWS::AutoScaling::LaunchConfiguration.EbsOptimized.

  • iam_instance_profile (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.IamInstanceProfile.

  • image_id (str) – AWS::AutoScaling::LaunchConfiguration.ImageId.

  • instance_id (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.InstanceId.

  • instance_monitoring (Union[bool, IResolvable, None]) – AWS::AutoScaling::LaunchConfiguration.InstanceMonitoring.

  • instance_type (str) – AWS::AutoScaling::LaunchConfiguration.InstanceType.

  • kernel_id (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.KernelId.

  • key_name (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.KeyName.

  • launch_configuration_name (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.LaunchConfigurationName.

  • metadata_options (Union[IResolvable, MetadataOptionsProperty, None]) – AWS::AutoScaling::LaunchConfiguration.MetadataOptions.

  • placement_tenancy (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.PlacementTenancy.

  • ram_disk_id (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.RamDiskId.

  • security_groups (Optional[Sequence[str]]) – AWS::AutoScaling::LaunchConfiguration.SecurityGroups.

  • spot_price (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.SpotPrice.

  • user_data (Optional[str]) – AWS::AutoScaling::LaunchConfiguration.UserData.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_autoscaling as autoscaling

cfn_launch_configuration_props = autoscaling.CfnLaunchConfigurationProps(
    image_id="imageId",
    instance_type="instanceType",

    # the properties below are optional
    associate_public_ip_address=False,
    block_device_mappings=[autoscaling.CfnLaunchConfiguration.BlockDeviceMappingProperty(
        device_name="deviceName",

        # the properties below are optional
        ebs=autoscaling.CfnLaunchConfiguration.BlockDeviceProperty(
            delete_on_termination=False,
            encrypted=False,
            iops=123,
            snapshot_id="snapshotId",
            throughput=123,
            volume_size=123,
            volume_type="volumeType"
        ),
        no_device=False,
        virtual_name="virtualName"
    )],
    classic_link_vpc_id="classicLinkVpcId",
    classic_link_vpc_security_groups=["classicLinkVpcSecurityGroups"],
    ebs_optimized=False,
    iam_instance_profile="iamInstanceProfile",
    instance_id="instanceId",
    instance_monitoring=False,
    kernel_id="kernelId",
    key_name="keyName",
    launch_configuration_name="launchConfigurationName",
    metadata_options=autoscaling.CfnLaunchConfiguration.MetadataOptionsProperty(
        http_endpoint="httpEndpoint",
        http_put_response_hop_limit=123,
        http_tokens="httpTokens"
    ),
    placement_tenancy="placementTenancy",
    ram_disk_id="ramDiskId",
    security_groups=["securityGroups"],
    spot_price="spotPrice",
    user_data="userData"
)

Attributes

associate_public_ip_address

AWS::AutoScaling::LaunchConfiguration.AssociatePublicIpAddress.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cf-as-launchconfig-associatepubip

Return type

Union[bool, IResolvable, None]

block_device_mappings

AWS::AutoScaling::LaunchConfiguration.BlockDeviceMappings.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-blockdevicemappings

Return type

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

AWS::AutoScaling::LaunchConfiguration.ClassicLinkVPCId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-classiclinkvpcid

Return type

Optional[str]

AWS::AutoScaling::LaunchConfiguration.ClassicLinkVPCSecurityGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-classiclinkvpcsecuritygroups

Return type

Optional[List[str]]

ebs_optimized

AWS::AutoScaling::LaunchConfiguration.EbsOptimized.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-ebsoptimized

Return type

Union[bool, IResolvable, None]

iam_instance_profile

AWS::AutoScaling::LaunchConfiguration.IamInstanceProfile.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-iaminstanceprofile

Return type

Optional[str]

image_id

AWS::AutoScaling::LaunchConfiguration.ImageId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-imageid

Return type

str

instance_id

AWS::AutoScaling::LaunchConfiguration.InstanceId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instanceid

Return type

Optional[str]

instance_monitoring

AWS::AutoScaling::LaunchConfiguration.InstanceMonitoring.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instancemonitoring

Return type

Union[bool, IResolvable, None]

instance_type

AWS::AutoScaling::LaunchConfiguration.InstanceType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instancetype

Return type

str

kernel_id

AWS::AutoScaling::LaunchConfiguration.KernelId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-kernelid

Return type

Optional[str]

key_name

AWS::AutoScaling::LaunchConfiguration.KeyName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-keyname

Return type

Optional[str]

launch_configuration_name

AWS::AutoScaling::LaunchConfiguration.LaunchConfigurationName.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-autoscaling-launchconfig-launchconfigurationname

Return type

Optional[str]

metadata_options

AWS::AutoScaling::LaunchConfiguration.MetadataOptions.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-autoscaling-launchconfig-metadataoptions

Return type

Union[IResolvable, MetadataOptionsProperty, None]

placement_tenancy

AWS::AutoScaling::LaunchConfiguration.PlacementTenancy.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-placementtenancy

Return type

Optional[str]

ram_disk_id

AWS::AutoScaling::LaunchConfiguration.RamDiskId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-ramdiskid

Return type

Optional[str]

security_groups

AWS::AutoScaling::LaunchConfiguration.SecurityGroups.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-securitygroups

Return type

Optional[List[str]]

spot_price

AWS::AutoScaling::LaunchConfiguration.SpotPrice.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-spotprice

Return type

Optional[str]

user_data

AWS::AutoScaling::LaunchConfiguration.UserData.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-userdata

Return type

Optional[str]