Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Sends a response to the originator of a handshake agreeing to the action proposed by the handshake request.
This operation can be called only by the following principals when they also have the relevant IAM permissions:
- Invitation to join or Approve all features request handshakes: only a principal from the member account.
The user who calls the API for an invitation to join must have the organizations:AcceptHandshake
permission. If you enabled all features in the organization, then the user must also have the iam:CreateServiceLinkedRole
permission so that Organizations can create the required service-linked role named OrgsServiceLinkedRoleName . For more information, see AWS Organizations and Service-Linked Roles in the AWS Organizations User Guide .
- Enable all features final confirmation handshake: only a principal from the master account.
For more information about invitations, see Inviting an AWS Account to Join Your Organization in the AWS Organizations User Guide . For more information about requests to enable all features in the organization, see Enabling All Features in Your Organization in the AWS Organizations User Guide .
After you accept a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.
- acceptHandshake :: Text -> AcceptHandshake
- data AcceptHandshake
- ahHandshakeId :: Lens' AcceptHandshake Text
- acceptHandshakeResponse :: Int -> AcceptHandshakeResponse
- data AcceptHandshakeResponse
- ahrsHandshake :: Lens' AcceptHandshakeResponse (Maybe Handshake)
- ahrsResponseStatus :: Lens' AcceptHandshakeResponse Int
Creating a Request
Creates a value of AcceptHandshake
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ahHandshakeId
- The unique identifier (ID) of the handshake that you want to accept. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.
data AcceptHandshake Source #
See: acceptHandshake
smart constructor.
Request Lenses
ahHandshakeId :: Lens' AcceptHandshake Text Source #
The unique identifier (ID) of the handshake that you want to accept. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.
Destructuring the Response
acceptHandshakeResponse Source #
Creates a value of AcceptHandshakeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ahrsHandshake
- A structure that contains details about the accepted handshake.ahrsResponseStatus
- -- | The response status code.
data AcceptHandshakeResponse Source #
See: acceptHandshakeResponse
smart constructor.
Response Lenses
ahrsHandshake :: Lens' AcceptHandshakeResponse (Maybe Handshake) Source #
A structure that contains details about the accepted handshake.
ahrsResponseStatus :: Lens' AcceptHandshakeResponse Int Source #
- - | The response status code.