blib/lib/Paws/Detective/CreateMembers.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Detective::CreateMembers;
3 use Moose;
4 has Accounts => (is => 'ro', isa => 'ArrayRef[Paws::Detective::Account]', required => 1);
5 has DisableEmailNotification => (is => 'ro', isa => 'Bool');
6 has GraphArn => (is => 'ro', isa => 'Str', required => 1);
7 has Message => (is => 'ro', isa => 'Str');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateMembers');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/graph/members');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Detective::CreateMembersResponse');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::Detective::CreateMembers - Arguments for method CreateMembers on L<Paws::Detective>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateMembers on the
26 L<Amazon Detective|Paws::Detective> service. Use the attributes of this class
27 as arguments to method CreateMembers.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateMembers.
30  
31 =head1 SYNOPSIS
32  
33 my $api.detective = Paws->service('Detective');
34 my $CreateMembersResponse = $api . detective->CreateMembers(
35 Accounts => [
36 {
37 AccountId => 'MyAccountId', # min: 12, max: 12
38 EmailAddress => 'MyEmailAddress', # min: 1, max: 64
39  
40 },
41 ...
42 ],
43 GraphArn => 'MyGraphArn',
44 DisableEmailNotification => 1, # OPTIONAL
45 Message => 'MyEmailMessage', # OPTIONAL
46 );
47  
48 # Results:
49 my $Members = $CreateMembersResponse->Members;
50 my $UnprocessedAccounts = $CreateMembersResponse->UnprocessedAccounts;
51  
52 # Returns a L<Paws::Detective::CreateMembersResponse> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.detective/CreateMembers>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 B<REQUIRED> Accounts => ArrayRef[L<Paws::Detective::Account>]
61  
62 The list of AWS accounts to invite to become member accounts in the
63 behavior graph. You can invite up to 50 accounts at a time. For each
64 invited account, the account list contains the account identifier and
65 the AWS account root user email address.
66  
67  
68  
69 =head2 DisableEmailNotification => Bool
70  
71 if set to C<true>, then the member accounts do not receive email
72 notifications. By default, this is set to C<false>, and the member
73 accounts receive email notifications.
74  
75  
76  
77 =head2 B<REQUIRED> GraphArn => Str
78  
79 The ARN of the behavior graph to invite the member accounts to
80 contribute their data to.
81  
82  
83  
84 =head2 Message => Str
85  
86 Customized message text to include in the invitation email message to
87 the invited member accounts.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method CreateMembers in L<Paws::Detective>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103