CfnEnvironmentProps Struct
Properties for defining a CfnEnvironment.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_evs as evs } from 'aws-cdk-lib';
const cfnEnvironmentProps: evs.CfnEnvironmentProps = {
serviceAccessSubnetId: 'serviceAccessSubnetId',
termsAccepted: false,
vcfVersion: 'vcfVersion',
vpcId: 'vpcId',
// the properties below are optional
connectivityInfo: {
privateRouteServerPeerings: ['privateRouteServerPeerings'],
},
environmentName: 'environmentName',
hosts: [{
hostName: 'hostName',
instanceType: 'instanceType',
keyName: 'keyName',
// the properties below are optional
dedicatedHostId: 'dedicatedHostId',
placementGroupId: 'placementGroupId',
}],
initialVlans: {
edgeVTep: {
cidr: 'cidr',
},
expansionVlan1: {
cidr: 'cidr',
},
expansionVlan2: {
cidr: 'cidr',
},
hcx: {
cidr: 'cidr',
},
nsxUpLink: {
cidr: 'cidr',
},
vmkManagement: {
cidr: 'cidr',
},
vmManagement: {
cidr: 'cidr',
},
vMotion: {
cidr: 'cidr',
},
vSan: {
cidr: 'cidr',
},
vTep: {
cidr: 'cidr',
},
// the properties below are optional
hcxNetworkAclId: 'hcxNetworkAclId',
isHcxPublic: false,
},
kmsKeyId: 'kmsKeyId',
licenseInfo: {
solutionKey: 'solutionKey',
vsanKey: 'vsanKey',
},
serviceAccessSecurityGroups: {
securityGroups: ['securityGroups'],
},
siteId: 'siteId',
tags: [{
key: 'key',
value: 'value',
}],
vcfHostnames: {
cloudBuilder: 'cloudBuilder',
nsx: 'nsx',
nsxEdge1: 'nsxEdge1',
nsxEdge2: 'nsxEdge2',
nsxManager1: 'nsxManager1',
nsxManager2: 'nsxManager2',
nsxManager3: 'nsxManager3',
sddcManager: 'sddcManager',
vCenter: 'vCenter',
},
};
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_evs as evs
cfn_environment_props = evs.CfnEnvironmentProps(
service_access_subnet_id="serviceAccessSubnetId",
terms_accepted=False,
vcf_version="vcfVersion",
vpc_id="vpcId",
# the properties below are optional
connectivity_info=evs.CfnEnvironment.ConnectivityInfoProperty(
private_route_server_peerings=["privateRouteServerPeerings"]
),
environment_name="environmentName",
hosts=[evs.CfnEnvironment.HostInfoForCreateProperty(
host_name="hostName",
instance_type="instanceType",
key_name="keyName",
# the properties below are optional
dedicated_host_id="dedicatedHostId",
placement_group_id="placementGroupId"
)],
initial_vlans=evs.CfnEnvironment.InitialVlansProperty(
edge_v_tep=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
expansion_vlan1=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
expansion_vlan2=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
hcx=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
nsx_up_link=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
vmk_management=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
vm_management=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
v_motion=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
v_san=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
v_tep=evs.CfnEnvironment.InitialVlanInfoProperty(
cidr="cidr"
),
# the properties below are optional
hcx_network_acl_id="hcxNetworkAclId",
is_hcx_public=False
),
kms_key_id="kmsKeyId",
license_info=evs.CfnEnvironment.LicenseInfoProperty(
solution_key="solutionKey",
vsan_key="vsanKey"
),
service_access_security_groups=evs.CfnEnvironment.ServiceAccessSecurityGroupsProperty(
security_groups=["securityGroups"]
),
site_id="siteId",
tags=[CfnTag(
key="key",
value="value"
)],
vcf_hostnames=evs.CfnEnvironment.VcfHostnamesProperty(
cloud_builder="cloudBuilder",
nsx="nsx",
nsx_edge1="nsxEdge1",
nsx_edge2="nsxEdge2",
nsx_manager1="nsxManager1",
nsx_manager2="nsxManager2",
nsx_manager3="nsxManager3",
sddc_manager="sddcManager",
v_center="vCenter"
)
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.evs.*;
CfnEnvironmentProps cfnEnvironmentProps = CfnEnvironmentProps.builder()
.serviceAccessSubnetId("serviceAccessSubnetId")
.termsAccepted(false)
.vcfVersion("vcfVersion")
.vpcId("vpcId")
// the properties below are optional
.connectivityInfo(ConnectivityInfoProperty.builder()
.privateRouteServerPeerings(List.of("privateRouteServerPeerings"))
.build())
.environmentName("environmentName")
.hosts(List.of(HostInfoForCreateProperty.builder()
.hostName("hostName")
.instanceType("instanceType")
.keyName("keyName")
// the properties below are optional
.dedicatedHostId("dedicatedHostId")
.placementGroupId("placementGroupId")
.build()))
.initialVlans(InitialVlansProperty.builder()
.edgeVTep(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.expansionVlan1(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.expansionVlan2(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.hcx(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.nsxUpLink(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.vmkManagement(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.vmManagement(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.vMotion(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.vSan(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
.vTep(InitialVlanInfoProperty.builder()
.cidr("cidr")
.build())
// the properties below are optional
.hcxNetworkAclId("hcxNetworkAclId")
.isHcxPublic(false)
.build())
.kmsKeyId("kmsKeyId")
.licenseInfo(LicenseInfoProperty.builder()
.solutionKey("solutionKey")
.vsanKey("vsanKey")
.build())
.serviceAccessSecurityGroups(ServiceAccessSecurityGroupsProperty.builder()
.securityGroups(List.of("securityGroups"))
.build())
.siteId("siteId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vcfHostnames(VcfHostnamesProperty.builder()
.cloudBuilder("cloudBuilder")
.nsx("nsx")
.nsxEdge1("nsxEdge1")
.nsxEdge2("nsxEdge2")
.nsxManager1("nsxManager1")
.nsxManager2("nsxManager2")
.nsxManager3("nsxManager3")
.sddcManager("sddcManager")
.vCenter("vCenter")
.build())
.build();
// 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.EVS;
var cfnEnvironmentProps = new CfnEnvironmentProps {
ServiceAccessSubnetId = "serviceAccessSubnetId",
TermsAccepted = false,
VcfVersion = "vcfVersion",
VpcId = "vpcId",
// the properties below are optional
ConnectivityInfo = new ConnectivityInfoProperty {
PrivateRouteServerPeerings = new [] { "privateRouteServerPeerings" }
},
EnvironmentName = "environmentName",
Hosts = new [] { new HostInfoForCreateProperty {
HostName = "hostName",
InstanceType = "instanceType",
KeyName = "keyName",
// the properties below are optional
DedicatedHostId = "dedicatedHostId",
PlacementGroupId = "placementGroupId"
} },
InitialVlans = new InitialVlansProperty {
EdgeVTep = new InitialVlanInfoProperty {
Cidr = "cidr"
},
ExpansionVlan1 = new InitialVlanInfoProperty {
Cidr = "cidr"
},
ExpansionVlan2 = new InitialVlanInfoProperty {
Cidr = "cidr"
},
Hcx = new InitialVlanInfoProperty {
Cidr = "cidr"
},
NsxUpLink = new InitialVlanInfoProperty {
Cidr = "cidr"
},
VmkManagement = new InitialVlanInfoProperty {
Cidr = "cidr"
},
VmManagement = new InitialVlanInfoProperty {
Cidr = "cidr"
},
VMotion = new InitialVlanInfoProperty {
Cidr = "cidr"
},
VSan = new InitialVlanInfoProperty {
Cidr = "cidr"
},
VTep = new InitialVlanInfoProperty {
Cidr = "cidr"
},
// the properties below are optional
HcxNetworkAclId = "hcxNetworkAclId",
IsHcxPublic = false
},
KmsKeyId = "kmsKeyId",
LicenseInfo = new LicenseInfoProperty {
SolutionKey = "solutionKey",
VsanKey = "vsanKey"
},
ServiceAccessSecurityGroups = new ServiceAccessSecurityGroupsProperty {
SecurityGroups = new [] { "securityGroups" }
},
SiteId = "siteId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VcfHostnames = new VcfHostnamesProperty {
CloudBuilder = "cloudBuilder",
Nsx = "nsx",
NsxEdge1 = "nsxEdge1",
NsxEdge2 = "nsxEdge2",
NsxManager1 = "nsxManager1",
NsxManager2 = "nsxManager2",
NsxManager3 = "nsxManager3",
SddcManager = "sddcManager",
VCenter = "vCenter"
}
};
// 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"
cfnEnvironmentProps := &CfnEnvironmentProps{
ServiceAccessSubnetId: jsii.String("serviceAccessSubnetId"),
TermsAccepted: jsii.Boolean(false),
VcfVersion: jsii.String("vcfVersion"),
VpcId: jsii.String("vpcId"),
// the properties below are optional
ConnectivityInfo: &ConnectivityInfoProperty{
PrivateRouteServerPeerings: []*string{
jsii.String("privateRouteServerPeerings"),
},
},
EnvironmentName: jsii.String("environmentName"),
Hosts: []interface{}{
&HostInfoForCreateProperty{
HostName: jsii.String("hostName"),
InstanceType: jsii.String("instanceType"),
KeyName: jsii.String("keyName"),
// the properties below are optional
DedicatedHostId: jsii.String("dedicatedHostId"),
PlacementGroupId: jsii.String("placementGroupId"),
},
},
InitialVlans: &InitialVlansProperty{
EdgeVTep: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
ExpansionVlan1: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
ExpansionVlan2: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
Hcx: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
NsxUpLink: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
VmkManagement: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
VmManagement: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
VMotion: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
VSan: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
VTep: &InitialVlanInfoProperty{
Cidr: jsii.String("cidr"),
},
// the properties below are optional
HcxNetworkAclId: jsii.String("hcxNetworkAclId"),
IsHcxPublic: jsii.Boolean(false),
},
KmsKeyId: jsii.String("kmsKeyId"),
LicenseInfo: &LicenseInfoProperty{
SolutionKey: jsii.String("solutionKey"),
VsanKey: jsii.String("vsanKey"),
},
ServiceAccessSecurityGroups: &ServiceAccessSecurityGroupsProperty{
SecurityGroups: []*string{
jsii.String("securityGroups"),
},
},
SiteId: jsii.String("siteId"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VcfHostnames: &VcfHostnamesProperty{
CloudBuilder: jsii.String("cloudBuilder"),
Nsx: jsii.String("nsx"),
NsxEdge1: jsii.String("nsxEdge1"),
NsxEdge2: jsii.String("nsxEdge2"),
NsxManager1: jsii.String("nsxManager1"),
NsxManager2: jsii.String("nsxManager2"),
NsxManager3: jsii.String("nsxManager3"),
SddcManager: jsii.String("sddcManager"),
VCenter: jsii.String("vCenter"),
},
}
Properties
connectivityInfooptionalIResolvable | CfnEnvironment.connectivity_infooptionaltyping.Union[IResolvable, ConnectivityInfoProperty]connectivityInfooptionalIResolvableConnectivityInfooptionalIResolvableConnectivityInfooptionalinterface{} #Amazon EVS requires that you specify two route server peer IDs. During environment creation, the route server endpoints peer with the NSX uplink VLAN for connectivity to the NSX overlay network.
environmentNameoptionalstringenvironment_nameoptionalstrenvironmentNameoptionalStringEnvironmentNameoptionalstringEnvironmentNameoptional*string #hostsoptionalIResolvable | IResolvable | CfnEnvironment.hostsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, HostInfoForCreateProperty]]]hostsoptionalIResolvableHostsoptionalIResolvableHostsoptionalinterface{} #initialVlansoptionalIResolvable | CfnEnvironment.initial_vlansoptionaltyping.Union[IResolvable, InitialVlansProperty]initialVlansoptionalIResolvableInitialVlansoptionalIResolvableInitialVlansoptionalinterface{} #notes
The initial VLAN subnets for the environment. Amazon EVS VLAN subnets have a minimum CIDR block size of /28 and a maximum size of /24. Amazon EVS VLAN subnet CIDR blocks must not overlap with other subnets in the VPC.
Required for environment resource creation.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #These secrets contain the VCF credentials that are needed to install vCenter Server, NSX, and SDDC Manager.
By default, Amazon EVS use the AWS Secrets Manager managed key aws/secretsmanager . You can also specify a customer managed key.
licenseInfooptionalIResolvable | CfnEnvironment.license_infooptionaltyping.Union[IResolvable, LicenseInfoProperty]licenseInfooptionalIResolvableLicenseInfooptionalIResolvableLicenseInfooptionalinterface{} #Amazon EVS requires two license keys: a VCF solution key and a vSAN license key. The VCF solution key must cover a minimum of 256 cores. The vSAN license key must provide at least 110 TiB of vSAN capacity.
serviceAccessSecurityGroupsoptionalIResolvable | CfnEnvironment.service_access_security_groupsoptionaltyping.Union[IResolvable, ServiceAccessSecurityGroupsProperty]serviceAccessSecurityGroupsoptionalIResolvableServiceAccessSecurityGroupsoptionalIResolvableServiceAccessSecurityGroupsoptionalinterface{} #If a security group is not specified, Amazon EVS uses the default security group in your account for service access.
serviceAccessSubnetIdstringservice_access_subnet_idstrserviceAccessSubnetIdStringServiceAccessSubnetIdstringServiceAccessSubnetId*string required #Amazon EVS uses this subnet to perform validations and create the environment.
siteIdoptionalstringsite_idoptionalstrsiteIdoptionalStringSiteIdoptionalstringSiteIdoptional*string #Amazon EVS uses the Broadcom Site ID that you provide to meet Broadcom VCF license usage reporting requirements for Amazon EVS.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or AWS resources.
termsAcceptedboolean | IResolvableterms_acceptedtyping.Union[bool, IResolvable]termsAcceptedBooleanTermsAcceptedboolTermsAcceptedinterface{} required #Information about your VCF software in Amazon EVS will be shared with Broadcom to verify license compliance. Amazon EVS does not validate license keys. To validate license keys, visit the Broadcom support portal.
vcfHostnamesoptionalIResolvable | CfnEnvironment.vcf_hostnamesoptionaltyping.Union[IResolvable, VcfHostnamesProperty]vcfHostnamesoptionalIResolvableVcfHostnamesoptionalIResolvableVcfHostnamesoptionalinterface{} #notes
For environment creation to be successful, each hostname entry must resolve to a domain name that you've registered in your DNS service of choice and configured in the DHCP option set of your VPC. DNS hostnames cannot be changed after environment creation has started.