blib/lib/Paws/RAM/CreateResourceShare.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RAM::CreateResourceShare;
3 use Moose;
4 has AllowExternalPrincipals => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'allowExternalPrincipals');
5 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
6 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
7 has PermissionArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'permissionArns');
8 has Principals => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'principals');
9 has ResourceArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'resourceArns');
10 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::RAM::Tag]', traits => ['NameInRequest'], request_name => 'tags');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateResourceShare');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/createresourceshare');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RAM::CreateResourceShareResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::RAM::CreateResourceShare - Arguments for method CreateResourceShare on L<Paws::RAM>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateResourceShare on the
29 L<AWS Resource Access Manager|Paws::RAM> service. Use the attributes of this class
30 as arguments to method CreateResourceShare.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateResourceShare.
33  
34 =head1 SYNOPSIS
35  
36 my $ram = Paws->service('RAM');
37 my $CreateResourceShareResponse = $ram->CreateResourceShare(
38 Name => 'MyString',
39 AllowExternalPrincipals => 1, # OPTIONAL
40 ClientToken => 'MyString', # OPTIONAL
41 PermissionArns => [ 'MyString', ... ], # OPTIONAL
42 Principals => [ 'MyString', ... ], # OPTIONAL
43 ResourceArns => [ 'MyString', ... ], # OPTIONAL
44 Tags => [
45 {
46 Key => 'MyTagKey', # OPTIONAL
47 Value => 'MyTagValue', # OPTIONAL
48 },
49 ...
50 ], # OPTIONAL
51 );
52  
53 # Results:
54 my $ClientToken = $CreateResourceShareResponse->ClientToken;
55 my $ResourceShare = $CreateResourceShareResponse->ResourceShare;
56  
57 # Returns a L<Paws::RAM::CreateResourceShareResponse> object.
58  
59 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.
60 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ram/CreateResourceShare>
61  
62 =head1 ATTRIBUTES
63  
64  
65 =head2 AllowExternalPrincipals => Bool
66  
67 Indicates whether principals outside your AWS organization can be
68 associated with a resource share.
69  
70  
71  
72 =head2 ClientToken => Str
73  
74 A unique, case-sensitive identifier that you provide to ensure the
75 idempotency of the request.
76  
77  
78  
79 =head2 B<REQUIRED> Name => Str
80  
81 The name of the resource share.
82  
83  
84  
85 =head2 PermissionArns => ArrayRef[Str|Undef]
86  
87 The ARNs of the permissions to associate with the resource share. If
88 you do not specify an ARN for the permission, AWS RAM automatically
89 attaches the default version of the permission for each resource type.
90  
91  
92  
93 =head2 Principals => ArrayRef[Str|Undef]
94  
95 The principals to associate with the resource share. The possible
96 values are IDs of AWS accounts, the ARN of an OU or organization from
97 AWS Organizations.
98  
99  
100  
101 =head2 ResourceArns => ArrayRef[Str|Undef]
102  
103 The Amazon Resource Names (ARN) of the resources to associate with the
104 resource share.
105  
106  
107  
108 =head2 Tags => ArrayRef[L<Paws::RAM::Tag>]
109  
110 One or more tags.
111  
112  
113  
114  
115 =head1 SEE ALSO
116  
117 This class forms part of L<Paws>, documenting arguments for method CreateResourceShare in L<Paws::RAM>
118  
119 =head1 BUGS and CONTRIBUTIONS
120  
121 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
122  
123 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
124  
125 =cut
126