CfnInstanceProps Struct
Properties for defining a CfnInstance.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_scn as scn } from 'aws-cdk-lib';
const cfnInstanceProps: scn.CfnInstanceProps = {
instanceDescription: 'instanceDescription',
instanceName: 'instanceName',
tags: [{
key: 'key',
value: 'value',
}],
webAppDnsDomain: 'webAppDnsDomain',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_scn as scn
cfn_instance_props = scn.CfnInstanceProps(
instance_description="instanceDescription",
instance_name="instanceName",
tags=[CfnTag(
key="key",
value="value"
)],
web_app_dns_domain="webAppDnsDomain"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.scn.*;
CfnInstanceProps cfnInstanceProps = CfnInstanceProps.builder()
.instanceDescription("instanceDescription")
.instanceName("instanceName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.webAppDnsDomain("webAppDnsDomain")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SCN;
var cfnInstanceProps = new CfnInstanceProps {
InstanceDescription = "instanceDescription",
InstanceName = "instanceName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
WebAppDnsDomain = "webAppDnsDomain"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnInstanceProps := &CfnInstanceProps{
InstanceDescription: jsii.String("instanceDescription"),
InstanceName: jsii.String("instanceName"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
WebAppDnsDomain: jsii.String("webAppDnsDomain"),
}
Properties
instanceDescriptionoptionalstringinstance_descriptionoptionalstrinstanceDescriptionoptionalStringInstanceDescriptionoptionalstringInstanceDescriptionoptional*string #The instance description.
instanceNameoptionalstringinstance_nameoptionalstrinstanceNameoptionalStringInstanceNameoptionalstringInstanceNameoptional*string #The instance name.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Tags for the instance.
webAppDnsDomainoptionalstringweb_app_dns_domainoptionalstrwebAppDnsDomainoptionalStringWebAppDnsDomainoptionalstringWebAppDnsDomainoptional*string #The WebApp DNS domain name of the instance.