| 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 |
Amazonka.MacieV2.CreateMember
Description
Associates an account with an Amazon Macie administrator account.
Synopsis
- data CreateMember = CreateMember' {}
- newCreateMember :: AccountDetail -> CreateMember
- createMember_tags :: Lens' CreateMember (Maybe (HashMap Text Text))
- createMember_account :: Lens' CreateMember AccountDetail
- data CreateMemberResponse = CreateMemberResponse' {
- arn :: Maybe Text
- httpStatus :: Int
- newCreateMemberResponse :: Int -> CreateMemberResponse
- createMemberResponse_arn :: Lens' CreateMemberResponse (Maybe Text)
- createMemberResponse_httpStatus :: Lens' CreateMemberResponse Int
Creating a Request
data CreateMember Source #
See: newCreateMember smart constructor.
Constructors
| CreateMember' | |
Fields
| |
Instances
Arguments
| :: AccountDetail | |
| -> CreateMember |
Create a value of CreateMember 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:
CreateMember, createMember_tags - A map of key-value pairs that specifies the tags to associate with the
account in Amazon Macie.
An account can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
$sel:account:CreateMember', createMember_account - The details of the account to associate with the administrator account.
Request Lenses
createMember_tags :: Lens' CreateMember (Maybe (HashMap Text Text)) Source #
A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie.
An account can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
createMember_account :: Lens' CreateMember AccountDetail Source #
The details of the account to associate with the administrator account.
Destructuring the Response
data CreateMemberResponse Source #
See: newCreateMemberResponse smart constructor.
Constructors
| CreateMemberResponse' | |
Fields
| |
Instances
newCreateMemberResponse Source #
Arguments
| :: Int | |
| -> CreateMemberResponse |
Create a value of CreateMemberResponse 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:
CreateMemberResponse, createMemberResponse_arn - The Amazon Resource Name (ARN) of the account that was associated with
the administrator account.
$sel:httpStatus:CreateMemberResponse', createMemberResponse_httpStatus - The response's http status code.
Response Lenses
createMemberResponse_arn :: Lens' CreateMemberResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the account that was associated with the administrator account.
createMemberResponse_httpStatus :: Lens' CreateMemberResponse Int Source #
The response's http status code.