import * as core from "@terrascript/core"; export interface TriggerBlkArgs extends core.SchemaArgs { branches?: core.Array | core.ArrayOut; customData?: string | core.StringOut; destinationArn: string | core.StringOut; events: core.Array | core.ArrayOut; name: string | core.StringOut; } export class TriggerBlk extends core.Schema { @core.attr(String, { kind: "array" }) public branches?: core.Array | core.ArrayOut; @core.attr(String) public customData?: string | core.StringOut; @core.attr(String) public destinationArn!: string | core.StringOut; @core.attr(String, { kind: "array" }) public events!: core.Array | core.ArrayOut; @core.attr(String) public name!: string | core.StringOut; } export interface TriggerArgs extends core.ResourceArgs { /** * (Required) The name for the repository. This needs to be less than 100 characters. */ repositoryName: string | core.StringOut; trigger: core.Array | core.ArrayOut; } export class Trigger extends core.Resource { /** * System-generated unique identifier. */ @core.attr(String, { computed: true }) public configurationId!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name for the repository. This needs to be less than 100 characters. */ @core.attr(String) public repositoryName!: string | core.StringOut; @core.attr(TriggerBlk, { kind: "array" }) public trigger!: core.Array | core.ArrayOut; constructor(name: string, args?: TriggerArgs) { super(name, "aws_codecommit_trigger", args); } public override getNamespace(): string { return "aws_codecommit"; } }