Class CfnEnvironment
- All Implemented Interfaces:
IInspectable,ITaggableV2,IEnvironmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
During environment creation, Amazon EVS performs validations on DNS settings, provisions VLAN subnets and hosts, and deploys the supplied version of VCF.
It can take several hours to create an environment. After the deployment completes, you can configure VCF in the vSphere user interface according to your needs.
You cannot use the
dedicatedHostIdandplacementGroupIdparameters together in the sameCreateEnvironmentaction. This results in aValidationExceptionresponse.
Example:
// 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.*;
CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment")
.connectivityInfo(ConnectivityInfoProperty.builder()
.privateRouteServerPeerings(List.of("privateRouteServerPeerings"))
.build())
.licenseInfo(LicenseInfoProperty.builder()
.solutionKey("solutionKey")
.vsanKey("vsanKey")
.build())
.serviceAccessSubnetId("serviceAccessSubnetId")
.siteId("siteId")
.termsAccepted(false)
.vcfHostnames(VcfHostnamesProperty.builder()
.cloudBuilder("cloudBuilder")
.nsx("nsx")
.nsxEdge1("nsxEdge1")
.nsxEdge2("nsxEdge2")
.nsxManager1("nsxManager1")
.nsxManager2("nsxManager2")
.nsxManager3("nsxManager3")
.sddcManager("sddcManager")
.vCenter("vCenter")
.build())
.vcfVersion("vcfVersion")
.vpcId("vpcId")
// the properties below are optional
.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")
.serviceAccessSecurityGroups(ServiceAccessSecurityGroupsProperty.builder()
.securityGroups(List.of("securityGroups"))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEnvironment.static interfaceA check on the environment to identify environment health and validate VMware VCF licensing compliance.static interfaceThe connectivity configuration for the environment.static interfaceAn object that represents a host.static interfaceAn object that represents an initial VLAN subnet for the Amazon EVS environment.static interfaceThe initial VLAN subnets for the environment.static interfaceThe license information that Amazon EVS requires to create an environment.static interfaceA managed secret that contains the credentials for installing vCenter Server, NSX, and SDDC Manager.static interfaceThe security groups that allow traffic between the Amazon EVS control plane and your VPC for Amazon EVS service access.static interfaceThe DNS hostnames that Amazon EVS uses to install VMware vCenter Server, NSX, SDDC Manager, and Cloud Builder.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.evs.IEnvironmentRef
IEnvironmentRef.Jsii$Default, IEnvironmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) CfnEnvironment(software.constructs.Construct scope, String id, CfnEnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionA check on the environment to identify instance health and VMware VCF licensing issues.The date and time that the environment was created.The VCF credentials that are stored as Amazon EVS managed secrets in AWS Secrets Manager.The Amazon Resource Name (ARN) that is associated with the environment.The unique ID for the environment.The state of an environment.The date and time that the environment was modified.A detailed description of theenvironmentStateof an environment.Tag Manager which manages the tags for this resource.The connectivity configuration for the environment.The name of the environment.A reference to a Environment resource.getHosts()Required for environment resource creation.The AWS KMS key ID that AWS Secrets Manager uses to encrypt secrets that are associated with the environment.The license information that Amazon EVS requires to create an environment.The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access.The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC.The Broadcom Site ID that is associated with your Amazon EVS environment.getTags()Metadata that assists with categorization and organization.Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment.The DNS hostnames to be used by the VCF management appliances in your environment.The VCF version of the environment.getVpcId()The VPC associated with the environment.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetConnectivityInfo(IResolvable value) The connectivity configuration for the environment.voidThe connectivity configuration for the environment.voidsetEnvironmentName(String value) The name of the environment.voidRequired for environment resource creation.voidsetHosts(IResolvable value) Required for environment resource creation.voidsetInitialVlans(IResolvable value) voidvoidsetKmsKeyId(String value) The AWS KMS key ID that AWS Secrets Manager uses to encrypt secrets that are associated with the environment.voidsetLicenseInfo(IResolvable value) The license information that Amazon EVS requires to create an environment.voidThe license information that Amazon EVS requires to create an environment.voidThe security groups that allow traffic between the Amazon EVS control plane and your VPC for service access.voidThe security groups that allow traffic between the Amazon EVS control plane and your VPC for service access.voidsetServiceAccessSubnetId(String value) The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC.voidThe Broadcom Site ID that is associated with your Amazon EVS environment.voidMetadata that assists with categorization and organization.voidsetTermsAccepted(Boolean value) Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment.voidsetTermsAccepted(IResolvable value) Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment.voidsetVcfHostnames(IResolvable value) The DNS hostnames to be used by the VCF management appliances in your environment.voidThe DNS hostnames to be used by the VCF management appliances in your environment.voidsetVcfVersion(String value) The VCF version of the environment.voidThe VPC associated with the environment.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEnvironment
@Stability(Stable) public CfnEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEnvironmentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrChecks
A check on the environment to identify instance health and VMware VCF licensing issues. For example:.{ "checks": [ { "type": "KEY_REUSE", "result": "PASSED" }, { "type": "KEY_COVERAGE", "result": "PASSED" }, { "type": "REACHABILITY", "result": "PASSED" }, { "type": "HOST_COUNT", "result": "PASSED" } ] } -
getAttrCreatedAt
The date and time that the environment was created.For example:
1749081600.000. -
getAttrCredentials
The VCF credentials that are stored as Amazon EVS managed secrets in AWS Secrets Manager.Amazon EVS stores credentials that are needed to install vCenter Server, NSX, and SDDC Manager. For example:
{ [ { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_vCenterAdmin-MnTMEi" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_vCenterRoot-87VyCF" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_NSXRoot-SR3k43" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_NSXAdmin-L5LUiD" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_NSXAudit-Q2oW46" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_SDDCManagerRoot-bFulOq" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_SDDCManagerVCF-Ec3gES" }, { "secretArn": "arn:aws:secretsmanager:us-east-1:000000000000:secret:evs!env-1234567890_SDDCManagerAdmin-JMTAAb" } ] } -
getAttrEnvironmentArn
The Amazon Resource Name (ARN) that is associated with the environment.For example:
arn:aws:evs:us-east-1:000000000000:environment/env-1234567890. -
getAttrEnvironmentId
The unique ID for the environment.For example:
env-1234567890. -
getAttrEnvironmentState
The state of an environment.For example:
CREATED. -
getAttrModifiedAt
The date and time that the environment was modified.For example:
1749081600.000. -
getAttrStateDetails
A detailed description of theenvironmentStateof an environment.For example:
Environment successfully created. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEnvironmentRef
A reference to a Environment resource.- Specified by:
getEnvironmentRefin interfaceIEnvironmentRef
-
getConnectivityInfo
The connectivity configuration for the environment.Returns union: either
IResolvableorCfnEnvironment.ConnectivityInfoProperty -
setConnectivityInfo
The connectivity configuration for the environment. -
setConnectivityInfo
@Stability(Stable) public void setConnectivityInfo(@NotNull CfnEnvironment.ConnectivityInfoProperty value) The connectivity configuration for the environment. -
getLicenseInfo
The license information that Amazon EVS requires to create an environment.Returns union: either
IResolvableorCfnEnvironment.LicenseInfoProperty -
setLicenseInfo
The license information that Amazon EVS requires to create an environment. -
setLicenseInfo
The license information that Amazon EVS requires to create an environment. -
getServiceAccessSubnetId
The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. -
setServiceAccessSubnetId
The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. -
getSiteId
The Broadcom Site ID that is associated with your Amazon EVS environment. -
setSiteId
The Broadcom Site ID that is associated with your Amazon EVS environment. -
getTermsAccepted
Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment.Returns union: either
BooleanorIResolvable -
setTermsAccepted
Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment. -
setTermsAccepted
Customer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment. -
getVcfHostnames
The DNS hostnames to be used by the VCF management appliances in your environment.Returns union: either
IResolvableorCfnEnvironment.VcfHostnamesProperty -
setVcfHostnames
The DNS hostnames to be used by the VCF management appliances in your environment. -
setVcfHostnames
The DNS hostnames to be used by the VCF management appliances in your environment. -
getVcfVersion
The VCF version of the environment. -
setVcfVersion
The VCF version of the environment. -
getVpcId
The VPC associated with the environment. -
setVpcId
The VPC associated with the environment. -
getEnvironmentName
The name of the environment. -
setEnvironmentName
The name of the environment. -
getHosts
Required for environment resource creation.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEnvironment.HostInfoForCreateProperty> -
setHosts
Required for environment resource creation. -
setHosts
Required for environment resource creation. -
getInitialVlans
Amazon EVS is in public preview release and is subject to change.
Returns union: either
IResolvableorCfnEnvironment.InitialVlansProperty -
setInitialVlans
Amazon EVS is in public preview release and is subject to change.
-
setInitialVlans
Amazon EVS is in public preview release and is subject to change.
-
getKmsKeyId
The AWS KMS key ID that AWS Secrets Manager uses to encrypt secrets that are associated with the environment. -
setKmsKeyId
The AWS KMS key ID that AWS Secrets Manager uses to encrypt secrets that are associated with the environment. -
getServiceAccessSecurityGroups
The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access.Returns union: either
IResolvableorCfnEnvironment.ServiceAccessSecurityGroupsProperty -
setServiceAccessSecurityGroups
The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access. -
setServiceAccessSecurityGroups
@Stability(Stable) public void setServiceAccessSecurityGroups(@Nullable CfnEnvironment.ServiceAccessSecurityGroupsProperty value) The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access. -
getTags
Metadata that assists with categorization and organization. -
setTags
Metadata that assists with categorization and organization.
-