import * as core from "@terrascript/core"; export interface CloudformationStackArgs extends core.ResourceArgs { /** * (Required) The ARN of the application from the Serverless Application Repository. */ applicationId: string | core.StringOut; /** * (Required) A list of capabilities. Valid values are `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, `CAPAB * ILITY_RESOURCE_POLICY`, or `CAPABILITY_AUTO_EXPAND` */ capabilities: core.Array | core.ArrayOut; /** * (Required) The name of the stack to create. The resource deployed in AWS will be prefixed with `serv * erlessrepo-` */ name: string | core.StringOut; /** * (Optional) A map of Parameter structures that specify input parameters for the stack. */ parameters?: core.Map | core.MapOut; /** * (Optional) The version of the application to deploy. If not supplied, deploys the latest version. */ semanticVersion?: string | core.StringOut; /** * (Optional) A list of tags to associate with this stack. If configured with a provider [`default_tags * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tag * s-configuration-block) present, tags with matching keys will overwrite those defined at the provider * level. */ 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 CloudformationStack extends core.Resource { /** * (Required) The ARN of the application from the Serverless Application Repository. */ @core.attr(String) public applicationId!: string | core.StringOut; /** * (Required) A list of capabilities. Valid values are `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, `CAPAB * ILITY_RESOURCE_POLICY`, or `CAPABILITY_AUTO_EXPAND` */ @core.attr(String, { kind: "array" }) public capabilities!: core.Array | core.ArrayOut; /** * A unique identifier of the stack. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the stack to create. The resource deployed in AWS will be prefixed with `serv * erlessrepo-` */ @core.attr(String) public name!: string | core.StringOut; /** * A map of outputs from the stack. */ @core.attr(String, { computed: true, kind: "map" }) public outputs!: core.Map | core.MapOut; /** * (Optional) A map of Parameter structures that specify input parameters for the stack. */ @core.attr(String, { computed: true, kind: "map" }) public parameters?: core.Map | core.MapOut; /** * (Optional) The version of the application to deploy. If not supplied, deploys the latest version. */ @core.attr(String, { computed: true }) public semanticVersion?: string | core.StringOut; /** * (Optional) A list of tags to associate with this stack. If configured with a provider [`default_tags * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tag * s-configuration-block) present, tags with matching keys will overwrite those defined at the provider * level. */ @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?: CloudformationStackArgs) { super( name, "aws_serverlessapplicationrepository_cloudformation_stack", args ); } public override getNamespace(): string { return "aws_serverlessapplicationrepository"; } }