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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RAM::AssociateResourceSharePermission;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken');
5 has PermissionArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'permissionArn', required => 1);
6 has PermissionVersion => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'permissionVersion');
7 has Replace => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'replace');
8 has ResourceShareArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resourceShareArn', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'AssociateResourceSharePermission');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/associateresourcesharepermission');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RAM::AssociateResourceSharePermissionResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::RAM::AssociateResourceSharePermission - Arguments for method AssociateResourceSharePermission on L<Paws::RAM>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method AssociateResourceSharePermission on the
27 L<AWS Resource Access Manager|Paws::RAM> service. Use the attributes of this class
28 as arguments to method AssociateResourceSharePermission.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AssociateResourceSharePermission.
31  
32 =head1 SYNOPSIS
33  
34 my $ram = Paws->service('RAM');
35 my $AssociateResourceSharePermissionResponse =
36 $ram->AssociateResourceSharePermission(
37 PermissionArn => 'MyString',
38 ResourceShareArn => 'MyString',
39 ClientToken => 'MyString', # OPTIONAL
40 PermissionVersion => 1, # OPTIONAL
41 Replace => 1, # OPTIONAL
42 );
43  
44 # Results:
45 my $ClientToken = $AssociateResourceSharePermissionResponse->ClientToken;
46 my $ReturnValue = $AssociateResourceSharePermissionResponse->ReturnValue;
47  
48 # Returns a L<Paws::RAM::AssociateResourceSharePermissionResponse> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ram/AssociateResourceSharePermission>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 ClientToken => Str
57  
58 A unique, case-sensitive identifier that you provide to ensure the
59 idempotency of the request.
60  
61  
62  
63 =head2 B<REQUIRED> PermissionArn => Str
64  
65 The Amazon Resource Name (ARN) of the AWS RAM permissions to associate
66 with the resource share.
67  
68  
69  
70 =head2 PermissionVersion => Int
71  
72 The version of the AWS RAM permissions to associate with the resource
73 share.
74  
75  
76  
77 =head2 Replace => Bool
78  
79 Indicates whether the permission should replace the permissions that
80 are currently associated with the resource share. Use C<true> to
81 replace the current permissions. Use C<false> to add the permission to
82 the current permission.
83  
84  
85  
86 =head2 B<REQUIRED> ResourceShareArn => Str
87  
88 The Amazon Resource Name (ARN) of the resource share.
89  
90  
91  
92  
93 =head1 SEE ALSO
94  
95 This class forms part of L<Paws>, documenting arguments for method AssociateResourceSharePermission in L<Paws::RAM>
96  
97 =head1 BUGS and CONTRIBUTIONS
98  
99 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
100  
101 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
102  
103 =cut
104