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

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ManagedBlockchain::CreateNode;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', required => 1);
5 has MemberId => (is => 'ro', isa => 'Str');
6 has NetworkId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'networkId', required => 1);
7 has NodeConfiguration => (is => 'ro', isa => 'Paws::ManagedBlockchain::NodeConfiguration', required => 1);
8 has Tags => (is => 'ro', isa => 'Paws::ManagedBlockchain::InputTagMap');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNode');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/networks/{networkId}/nodes');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ManagedBlockchain::CreateNodeOutput');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::ManagedBlockchain::CreateNode - Arguments for method CreateNode on L<Paws::ManagedBlockchain>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateNode on the
27 L<Amazon Managed Blockchain|Paws::ManagedBlockchain> service. Use the attributes of this class
28 as arguments to method CreateNode.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNode.
31  
32 =head1 SYNOPSIS
33  
34 my $managedblockchain = Paws->service('ManagedBlockchain');
35 my $CreateNodeOutput = $managedblockchain->CreateNode(
36 ClientRequestToken => 'MyClientRequestTokenString',
37 NetworkId => 'MyResourceIdString',
38 NodeConfiguration => {
39 InstanceType => 'MyInstanceTypeString',
40 AvailabilityZone => 'MyAvailabilityZoneString', # OPTIONAL
41 LogPublishingConfiguration => {
42 Fabric => {
43 ChaincodeLogs => {
44 Cloudwatch => {
45 Enabled => 1, # OPTIONAL
46 }, # OPTIONAL
47 }, # OPTIONAL
48 PeerLogs => {
49 Cloudwatch => {
50 Enabled => 1, # OPTIONAL
51 }, # OPTIONAL
52 }, # OPTIONAL
53 }, # OPTIONAL
54 }, # OPTIONAL
55 StateDB => 'LevelDB', # values: LevelDB, CouchDB; OPTIONAL
56 },
57 MemberId => 'MyResourceIdString', # OPTIONAL
58 Tags => {
59 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
60 }, # OPTIONAL
61 );
62  
63 # Results:
64 my $NodeId = $CreateNodeOutput->NodeId;
65  
66 # Returns a L<Paws::ManagedBlockchain::CreateNodeOutput> object.
67  
68 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.
69 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/managedblockchain/CreateNode>
70  
71 =head1 ATTRIBUTES
72  
73  
74 =head2 B<REQUIRED> ClientRequestToken => Str
75  
76 A unique, case-sensitive identifier that you provide to ensure the
77 idempotency of the operation. An idempotent operation completes no more
78 than one time. This identifier is required only if you make a service
79 request directly using an HTTP client. It is generated automatically if
80 you use an AWS SDK or the AWS CLI.
81  
82  
83  
84 =head2 MemberId => Str
85  
86 The unique identifier of the member that owns this node.
87  
88 Applies only to Hyperledger Fabric.
89  
90  
91  
92 =head2 B<REQUIRED> NetworkId => Str
93  
94 The unique identifier of the network for the node.
95  
96 Ethereum public networks have the following C<NetworkId>s:
97  
98 =over
99  
100 =item *
101  
102 C<n-ethereum-mainnet>
103  
104 =item *
105  
106 C<n-ethereum-rinkeby>
107  
108 =item *
109  
110 C<n-ethereum-ropsten>
111  
112 =back
113  
114  
115  
116  
117 =head2 B<REQUIRED> NodeConfiguration => L<Paws::ManagedBlockchain::NodeConfiguration>
118  
119 The properties of a node configuration.
120  
121  
122  
123 =head2 Tags => L<Paws::ManagedBlockchain::InputTagMap>
124  
125 Tags to assign to the node. Each tag consists of a key and optional
126 value.
127  
128 When specifying tags during creation, you can specify multiple
129 key-value pairs in a single request, with an overall maximum of 50 tags
130 added to each resource.
131  
132 For more information about tags, see Tagging Resources
133 (https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html)
134 in the I<Amazon Managed Blockchain Ethereum Developer Guide>, or
135 Tagging Resources
136 (https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html)
137 in the I<Amazon Managed Blockchain Hyperledger Fabric Developer Guide>.
138  
139  
140  
141  
142 =head1 SEE ALSO
143  
144 This class forms part of L<Paws>, documenting arguments for method CreateNode in L<Paws::ManagedBlockchain>
145  
146 =head1 BUGS and CONTRIBUTIONS
147  
148 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
149  
150 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
151  
152 =cut
153