CfnInstanceProps

class aws_cdk.aws_ec2.CfnInstanceProps(*, additional_info=None, affinity=None, availability_zone=None, block_device_mappings=None, cpu_options=None, credit_specification=None, disable_api_termination=None, ebs_optimized=None, elastic_gpu_specifications=None, elastic_inference_accelerators=None, host_id=None, iam_instance_profile=None, image_id=None, instance_initiated_shutdown_behavior=None, instance_type=None, ipv6_address_count=None, ipv6_addresses=None, kernel_id=None, key_name=None, launch_template=None, license_specifications=None, monitoring=None, network_interfaces=None, placement_group_name=None, private_ip_address=None, ramdisk_id=None, security_group_ids=None, security_groups=None, source_dest_check=None, ssm_associations=None, subnet_id=None, tags=None, tenancy=None, user_data=None, volumes=None)

Bases: object

__init__(*, additional_info=None, affinity=None, availability_zone=None, block_device_mappings=None, cpu_options=None, credit_specification=None, disable_api_termination=None, ebs_optimized=None, elastic_gpu_specifications=None, elastic_inference_accelerators=None, host_id=None, iam_instance_profile=None, image_id=None, instance_initiated_shutdown_behavior=None, instance_type=None, ipv6_address_count=None, ipv6_addresses=None, kernel_id=None, key_name=None, launch_template=None, license_specifications=None, monitoring=None, network_interfaces=None, placement_group_name=None, private_ip_address=None, ramdisk_id=None, security_group_ids=None, security_groups=None, source_dest_check=None, ssm_associations=None, subnet_id=None, tags=None, tenancy=None, user_data=None, volumes=None)

Properties for defining a AWS::EC2::Instance.

Parameters
  • additional_info (Optional[str]) – AWS::EC2::Instance.AdditionalInfo.

  • affinity (Optional[str]) – AWS::EC2::Instance.Affinity.

  • availability_zone (Optional[str]) – AWS::EC2::Instance.AvailabilityZone.

  • block_device_mappings (Union[IResolvable, None, List[Union[IResolvable, BlockDeviceMappingProperty]]]) – AWS::EC2::Instance.BlockDeviceMappings.

  • cpu_options (Union[IResolvable, None, CpuOptionsProperty]) – AWS::EC2::Instance.CpuOptions.

  • credit_specification (Union[IResolvable, None, CreditSpecificationProperty]) – AWS::EC2::Instance.CreditSpecification.

  • disable_api_termination (Union[bool, None, IResolvable]) – AWS::EC2::Instance.DisableApiTermination.

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

  • elastic_gpu_specifications (Union[IResolvable, None, List[Union[IResolvable, ElasticGpuSpecificationProperty]]]) – AWS::EC2::Instance.ElasticGpuSpecifications.

  • elastic_inference_accelerators (Union[IResolvable, None, List[Union[IResolvable, ElasticInferenceAcceleratorProperty]]]) – AWS::EC2::Instance.ElasticInferenceAccelerators.

  • host_id (Optional[str]) – AWS::EC2::Instance.HostId.

  • iam_instance_profile (Optional[str]) – AWS::EC2::Instance.IamInstanceProfile.

  • image_id (Optional[str]) – AWS::EC2::Instance.ImageId.

  • instance_initiated_shutdown_behavior (Optional[str]) – AWS::EC2::Instance.InstanceInitiatedShutdownBehavior.

  • instance_type (Optional[str]) – AWS::EC2::Instance.InstanceType.

  • ipv6_address_count (Union[int, float, None]) – AWS::EC2::Instance.Ipv6AddressCount.

  • ipv6_addresses (Union[IResolvable, None, List[Union[IResolvable, InstanceIpv6AddressProperty]]]) – AWS::EC2::Instance.Ipv6Addresses.

  • kernel_id (Optional[str]) – AWS::EC2::Instance.KernelId.

  • key_name (Optional[str]) – AWS::EC2::Instance.KeyName.

  • launch_template (Union[IResolvable, None, LaunchTemplateSpecificationProperty]) – AWS::EC2::Instance.LaunchTemplate.

  • license_specifications (Union[IResolvable, None, List[Union[IResolvable, LicenseSpecificationProperty]]]) – AWS::EC2::Instance.LicenseSpecifications.

  • monitoring (Union[bool, None, IResolvable]) – AWS::EC2::Instance.Monitoring.

  • network_interfaces (Union[IResolvable, None, List[Union[IResolvable, NetworkInterfaceProperty]]]) – AWS::EC2::Instance.NetworkInterfaces.

  • placement_group_name (Optional[str]) – AWS::EC2::Instance.PlacementGroupName.

  • private_ip_address (Optional[str]) – AWS::EC2::Instance.PrivateIpAddress.

  • ramdisk_id (Optional[str]) – AWS::EC2::Instance.RamdiskId.

  • security_group_ids (Optional[List[str]]) – AWS::EC2::Instance.SecurityGroupIds.

  • security_groups (Optional[List[str]]) – AWS::EC2::Instance.SecurityGroups.

  • source_dest_check (Union[bool, None, IResolvable]) – AWS::EC2::Instance.SourceDestCheck.

  • ssm_associations (Union[IResolvable, None, List[Union[IResolvable, SsmAssociationProperty]]]) – AWS::EC2::Instance.SsmAssociations.

  • subnet_id (Optional[str]) – AWS::EC2::Instance.SubnetId.

  • tags (Optional[List[CfnTag]]) – AWS::EC2::Instance.Tags.

  • tenancy (Optional[str]) – AWS::EC2::Instance.Tenancy.

  • user_data (Optional[str]) – AWS::EC2::Instance.UserData.

  • volumes (Union[IResolvable, None, List[Union[IResolvable, VolumeProperty]]]) – AWS::EC2::Instance.Volumes.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html

Attributes

additional_info

AWS::EC2::Instance.AdditionalInfo.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-additionalinfo

Return type

Optional[str]

affinity

AWS::EC2::Instance.Affinity.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-affinity

Return type

Optional[str]

availability_zone

AWS::EC2::Instance.AvailabilityZone.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-availabilityzone

Return type

Optional[str]

block_device_mappings

AWS::EC2::Instance.BlockDeviceMappings.

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

Return type

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

cpu_options

AWS::EC2::Instance.CpuOptions.

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

Return type

Union[IResolvable, None, CpuOptionsProperty]

credit_specification

AWS::EC2::Instance.CreditSpecification.

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

Return type

Union[IResolvable, None, CreditSpecificationProperty]

disable_api_termination

AWS::EC2::Instance.DisableApiTermination.

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

Return type

Union[bool, None, IResolvable]

ebs_optimized

AWS::EC2::Instance.EbsOptimized.

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

Return type

Union[bool, None, IResolvable]

elastic_gpu_specifications

AWS::EC2::Instance.ElasticGpuSpecifications.

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

Return type

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

elastic_inference_accelerators

AWS::EC2::Instance.ElasticInferenceAccelerators.

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

Return type

Union[IResolvable, None, List[Union[IResolvable, ElasticInferenceAcceleratorProperty]]]

host_id

AWS::EC2::Instance.HostId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-hostid

Return type

Optional[str]

iam_instance_profile

AWS::EC2::Instance.IamInstanceProfile.

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

Return type

Optional[str]

image_id

AWS::EC2::Instance.ImageId.

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

Return type

Optional[str]

instance_initiated_shutdown_behavior

AWS::EC2::Instance.InstanceInitiatedShutdownBehavior.

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

Return type

Optional[str]

instance_type

AWS::EC2::Instance.InstanceType.

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

Return type

Optional[str]

ipv6_address_count

AWS::EC2::Instance.Ipv6AddressCount.

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

Return type

Union[int, float, None]

ipv6_addresses

AWS::EC2::Instance.Ipv6Addresses.

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

Return type

Union[IResolvable, None, List[Union[IResolvable, InstanceIpv6AddressProperty]]]

kernel_id

AWS::EC2::Instance.KernelId.

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

Return type

Optional[str]

key_name

AWS::EC2::Instance.KeyName.

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

Return type

Optional[str]

launch_template

AWS::EC2::Instance.LaunchTemplate.

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

Return type

Union[IResolvable, None, LaunchTemplateSpecificationProperty]

license_specifications

AWS::EC2::Instance.LicenseSpecifications.

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

Return type

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

monitoring

AWS::EC2::Instance.Monitoring.

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

Return type

Union[bool, None, IResolvable]

network_interfaces

AWS::EC2::Instance.NetworkInterfaces.

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

Return type

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

placement_group_name

AWS::EC2::Instance.PlacementGroupName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-placementgroupname

Return type

Optional[str]

private_ip_address

AWS::EC2::Instance.PrivateIpAddress.

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

Return type

Optional[str]

ramdisk_id

AWS::EC2::Instance.RamdiskId.

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

Return type

Optional[str]

security_group_ids

AWS::EC2::Instance.SecurityGroupIds.

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

Return type

Optional[List[str]]

security_groups

AWS::EC2::Instance.SecurityGroups.

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

Return type

Optional[List[str]]

source_dest_check

AWS::EC2::Instance.SourceDestCheck.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-sourcedestcheck

Return type

Union[bool, None, IResolvable]

ssm_associations

AWS::EC2::Instance.SsmAssociations.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-ssmassociations

Return type

Union[IResolvable, None, List[Union[IResolvable, SsmAssociationProperty]]]

subnet_id

AWS::EC2::Instance.SubnetId.

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

Return type

Optional[str]

tags

AWS::EC2::Instance.Tags.

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

Return type

Optional[List[CfnTag]]

tenancy

AWS::EC2::Instance.Tenancy.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-tenancy

Return type

Optional[str]

user_data

AWS::EC2::Instance.UserData.

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

Return type

Optional[str]

volumes

AWS::EC2::Instance.Volumes.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-volumes

Return type

Union[IResolvable, None, List[Union[IResolvable, VolumeProperty]]]