EnvironmentAttributes Struct
Attributes of an existing AWS AppConfig environment to import it.
| Source | aws-appconfig/lib/environment.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';
declare const application: appconfig.Application;
declare const monitor: appconfig.Monitor;
const environmentAttributes: appconfig.EnvironmentAttributes = {
application: application,
environmentId: 'environmentId',
// the properties below are optional
description: 'description',
monitors: [monitor],
name: 'name',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appconfig as appconfig
# application: appconfig.Application
# monitor: appconfig.Monitor
environment_attributes = appconfig.EnvironmentAttributes(
application=application,
environment_id="environmentId",
# the properties below are optional
description="description",
monitors=[monitor],
name="name"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appconfig.*;
Application application;
Monitor monitor;
EnvironmentAttributes environmentAttributes = EnvironmentAttributes.builder()
.application(application)
.environmentId("environmentId")
// the properties below are optional
.description("description")
.monitors(List.of(monitor))
.name("name")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppConfig;
Application application;
Monitor monitor;
var environmentAttributes = new EnvironmentAttributes {
Application = application,
EnvironmentId = "environmentId",
// the properties below are optional
Description = "description",
Monitors = new [] { monitor },
Name = "name"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var application Application
var monitor Monitor
environmentAttributes := &EnvironmentAttributes{
Application: application,
EnvironmentId: jsii.String("environmentId"),
// the properties below are optional
Description: jsii.String("description"),
Monitors: []Monitor{
monitor,
},
Name: jsii.String("name"),
}
Properties
applicationIApplicationapplicationIApplicationapplicationIApplicationApplicationIApplicationApplicationIApplication required #The application associated with the environment.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string = None. #The description of the environment.
environmentIdstringenvironment_idstrenvironmentIdStringEnvironmentIdstringEnvironmentId*string required #The ID of the environment.
monitorsoptionalMonitor[]monitorsoptionaltyping.List[Monitor]monitorsoptionalList<Monitor>MonitorsoptionalMonitor[]Monitorsoptional*[]Monitor = None. #The monitors for the environment.
The name of the environment.