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 an invitation to another account to join your organization as a member account. Organizations sends email on your behalf to the email address that is associated with the other account's owner. The invitation is implemented as a Handshake
whose details are in the response.
Important: You can invite AWS accounts only from the same seller as the master account. For example, if your organization's master account was created by Amazon Internet Services Pvt. Ltd (AISPL), an AWS seller in India, then you can only invite other AISPL accounts to your organization. You can't combine accounts from AISPL and AWS, or any other AWS seller. For more information, see Consolidated Billing in India .
This operation can be called only from the organization's master account.
Important: If you get an exception that indicates that you exceeded your account limits for the organization or that you can"t add an account because your organization is still initializing, please contact AWS Customer Support .
- inviteAccountToOrganization :: HandshakeParty -> InviteAccountToOrganization
- data InviteAccountToOrganization
- iatoNotes :: Lens' InviteAccountToOrganization (Maybe Text)
- iatoTarget :: Lens' InviteAccountToOrganization HandshakeParty
- inviteAccountToOrganizationResponse :: Int -> InviteAccountToOrganizationResponse
- data InviteAccountToOrganizationResponse
- iatorsHandshake :: Lens' InviteAccountToOrganizationResponse (Maybe Handshake)
- iatorsResponseStatus :: Lens' InviteAccountToOrganizationResponse Int
Creating a Request
inviteAccountToOrganization Source #
Creates a value of InviteAccountToOrganization
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
iatoNotes
- Additional information that you want to include in the generated email to the recipient account owner.iatoTarget
- The identifier (ID) of the AWS account that you want to invite to join your organization. This is a JSON object that contains the following elements:{ Type: ACCOUNT, Id: "id number__ /" }
If you use the AWS CLI, you can submit this as a single string, similar to the following example:--target Id=123456789012,Type=ACCOUNT
If you specifyType: ACCOUNT
, then you must provide the AWS account ID number as theId
. If you specifyType: EMAIL
, then you must specify the email address that is associated with the account.--target Id=bill
example.com,Type=EMAIL@
data InviteAccountToOrganization Source #
See: inviteAccountToOrganization
smart constructor.
Request Lenses
iatoNotes :: Lens' InviteAccountToOrganization (Maybe Text) Source #
Additional information that you want to include in the generated email to the recipient account owner.
iatoTarget :: Lens' InviteAccountToOrganization HandshakeParty Source #
The identifier (ID) of the AWS account that you want to invite to join your organization. This is a JSON object that contains the following elements: { Type: ACCOUNT, Id: "id number__ /" }
If you use the AWS CLI, you can submit this as a single string, similar to the following example: --target Id=123456789012,Type=ACCOUNT
If you specify Type: ACCOUNT
, then you must provide the AWS account ID number as the Id
. If you specify Type: EMAIL
, then you must specify the email address that is associated with the account. --target Id=bill
example.com,Type=EMAIL@
Destructuring the Response
inviteAccountToOrganizationResponse Source #
Creates a value of InviteAccountToOrganizationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
iatorsHandshake
- A structure that contains details about the handshake that is created to support this invitation request.iatorsResponseStatus
- -- | The response status code.
data InviteAccountToOrganizationResponse Source #
See: inviteAccountToOrganizationResponse
smart constructor.
Response Lenses
iatorsHandshake :: Lens' InviteAccountToOrganizationResponse (Maybe Handshake) Source #
A structure that contains details about the handshake that is created to support this invitation request.
iatorsResponseStatus :: Lens' InviteAccountToOrganizationResponse Int Source #
- - | The response status code.