UsageLimitArgs

data class UsageLimitArgs(val amount: Output<Int>? = null, val breachAction: Output<String>? = null, val period: Output<String>? = null, val resourceArn: Output<String>? = null, val usageType: Output<String>? = null) : ConvertibleToJava<UsageLimitArgs>

Creates a new Amazon Redshift Serverless Usage Limit.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshiftserverless.Workgroup;
import com.pulumi.aws.redshiftserverless.WorkgroupArgs;
import com.pulumi.aws.redshiftserverless.UsageLimit;
import com.pulumi.aws.redshiftserverless.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 exampleWorkgroup = new Workgroup("exampleWorkgroup", WorkgroupArgs.builder()
.namespaceName(aws_redshiftserverless_namespace.example().namespace_name())
.workgroupName("example")
.build());
var exampleUsageLimit = new UsageLimit("exampleUsageLimit", UsageLimitArgs.builder()
.resourceArn(exampleWorkgroup.arn())
.usageType("serverless-compute")
.amount(60)
.build());
}
}

Import

Redshift Serverless Usage Limits can be imported using the id, e.g.,

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

Constructors

Link copied to clipboard
constructor(amount: Output<Int>? = null, breachAction: Output<String>? = null, period: Output<String>? = null, resourceArn: Output<String>? = null, usageType: Output<String>? = null)

Properties

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

The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

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

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

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

The time period that the amount applies to. A weekly period begins on Sunday. Valid values are daily, weekly, and monthly. The default is monthly.

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

The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

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

The type of Amazon Redshift Serverless usage to create a usage limit for. Valid values are serverless-compute or cross-region-datasharing.

Functions

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