Class EnvironmentProps
Properties for the Environment construct.
Inheritance
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EnvironmentProps : Object, IEnvironmentProps, IEnvironmentOptions
Syntax (vb)
Public Class EnvironmentProps
Inherits Object
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, "MyHostedConfig", new HostedConfigurationProps {
Application = app,
DeployTo = new [] { env },
Content = ConfigurationContent.FromInlineText("This is my configuration content.")
});
Synopsis
Constructors
Environment |
Properties
Application | The application to be associated with the environment. |
Deletion |
A property to prevent accidental deletion of active environments. |
Description | The description of the environment. |
Environment |
The name of the environment. |
Monitors | The monitors for the environment. |
Constructors
EnvironmentProps()
public EnvironmentProps()
Properties
Application
The application to be associated with the environment.
public IApplication Application { get; set; }
Property Value
DeletionProtectionCheck
A property to prevent accidental deletion of active environments.
public Nullable<DeletionProtectionCheck> DeletionProtectionCheck { get; set; }
Property Value
System.
Remarks
Default: undefined - AppConfig default is ACCOUNT_DEFAULT
Description
The description of the environment.
public string Description { get; set; }
Property Value
System.
Remarks
Default: - No description.
EnvironmentName
The name of the environment.
public string EnvironmentName { get; set; }
Property Value
System.
Remarks
Default: - A name is generated.
Monitors
The monitors for the environment.
public Monitor[] Monitors { get; set; }
Property Value
Monitor[]
Remarks
Default: - No monitors.