blib/lib/Paws/RAM/GetResourceShareAssociations.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::GetResourceShareAssociations;
3 use Moose;
4 has AssociationStatus => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'associationStatus');
5 has AssociationType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'associationType', required => 1);
6 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults');
7 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken');
8 has Principal => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'principal');
9 has ResourceArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'resourceArn');
10 has ResourceShareArns => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'resourceShareArns');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetResourceShareAssociations');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/getresourceshareassociations');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::RAM::GetResourceShareAssociationsResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::RAM::GetResourceShareAssociations - Arguments for method GetResourceShareAssociations on L<Paws::RAM>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method GetResourceShareAssociations on the
29 L<AWS Resource Access Manager|Paws::RAM> service. Use the attributes of this class
30 as arguments to method GetResourceShareAssociations.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetResourceShareAssociations.
33  
34 =head1 SYNOPSIS
35  
36 my $ram = Paws->service('RAM');
37 my $GetResourceShareAssociationsResponse =
38 $ram->GetResourceShareAssociations(
39 AssociationType => 'PRINCIPAL',
40 AssociationStatus => 'ASSOCIATING', # OPTIONAL
41 MaxResults => 1, # OPTIONAL
42 NextToken => 'MyString', # OPTIONAL
43 Principal => 'MyString', # OPTIONAL
44 ResourceArn => 'MyString', # OPTIONAL
45 ResourceShareArns => [ 'MyString', ... ], # OPTIONAL
46 );
47  
48 # Results:
49 my $NextToken = $GetResourceShareAssociationsResponse->NextToken;
50 my $ResourceShareAssociations =
51 $GetResourceShareAssociationsResponse->ResourceShareAssociations;
52  
53 # Returns a L<Paws::RAM::GetResourceShareAssociationsResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ram/GetResourceShareAssociations>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 AssociationStatus => Str
62  
63 The association status.
64  
65 Valid values are: C<"ASSOCIATING">, C<"ASSOCIATED">, C<"FAILED">, C<"DISASSOCIATING">, C<"DISASSOCIATED">
66  
67 =head2 B<REQUIRED> AssociationType => Str
68  
69 The association type. Specify C<PRINCIPAL> to list the principals that
70 are associated with the specified resource share. Specify C<RESOURCE>
71 to list the resources that are associated with the specified resource
72 share.
73  
74 Valid values are: C<"PRINCIPAL">, C<"RESOURCE">
75  
76 =head2 MaxResults => Int
77  
78 The maximum number of results to return with a single call. To retrieve
79 the remaining results, make another call with the returned C<nextToken>
80 value.
81  
82  
83  
84 =head2 NextToken => Str
85  
86 The token for the next page of results.
87  
88  
89  
90 =head2 Principal => Str
91  
92 The principal. You cannot specify this parameter if the association
93 type is C<RESOURCE>.
94  
95  
96  
97 =head2 ResourceArn => Str
98  
99 The Amazon Resource Name (ARN) of the resource. You cannot specify this
100 parameter if the association type is C<PRINCIPAL>.
101  
102  
103  
104 =head2 ResourceShareArns => ArrayRef[Str|Undef]
105  
106 The Amazon Resource Names (ARN) of the resource shares.
107  
108  
109  
110  
111 =head1 SEE ALSO
112  
113 This class forms part of L<Paws>, documenting arguments for method GetResourceShareAssociations in L<Paws::RAM>
114  
115 =head1 BUGS and CONTRIBUTIONS
116  
117 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
118  
119 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
120  
121 =cut
122