blib/lib/Paws/SSOAdmin/CreateAccountAssignment.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::CreateAccountAssignment;
3 use Moose;
4 has InstanceArn => (is => 'ro', isa => 'Str', required => 1);
5 has PermissionSetArn => (is => 'ro', isa => 'Str', required => 1);
6 has PrincipalId => (is => 'ro', isa => 'Str', required => 1);
7 has PrincipalType => (is => 'ro', isa => 'Str', required => 1);
8 has TargetId => (is => 'ro', isa => 'Str', required => 1);
9 has TargetType => (is => 'ro', isa => 'Str', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAccountAssignment');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSOAdmin::CreateAccountAssignmentResponse');
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::CreateAccountAssignment - Arguments for method CreateAccountAssignment on L<Paws::SSOAdmin>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateAccountAssignment on the
27 L<AWS Single Sign-On Admin|Paws::SSOAdmin> service. Use the attributes of this class
28 as arguments to method CreateAccountAssignment.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAccountAssignment.
31  
32 =head1 SYNOPSIS
33  
34 my $sso = Paws->service('SSOAdmin');
35 my $CreateAccountAssignmentResponse = $sso->CreateAccountAssignment(
36 InstanceArn => 'MyInstanceArn',
37 PermissionSetArn => 'MyPermissionSetArn',
38 PrincipalId => 'MyPrincipalId',
39 PrincipalType => 'USER',
40 TargetId => 'MyTargetId',
41 TargetType => 'AWS_ACCOUNT',
42  
43 );
44  
45 # Results:
46 my $AccountAssignmentCreationStatus =
47 $CreateAccountAssignmentResponse->AccountAssignmentCreationStatus;
48  
49 # Returns a L<Paws::SSOAdmin::CreateAccountAssignmentResponse> object.
50  
51 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.
52 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sso/CreateAccountAssignment>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 B<REQUIRED> InstanceArn => Str
58  
59 The ARN of the SSO instance under which the operation will be executed.
60 For more information about ARNs, see Amazon Resource Names (ARNs) and
61 AWS Service Namespaces in the I<AWS General Reference>.
62  
63  
64  
65 =head2 B<REQUIRED> PermissionSetArn => Str
66  
67 The ARN of the permission set that the admin wants to grant the
68 principal access to.
69  
70  
71  
72 =head2 B<REQUIRED> PrincipalId => Str
73  
74 An identifier for an object in AWS SSO, such as a user or group.
75 PrincipalIds are GUIDs (For example,
76 f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about
77 PrincipalIds in AWS SSO, see the AWS SSO Identity Store API Reference.
78  
79  
80  
81 =head2 B<REQUIRED> PrincipalType => Str
82  
83 The entity type for which the assignment will be created.
84  
85 Valid values are: C<"USER">, C<"GROUP">
86  
87 =head2 B<REQUIRED> TargetId => Str
88  
89 TargetID is an AWS account identifier, typically a 10-12 digit string
90 (For example, 123456789012).
91  
92  
93  
94 =head2 B<REQUIRED> TargetType => Str
95  
96 The entity type for which the assignment will be created.
97  
98 Valid values are: C<"AWS_ACCOUNT">
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method CreateAccountAssignment in L<Paws::SSOAdmin>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112