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

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::RAM::GetResourceShares;
3 use Moose;
4 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults');
5 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name');
6 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken');
7 has PermissionArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'permissionArn');
8 has ResourceOwner => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resourceOwner', required => 1);
9 has ResourceShareArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'resourceShareArns');
10 has ResourceShareStatus => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resourceShareStatus');
11 has TagFilters => (is => 'ro', isa => 'ArrayRef[Paws::RAM::TagFilter]', traits => ['NameInRequest'], request_name => 'tagFilters');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetResourceShares');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/getresourceshares');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RAM::GetResourceSharesResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::RAM::GetResourceShares - Arguments for method GetResourceShares on L<Paws::RAM>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method GetResourceShares on the
30 L<AWS Resource Access Manager|Paws::RAM> service. Use the attributes of this class
31 as arguments to method GetResourceShares.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetResourceShares.
34  
35 =head1 SYNOPSIS
36  
37 my $ram = Paws->service('RAM');
38 my $GetResourceSharesResponse = $ram->GetResourceShares(
39 ResourceOwner => 'SELF',
40 MaxResults => 1, # OPTIONAL
41 Name => 'MyString', # OPTIONAL
42 NextToken => 'MyString', # OPTIONAL
43 PermissionArn => 'MyString', # OPTIONAL
44 ResourceShareArns => [ 'MyString', ... ], # OPTIONAL
45 ResourceShareStatus => 'PENDING', # OPTIONAL
46 TagFilters => [
47 {
48 TagKey => 'MyTagKey', # OPTIONAL
49 TagValues => [ 'MyTagValue', ... ], # OPTIONAL
50 },
51 ...
52 ], # OPTIONAL
53 );
54  
55 # Results:
56 my $NextToken = $GetResourceSharesResponse->NextToken;
57 my $ResourceShares = $GetResourceSharesResponse->ResourceShares;
58  
59 # Returns a L<Paws::RAM::GetResourceSharesResponse> 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/ram/GetResourceShares>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 MaxResults => Int
68  
69 The maximum number of results to return with a single call. To retrieve
70 the remaining results, make another call with the returned C<nextToken>
71 value.
72  
73  
74  
75 =head2 Name => Str
76  
77 The name of the resource share.
78  
79  
80  
81 =head2 NextToken => Str
82  
83 The token for the next page of results.
84  
85  
86  
87 =head2 PermissionArn => Str
88  
89 The Amazon Resource Name (ARN) of the AWS RAM permission that is
90 associated with the resource share.
91  
92  
93  
94 =head2 B<REQUIRED> ResourceOwner => Str
95  
96 The type of owner.
97  
98 Valid values are: C<"SELF">, C<"OTHER-ACCOUNTS">
99  
100 =head2 ResourceShareArns => ArrayRef[Str|Undef]
101  
102 The ARNs of the resource shares.
103  
104  
105  
106 =head2 ResourceShareStatus => Str
107  
108 The status of the resource share.
109  
110 Valid values are: C<"PENDING">, C<"ACTIVE">, C<"FAILED">, C<"DELETING">, C<"DELETED">
111  
112 =head2 TagFilters => ArrayRef[L<Paws::RAM::TagFilter>]
113  
114 One or more tag filters.
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method GetResourceShares in L<Paws::RAM>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130