| 1 | |||
| 2 | package Paws::EC2::DeleteTags; | ||
| 3 | use Moose; | ||
| 4 | has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' ); | ||
| 5 | has Resources => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'resourceId' , required => 1); | ||
| 6 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Tag]', traits => ['NameInRequest'], request_name => 'tag' ); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteTags'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::EC2::DeleteTags - Arguments for method DeleteTags on L<Paws::EC2> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method DeleteTags on the | ||
| 24 | L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class | ||
| 25 | as arguments to method DeleteTags. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteTags. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $ec2 = Paws->service('EC2'); | ||
| 32 | # To delete a tag from a resource | ||
| 33 | # This example deletes the tag Stack=test from the specified image. | ||
| 34 | $ec2->DeleteTags( | ||
| 35 | 'Resources' => ['ami-78a54011'], | ||
| 36 | 'Tags' => [ | ||
| 37 | |||
| 38 | { | ||
| 39 | 'Key' => 'Stack', | ||
| 40 | 'Value' => 'test' | ||
| 41 | } | ||
| 42 | ] | ||
| 43 | ); | ||
| 44 | |||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/DeleteTags> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 DryRun => Bool | ||
| 53 | |||
| 54 | Checks whether you have the required permissions for the action, | ||
| 55 | without actually making the request, and provides an error response. If | ||
| 56 | you have the required permissions, the error response is | ||
| 57 | C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> Resources => ArrayRef[Str|Undef] | ||
| 62 | |||
| 63 | The IDs of the resources, separated by spaces. | ||
| 64 | |||
| 65 | Constraints: Up to 1000 resource IDs. We recommend breaking up this | ||
| 66 | request into smaller batches. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 Tags => ArrayRef[L<Paws::EC2::Tag>] | ||
| 71 | |||
| 72 | The tags to delete. Specify a tag key and an optional tag value to | ||
| 73 | delete specific tags. If you specify a tag key without a tag value, we | ||
| 74 | delete any tag with this key regardless of its value. If you specify a | ||
| 75 | tag key with an empty string as the tag value, we delete the tag only | ||
| 76 | if its value is an empty string. | ||
| 77 | |||
| 78 | If you omit this parameter, we delete all user-defined tags for the | ||
| 79 | specified resources. We do not delete AWS-generated tags (tags that | ||
| 80 | have the C<aws:> prefix). | ||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head1 SEE ALSO | ||
| 86 | |||
| 87 | This class forms part of L<Paws>, documenting arguments for method DeleteTags in L<Paws::EC2> | ||
| 88 | |||
| 89 | =head1 BUGS and CONTRIBUTIONS | ||
| 90 | |||
| 91 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 92 | |||
| 93 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 94 | |||
| 95 | =cut | ||
| 96 |