blib/lib/Paws/Quicksight/UpdateIAMPolicyAssignment.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Quicksight::UpdateIAMPolicyAssignment;
3 use Moose;
4 has AssignmentName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'AssignmentName', required => 1);
5 has AssignmentStatus => (is => 'ro', isa => 'Str');
6 has AwsAccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'AwsAccountId', required => 1);
7 has Identities => (is => 'ro', isa => 'Paws::Quicksight::IdentityMap');
8 has Namespace => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'Namespace', required => 1);
9 has PolicyArn => (is => 'ro', isa => 'Str');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateIAMPolicyAssignment');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Quicksight::UpdateIAMPolicyAssignmentResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::Quicksight::UpdateIAMPolicyAssignment - Arguments for method UpdateIAMPolicyAssignment on L<Paws::Quicksight>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateIAMPolicyAssignment on the
28 L<Amazon QuickSight|Paws::Quicksight> service. Use the attributes of this class
29 as arguments to method UpdateIAMPolicyAssignment.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateIAMPolicyAssignment.
32  
33 =head1 SYNOPSIS
34  
35 my $quicksight = Paws->service('Quicksight');
36 my $UpdateIAMPolicyAssignmentResponse =
37 $quicksight->UpdateIAMPolicyAssignment(
38 AssignmentName => 'MyIAMPolicyAssignmentName',
39 AwsAccountId => 'MyAwsAccountId',
40 Namespace => 'MyNamespace',
41 AssignmentStatus => 'ENABLED', # OPTIONAL
42 Identities => {
43 'MyString' => [
44 'MyIdentityName', ... # min: 1
45 ],
46 }, # OPTIONAL
47 PolicyArn => 'MyArn', # OPTIONAL
48 );
49  
50 # Results:
51 my $AssignmentId = $UpdateIAMPolicyAssignmentResponse->AssignmentId;
52 my $AssignmentName = $UpdateIAMPolicyAssignmentResponse->AssignmentName;
53 my $AssignmentStatus = $UpdateIAMPolicyAssignmentResponse->AssignmentStatus;
54 my $Identities = $UpdateIAMPolicyAssignmentResponse->Identities;
55 my $PolicyArn = $UpdateIAMPolicyAssignmentResponse->PolicyArn;
56 my $RequestId = $UpdateIAMPolicyAssignmentResponse->RequestId;
57 my $Status = $UpdateIAMPolicyAssignmentResponse->Status;
58  
59 # Returns a L<Paws::Quicksight::UpdateIAMPolicyAssignmentResponse> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/quicksight/UpdateIAMPolicyAssignment>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 B<REQUIRED> AssignmentName => Str
68  
69 The name of the assignment, also called a rule. This name must be
70 unique within an AWS account.
71  
72  
73  
74 =head2 AssignmentStatus => Str
75  
76 The status of the assignment. Possible values are as follows:
77  
78 =over
79  
80 =item *
81  
82 C<ENABLED> - Anything specified in this assignment is used when
83 creating the data source.
84  
85 =item *
86  
87 C<DISABLED> - This assignment isn't used when creating the data source.
88  
89 =item *
90  
91 C<DRAFT> - This assignment is an unfinished draft and isn't used when
92 creating the data source.
93  
94 =back
95  
96  
97 Valid values are: C<"ENABLED">, C<"DRAFT">, C<"DISABLED">
98  
99 =head2 B<REQUIRED> AwsAccountId => Str
100  
101 The ID of the AWS account that contains the IAM policy assignment.
102  
103  
104  
105 =head2 Identities => L<Paws::Quicksight::IdentityMap>
106  
107 The QuickSight users, groups, or both that you want to assign the
108 policy to.
109  
110  
111  
112 =head2 B<REQUIRED> Namespace => Str
113  
114 The namespace of the assignment.
115  
116  
117  
118 =head2 PolicyArn => Str
119  
120 The ARN for the IAM policy to apply to the QuickSight users and groups
121 specified in this assignment.
122  
123  
124  
125  
126 =head1 SEE ALSO
127  
128 This class forms part of L<Paws>, documenting arguments for method UpdateIAMPolicyAssignment in L<Paws::Quicksight>
129  
130 =head1 BUGS and CONTRIBUTIONS
131  
132 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
133  
134 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
135  
136 =cut
137