EnvironmentProps
- class aws_cdk.aws_appconfig.EnvironmentProps(*, description=None, environment_name=None, monitors=None, application)
Bases:
EnvironmentOptions
Properties for the Environment construct.
- Parameters:
description (
Optional
[str
]) – The description of the environment. Default: - No description.environment_name (
Optional
[str
]) – The name of the environment. Default: - A name is generated.monitors (
Optional
[Sequence
[Monitor
]]) – The monitors for the environment. Default: - No monitors.application (
IApplication
) – The application to be associated with the environment.
- ExampleMetadata:
infused
Example:
app = appconfig.Application(self, "MyApp") env = appconfig.Environment(self, "MyEnv", application=app ) appconfig.HostedConfiguration(self, "MyFirstHostedConfig", application=app, deploy_to=[env], content=appconfig.ConfigurationContent.from_inline_text("This is my first configuration content.") ) appconfig.HostedConfiguration(self, "MySecondHostedConfig", application=app, deploy_to=[env], content=appconfig.ConfigurationContent.from_inline_text("This is my second configuration content.") )
Attributes
- application
The application to be associated with the environment.
- description
The description of the environment.
- Default:
No description.
- environment_name
The name of the environment.
- Default:
A name is generated.
- monitors
The monitors for the environment.
- Default:
No monitors.