# CfnEnvironmentProps

Properties for defining a `CfnEnvironment`.

Used as props by: [CfnEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnEnvironment.html)

- Source: Generated at build time
- Type last changed: v2.165.0 · 31 Oct 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `description`: string — A description of the environment.

- `name`: string — The name of the environment.

- `networkFabricType`: string — The network fabric type of the environment.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags assigned to the environment.
