blib/lib/Paws/DS/ShareDirectory.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::DS::ShareDirectory;
3 use Moose;
4 has DirectoryId => (is => 'ro', isa => 'Str', required => 1);
5 has ShareMethod => (is => 'ro', isa => 'Str', required => 1);
6 has ShareNotes => (is => 'ro', isa => 'Str');
7 has ShareTarget => (is => 'ro', isa => 'Paws::DS::ShareTarget', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ShareDirectory');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::DS::ShareDirectoryResult');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::DS::ShareDirectory - Arguments for method ShareDirectory on L<Paws::DS>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method ShareDirectory on the
25 L<AWS Directory Service|Paws::DS> service. Use the attributes of this class
26 as arguments to method ShareDirectory.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ShareDirectory.
29  
30 =head1 SYNOPSIS
31  
32 my $ds = Paws->service('DS');
33 my $ShareDirectoryResult = $ds->ShareDirectory(
34 DirectoryId => 'MyDirectoryId',
35 ShareMethod => 'ORGANIZATIONS',
36 ShareTarget => {
37 Id => 'MyTargetId', # min: 1, max: 64
38 Type => 'ACCOUNT', # values: ACCOUNT
39  
40 },
41 ShareNotes => 'MyNotes', # OPTIONAL
42 );
43  
44 # Results:
45 my $SharedDirectoryId = $ShareDirectoryResult->SharedDirectoryId;
46  
47 # Returns a L<Paws::DS::ShareDirectoryResult> object.
48  
49 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.
50 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ds/ShareDirectory>
51  
52 =head1 ATTRIBUTES
53  
54  
55 =head2 B<REQUIRED> DirectoryId => Str
56  
57 Identifier of the AWS Managed Microsoft AD directory that you want to
58 share with other AWS accounts.
59  
60  
61  
62 =head2 B<REQUIRED> ShareMethod => Str
63  
64 The method used when sharing a directory to determine whether the
65 directory should be shared within your AWS organization
66 (C<ORGANIZATIONS>) or with any AWS account by sending a directory
67 sharing request (C<HANDSHAKE>).
68  
69 Valid values are: C<"ORGANIZATIONS">, C<"HANDSHAKE">
70  
71 =head2 ShareNotes => Str
72  
73 A directory share request that is sent by the directory owner to the
74 directory consumer. The request includes a typed message to help the
75 directory consumer administrator determine whether to approve or reject
76 the share invitation.
77  
78  
79  
80 =head2 B<REQUIRED> ShareTarget => L<Paws::DS::ShareTarget>
81  
82 Identifier for the directory consumer account with whom the directory
83 is to be shared.
84  
85  
86  
87  
88 =head1 SEE ALSO
89  
90 This class forms part of L<Paws>, documenting arguments for method ShareDirectory in L<Paws::DS>
91  
92 =head1 BUGS and CONTRIBUTIONS
93  
94 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
95  
96 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
97  
98 =cut
99