# CfnEnvironmentProps

Properties for defining a `CfnEnvironment`.

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

- Source: Generated at build time
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datazone as datazone } from 'aws-cdk-lib';
const cfnEnvironmentProps: datazone.CfnEnvironmentProps = {
  domainIdentifier: 'domainIdentifier',
  name: 'name',
  projectIdentifier: 'projectIdentifier',

  // the properties below are optional
  deploymentOrder: 123,
  description: 'description',
  environmentAccountIdentifier: 'environmentAccountIdentifier',
  environmentAccountRegion: 'environmentAccountRegion',
  environmentBlueprintIdentifier: 'environmentBlueprintIdentifier',
  environmentConfigurationId: 'environmentConfigurationId',
  environmentProfileIdentifier: 'environmentProfileIdentifier',
  environmentRoleArn: 'environmentRoleArn',
  glossaryTerms: ['glossaryTerms'],
  userParameters: [{
    name: 'name',
    value: 'value',
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datazone as datazone

cfn_environment_props = datazone.CfnEnvironmentProps(
    domain_identifier="domainIdentifier",
    name="name",
    project_identifier="projectIdentifier",

    # the properties below are optional
    deployment_order=123,
    description="description",
    environment_account_identifier="environmentAccountIdentifier",
    environment_account_region="environmentAccountRegion",
    environment_blueprint_identifier="environmentBlueprintIdentifier",
    environment_configuration_id="environmentConfigurationId",
    environment_profile_identifier="environmentProfileIdentifier",
    environment_role_arn="environmentRoleArn",
    glossary_terms=["glossaryTerms"],
    user_parameters=[datazone.CfnEnvironment.EnvironmentParameterProperty(
        name="name",
        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.datazone.*;

CfnEnvironmentProps cfnEnvironmentProps = CfnEnvironmentProps.builder()
        .domainIdentifier("domainIdentifier")
        .name("name")
        .projectIdentifier("projectIdentifier")

        // the properties below are optional
        .deploymentOrder(123)
        .description("description")
        .environmentAccountIdentifier("environmentAccountIdentifier")
        .environmentAccountRegion("environmentAccountRegion")
        .environmentBlueprintIdentifier("environmentBlueprintIdentifier")
        .environmentConfigurationId("environmentConfigurationId")
        .environmentProfileIdentifier("environmentProfileIdentifier")
        .environmentRoleArn("environmentRoleArn")
        .glossaryTerms(List.of("glossaryTerms"))
        .userParameters(List.of(EnvironmentParameterProperty.builder()
                .name("name")
                .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.DataZone;

var cfnEnvironmentProps = new CfnEnvironmentProps {
    DomainIdentifier = "domainIdentifier",
    Name = "name",
    ProjectIdentifier = "projectIdentifier",

    // the properties below are optional
    DeploymentOrder = 123,
    Description = "description",
    EnvironmentAccountIdentifier = "environmentAccountIdentifier",
    EnvironmentAccountRegion = "environmentAccountRegion",
    EnvironmentBlueprintIdentifier = "environmentBlueprintIdentifier",
    EnvironmentConfigurationId = "environmentConfigurationId",
    EnvironmentProfileIdentifier = "environmentProfileIdentifier",
    EnvironmentRoleArn = "environmentRoleArn",
    GlossaryTerms = new [] { "glossaryTerms" },
    UserParameters = new [] { new EnvironmentParameterProperty {
        Name = "name",
        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{
	DomainIdentifier: jsii.String("domainIdentifier"),
	Name: jsii.String("name"),
	ProjectIdentifier: jsii.String("projectIdentifier"),

	// the properties below are optional
	DeploymentOrder: jsii.Number(123),
	Description: jsii.String("description"),
	EnvironmentAccountIdentifier: jsii.String("environmentAccountIdentifier"),
	EnvironmentAccountRegion: jsii.String("environmentAccountRegion"),
	EnvironmentBlueprintIdentifier: jsii.String("environmentBlueprintIdentifier"),
	EnvironmentConfigurationId: jsii.String("environmentConfigurationId"),
	EnvironmentProfileIdentifier: jsii.String("environmentProfileIdentifier"),
	EnvironmentRoleArn: jsii.String("environmentRoleArn"),
	GlossaryTerms: []*string{
		jsii.String("glossaryTerms"),
	},
	UserParameters: []interface{}{
		&EnvironmentParameterProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `deploymentOrder`: number — The deployment order for the environment.

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

- `domainIdentifier`: string (required) — The identifier of the Amazon DataZone domain in which the environment is created.

- `environmentAccountIdentifier`: string — The identifier of the AWS account in which an environment exists.

- `environmentAccountRegion`: string — The AWS Region in which an environment exists.

- `environmentBlueprintIdentifier`: string — The identifier of the environment blueprint.

- `environmentConfigurationId`: string — The identifier of the environment configuration.

- `environmentProfileIdentifier`: string — The identifier of the environment profile that is used to create this Amazon DataZone environment.

- `environmentRoleArn`: string — The ARN of the environment role.

- `glossaryTerms`: string[] — The glossary terms that can be used in this Amazon DataZone environment.

- `name`: string (required) — The name of the Amazon DataZone environment.

- `projectIdentifier`: string (required) — The identifier of the Amazon DataZone project in which this environment is created.

- `userParameters`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEnvironment.EnvironmentParameterProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datazone.CfnEnvironment.EnvironmentParameterProperty.html)[] — The user parameters of this Amazon DataZone environment.
