import * as core from "@terrascript/core"; export interface UsageLimitArgs extends core.ResourceArgs { /** * (Required) The limit amount. If time-based, this amount is in minutes. If data-based, this amount is * in terabytes (TB). The value must be a positive number. */ amount: number | core.NumberOut; /** * (Optional) The action that Amazon Redshift takes when the limit is reached. The default is `log`. Va * lid values are `log`, `emit-metric`, and `disable`. */ breachAction?: string | core.StringOut; /** * (Required) The identifier of the cluster that you want to limit usage. */ clusterIdentifier: string | core.StringOut; /** * (Required) The Amazon Redshift feature that you want to limit. Valid values are `spectrum`, `concurr * ency-scaling`, and `cross-region-datasharing`. */ featureType: string | core.StringOut; /** * (Required) The type of limit. Depending on the feature type, this can be based on a time duration or * data size. If FeatureType is `spectrum`, then LimitType must be `data-scanned`. If FeatureType is ` * concurrency-scaling`, then LimitType must be `time`. If FeatureType is `cross-region-datasharing`, t * hen LimitType must be `data-scanned`. Valid values are `data-scanned`, and `time`. */ limitType: string | core.StringOut; /** * (Optional) The time period that the amount applies to. A weekly period begins on Sunday. The default * is `monthly`. Valid values are `daily`, `weekly`, and `monthly`. */ period?: 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 UsageLimit extends core.Resource { /** * (Required) The limit amount. If time-based, this amount is in minutes. If data-based, this amount is * in terabytes (TB). The value must be a positive number. */ @core.attr(Number) public amount!: number | core.NumberOut; /** * Amazon Resource Name (ARN) of the Redshift Usage Limit. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The action that Amazon Redshift takes when the limit is reached. The default is `log`. Va * lid values are `log`, `emit-metric`, and `disable`. */ @core.attr(String) public breachAction?: string | core.StringOut; /** * (Required) The identifier of the cluster that you want to limit usage. */ @core.attr(String) public clusterIdentifier!: string | core.StringOut; /** * (Required) The Amazon Redshift feature that you want to limit. Valid values are `spectrum`, `concurr * ency-scaling`, and `cross-region-datasharing`. */ @core.attr(String) public featureType!: string | core.StringOut; /** * The Redshift Usage Limit ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The type of limit. Depending on the feature type, this can be based on a time duration or * data size. If FeatureType is `spectrum`, then LimitType must be `data-scanned`. If FeatureType is ` * concurrency-scaling`, then LimitType must be `time`. If FeatureType is `cross-region-datasharing`, t * hen LimitType must be `data-scanned`. Valid values are `data-scanned`, and `time`. */ @core.attr(String) public limitType!: string | core.StringOut; /** * (Optional) The time period that the amount applies to. A weekly period begins on Sunday. The default * is `monthly`. Valid values are `daily`, `weekly`, and `monthly`. */ @core.attr(String) public period?: 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?: UsageLimitArgs) { super(name, "aws_redshift_usage_limit", args); } public override getNamespace(): string { return "aws_redshift"; } }