« blib/lib/Paws/ManagedBlockchain/CreateMemberOutput.pm
↑ Summary
blib/lib/Paws/ManagedBlockchain/CreateNetworkOutput.pm »
| 1 | |||
| 2 | package Paws::ManagedBlockchain::CreateNetwork; | ||
| 3 | use Moose; | ||
| 4 | has ClientRequestToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has Description => (is => 'ro', isa => 'Str'); | ||
| 6 | has Framework => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has FrameworkConfiguration => (is => 'ro', isa => 'Paws::ManagedBlockchain::NetworkFrameworkConfiguration'); | ||
| 8 | has FrameworkVersion => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has MemberConfiguration => (is => 'ro', isa => 'Paws::ManagedBlockchain::MemberConfiguration', required => 1); | ||
| 10 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 11 | has Tags => (is => 'ro', isa => 'Paws::ManagedBlockchain::InputTagMap'); | ||
| 12 | has VotingPolicy => (is => 'ro', isa => 'Paws::ManagedBlockchain::VotingPolicy', required => 1); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNetwork'); | ||
| 17 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/networks'); | ||
| 18 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 19 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ManagedBlockchain::CreateNetworkOutput'); | ||
| 20 | 1; | ||
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::ManagedBlockchain::CreateNetwork - Arguments for method CreateNetwork on L<Paws::ManagedBlockchain> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method CreateNetwork on the | ||
| 31 | L<Amazon Managed Blockchain|Paws::ManagedBlockchain> service. Use the attributes of this class | ||
| 32 | as arguments to method CreateNetwork. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNetwork. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $managedblockchain = Paws->service('ManagedBlockchain'); | ||
| 39 | my $CreateNetworkOutput = $managedblockchain->CreateNetwork( | ||
| 40 | ClientRequestToken => 'MyClientRequestTokenString', | ||
| 41 | Framework => 'HYPERLEDGER_FABRIC', | ||
| 42 | FrameworkVersion => 'MyFrameworkVersionString', | ||
| 43 | MemberConfiguration => { | ||
| 44 | FrameworkConfiguration => { | ||
| 45 | Fabric => { | ||
| 46 | AdminPassword => 'MyPasswordString', # min: 8, max: 32 | ||
| 47 | AdminUsername => 'MyUsernameString', # min: 1, max: 16 | ||
| 48 | |||
| 49 | }, # OPTIONAL | ||
| 50 | }, | ||
| 51 | Name => 'MyNetworkMemberNameString', # min: 1, max: 64 | ||
| 52 | Description => 'MyDescriptionString', # max: 128; OPTIONAL | ||
| 53 | KmsKeyArn => 'MyArnString', # min: 1, max: 1011; OPTIONAL | ||
| 54 | LogPublishingConfiguration => { | ||
| 55 | Fabric => { | ||
| 56 | CaLogs => { | ||
| 57 | Cloudwatch => { | ||
| 58 | Enabled => 1, # OPTIONAL | ||
| 59 | }, # OPTIONAL | ||
| 60 | }, # OPTIONAL | ||
| 61 | }, # OPTIONAL | ||
| 62 | }, # OPTIONAL | ||
| 63 | Tags => { | ||
| 64 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 65 | }, # max: 50; OPTIONAL | ||
| 66 | }, | ||
| 67 | Name => 'MyNameString', | ||
| 68 | VotingPolicy => { | ||
| 69 | ApprovalThresholdPolicy => { | ||
| 70 | ProposalDurationInHours => 1, # min: 1, max: 168; OPTIONAL | ||
| 71 | ThresholdComparator => 'GREATER_THAN' | ||
| 72 | , # values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO; OPTIONAL | ||
| 73 | ThresholdPercentage => 1, # max: 100; OPTIONAL | ||
| 74 | }, # OPTIONAL | ||
| 75 | }, | ||
| 76 | Description => 'MyDescriptionString', # OPTIONAL | ||
| 77 | FrameworkConfiguration => { | ||
| 78 | Fabric => { | ||
| 79 | Edition => 'STARTER', # values: STARTER, STANDARD | ||
| 80 | |||
| 81 | }, # OPTIONAL | ||
| 82 | }, # OPTIONAL | ||
| 83 | Tags => { | ||
| 84 | 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256 | ||
| 85 | }, # OPTIONAL | ||
| 86 | ); | ||
| 87 | |||
| 88 | # Results: | ||
| 89 | my $MemberId = $CreateNetworkOutput->MemberId; | ||
| 90 | my $NetworkId = $CreateNetworkOutput->NetworkId; | ||
| 91 | |||
| 92 | # Returns a L<Paws::ManagedBlockchain::CreateNetworkOutput> object. | ||
| 93 | |||
| 94 | 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. | ||
| 95 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/managedblockchain/CreateNetwork> | ||
| 96 | |||
| 97 | =head1 ATTRIBUTES | ||
| 98 | |||
| 99 | |||
| 100 | =head2 B<REQUIRED> ClientRequestToken => Str | ||
| 101 | |||
| 102 | A unique, case-sensitive identifier that you provide to ensure the | ||
| 103 | idempotency of the operation. An idempotent operation completes no more | ||
| 104 | than one time. This identifier is required only if you make a service | ||
| 105 | request directly using an HTTP client. It is generated automatically if | ||
| 106 | you use an AWS SDK or the AWS CLI. | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | =head2 Description => Str | ||
| 111 | |||
| 112 | An optional description for the network. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 B<REQUIRED> Framework => Str | ||
| 117 | |||
| 118 | The blockchain framework that the network uses. | ||
| 119 | |||
| 120 | Valid values are: C<"HYPERLEDGER_FABRIC">, C<"ETHEREUM"> | ||
| 121 | |||
| 122 | =head2 FrameworkConfiguration => L<Paws::ManagedBlockchain::NetworkFrameworkConfiguration> | ||
| 123 | |||
| 124 | Configuration properties of the blockchain framework relevant to the | ||
| 125 | network configuration. | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 B<REQUIRED> FrameworkVersion => Str | ||
| 130 | |||
| 131 | The version of the blockchain framework that the network uses. | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head2 B<REQUIRED> MemberConfiguration => L<Paws::ManagedBlockchain::MemberConfiguration> | ||
| 136 | |||
| 137 | Configuration properties for the first member within the network. | ||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head2 B<REQUIRED> Name => Str | ||
| 142 | |||
| 143 | The name of the network. | ||
| 144 | |||
| 145 | |||
| 146 | |||
| 147 | =head2 Tags => L<Paws::ManagedBlockchain::InputTagMap> | ||
| 148 | |||
| 149 | Tags to assign to the network. Each tag consists of a key and optional | ||
| 150 | value. | ||
| 151 | |||
| 152 | When specifying tags during creation, you can specify multiple | ||
| 153 | key-value pairs in a single request, with an overall maximum of 50 tags | ||
| 154 | added to each resource. | ||
| 155 | |||
| 156 | For more information about tags, see Tagging Resources | ||
| 157 | (https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html) | ||
| 158 | in the I<Amazon Managed Blockchain Ethereum Developer Guide>, or | ||
| 159 | Tagging Resources | ||
| 160 | (https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html) | ||
| 161 | in the I<Amazon Managed Blockchain Hyperledger Fabric Developer Guide>. | ||
| 162 | |||
| 163 | |||
| 164 | |||
| 165 | =head2 B<REQUIRED> VotingPolicy => L<Paws::ManagedBlockchain::VotingPolicy> | ||
| 166 | |||
| 167 | The voting rules used by the network to determine if a proposal is | ||
| 168 | approved. | ||
| 169 | |||
| 170 | |||
| 171 | |||
| 172 | |||
| 173 | =head1 SEE ALSO | ||
| 174 | |||
| 175 | This class forms part of L<Paws>, documenting arguments for method CreateNetwork in L<Paws::ManagedBlockchain> | ||
| 176 | |||
| 177 | =head1 BUGS and CONTRIBUTIONS | ||
| 178 | |||
| 179 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 180 | |||
| 181 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 182 | |||
| 183 | =cut | ||
| 184 |