The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Paws::RedShift::CreateUsageLimit - Arguments for method CreateUsageLimit on Paws::RedShift

DESCRIPTION

This class represents the parameters used for calling the method CreateUsageLimit on the Amazon Redshift service. Use the attributes of this class as arguments to method CreateUsageLimit.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateUsageLimit.

SYNOPSIS

    my $redshift = Paws->service('RedShift');
    my $UsageLimit = $redshift->CreateUsageLimit(
      Amount            => 1,
      ClusterIdentifier => 'MyString',
      FeatureType       => 'spectrum',
      LimitType         => 'time',
      BreachAction      => 'log',        # OPTIONAL
      Period            => 'daily',      # OPTIONAL
      Tags              => [
        {
          Key   => 'MyString',    # max: 2147483647
          Value => 'MyString',    # max: 2147483647
        },
        ...
      ],    # OPTIONAL
    );

    # Results:
    my $Amount            = $UsageLimit->Amount;
    my $BreachAction      = $UsageLimit->BreachAction;
    my $ClusterIdentifier = $UsageLimit->ClusterIdentifier;
    my $FeatureType       = $UsageLimit->FeatureType;
    my $LimitType         = $UsageLimit->LimitType;
    my $Period            = $UsageLimit->Period;
    my $Tags              = $UsageLimit->Tags;
    my $UsageLimitId      = $UsageLimit->UsageLimitId;

    # Returns a L<Paws::RedShift::UsageLimit> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/redshift/CreateUsageLimit

ATTRIBUTES

REQUIRED Amount => Int

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.

BreachAction => Str

The action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.

Valid values are: "log", "emit-metric", "disable"

REQUIRED ClusterIdentifier => Str

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

REQUIRED FeatureType => Str

The Amazon Redshift feature that you want to limit.

Valid values are: "spectrum", "concurrency-scaling"

REQUIRED LimitType => Str

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.

Valid values are: "time", "data-scanned"

Period => Str

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

Valid values are: "daily", "weekly", "monthly"

Tags => ArrayRef[Paws::RedShift::Tag]

A list of tag instances.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateUsageLimit in Paws::RedShift

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues