interface EnvironmentProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppConfig.EnvironmentProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappconfig#EnvironmentProps |
Java | software.amazon.awscdk.services.appconfig.EnvironmentProps |
Python | aws_cdk.aws_appconfig.EnvironmentProps |
TypeScript (source) | aws-cdk-lib » aws_appconfig » EnvironmentProps |
Properties for the Environment construct.
Example
const app = new appconfig.Application(this, 'MyApp');
const env = new appconfig.Environment(this, 'MyEnv', {
application: app,
});
new appconfig.HostedConfiguration(this, 'MyFirstHostedConfig', {
application: app,
deployTo: [env],
content: appconfig.ConfigurationContent.fromInlineText('This is my first configuration content.'),
});
new appconfig.HostedConfiguration(this, 'MySecondHostedConfig', {
application: app,
deployTo: [env],
content: appconfig.ConfigurationContent.fromInlineText('This is my second configuration content.'),
});
Properties
Name | Type | Description |
---|---|---|
application | IApplication | The application to be associated with the environment. |
description? | string | The description of the environment. |
environment | string | The name of the environment. |
monitors? | Monitor [] | The monitors for the environment. |
application
Type:
IApplication
The application to be associated with the environment.
description?
Type:
string
(optional, default: No description.)
The description of the environment.
environmentName?
Type:
string
(optional, default: A name is generated.)
The name of the environment.
monitors?
Type:
Monitor
[]
(optional, default: No monitors.)
The monitors for the environment.