Class CfnEnvironment
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
Amazon EVS is in public preview release and is subject to change.
Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server.
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
dedicatedHostId
andplacementGroupId
parameters together in the sameCreateEnvironment
action. This results in aValidationException
response.
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()) .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 class
A fluent builder forCfnEnvironment
.static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnEnvironment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEnvironment
(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 theenvironmentState
of an environment.Tag Manager which manages the tags for this resource.The connectivity configuration for the environment.The name of the environment.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setConnectivityInfo
(IResolvable value) The connectivity configuration for the environment.void
The connectivity configuration for the environment.void
setEnvironmentName
(String value) The name of the environment.void
Required for environment resource creation.void
setHosts
(IResolvable value) Required for environment resource creation.void
setInitialVlans
(IResolvable value) void
void
setKmsKeyId
(String value) The AWS KMS key ID that AWS Secrets Manager uses to encrypt secrets that are associated with the environment.void
setLicenseInfo
(IResolvable value) The license information that Amazon EVS requires to create an environment.void
The license information that Amazon EVS requires to create an environment.void
The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access.void
The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access.void
setServiceAccessSubnetId
(String value) The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC.void
The Broadcom Site ID that is associated with your Amazon EVS environment.void
Metadata that assists with categorization and organization.void
setTermsAccepted
(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.void
setTermsAccepted
(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.void
setVcfHostnames
(IResolvable value) The DNS hostnames to be used by the VCF management appliances in your environment.void
The DNS hostnames to be used by the VCF management appliances in your environment.void
setVcfVersion
(String value) The VCF version of the environment.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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 theenvironmentState
of an environment.For example:
Environment successfully created
. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getConnectivityInfo
The connectivity configuration for the environment. -
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. -
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. -
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. -
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. -
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.
-
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. -
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.
-