Show / Hide Table of Contents

Interface IEnvironmentAware

Used to indicate that a particular construct has an resource environment.

Namespace: Amazon.CDK.Interfaces
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEnvironmentAware
Syntax (vb)
Public Interface IEnvironmentAware

Synopsis

Properties

Env

The environment this resource belongs to.

Properties

Env

The environment this resource belongs to.

IResourceEnvironment Env { get; }
Property Value

IResourceEnvironment

Remarks

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.

Back to top Generated by DocFX