CfnLaunchTemplateMixinProps

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnLaunchTemplateMixinProps(*, launch_template_data=None, launch_template_name=None, tag_specifications=None, version_description=None)

Bases: object

Properties for CfnLaunchTemplatePropsMixin.

Parameters:
  • launch_template_data (Union[IResolvable, LaunchTemplateDataProperty, Dict[str, Any], None]) – The information for the launch template.

  • launch_template_name (Optional[str]) – A name for the launch template.

  • tag_specifications (Union[IResolvable, Sequence[Union[IResolvable, LaunchTemplateTagSpecificationProperty, Dict[str, Any]]], None]) – The tags to apply to the launch template on creation. To tag the launch template, the resource type must be launch-template . To specify the tags for resources that are created during instance launch, use TagSpecifications .

  • version_description (Optional[str]) – A description for the first version of the launch template.

See:

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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins

cfn_launch_template_mixin_props = ec2_mixins.CfnLaunchTemplateMixinProps(
    launch_template_data=ec2_mixins.CfnLaunchTemplatePropsMixin.LaunchTemplateDataProperty(
        block_device_mappings=[ec2_mixins.CfnLaunchTemplatePropsMixin.BlockDeviceMappingProperty(
            device_name="deviceName",
            ebs=ec2_mixins.CfnLaunchTemplatePropsMixin.EbsProperty(
                delete_on_termination=False,
                encrypted=False,
                iops=123,
                kms_key_id="kmsKeyId",
                snapshot_id="snapshotId",
                throughput=123,
                volume_initialization_rate=123,
                volume_size=123,
                volume_type="volumeType"
            ),
            no_device="noDevice",
            virtual_name="virtualName"
        )],
        capacity_reservation_specification=ec2_mixins.CfnLaunchTemplatePropsMixin.CapacityReservationSpecificationProperty(
            capacity_reservation_preference="capacityReservationPreference",
            capacity_reservation_target=ec2_mixins.CfnLaunchTemplatePropsMixin.CapacityReservationTargetProperty(
                capacity_reservation_id="capacityReservationId",
                capacity_reservation_resource_group_arn="capacityReservationResourceGroupArn"
            )
        ),
        cpu_options=ec2_mixins.CfnLaunchTemplatePropsMixin.CpuOptionsProperty(
            amd_sev_snp="amdSevSnp",
            core_count=123,
            threads_per_core=123
        ),
        credit_specification=ec2_mixins.CfnLaunchTemplatePropsMixin.CreditSpecificationProperty(
            cpu_credits="cpuCredits"
        ),
        disable_api_stop=False,
        disable_api_termination=False,
        ebs_optimized=False,
        elastic_gpu_specifications=[ec2_mixins.CfnLaunchTemplatePropsMixin.ElasticGpuSpecificationProperty(
            type="type"
        )],
        elastic_inference_accelerators=[ec2_mixins.CfnLaunchTemplatePropsMixin.LaunchTemplateElasticInferenceAcceleratorProperty(
            count=123,
            type="type"
        )],
        enclave_options=ec2_mixins.CfnLaunchTemplatePropsMixin.EnclaveOptionsProperty(
            enabled=False
        ),
        hibernation_options=ec2_mixins.CfnLaunchTemplatePropsMixin.HibernationOptionsProperty(
            configured=False
        ),
        iam_instance_profile=ec2_mixins.CfnLaunchTemplatePropsMixin.IamInstanceProfileProperty(
            arn="arn",
            name="name"
        ),
        image_id="imageId",
        instance_initiated_shutdown_behavior="instanceInitiatedShutdownBehavior",
        instance_market_options=ec2_mixins.CfnLaunchTemplatePropsMixin.InstanceMarketOptionsProperty(
            market_type="marketType",
            spot_options=ec2_mixins.CfnLaunchTemplatePropsMixin.SpotOptionsProperty(
                block_duration_minutes=123,
                instance_interruption_behavior="instanceInterruptionBehavior",
                max_price="maxPrice",
                spot_instance_type="spotInstanceType",
                valid_until="validUntil"
            )
        ),
        instance_requirements=ec2_mixins.CfnLaunchTemplatePropsMixin.InstanceRequirementsProperty(
            accelerator_count=ec2_mixins.CfnLaunchTemplatePropsMixin.AcceleratorCountProperty(
                max=123,
                min=123
            ),
            accelerator_manufacturers=["acceleratorManufacturers"],
            accelerator_names=["acceleratorNames"],
            accelerator_total_memory_mi_b=ec2_mixins.CfnLaunchTemplatePropsMixin.AcceleratorTotalMemoryMiBProperty(
                max=123,
                min=123
            ),
            accelerator_types=["acceleratorTypes"],
            allowed_instance_types=["allowedInstanceTypes"],
            bare_metal="bareMetal",
            baseline_ebs_bandwidth_mbps=ec2_mixins.CfnLaunchTemplatePropsMixin.BaselineEbsBandwidthMbpsProperty(
                max=123,
                min=123
            ),
            baseline_performance_factors=ec2_mixins.CfnLaunchTemplatePropsMixin.BaselinePerformanceFactorsProperty(
                cpu=ec2_mixins.CfnLaunchTemplatePropsMixin.CpuProperty(
                    references=[ec2_mixins.CfnLaunchTemplatePropsMixin.ReferenceProperty(
                        instance_family="instanceFamily"
                    )]
                )
            ),
            burstable_performance="burstablePerformance",
            cpu_manufacturers=["cpuManufacturers"],
            excluded_instance_types=["excludedInstanceTypes"],
            instance_generations=["instanceGenerations"],
            local_storage="localStorage",
            local_storage_types=["localStorageTypes"],
            max_spot_price_as_percentage_of_optimal_on_demand_price=123,
            memory_gi_bPer_vCpu=ec2_mixins.CfnLaunchTemplatePropsMixin.MemoryGiBPerVCpuProperty(
                max=123,
                min=123
            ),
            memory_mi_b=ec2_mixins.CfnLaunchTemplatePropsMixin.MemoryMiBProperty(
                max=123,
                min=123
            ),
            network_bandwidth_gbps=ec2_mixins.CfnLaunchTemplatePropsMixin.NetworkBandwidthGbpsProperty(
                max=123,
                min=123
            ),
            network_interface_count=ec2_mixins.CfnLaunchTemplatePropsMixin.NetworkInterfaceCountProperty(
                max=123,
                min=123
            ),
            on_demand_max_price_percentage_over_lowest_price=123,
            require_hibernate_support=False,
            spot_max_price_percentage_over_lowest_price=123,
            total_local_storage_gb=ec2_mixins.CfnLaunchTemplatePropsMixin.TotalLocalStorageGBProperty(
                max=123,
                min=123
            ),
            v_cpu_count=ec2_mixins.CfnLaunchTemplatePropsMixin.VCpuCountProperty(
                max=123,
                min=123
            )
        ),
        instance_type="instanceType",
        kernel_id="kernelId",
        key_name="keyName",
        license_specifications=[ec2_mixins.CfnLaunchTemplatePropsMixin.LicenseSpecificationProperty(
            license_configuration_arn="licenseConfigurationArn"
        )],
        maintenance_options=ec2_mixins.CfnLaunchTemplatePropsMixin.MaintenanceOptionsProperty(
            auto_recovery="autoRecovery"
        ),
        metadata_options=ec2_mixins.CfnLaunchTemplatePropsMixin.MetadataOptionsProperty(
            http_endpoint="httpEndpoint",
            http_protocol_ipv6="httpProtocolIpv6",
            http_put_response_hop_limit=123,
            http_tokens="httpTokens",
            instance_metadata_tags="instanceMetadataTags"
        ),
        monitoring=ec2_mixins.CfnLaunchTemplatePropsMixin.MonitoringProperty(
            enabled=False
        ),
        network_interfaces=[ec2_mixins.CfnLaunchTemplatePropsMixin.NetworkInterfaceProperty(
            associate_carrier_ip_address=False,
            associate_public_ip_address=False,
            connection_tracking_specification=ec2_mixins.CfnLaunchTemplatePropsMixin.ConnectionTrackingSpecificationProperty(
                tcp_established_timeout=123,
                udp_stream_timeout=123,
                udp_timeout=123
            ),
            delete_on_termination=False,
            description="description",
            device_index=123,
            ena_queue_count=123,
            ena_srd_specification=ec2_mixins.CfnLaunchTemplatePropsMixin.EnaSrdSpecificationProperty(
                ena_srd_enabled=False,
                ena_srd_udp_specification=ec2_mixins.CfnLaunchTemplatePropsMixin.EnaSrdUdpSpecificationProperty(
                    ena_srd_udp_enabled=False
                )
            ),
            groups=["groups"],
            interface_type="interfaceType",
            ipv4_prefix_count=123,
            ipv4_prefixes=[ec2_mixins.CfnLaunchTemplatePropsMixin.Ipv4PrefixSpecificationProperty(
                ipv4_prefix="ipv4Prefix"
            )],
            ipv6_address_count=123,
            ipv6_addresses=[ec2_mixins.CfnLaunchTemplatePropsMixin.Ipv6AddProperty(
                ipv6_address="ipv6Address"
            )],
            ipv6_prefix_count=123,
            ipv6_prefixes=[ec2_mixins.CfnLaunchTemplatePropsMixin.Ipv6PrefixSpecificationProperty(
                ipv6_prefix="ipv6Prefix"
            )],
            network_card_index=123,
            network_interface_id="networkInterfaceId",
            primary_ipv6=False,
            private_ip_address="privateIpAddress",
            private_ip_addresses=[ec2_mixins.CfnLaunchTemplatePropsMixin.PrivateIpAddProperty(
                primary=False,
                private_ip_address="privateIpAddress"
            )],
            secondary_private_ip_address_count=123,
            subnet_id="subnetId"
        )],
        network_performance_options=ec2_mixins.CfnLaunchTemplatePropsMixin.NetworkPerformanceOptionsProperty(
            bandwidth_weighting="bandwidthWeighting"
        ),
        placement=ec2_mixins.CfnLaunchTemplatePropsMixin.PlacementProperty(
            affinity="affinity",
            availability_zone="availabilityZone",
            group_id="groupId",
            group_name="groupName",
            host_id="hostId",
            host_resource_group_arn="hostResourceGroupArn",
            partition_number=123,
            spread_domain="spreadDomain",
            tenancy="tenancy"
        ),
        private_dns_name_options=ec2_mixins.CfnLaunchTemplatePropsMixin.PrivateDnsNameOptionsProperty(
            enable_resource_name_dns_aaaa_record=False,
            enable_resource_name_dns_aRecord=False,
            hostname_type="hostnameType"
        ),
        ram_disk_id="ramDiskId",
        security_group_ids=["securityGroupIds"],
        security_groups=["securityGroups"],
        tag_specifications=[ec2_mixins.CfnLaunchTemplatePropsMixin.TagSpecificationProperty(
            resource_type="resourceType",
            tags=[CfnTag(
                key="key",
                value="value"
            )]
        )],
        user_data="userData"
    ),
    launch_template_name="launchTemplateName",
    tag_specifications=[ec2_mixins.CfnLaunchTemplatePropsMixin.LaunchTemplateTagSpecificationProperty(
        resource_type="resourceType",
        tags=[CfnTag(
            key="key",
            value="value"
        )]
    )],
    version_description="versionDescription"
)

Attributes

launch_template_data

The information for the launch template.

See:

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

launch_template_name

A name for the launch template.

See:

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

tag_specifications

The tags to apply to the launch template on creation.

To tag the launch template, the resource type must be launch-template .

To specify the tags for resources that are created during instance launch, use TagSpecifications .

See:

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

version_description

A description for the first version of the launch template.

See:

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