Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
CreateMember' | |
|
Instances
:: 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 AWS SDK or the AWS CLI.
$sel:invitationId:CreateMember'
, createMember_invitationId
- The unique identifier of the invitation that is sent to the member to
join the network.
$sel:networkId: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 AWS SDK or the AWS 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.
CreateMemberResponse' | |
|
Instances
newCreateMemberResponse Source #
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:
$sel:memberId: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.