import * as core from "@terrascript/core"; export interface ConstraintArgs extends core.ResourceArgs { /** * (Optional) Language code. Valid values: `en` (English), `jp` (Japanese), `zh` (Chinese). Default val * ue is `en`. */ acceptLanguage?: string | core.StringOut; /** * (Optional) Description of the constraint. */ description?: string | core.StringOut; /** * (Required) Constraint parameters in JSON format. The syntax depends on the constraint type. See deta * ils below. */ parameters: string | core.StringOut; /** * (Required) Portfolio identifier. */ portfolioId: string | core.StringOut; /** * (Required) Product identifier. */ productId: string | core.StringOut; /** * (Required) Type of constraint. Valid values are `LAUNCH`, `NOTIFICATION`, `RESOURCE_UPDATE`, `STACKS * ET`, and `TEMPLATE`. */ type: string | core.StringOut; } export class Constraint extends core.Resource { /** * (Optional) Language code. Valid values: `en` (English), `jp` (Japanese), `zh` (Chinese). Default val * ue is `en`. */ @core.attr(String) public acceptLanguage?: string | core.StringOut; /** * (Optional) Description of the constraint. */ @core.attr(String, { computed: true }) public description?: string | core.StringOut; /** * Constraint identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Owner of the constraint. */ @core.attr(String, { computed: true }) public owner!: string | core.StringOut; /** * (Required) Constraint parameters in JSON format. The syntax depends on the constraint type. See deta * ils below. */ @core.attr(String) public parameters!: string | core.StringOut; /** * (Required) Portfolio identifier. */ @core.attr(String) public portfolioId!: string | core.StringOut; /** * (Required) Product identifier. */ @core.attr(String) public productId!: string | core.StringOut; @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * (Required) Type of constraint. Valid values are `LAUNCH`, `NOTIFICATION`, `RESOURCE_UPDATE`, `STACKS * ET`, and `TEMPLATE`. */ @core.attr(String) public type!: string | core.StringOut; constructor(name: string, args?: ConstraintArgs) { super(name, "aws_servicecatalog_constraint", args); } public override getNamespace(): string { return "aws_servicecatalog"; } }