Skip to content
v2.277.0

EnvironmentReference Struct ​

A reference to a Environment resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_m2 as interfaces_m2 } from 'aws-cdk-lib/interfaces';
const environmentReference: interfaces_m2.EnvironmentReference = {
  environmentArn: 'environmentArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_m2 as interfaces_m2

environment_reference = interfaces_m2.EnvironmentReference(
    environment_arn="environmentArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.m2.*;

EnvironmentReference environmentReference = EnvironmentReference.builder()
        .environmentArn("environmentArn")
        .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.Interfaces.M2;

var environmentReference = new EnvironmentReference {
    EnvironmentArn = "environmentArn"
};
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"

environmentReference := &EnvironmentReference{
	EnvironmentArn: jsii.String("environmentArn"),
}

Properties ​

environmentArnstringenvironment_arnstrenvironmentArnStringEnvironmentArnstringEnvironmentArn*stringrequired#
The EnvironmentArn of the Environment resource.