| 1 | |||
| 2 | package Paws::EC2::DescribeTags; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | |
| 5 | 1 | has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' ); | |
| 6 | 1 | has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' ); | |
| 7 | 1 | has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' ); | |
| 8 | |||
| 9 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeTags'); | |
| 12 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeTagsResult'); | |
| 13 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 14 | 1 | 1; | |
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::EC2::DescribeTags - Arguments for method DescribeTags on L<Paws::EC2> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method DescribeTags on the | ||
| 25 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 26 | as arguments to method DescribeTags. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeTags. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $ec2 = Paws->service('EC2'); | ||
| 33 | # To describe the tags for a single resource | ||
| 34 | # This example describes the tags for the specified instance. | ||
| 35 | my $DescribeTagsResult = $ec2->DescribeTags( | ||
| 36 | 'Filters' => [ | ||
| 37 | |||
| 38 | { | ||
| 39 | 'Name' => 'resource-id', | ||
| 40 | 'Values' => ['i-1234567890abcdef8'] | ||
| 41 | } | ||
| 42 | ] | ||
| 43 | ); | ||
| 44 | |||
| 45 | # Results: | ||
| 46 | my $Tags = $DescribeTagsResult->Tags; | ||
| 47 | |||
| 48 | # Returns a L<Paws::EC2::DescribeTagsResult> 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/ec2/DescribeTags> | ||
| 52 | |||
| 53 | =head1 ATTRIBUTES | ||
| 54 | |||
| 55 | |||
| 56 | =head2 DryRun => Bool | ||
| 57 | |||
| 58 | Checks whether you have the required permissions for the action, | ||
| 59 | without actually making the request, and provides an error response. If | ||
| 60 | you have the required permissions, the error response is | ||
| 61 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 62 | |||
| 63 | |||
| 64 | |||
| 65 | =head2 Filters => ArrayRef[L<Paws::EC2::Filter>] | ||
| 66 | |||
| 67 | The filters. | ||
| 68 | |||
| 69 | =over | ||
| 70 | |||
| 71 | =item * | ||
| 72 | |||
| 73 | C<key> - The tag key. | ||
| 74 | |||
| 75 | =item * | ||
| 76 | |||
| 77 | C<resource-id> - The ID of the resource. | ||
| 78 | |||
| 79 | =item * | ||
| 80 | |||
| 81 | C<resource-type> - The resource type (C<customer-gateway> | | ||
| 82 | C<dedicated-host> | C<dhcp-options> | C<elastic-ip> | C<fleet> | | ||
| 83 | C<fpga-image> | C<host-reservation> | C<image> | C<instance> | | ||
| 84 | C<internet-gateway> | C<key-pair> | C<launch-template> | C<natgateway> | ||
| 85 | | C<network-acl> | C<network-interface> | C<placement-group> | | ||
| 86 | C<reserved-instances> | C<route-table> | C<security-group> | | ||
| 87 | C<snapshot> | C<spot-instances-request> | C<subnet> | C<volume> | | ||
| 88 | C<vpc> | C<vpc-endpoint> | C<vpc-endpoint-service> | | ||
| 89 | C<vpc-peering-connection> | C<vpn-connection> | C<vpn-gateway>). | ||
| 90 | |||
| 91 | =item * | ||
| 92 | |||
| 93 | C<tag>:E<lt>keyE<gt> - The key/value combination of the tag. For | ||
| 94 | example, specify "tag:Owner" for the filter name and "TeamA" for the | ||
| 95 | filter value to find resources with the tag "Owner=TeamA". | ||
| 96 | |||
| 97 | =item * | ||
| 98 | |||
| 99 | C<value> - The tag value. | ||
| 100 | |||
| 101 | =back | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 MaxResults => Int | ||
| 107 | |||
| 108 | The maximum number of results to return in a single call. This value | ||
| 109 | can be between 5 and 1000. To retrieve the remaining results, make | ||
| 110 | another call with the returned C<NextToken> value. | ||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 NextToken => Str | ||
| 115 | |||
| 116 | The token to retrieve the next page of results. | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | =head1 SEE ALSO | ||
| 122 | |||
| 123 | This class forms part of L<Paws>, documenting arguments for method DescribeTags in L<Paws::EC2> | ||
| 124 | |||
| 125 | =head1 BUGS and CONTRIBUTIONS | ||
| 126 | |||
| 127 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 128 | |||
| 129 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 130 | |||
| 131 | =cut | ||
| 132 | |||