import * as core from "@terrascript/core"; export interface SnapshotCopyGrantArgs extends core.ResourceArgs { /** * (Optional, Forces new resource) The unique identifier for the customer master key (CMK) that the gra * nt applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in * a different AWS account, you must use the key ARN. If not specified, the default key is used. */ kmsKeyId?: string | core.StringOut; /** * (Required, Forces new resource) A friendly name for identifying the grant. */ snapshotCopyGrantName: 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 SnapshotCopyGrant extends core.Resource { /** * Amazon Resource Name (ARN) of snapshot copy grant */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional, Forces new resource) The unique identifier for the customer master key (CMK) that the gra * nt applies to. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in * a different AWS account, you must use the key ARN. If not specified, the default key is used. */ @core.attr(String, { computed: true }) public kmsKeyId?: string | core.StringOut; /** * (Required, Forces new resource) A friendly name for identifying the grant. */ @core.attr(String) public snapshotCopyGrantName!: 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?: SnapshotCopyGrantArgs) { super(name, "aws_redshift_snapshot_copy_grant", args); } public override getNamespace(): string { return "aws_redshift"; } }