« blib/lib/Paws/RedShift/ModifySnapshotSchedule.pm
↑ Summary
blib/lib/Paws/RedShift/NetworkInterface.pm »
| 1 | |||
| 2 | package Paws::RedShift::ModifyUsageLimit; | ||
| 3 | use Moose; | ||
| 4 | has Amount => (is => 'ro', isa => 'Int'); | ||
| 5 | has BreachAction => (is => 'ro', isa => 'Str'); | ||
| 6 | has UsageLimitId => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyUsageLimit'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RedShift::UsageLimit'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'ModifyUsageLimitResult'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::RedShift::ModifyUsageLimit - Arguments for method ModifyUsageLimit on L<Paws::RedShift> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method ModifyUsageLimit on the | ||
| 24 | L<Amazon Redshift|Paws::RedShift> service. Use the attributes of this class | ||
| 25 | as arguments to method ModifyUsageLimit. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyUsageLimit. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $redshift = Paws->service('RedShift'); | ||
| 32 | my $UsageLimit = $redshift->ModifyUsageLimit( | ||
| 33 | UsageLimitId => 'MyString', | ||
| 34 | Amount => 1, # OPTIONAL | ||
| 35 | BreachAction => 'log', # OPTIONAL | ||
| 36 | ); | ||
| 37 | |||
| 38 | # Results: | ||
| 39 | my $Amount = $UsageLimit->Amount; | ||
| 40 | my $BreachAction = $UsageLimit->BreachAction; | ||
| 41 | my $ClusterIdentifier = $UsageLimit->ClusterIdentifier; | ||
| 42 | my $FeatureType = $UsageLimit->FeatureType; | ||
| 43 | my $LimitType = $UsageLimit->LimitType; | ||
| 44 | my $Period = $UsageLimit->Period; | ||
| 45 | my $Tags = $UsageLimit->Tags; | ||
| 46 | my $UsageLimitId = $UsageLimit->UsageLimitId; | ||
| 47 | |||
| 48 | # Returns a L<Paws::RedShift::UsageLimit> object. | ||
| 49 | |||
| 50 | 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. | ||
| 51 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/redshift/ModifyUsageLimit> | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | |||
| 56 | =head2 Amount => Int | ||
| 57 | |||
| 58 | The new limit amount. For more information about this parameter, see | ||
| 59 | UsageLimit. | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | =head2 BreachAction => Str | ||
| 64 | |||
| 65 | The new action that Amazon Redshift takes when the limit is reached. | ||
| 66 | For more information about this parameter, see UsageLimit. | ||
| 67 | |||
| 68 | Valid values are: C<"log">, C<"emit-metric">, C<"disable"> | ||
| 69 | |||
| 70 | =head2 B<REQUIRED> UsageLimitId => Str | ||
| 71 | |||
| 72 | The identifier of the usage limit to modify. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | =head1 SEE ALSO | ||
| 78 | |||
| 79 | This class forms part of L<Paws>, documenting arguments for method ModifyUsageLimit in L<Paws::RedShift> | ||
| 80 | |||
| 81 | =head1 BUGS and CONTRIBUTIONS | ||
| 82 | |||
| 83 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 84 | |||
| 85 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 86 | |||
| 87 | =cut | ||
| 88 |