import * as core from "@terrascript/core"; export interface DeploymentArgs extends core.ResourceArgs { /** * (Required, Forces new resource) The application ID. Must be between 4 and 7 characters in length. */ applicationId: string | core.StringOut; /** * (Required, Forces new resource) The configuration profile ID. Must be between 4 and 7 characters in * length. */ configurationProfileId: string | core.StringOut; /** * (Required, Forces new resource) The configuration version to deploy. Can be at most 1024 characters. */ configurationVersion: string | core.StringOut; /** * (Required, Forces new resource) The deployment strategy ID or name of a predefined deployment strate * gy. See [Predefined Deployment Strategies](https://docs.aws.amazon.com/appconfig/latest/userguide/ap * pconfig-creating-deployment-strategy.html#appconfig-creating-deployment-strategy-predefined) for mor * e details. */ deploymentStrategyId: string | core.StringOut; /** * (Optional, Forces new resource) The description of the deployment. Can be at most 1024 characters. */ description?: string | core.StringOut; /** * (Required, Forces new resource) The environment ID. Must be between 4 and 7 characters in length. */ environmentId: 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 Deployment extends core.Resource { /** * (Required, Forces new resource) The 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 Deployment. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required, Forces new resource) The configuration profile ID. Must be between 4 and 7 characters in * length. */ @core.attr(String) public configurationProfileId!: string | core.StringOut; /** * (Required, Forces new resource) The configuration version to deploy. Can be at most 1024 characters. */ @core.attr(String) public configurationVersion!: string | core.StringOut; /** * The deployment number. */ @core.attr(Number, { computed: true }) public deploymentNumber!: number | core.NumberOut; /** * (Required, Forces new resource) The deployment strategy ID or name of a predefined deployment strate * gy. See [Predefined Deployment Strategies](https://docs.aws.amazon.com/appconfig/latest/userguide/ap * pconfig-creating-deployment-strategy.html#appconfig-creating-deployment-strategy-predefined) for mor * e details. */ @core.attr(String) public deploymentStrategyId!: string | core.StringOut; /** * (Optional, Forces new resource) The description of the deployment. Can be at most 1024 characters. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required, Forces new resource) The environment ID. Must be between 4 and 7 characters in length. */ @core.attr(String) public environmentId!: string | core.StringOut; /** * The AppConfig application ID, environment ID, and deployment number separated by a slash (`/`). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The state of the deployment. */ @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?: DeploymentArgs) { super(name, "aws_appconfig_deployment", args); } public override getNamespace(): string { return "aws_appconfig"; } }