blib/lib/Paws/IAM/PutGroupPolicy.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IAM::PutGroupPolicy;
3 use Moose;
4 has GroupName => (is => 'ro', isa => 'Str', required => 1);
5 has PolicyDocument => (is => 'ro', isa => 'Str', required => 1);
6 has PolicyName => (is => 'ro', isa => 'Str', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutGroupPolicy');
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::IAM::PutGroupPolicy - Arguments for method PutGroupPolicy on L<Paws::IAM>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method PutGroupPolicy on the
24 L<AWS Identity and Access Management|Paws::IAM> service. Use the attributes of this class
25 as arguments to method PutGroupPolicy.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutGroupPolicy.
28  
29 =head1 SYNOPSIS
30  
31 my $iam = Paws->service('IAM');
32 # To add a policy to a group
33 # The following command adds a policy named AllPerms to the IAM group named
34 # Admins.
35 $iam->PutGroupPolicy(
36 'GroupName' => 'Admins',
37 'PolicyDocument' =>
38 '{"Version":"2012-10-17","Statement":{"Effect":"Allow","Action":"*","Resource":"*"}}',
39 'PolicyName' => 'AllPerms'
40 );
41  
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iam/PutGroupPolicy>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 B<REQUIRED> GroupName => Str
50  
51 The name of the group to associate the policy with.
52  
53 This parameter allows (through its regex pattern
54 (http://wikipedia.org/wiki/regex)) a string of characters consisting of
55 upper and lowercase alphanumeric characters with no spaces. You can
56 also include any of the following characters: _+=,.@-.
57  
58  
59  
60 =head2 B<REQUIRED> PolicyDocument => Str
61  
62 The policy document.
63  
64 You must provide policies in JSON format in IAM. However, for AWS
65 CloudFormation templates formatted in YAML, you can provide the policy
66 in JSON or YAML format. AWS CloudFormation always converts a YAML
67 policy to JSON format before submitting it to IAM.
68  
69 The regex pattern (http://wikipedia.org/wiki/regex) used to validate
70 this parameter is a string of characters consisting of the following:
71  
72 =over
73  
74 =item *
75  
76 Any printable ASCII character ranging from the space character
77 (C<\u0020>) through the end of the ASCII character range
78  
79 =item *
80  
81 The printable characters in the Basic Latin and Latin-1 Supplement
82 character set (through C<\u00FF>)
83  
84 =item *
85  
86 The special characters tab (C<\u0009>), line feed (C<\u000A>), and
87 carriage return (C<\u000D>)
88  
89 =back
90  
91  
92  
93  
94 =head2 B<REQUIRED> PolicyName => Str
95  
96 The name of the policy document.
97  
98 This parameter allows (through its regex pattern
99 (http://wikipedia.org/wiki/regex)) a string of characters consisting of
100 upper and lowercase alphanumeric characters with no spaces. You can
101 also include any of the following characters: _+=,.@-
102  
103  
104  
105  
106 =head1 SEE ALSO
107  
108 This class forms part of L<Paws>, documenting arguments for method PutGroupPolicy in L<Paws::IAM>
109  
110 =head1 BUGS and CONTRIBUTIONS
111  
112 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
113  
114 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
115  
116 =cut
117