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

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