import * as core from "@terrascript/core"; export interface TagArgs extends core.ResourceArgs { /** * (Required) The tag name. */ key: string | core.StringOut; /** * (Required) The ID of the EC2 resource to manage the tag for. */ resourceId: string | core.StringOut; /** * (Required) The value of the tag. */ value: string | core.StringOut; } export class Tag extends core.Resource { /** * EC2 resource identifier and key, separated by a comma (`,`) */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The tag name. */ @core.attr(String) public key!: string | core.StringOut; /** * (Required) The ID of the EC2 resource to manage the tag for. */ @core.attr(String) public resourceId!: string | core.StringOut; /** * (Required) The value of the tag. */ @core.attr(String) public value!: string | core.StringOut; constructor(name: string, args?: TagArgs) { super(name, "aws_ec2_tag", args); } public override getNamespace(): string { return "aws_ec2"; } }