CfnEnvironmentProps Struct
Properties for defining a CfnEnvironment.
| 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_refactorspaces as refactorspaces } from 'aws-cdk-lib';
const cfnEnvironmentProps: refactorspaces.CfnEnvironmentProps = {
description: 'description',
name: 'name',
networkFabricType: 'networkFabricType',
tags: [{
key: 'key',
value: 'value',
}],
};
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_refactorspaces as refactorspaces
cfn_environment_props = refactorspaces.CfnEnvironmentProps(
description="description",
name="name",
network_fabric_type="networkFabricType",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.refactorspaces.*;
CfnEnvironmentProps cfnEnvironmentProps = CfnEnvironmentProps.builder()
.description("description")
.name("name")
.networkFabricType("networkFabricType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.RefactorSpaces;
var cfnEnvironmentProps = new CfnEnvironmentProps {
Description = "description",
Name = "name",
NetworkFabricType = "networkFabricType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnEnvironmentProps := &CfnEnvironmentProps{
Description: jsii.String("description"),
Name: jsii.String("name"),
NetworkFabricType: jsii.String("networkFabricType"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description of the environment.
The name of the environment.
networkFabricTypeoptionalstringnetwork_fabric_typeoptionalstrnetworkFabricTypeoptionalStringNetworkFabricTypeoptionalstringNetworkFabricTypeoptional*string #The network fabric type of the environment.