File Coverage

blib/lib/Paws/OpsWorks/SetPermission.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::OpsWorks::SetPermission;
3 1     1   529 use Moose;
  1         2  
  1         7  
4             has AllowSsh => (is => 'ro', isa => 'Bool');
5             has AllowSudo => (is => 'ro', isa => 'Bool');
6             has IamUserArn => (is => 'ro', isa => 'Str', required => 1);
7             has Level => (is => 'ro', isa => 'Str');
8             has StackId => (is => 'ro', isa => 'Str', required => 1);
9              
10 1     1   6195 use MooseX::ClassAttribute;
  1         3  
  1         9  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'SetPermission');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::OpsWorks::SetPermission - Arguments for method SetPermission on Paws::OpsWorks
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method SetPermission on the
26             AWS OpsWorks service. Use the attributes of this class
27             as arguments to method SetPermission.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SetPermission.
30              
31             As an example:
32              
33             $service_obj->SetPermission(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 AllowSsh => Bool
41              
42             The user is allowed to use SSH to communicate with the instance.
43              
44              
45              
46             =head2 AllowSudo => Bool
47              
48             The user is allowed to use B<sudo> to elevate privileges.
49              
50              
51              
52             =head2 B<REQUIRED> IamUserArn => Str
53              
54             The user's IAM ARN. This can also be a federated user's ARN.
55              
56              
57              
58             =head2 Level => Str
59              
60             The user's permission level, which must be set to one of the following
61             strings. You cannot set your own permissions level.
62              
63             =over
64              
65             =item *
66              
67             C<deny>
68              
69             =item *
70              
71             C<show>
72              
73             =item *
74              
75             C<deploy>
76              
77             =item *
78              
79             C<manage>
80              
81             =item *
82              
83             C<iam_only>
84              
85             =back
86              
87             For more information on the permissions associated with these levels,
88             see Managing User Permissions.
89              
90              
91              
92             =head2 B<REQUIRED> StackId => Str
93              
94             The stack ID.
95              
96              
97              
98              
99             =head1 SEE ALSO
100              
101             This class forms part of L<Paws>, documenting arguments for method SetPermission in L<Paws::OpsWorks>
102              
103             =head1 BUGS and CONTRIBUTIONS
104              
105             The source code is located here: https://github.com/pplu/aws-sdk-perl
106              
107             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
108              
109             =cut
110