Class LaunchTemplateProps.Jsii$Proxy
- All Implemented Interfaces:
LaunchTemplateProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
LaunchTemplateProps
LaunchTemplateProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.LaunchTemplateProps
LaunchTemplateProps.Builder, LaunchTemplateProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(LaunchTemplateProps.Builder builder) Constructor that initializes the object based on literal property values passed by theLaunchTemplateProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal BooleanWhether instances should have a public IP addresses associated with them.final List<BlockDevice> Specifies how block devices are exposed to the instance.final CpuCreditsCPU credit type for burstable EC2 instance types.final BooleanIf set to true, then detailed monitoring will be enabled on instances created with this launch template.final BooleanIf you set this parameter to true, you cannot terminate the instances launched with this launch template using the Amazon EC2 console, CLI, or API;final BooleanIndicates whether the instances are optimized for Amazon EBS I/O.final BooleanIf you set this parameter to true, the instance is enabled for hibernation.final BooleanEnables or disables the HTTP metadata endpoint on your instances.final BooleanEnables or disables the IPv6 endpoint for the instance metadata service.final NumberThe desired HTTP PUT response hop limit for instance metadata requests.final LaunchTemplateHttpTokensThe state of token usage for your instance metadata requests.Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).final BooleanSet to enabled to allow access to instance tags from the instance metadata.final IInstanceProfileThe instance profile used to pass role information to EC2 instances.final InstanceTypeType of instance to launch.final String(deprecated) Name of SSH keypair to grant access to instance.final IKeyPairThe SSH keypair to grant access to the instance.final StringName for this launch template.final IMachineImageThe AMI that will be used by instances.final BooleanIf this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;final IPlacementGroupRefThe placement group that you want to launch the instance into.final BooleanWhether IMDSv2 should be required on launched instances.final IRolegetRole()An IAM role to associate with the instance profile that is used by instances.final ISecurityGroupSecurity group to assign to instances created with the launch template.If this property is defined, then the Launch Template's InstanceMarketOptions will be set to use Spot instances, and the options for the Spot instances will be as defined.final UserDataThe user data to make available to the instance.final StringA description for the first version of the launch template.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theLaunchTemplateProps.Builder.
-
-
Method Details
-
getAssociatePublicIpAddress
Description copied from interface:LaunchTemplatePropsWhether instances should have a public IP addresses associated with them.Default: - Use subnet settings
- Specified by:
getAssociatePublicIpAddressin interfaceLaunchTemplateProps
-
getBlockDevices
Description copied from interface:LaunchTemplatePropsSpecifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.Each instance that is launched has an associated root device volume, either an Amazon EBS volume or an instance store volume. You can use block device mappings to specify additional EBS volumes or instance store volumes to attach to an instance when it is launched.
Default: - Uses the block device mapping of the AMI
- Specified by:
getBlockDevicesin interfaceLaunchTemplateProps- See Also:
-
getCpuCredits
Description copied from interface:LaunchTemplatePropsCPU credit type for burstable EC2 instance types.Default: - No credit type is specified in the Launch Template.
- Specified by:
getCpuCreditsin interfaceLaunchTemplateProps- See Also:
-
getDetailedMonitoring
Description copied from interface:LaunchTemplatePropsIf set to true, then detailed monitoring will be enabled on instances created with this launch template.Default: False - Detailed monitoring is disabled.
- Specified by:
getDetailedMonitoringin interfaceLaunchTemplateProps- See Also:
-
getDisableApiTermination
Description copied from interface:LaunchTemplatePropsIf you set this parameter to true, you cannot terminate the instances launched with this launch template using the Amazon EC2 console, CLI, or API;otherwise, you can.
Default: - The API termination setting is not specified in the Launch Template.
- Specified by:
getDisableApiTerminationin interfaceLaunchTemplateProps
-
getEbsOptimized
Description copied from interface:LaunchTemplatePropsIndicates whether the instances are optimized for Amazon EBS I/O.This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: - EBS optimization is not specified in the launch template.
- Specified by:
getEbsOptimizedin interfaceLaunchTemplateProps
-
getHibernationConfigured
Description copied from interface:LaunchTemplatePropsIf you set this parameter to true, the instance is enabled for hibernation.Default: - Hibernation configuration is not specified in the launch template; defaulting to false.
- Specified by:
getHibernationConfiguredin interfaceLaunchTemplateProps
-
getHttpEndpoint
Description copied from interface:LaunchTemplatePropsEnables or disables the HTTP metadata endpoint on your instances.Default: true
- Specified by:
getHttpEndpointin interfaceLaunchTemplateProps- See Also:
-
getHttpProtocolIpv6
Description copied from interface:LaunchTemplatePropsEnables or disables the IPv6 endpoint for the instance metadata service.Default: true
- Specified by:
getHttpProtocolIpv6in interfaceLaunchTemplateProps- See Also:
-
getHttpPutResponseHopLimit
Description copied from interface:LaunchTemplatePropsThe desired HTTP PUT response hop limit for instance metadata requests.The larger the number, the further instance metadata requests can travel.
Default: 1
- Specified by:
getHttpPutResponseHopLimitin interfaceLaunchTemplateProps- See Also:
-
getHttpTokens
Description copied from interface:LaunchTemplatePropsThe state of token usage for your instance metadata requests.The default state is
optionalif not specified. However, if requireImdsv2 is true, the state must berequired.Default: LaunchTemplateHttpTokens.OPTIONAL
- Specified by:
getHttpTokensin interfaceLaunchTemplateProps- See Also:
-
getInstanceInitiatedShutdownBehavior
Description copied from interface:LaunchTemplatePropsIndicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).Default: - Shutdown behavior is not specified in the launch template; defaults to STOP.
- Specified by:
getInstanceInitiatedShutdownBehaviorin interfaceLaunchTemplateProps- See Also:
-
getInstanceMetadataTags
Description copied from interface:LaunchTemplatePropsSet to enabled to allow access to instance tags from the instance metadata.Set to disabled to turn off access to instance tags from the instance metadata.
Default: false
- Specified by:
getInstanceMetadataTagsin interfaceLaunchTemplateProps- See Also:
-
getInstanceProfile
Description copied from interface:LaunchTemplatePropsThe instance profile used to pass role information to EC2 instances.Note: You can provide an instanceProfile or a role, but not both.
Default: - No instance profile
- Specified by:
getInstanceProfilein interfaceLaunchTemplateProps
-
getInstanceType
Description copied from interface:LaunchTemplatePropsType of instance to launch.Default: - This Launch Template does not specify a default Instance Type.
- Specified by:
getInstanceTypein interfaceLaunchTemplateProps
-
getKeyName
Description copied from interface:LaunchTemplateProps(deprecated) Name of SSH keypair to grant access to instance.Default: - No SSH access will be possible.
- Specified by:
getKeyNamein interfaceLaunchTemplateProps
-
getKeyPair
Description copied from interface:LaunchTemplatePropsThe SSH keypair to grant access to the instance.Default: - No SSH access will be possible.
- Specified by:
getKeyPairin interfaceLaunchTemplateProps
-
getLaunchTemplateName
Description copied from interface:LaunchTemplatePropsName for this launch template.Default: Automatically generated name
- Specified by:
getLaunchTemplateNamein interfaceLaunchTemplateProps
-
getMachineImage
Description copied from interface:LaunchTemplatePropsThe AMI that will be used by instances.Default: - This Launch Template does not specify a default AMI.
- Specified by:
getMachineImagein interfaceLaunchTemplateProps
-
getNitroEnclaveEnabled
Description copied from interface:LaunchTemplatePropsIf this parameter is set to true, the instance is enabled for AWS Nitro Enclaves;otherwise, it is not enabled for AWS Nitro Enclaves.
Default: - Enablement of Nitro enclaves is not specified in the launch template; defaulting to false.
- Specified by:
getNitroEnclaveEnabledin interfaceLaunchTemplateProps
-
getPlacementGroup
Description copied from interface:LaunchTemplatePropsThe placement group that you want to launch the instance into.Default: - no placement group will be used for this launch template.
- Specified by:
getPlacementGroupin interfaceLaunchTemplateProps
-
getRequireImdsv2
Description copied from interface:LaunchTemplatePropsWhether IMDSv2 should be required on launched instances.Default: - false
- Specified by:
getRequireImdsv2in interfaceLaunchTemplateProps
-
getRole
Description copied from interface:LaunchTemplatePropsAn IAM role to associate with the instance profile that is used by instances.The role must be assumable by the service principal
ec2.amazonaws.com. Note: You can provide an instanceProfile or a role, but not both.Default: - No new role is created.
Example:
Role role = Role.Builder.create(this, "MyRole") .assumedBy(new ServicePrincipal("ec2.amazonaws.com")) .build();- Specified by:
getRolein interfaceLaunchTemplateProps
-
getSecurityGroup
Description copied from interface:LaunchTemplatePropsSecurity group to assign to instances created with the launch template.Default: No security group is assigned.
- Specified by:
getSecurityGroupin interfaceLaunchTemplateProps
-
getSpotOptions
Description copied from interface:LaunchTemplatePropsIf this property is defined, then the Launch Template's InstanceMarketOptions will be set to use Spot instances, and the options for the Spot instances will be as defined.Default: - Instance launched with this template will not be spot instances.
- Specified by:
getSpotOptionsin interfaceLaunchTemplateProps
-
getUserData
Description copied from interface:LaunchTemplatePropsThe user data to make available to the instance.Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided
- Specified by:
getUserDatain interfaceLaunchTemplateProps
-
getVersionDescription
Description copied from interface:LaunchTemplatePropsA description for the first version of the launch template.The version description must be maximum 255 characters long.
Default: - No description
- Specified by:
getVersionDescriptionin interfaceLaunchTemplateProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-