import * as core from "@terrascript/core"; export interface MonitorArgs extends core.SchemaArgs { alarmArn: string | core.StringOut; alarmRoleArn?: string | core.StringOut; } export class Monitor extends core.Schema { @core.attr(String) public alarmArn!: string | core.StringOut; @core.attr(String) public alarmRoleArn?: string | core.StringOut; } export interface EnvironmentArgs extends core.ResourceArgs { /** * (Required, Forces new resource) The AppConfig application ID. Must be between 4 and 7 characters in * length. */ applicationId: string | core.StringOut; /** * (Optional) The description of the environment. Can be at most 1024 characters. */ description?: string | core.StringOut; /** * (Optional) Set of Amazon CloudWatch alarms to monitor during the deployment process. Maximum of 5. S * ee [Monitor](#monitor) below for more details. */ monitor?: core.Array | core.ArrayOut; /** * (Required) The name for the environment. Must be between 1 and 64 characters in length. */ name: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Environment extends core.Resource { /** * (Required, Forces new resource) The AppConfig application ID. Must be between 4 and 7 characters in * length. */ @core.attr(String) public applicationId!: string | core.StringOut; /** * The Amazon Resource Name (ARN) of the AppConfig Environment. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The description of the environment. Can be at most 1024 characters. */ @core.attr(String) public description?: string | core.StringOut; /** * The AppConfig environment ID. */ @core.attr(String, { computed: true }) public environmentId!: string | core.StringOut; /** * The AppConfig environment ID and application ID separated by a colon (`:`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Set of Amazon CloudWatch alarms to monitor during the deployment process. Maximum of 5. S * ee [Monitor](#monitor) below for more details. */ @core.attr(Monitor, { kind: "array" }) public monitor?: core.Array | core.ArrayOut; /** * (Required) The name for the environment. Must be between 1 and 64 characters in length. */ @core.attr(String) public name!: string | core.StringOut; @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: EnvironmentArgs) { super(name, "aws_appconfig_environment", args); } public override getNamespace(): string { return "aws_appconfig"; } }