blib/lib/Paws/ManagedBlockchain/CreateMember.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ManagedBlockchain::CreateMember;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', required => 1);
5 has InvitationId => (is => 'ro', isa => 'Str', required => 1);
6 has MemberConfiguration => (is => 'ro', isa => 'Paws::ManagedBlockchain::MemberConfiguration', required => 1);
7 has NetworkId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'networkId', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateMember');
12 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/networks/{networkId}/members');
13 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ManagedBlockchain::CreateMemberOutput');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ManagedBlockchain::CreateMember - Arguments for method CreateMember on L<Paws::ManagedBlockchain>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateMember on the
26 L<Amazon Managed Blockchain|Paws::ManagedBlockchain> service. Use the attributes of this class
27 as arguments to method CreateMember.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateMember.
30  
31 =head1 SYNOPSIS
32  
33 my $managedblockchain = Paws->service('ManagedBlockchain');
34 my $CreateMemberOutput = $managedblockchain->CreateMember(
35 ClientRequestToken => 'MyClientRequestTokenString',
36 InvitationId => 'MyResourceIdString',
37 MemberConfiguration => {
38 FrameworkConfiguration => {
39 Fabric => {
40 AdminPassword => 'MyPasswordString', # min: 8, max: 32
41 AdminUsername => 'MyUsernameString', # min: 1, max: 16
42  
43 }, # OPTIONAL
44 },
45 Name => 'MyNetworkMemberNameString', # min: 1, max: 64
46 Description => 'MyDescriptionString', # max: 128; OPTIONAL
47 KmsKeyArn => 'MyArnString', # min: 1, max: 1011; OPTIONAL
48 LogPublishingConfiguration => {
49 Fabric => {
50 CaLogs => {
51 Cloudwatch => {
52 Enabled => 1, # OPTIONAL
53 }, # OPTIONAL
54 }, # OPTIONAL
55 }, # OPTIONAL
56 }, # OPTIONAL
57 Tags => {
58 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
59 }, # max: 50; OPTIONAL
60 },
61 NetworkId => 'MyResourceIdString',
62  
63 );
64  
65 # Results:
66 my $MemberId = $CreateMemberOutput->MemberId;
67  
68 # Returns a L<Paws::ManagedBlockchain::CreateMemberOutput> object.
69  
70 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.
71 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/managedblockchain/CreateMember>
72  
73 =head1 ATTRIBUTES
74  
75  
76 =head2 B<REQUIRED> ClientRequestToken => Str
77  
78 A unique, case-sensitive identifier that you provide to ensure the
79 idempotency of the operation. An idempotent operation completes no more
80 than one time. This identifier is required only if you make a service
81 request directly using an HTTP client. It is generated automatically if
82 you use an AWS SDK or the AWS CLI.
83  
84  
85  
86 =head2 B<REQUIRED> InvitationId => Str
87  
88 The unique identifier of the invitation that is sent to the member to
89 join the network.
90  
91  
92  
93 =head2 B<REQUIRED> MemberConfiguration => L<Paws::ManagedBlockchain::MemberConfiguration>
94  
95 Member configuration parameters.
96  
97  
98  
99 =head2 B<REQUIRED> NetworkId => Str
100  
101 The unique identifier of the network in which the member is created.
102  
103  
104  
105  
106 =head1 SEE ALSO
107  
108 This class forms part of L<Paws>, documenting arguments for method CreateMember in L<Paws::ManagedBlockchain>
109  
110 =head1 BUGS and CONTRIBUTIONS
111  
112 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
113  
114 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
115  
116 =cut
117