blib/lib/Paws/SSOAdmin/CreatePermissionSet.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSOAdmin::CreatePermissionSet;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has InstanceArn => (is => 'ro', isa => 'Str', required => 1);
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has RelayState => (is => 'ro', isa => 'Str');
8 has SessionDuration => (is => 'ro', isa => 'Str');
9 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::SSOAdmin::Tag]');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePermissionSet');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSOAdmin::CreatePermissionSetResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::SSOAdmin::CreatePermissionSet - Arguments for method CreatePermissionSet on L<Paws::SSOAdmin>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreatePermissionSet on the
27 L<AWS Single Sign-On Admin|Paws::SSOAdmin> service. Use the attributes of this class
28 as arguments to method CreatePermissionSet.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePermissionSet.
31  
32 =head1 SYNOPSIS
33  
34 my $sso = Paws->service('SSOAdmin');
35 my $CreatePermissionSetResponse = $sso->CreatePermissionSet(
36 InstanceArn => 'MyInstanceArn',
37 Name => 'MyPermissionSetName',
38 Description => 'MyPermissionSetDescription', # OPTIONAL
39 RelayState => 'MyRelayState', # OPTIONAL
40 SessionDuration => 'MyDuration', # OPTIONAL
41 Tags => [
42 {
43 Key => 'MyTagKey', # min: 1, max: 128; OPTIONAL
44 Value => 'MyTagValue', # max: 256; OPTIONAL
45 },
46 ...
47 ], # OPTIONAL
48 );
49  
50 # Results:
51 my $PermissionSet = $CreatePermissionSetResponse->PermissionSet;
52  
53 # Returns a L<Paws::SSOAdmin::CreatePermissionSetResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sso/CreatePermissionSet>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 Description => Str
62  
63 The description of the PermissionSet.
64  
65  
66  
67 =head2 B<REQUIRED> InstanceArn => Str
68  
69 The ARN of the SSO instance under which the operation will be executed.
70 For more information about ARNs, see Amazon Resource Names (ARNs) and
71 AWS Service Namespaces in the I<AWS General Reference>.
72  
73  
74  
75 =head2 B<REQUIRED> Name => Str
76  
77 The name of the PermissionSet.
78  
79  
80  
81 =head2 RelayState => Str
82  
83 Used to redirect users within the application during the federation
84 authentication process.
85  
86  
87  
88 =head2 SessionDuration => Str
89  
90 The length of time that the application user sessions are valid in the
91 ISO-8601 standard.
92  
93  
94  
95 =head2 Tags => ArrayRef[L<Paws::SSOAdmin::Tag>]
96  
97 The tags to attach to the new PermissionSet.
98  
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method CreatePermissionSet in L<Paws::SSOAdmin>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113