@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.099Z") @Stability(value=Experimental) public class LaunchTemplate extends Resource implements ILaunchTemplate, IGrantable, IConnectable
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html| Modifier and Type | Class and Description |
|---|---|
static class |
LaunchTemplate.Builder
(experimental) A fluent builder for
LaunchTemplate. |
software.amazon.jsii.JsiiObject.InitializationModeILaunchTemplate.Jsii$Default, ILaunchTemplate.Jsii$ProxyIGrantable.Jsii$Default, IGrantable.Jsii$ProxyIConnectable.Jsii$Default, IConnectable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LaunchTemplate(software.constructs.Construct scope,
String id) |
|
LaunchTemplate(software.constructs.Construct scope,
String id,
LaunchTemplateProps props) |
protected |
LaunchTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LaunchTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static ILaunchTemplate |
fromLaunchTemplateAttributes(software.constructs.Construct scope,
String id,
LaunchTemplateAttributes attrs)
(experimental) Import an existing LaunchTemplate.
|
Connections |
getConnections()
(experimental) Allows specifying security group connections for the instance.
|
String |
getDefaultVersionNumber()
(experimental) The default version for the launch template.
|
IPrincipal |
getGrantPrincipal()
(experimental) Principal to grant permissions to.
|
String |
getLatestVersionNumber()
(experimental) The latest version of the launch template.
|
String |
getLaunchTemplateId()
(experimental) The identifier of the Launch Template.
|
String |
getLaunchTemplateName()
(experimental) The name of the Launch Template.
|
OperatingSystemType |
getOsType()
(experimental) The type of OS the instance is running.
|
IRole |
getRole()
(experimental) IAM Role assumed by instances that are launched from this template.
|
protected TagManager |
getTags()
(experimental) TagManager for tagging support.
|
UserData |
getUserData()
(experimental) UserData executed by instances that are launched from this template.
|
String |
getVersionNumber()
(experimental) The version number of this launch template to use.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LaunchTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected LaunchTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public LaunchTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
LaunchTemplateProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public LaunchTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static ILaunchTemplate fromLaunchTemplateAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LaunchTemplateAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public String getDefaultVersionNumber()
@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Experimental) @NotNull public String getLatestVersionNumber()
@Stability(value=Experimental) @NotNull protected TagManager getTags()
@Stability(value=Experimental) @NotNull public String getVersionNumber()
getVersionNumber in interface ILaunchTemplate@Stability(value=Experimental) @Nullable public String getLaunchTemplateId()
Exactly one of launchTemplateId and launchTemplateName will be set.
getLaunchTemplateId in interface ILaunchTemplate@Stability(value=Experimental) @Nullable public String getLaunchTemplateName()
Exactly one of launchTemplateId and launchTemplateName will be set.
getLaunchTemplateName in interface ILaunchTemplate@Stability(value=Experimental) @Nullable public OperatingSystemType getOsType()
@Stability(value=Experimental) @Nullable public IRole getRole()
@Stability(value=Experimental) @Nullable public UserData getUserData()
Copyright © 2021. All rights reserved.