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 |
Creates member accounts of the current AWS account by specifying a list of AWS account IDs. The current AWS account can then invite these members to manage GuardDuty in their accounts.
- createMembers :: Text -> CreateMembers
- data CreateMembers
- cmAccountDetails :: Lens' CreateMembers [AccountDetail]
- cmDetectorId :: Lens' CreateMembers Text
- createMembersResponse :: Int -> CreateMembersResponse
- data CreateMembersResponse
- cmrsUnprocessedAccounts :: Lens' CreateMembersResponse [UnprocessedAccount]
- cmrsResponseStatus :: Lens' CreateMembersResponse Int
Creating a Request
Creates a value of CreateMembers
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmAccountDetails
- A list of account ID and email address pairs of the accounts that you want to associate with the master GuardDuty account.cmDetectorId
- The unique ID of the detector of the GuardDuty account with which you want to associate member accounts.
data CreateMembers Source #
CreateMembers request body.
See: createMembers
smart constructor.
Request Lenses
cmAccountDetails :: Lens' CreateMembers [AccountDetail] Source #
A list of account ID and email address pairs of the accounts that you want to associate with the master GuardDuty account.
cmDetectorId :: Lens' CreateMembers Text Source #
The unique ID of the detector of the GuardDuty account with which you want to associate member accounts.
Destructuring the Response
createMembersResponse Source #
Creates a value of CreateMembersResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cmrsUnprocessedAccounts
- A list of objects containing the unprocessed account and a result string explaining why it was unprocessed.cmrsResponseStatus
- -- | The response status code.
data CreateMembersResponse Source #
See: createMembersResponse
smart constructor.
Response Lenses
cmrsUnprocessedAccounts :: Lens' CreateMembersResponse [UnprocessedAccount] Source #
A list of objects containing the unprocessed account and a result string explaining why it was unprocessed.
cmrsResponseStatus :: Lens' CreateMembersResponse Int Source #
- - | The response status code.