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 |
Deletes a member. Deleting a member removes the member and all
associated resources from the network. DeleteMember
can only be called
for a specified MemberId
if the principal performing the action is
associated with the Amazon Web Services account that owns the member. In
all other cases, the DeleteMember
action is carried out as the result
of an approved proposal to remove a member. If MemberId
is the last
member in a network specified by the last Amazon Web Services account,
the network is deleted also.
Applies only to Hyperledger Fabric.
Synopsis
- data DeleteMember = DeleteMember' {}
- newDeleteMember :: Text -> Text -> DeleteMember
- deleteMember_networkId :: Lens' DeleteMember Text
- deleteMember_memberId :: Lens' DeleteMember Text
- data DeleteMemberResponse = DeleteMemberResponse' {
- httpStatus :: Int
- newDeleteMemberResponse :: Int -> DeleteMemberResponse
- deleteMemberResponse_httpStatus :: Lens' DeleteMemberResponse Int
Creating a Request
data DeleteMember Source #
See: newDeleteMember
smart constructor.
Instances
Create a value of DeleteMember
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:
DeleteMember
, deleteMember_networkId
- The unique identifier of the network from which the member is removed.
DeleteMember
, deleteMember_memberId
- The unique identifier of the member to remove.
Request Lenses
deleteMember_networkId :: Lens' DeleteMember Text Source #
The unique identifier of the network from which the member is removed.
deleteMember_memberId :: Lens' DeleteMember Text Source #
The unique identifier of the member to remove.
Destructuring the Response
data DeleteMemberResponse Source #
See: newDeleteMemberResponse
smart constructor.
DeleteMemberResponse' | |
|
Instances
newDeleteMemberResponse Source #
Create a value of DeleteMemberResponse
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:httpStatus:DeleteMemberResponse'
, deleteMemberResponse_httpStatus
- The response's http status code.
Response Lenses
deleteMemberResponse_httpStatus :: Lens' DeleteMemberResponse Int Source #
The response's http status code.