UsageLimitArgs

data class UsageLimitArgs(val amount: Output<Int>? = null, val breachAction: Output<String>? = null, val clusterIdentifier: Output<String>? = null, val featureType: Output<String>? = null, val limitType: Output<String>? = null, val period: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<UsageLimitArgs>

Creates a new Amazon Redshift Usage Limit.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.UsageLimit;
import com.pulumi.aws.redshift.UsageLimitArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new UsageLimit("example", UsageLimitArgs.builder()
.clusterIdentifier(aws_redshift_cluster.example().id())
.featureType("concurrency-scaling")
.limitType("time")
.amount(60)
.build());
}
}

Import

Redshift usage limits can be imported using the id, e.g.,

$ pulumi import aws:redshift/usageLimit:UsageLimit example example-id

Constructors

Link copied to clipboard
constructor(amount: Output<Int>? = null, breachAction: Output<String>? = null, clusterIdentifier: Output<String>? = null, featureType: Output<String>? = null, limitType: Output<String>? = null, period: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val amount: Output<Int>? = null

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.

Link copied to clipboard
val breachAction: Output<String>? = null

The action that Amazon Redshift takes when the limit is reached. The default is log. Valid values are log, emit-metric, and disable.

Link copied to clipboard
val clusterIdentifier: Output<String>? = null

The identifier of the cluster that you want to limit usage.

Link copied to clipboard
val featureType: Output<String>? = null

The Amazon Redshift feature that you want to limit. Valid values are spectrum, concurrency-scaling, and cross-region-datasharing.

Link copied to clipboard
val limitType: Output<String>? = null

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, then LimitType must be data-scanned. Valid values are data-scanned, and time.

Link copied to clipboard
val period: Output<String>? = null

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.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): UsageLimitArgs