| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ManagedBlockChain.CreateMember
Description
Creates a member within a Managed Blockchain network.
Applies only to Hyperledger Fabric.
Synopsis
- data CreateMember = CreateMember' {}
- newCreateMember :: Text -> Text -> Text -> MemberConfiguration -> CreateMember
- createMember_clientRequestToken :: Lens' CreateMember Text
- createMember_invitationId :: Lens' CreateMember Text
- createMember_networkId :: Lens' CreateMember Text
- createMember_memberConfiguration :: Lens' CreateMember MemberConfiguration
- data CreateMemberResponse = CreateMemberResponse' {
- memberId :: Maybe Text
- httpStatus :: Int
- newCreateMemberResponse :: Int -> CreateMemberResponse
- createMemberResponse_memberId :: Lens' CreateMemberResponse (Maybe Text)
- createMemberResponse_httpStatus :: Lens' CreateMemberResponse Int
Creating a Request
data CreateMember Source #
See: newCreateMember smart constructor.
Constructors
| CreateMember' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> MemberConfiguration | |
| -> CreateMember |
Create a value of CreateMember with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientRequestToken:CreateMember', createMember_clientRequestToken - A unique, case-sensitive identifier that you provide to ensure the
idempotency of the operation. An idempotent operation completes no more
than one time. This identifier is required only if you make a service
request directly using an HTTP client. It is generated automatically if
you use an Amazon Web Services SDK or the CLI.
CreateMember, createMember_invitationId - The unique identifier of the invitation that is sent to the member to
join the network.
CreateMember, createMember_networkId - The unique identifier of the network in which the member is created.
$sel:memberConfiguration:CreateMember', createMember_memberConfiguration - Member configuration parameters.
Request Lenses
createMember_clientRequestToken :: Lens' CreateMember Text Source #
A unique, case-sensitive identifier that you provide to ensure the idempotency of the operation. An idempotent operation completes no more than one time. This identifier is required only if you make a service request directly using an HTTP client. It is generated automatically if you use an Amazon Web Services SDK or the CLI.
createMember_invitationId :: Lens' CreateMember Text Source #
The unique identifier of the invitation that is sent to the member to join the network.
createMember_networkId :: Lens' CreateMember Text Source #
The unique identifier of the network in which the member is created.
createMember_memberConfiguration :: Lens' CreateMember MemberConfiguration Source #
Member configuration parameters.
Destructuring the Response
data CreateMemberResponse Source #
See: newCreateMemberResponse smart constructor.
Constructors
| CreateMemberResponse' | |
Fields
| |
Instances
newCreateMemberResponse Source #
Arguments
| :: Int | |
| -> CreateMemberResponse |
Create a value of CreateMemberResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateMemberResponse, createMemberResponse_memberId - The unique identifier of the member.
$sel:httpStatus:CreateMemberResponse', createMemberResponse_httpStatus - The response's http status code.
Response Lenses
createMemberResponse_memberId :: Lens' CreateMemberResponse (Maybe Text) Source #
The unique identifier of the member.
createMemberResponse_httpStatus :: Lens' CreateMemberResponse Int Source #
The response's http status code.