| 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 |
Amazonka.MacieV2.AcceptInvitation
Description
Accepts an Amazon Macie membership invitation that was received from a specific account.
Synopsis
- data AcceptInvitation = AcceptInvitation' {}
- newAcceptInvitation :: Text -> AcceptInvitation
- acceptInvitation_administratorAccountId :: Lens' AcceptInvitation (Maybe Text)
- acceptInvitation_masterAccount :: Lens' AcceptInvitation (Maybe Text)
- acceptInvitation_invitationId :: Lens' AcceptInvitation Text
- data AcceptInvitationResponse = AcceptInvitationResponse' {
- httpStatus :: Int
- newAcceptInvitationResponse :: Int -> AcceptInvitationResponse
- acceptInvitationResponse_httpStatus :: Lens' AcceptInvitationResponse Int
Creating a Request
data AcceptInvitation Source #
See: newAcceptInvitation smart constructor.
Constructors
| AcceptInvitation' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> AcceptInvitation |
Create a value of AcceptInvitation 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:administratorAccountId:AcceptInvitation', acceptInvitation_administratorAccountId - The Amazon Web Services account ID for the account that sent the
invitation.
$sel:masterAccount:AcceptInvitation', acceptInvitation_masterAccount - (Deprecated) The Amazon Web Services account ID for the account that
sent the invitation. This property has been replaced by the
administratorAccountId property and is retained only for backward
compatibility.
$sel:invitationId:AcceptInvitation', acceptInvitation_invitationId - The unique identifier for the invitation to accept.
Request Lenses
acceptInvitation_administratorAccountId :: Lens' AcceptInvitation (Maybe Text) Source #
The Amazon Web Services account ID for the account that sent the invitation.
acceptInvitation_masterAccount :: Lens' AcceptInvitation (Maybe Text) Source #
(Deprecated) The Amazon Web Services account ID for the account that sent the invitation. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.
acceptInvitation_invitationId :: Lens' AcceptInvitation Text Source #
The unique identifier for the invitation to accept.
Destructuring the Response
data AcceptInvitationResponse Source #
See: newAcceptInvitationResponse smart constructor.
Constructors
| AcceptInvitationResponse' | |
Fields
| |
Instances
newAcceptInvitationResponse Source #
Create a value of AcceptInvitationResponse 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:AcceptInvitationResponse', acceptInvitationResponse_httpStatus - The response's http status code.
Response Lenses
acceptInvitationResponse_httpStatus :: Lens' AcceptInvitationResponse Int Source #
The response's http status code.