Skip to content
v2.278.0

CfnUsageLimitProps Struct ​

Properties for defining a CfnUsageLimit.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_redshift as redshift } from 'aws-cdk-lib';
const cfnUsageLimitProps: redshift.CfnUsageLimitProps = {
  amount: 123,
  clusterIdentifier: 'clusterIdentifier',
  featureType: 'featureType',
  limitType: 'limitType',

  // the properties below are optional
  breachAction: 'breachAction',
  period: 'period',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_redshift as redshift

cfn_usage_limit_props = redshift.CfnUsageLimitProps(
    amount=123,
    cluster_identifier="clusterIdentifier",
    feature_type="featureType",
    limit_type="limitType",

    # the properties below are optional
    breach_action="breachAction",
    period="period",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.redshift.*;

CfnUsageLimitProps cfnUsageLimitProps = CfnUsageLimitProps.builder()
        .amount(123)
        .clusterIdentifier("clusterIdentifier")
        .featureType("featureType")
        .limitType("limitType")

        // the properties below are optional
        .breachAction("breachAction")
        .period("period")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Redshift;

var cfnUsageLimitProps = new CfnUsageLimitProps {
    Amount = 123,
    ClusterIdentifier = "clusterIdentifier",
    FeatureType = "featureType",
    LimitType = "limitType",

    // the properties below are optional
    BreachAction = "breachAction",
    Period = "period",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUsageLimitProps := &CfnUsageLimitProps{
	Amount: jsii.Number(123),
	ClusterIdentifier: jsii.String("clusterIdentifier"),
	FeatureType: jsii.String("featureType"),
	LimitType: jsii.String("limitType"),

	// the properties below are optional
	BreachAction: jsii.String("breachAction"),
	Period: jsii.String("period"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

amountnumberamountint | floatamountNumberAmountdoubleAmount*float64 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.

breachActionoptionalstringbreach_actionoptionalstrbreachActionoptionalStringBreachActionoptionalstringBreachActionoptional*string #
The action that Amazon Redshift takes when the limit is reached.

The default is log.

clusterIdentifierstringcluster_identifierstrclusterIdentifierStringClusterIdentifierstringClusterIdentifier*string required #
The identifier of the cluster that you want to limit usage.
featureTypestringfeature_typestrfeatureTypeStringFeatureTypestringFeatureType*string required #
The Amazon Redshift feature that you want to limit.
limitTypestringlimit_typestrlimitTypeStringLimitTypestringLimitType*string required #
The type of limit.
notes

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.

periodoptionalstringperiodoptionalstrperiodoptionalStringPeriodoptionalstringPeriodoptional*string #
The time period that the amount applies to.

A weekly period begins on Sunday. The default is monthly.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of tag instances.