EnvironmentProps
- class aws_cdk.aws_appconfig.EnvironmentProps(*, deletion_protection_check=None, description=None, environment_name=None, monitors=None, application)
Bases:
EnvironmentOptions
Properties for the Environment construct.
- Parameters:
deletion_protection_check (
Optional
[DeletionProtectionCheck
]) – A property to prevent accidental deletion of active environments. Default: undefined - AppConfig default is ACCOUNT_DEFAULTdescription (
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, "MyHostedConfig", application=app, deploy_to=[env], content=appconfig.ConfigurationContent.from_inline_text("This is my configuration content.") )
Attributes
- application
The application to be associated with the environment.
- deletion_protection_check
A property to prevent accidental deletion of active environments.
- Default:
undefined - AppConfig default is ACCOUNT_DEFAULT
- 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.