CfnLaunchTemplatePropsMixin Mixin
Specifies the properties for creating a launch template.
The minimum required properties for specifying a launch template are as follows:
- You must specify at least one property for the launch template data.
- You can optionally specify a name for the launch template. If you do not specify a name, CloudFormation creates a name for you.
A launch template can contain some or all of the configuration information to launch an instance. When you launch an instance using a launch template, instance properties that are not specified in the launch template use default values, except the ImageId property, which has no default value. If you do not specify an AMI ID for the launch template ImageId property, you must specify an AMI ID for the instance ImageId property.
For more information, see Launch an instance from a launch template in the Amazon EC2 User Guide .
Initializer
ts
new CfnLaunchTemplatePropsMixin(props: CfnLaunchTemplateMixinProps, options?: CfnPropertyMixinOptions)
python
CfnLaunchTemplatePropsMixin(props: CfnLaunchTemplateMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnLaunchTemplatePropsMixin(CfnLaunchTemplateMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnLaunchTemplatePropsMixin(CfnLaunchTemplateMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnLaunchTemplatePropsMixin(Props CfnLaunchTemplateMixinProps, Options CfnPropertyMixinOptions)
Methods
applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#Checks if `x` is a Mixin.
1 parameter · returns
Parameters
xxxxX— Any object.
Returns: true if x is an object created from a class which extends Mixin.
supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#Check if this mixin supports the given construct.