Class EnvironmentProps
Properties for the Environment construct.
Inherited Members
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EnvironmentProps : IEnvironmentProps, IEnvironmentOptions
Syntax (vb)
Public Class EnvironmentProps Implements IEnvironmentProps, IEnvironmentOptions
Remarks
ExampleMetadata: infused
Examples
var app = new Application(this, "MyApp");
var env = new Environment(this, "MyEnv", new EnvironmentProps {
Application = app
});
new HostedConfiguration(this, "MyFirstHostedConfig", new HostedConfigurationProps {
Application = app,
DeployTo = new [] { env },
Content = ConfigurationContent.FromInlineText("This is my first configuration content.")
});
new HostedConfiguration(this, "MySecondHostedConfig", new HostedConfigurationProps {
Application = app,
DeployTo = new [] { env },
Content = ConfigurationContent.FromInlineText("This is my second configuration content.")
});
Synopsis
Constructors
EnvironmentProps() | Properties for the Environment construct. |
Properties
Application | The application to be associated with the environment. |
DeletionProtectionCheck | A property to prevent accidental deletion of active environments. |
Description | The description of the environment. |
EnvironmentName | The name of the environment. |
Monitors | The monitors for the environment. |
Constructors
EnvironmentProps()
Properties for the Environment construct.
public EnvironmentProps()
Remarks
ExampleMetadata: infused
Examples
var app = new Application(this, "MyApp");
var env = new Environment(this, "MyEnv", new EnvironmentProps {
Application = app
});
new HostedConfiguration(this, "MyFirstHostedConfig", new HostedConfigurationProps {
Application = app,
DeployTo = new [] { env },
Content = ConfigurationContent.FromInlineText("This is my first configuration content.")
});
new HostedConfiguration(this, "MySecondHostedConfig", new HostedConfigurationProps {
Application = app,
DeployTo = new [] { env },
Content = ConfigurationContent.FromInlineText("This is my second configuration content.")
});
Properties
Application
The application to be associated with the environment.
public IApplication Application { get; set; }
Property Value
Remarks
ExampleMetadata: infused
DeletionProtectionCheck
A property to prevent accidental deletion of active environments.
public DeletionProtectionCheck? DeletionProtectionCheck { get; set; }
Property Value
Remarks
Default: undefined - AppConfig default is ACCOUNT_DEFAULT
Description
The description of the environment.
public string? Description { get; set; }
Property Value
Remarks
Default: - No description.
EnvironmentName
The name of the environment.
public string? EnvironmentName { get; set; }
Property Value
Remarks
Default: - A name is generated.
Monitors
The monitors for the environment.
public Monitor[]? Monitors { get; set; }
Property Value
Monitor[]
Remarks
Default: - No monitors.