blib/lib/Paws/Route53/ChangeTagsForResource.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/Route53/ChangeResourceRecordSets.pm ↑ Summary blib/lib/Paws/Route53/CreateHostedZone.pm »
1  
2 package Paws::Route53::ChangeTagsForResource;
3 2 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 has AddTags => (is => 'ro', isa => 'ArrayRef[Paws::Route53::Tag]', request_name => 'Tag', traits => ['NameInRequest']);
5 2 has RemoveTagKeys => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'Key', traits => ['NameInRequest']);
6 2 has ResourceId => (is => 'ro', isa => 'Str', uri_name => 'ResourceId', traits => ['ParamInURI'], required => 1);
7 2 has ResourceType => (is => 'ro', isa => 'Str', uri_name => 'ResourceType', traits => ['ParamInURI'], required => 1);
8  
9  
10 2 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ChangeTagsForResource');
13 2 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/tags/{ResourceType}/{ResourceId}');
14 2 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 2 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::ChangeTagsForResourceResponse');
16 2 class_has _result_key => (isa => 'Str', is => 'ro');
17 2 class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'ChangeTagsForResourceRequest');
18 2 class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/');
19 2 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::Route53::ChangeTagsForResource - Arguments for method ChangeTagsForResource on L<Paws::Route53>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method ChangeTagsForResource on the
30 L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class
31 as arguments to method ChangeTagsForResource.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ChangeTagsForResource.
34  
35 =head1 SYNOPSIS
36  
37 my $route53 = Paws->service('Route53');
38 # To add or remove tags from a hosted zone or health check
39 # The following example adds two tags and removes one tag from the hosted zone
40 # with ID Z3M3LMPEXAMPLE.
41 my $ChangeTagsForResourceResponse = $route53->ChangeTagsForResource(
42 'AddTags' => [
43  
44 {
45 'Key' => 'apex',
46 'Value' => 3874
47 },
48  
49 {
50 'Key' => 'acme',
51 'Value' => 4938
52 }
53 ],
54 'RemoveTagKeys' => ['Nadir'],
55 'ResourceId' => 'Z3M3LMPEXAMPLE',
56 'ResourceType' => 'hostedzone'
57 );
58  
59  
60 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.
61 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/ChangeTagsForResource>
62  
63 =head1 ATTRIBUTES
64  
65  
66 =head2 AddTags => ArrayRef[L<Paws::Route53::Tag>]
67  
68 A complex type that contains a list of the tags that you want to add to
69 the specified health check or hosted zone and/or the tags that you want
70 to edit C<Value> for.
71  
72 You can add a maximum of 10 tags to a health check or a hosted zone.
73  
74  
75  
76 =head2 RemoveTagKeys => ArrayRef[Str|Undef]
77  
78 A complex type that contains a list of the tags that you want to delete
79 from the specified health check or hosted zone. You can specify up to
80 10 keys.
81  
82  
83  
84 =head2 B<REQUIRED> ResourceId => Str
85  
86 The ID of the resource for which you want to add, change, or delete
87 tags.
88  
89  
90  
91 =head2 B<REQUIRED> ResourceType => Str
92  
93 The type of the resource.
94  
95 =over
96  
97 =item *
98  
99 The resource type for health checks is C<healthcheck>.
100  
101 =item *
102  
103 The resource type for hosted zones is C<hostedzone>.
104  
105 =back
106  
107  
108 Valid values are: C<"healthcheck">, C<"hostedzone">
109  
110  
111 =head1 SEE ALSO
112  
113 This class forms part of L<Paws>, documenting arguments for method ChangeTagsForResource in L<Paws::Route53>
114  
115 =head1 BUGS and CONTRIBUTIONS
116  
117 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
118  
119 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
120  
121 =cut
122  
« blib/lib/Paws/Route53/ChangeResourceRecordSets.pm ↑ Summary blib/lib/Paws/Route53/CreateHostedZone.pm »