« blib/lib/Paws/CloudWatchEvents/UpdateApiDestinationResponse.pm
↑ Summary
blib/lib/Paws/CloudWatchEvents/UpdateArchiveResponse.pm »
| 1 | |||
| 2 | package Paws::CloudWatchEvents::UpdateArchive; | ||
| 3 | use Moose; | ||
| 4 | has ArchiveName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has Description => (is => 'ro', isa => 'Str'); | ||
| 6 | has EventPattern => (is => 'ro', isa => 'Str'); | ||
| 7 | has RetentionDays => (is => 'ro', isa => 'Int'); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateArchive'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchEvents::UpdateArchiveResponse'); | ||
| 13 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::CloudWatchEvents::UpdateArchive - Arguments for method UpdateArchive on L<Paws::CloudWatchEvents> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method UpdateArchive on the | ||
| 25 | L<Amazon EventBridge|Paws::CloudWatchEvents> service. Use the attributes of this class | ||
| 26 | as arguments to method UpdateArchive. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateArchive. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $events = Paws->service('CloudWatchEvents'); | ||
| 33 | my $UpdateArchiveResponse = $events->UpdateArchive( | ||
| 34 | ArchiveName => 'MyArchiveName', | ||
| 35 | Description => 'MyArchiveDescription', # OPTIONAL | ||
| 36 | EventPattern => 'MyEventPattern', # OPTIONAL | ||
| 37 | RetentionDays => 1, # OPTIONAL | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $ArchiveArn = $UpdateArchiveResponse->ArchiveArn; | ||
| 42 | my $CreationTime = $UpdateArchiveResponse->CreationTime; | ||
| 43 | my $State = $UpdateArchiveResponse->State; | ||
| 44 | my $StateReason = $UpdateArchiveResponse->StateReason; | ||
| 45 | |||
| 46 | # Returns a L<Paws::CloudWatchEvents::UpdateArchiveResponse> object. | ||
| 47 | |||
| 48 | 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. | ||
| 49 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/events/UpdateArchive> | ||
| 50 | |||
| 51 | =head1 ATTRIBUTES | ||
| 52 | |||
| 53 | |||
| 54 | =head2 B<REQUIRED> ArchiveName => Str | ||
| 55 | |||
| 56 | The name of the archive to update. | ||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | =head2 Description => Str | ||
| 61 | |||
| 62 | The description for the archive. | ||
| 63 | |||
| 64 | |||
| 65 | |||
| 66 | =head2 EventPattern => Str | ||
| 67 | |||
| 68 | The event pattern to use to filter events sent to the archive. | ||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head2 RetentionDays => Int | ||
| 73 | |||
| 74 | The number of days to retain events in the archive. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head1 SEE ALSO | ||
| 80 | |||
| 81 | This class forms part of L<Paws>, documenting arguments for method UpdateArchive in L<Paws::CloudWatchEvents> | ||
| 82 | |||
| 83 | =head1 BUGS and CONTRIBUTIONS | ||
| 84 | |||
| 85 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 86 | |||
| 87 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 88 | |||
| 89 | =cut | ||
| 90 |