Skip to content

Create Usage Limit

redshiftserverless_create_usage_limit R Documentation

Creates a usage limit for a specified Amazon Redshift Serverless usage type

Description

Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.

Usage

redshiftserverless_create_usage_limit(amount, breachAction, period,
  resourceArn, usageType)

Arguments

amount

[required] 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.

breachAction

The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.

period

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

resourceArn

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

usageType

[required] The type of Amazon Redshift Serverless usage to create a usage limit for.

Value

A list with the following syntax:

list(
  usageLimit = list(
    amount = 123,
    breachAction = "log"|"emit-metric"|"deactivate",
    period = "daily"|"weekly"|"monthly",
    resourceArn = "string",
    usageLimitArn = "string",
    usageLimitId = "string",
    usageType = "serverless-compute"|"cross-region-datasharing"
  )
)

Request syntax

svc$create_usage_limit(
  amount = 123,
  breachAction = "log"|"emit-metric"|"deactivate",
  period = "daily"|"weekly"|"monthly",
  resourceArn = "string",
  usageType = "serverless-compute"|"cross-region-datasharing"
)