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 |
Creates an Access Control List. For more information, see Authenticating users with Access Contol Lists (ACLs).
Synopsis
- data CreateACL = CreateACL' {}
- newCreateACL :: Text -> CreateACL
- createACL_userNames :: Lens' CreateACL (Maybe (NonEmpty Text))
- createACL_tags :: Lens' CreateACL (Maybe [Tag])
- createACL_aCLName :: Lens' CreateACL Text
- data CreateACLResponse = CreateACLResponse' {
- acl :: Maybe ACL
- httpStatus :: Int
- newCreateACLResponse :: Int -> CreateACLResponse
- createACLResponse_acl :: Lens' CreateACLResponse (Maybe ACL)
- createACLResponse_httpStatus :: Lens' CreateACLResponse Int
Creating a Request
See: newCreateACL
smart constructor.
CreateACL' | |
|
Instances
Create a value of CreateACL
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:userNames:CreateACL'
, createACL_userNames
- The list of users that belong to the Access Control List.
$sel:tags:CreateACL'
, createACL_tags
- A list of tags to be added to this resource. A tag is a key-value pair.
A tag key must be accompanied by a tag value, although null is accepted.
$sel:aCLName:CreateACL'
, createACL_aCLName
- The name of the Access Control List.
Request Lenses
createACL_userNames :: Lens' CreateACL (Maybe (NonEmpty Text)) Source #
The list of users that belong to the Access Control List.
createACL_tags :: Lens' CreateACL (Maybe [Tag]) Source #
A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
Destructuring the Response
data CreateACLResponse Source #
See: newCreateACLResponse
smart constructor.
CreateACLResponse' | |
|
Instances
Create a value of CreateACLResponse
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:acl:CreateACLResponse'
, createACLResponse_acl
- The newly-created Access Control List.
$sel:httpStatus:CreateACLResponse'
, createACLResponse_httpStatus
- The response's http status code.
Response Lenses
createACLResponse_acl :: Lens' CreateACLResponse (Maybe ACL) Source #
The newly-created Access Control List.
createACLResponse_httpStatus :: Lens' CreateACLResponse Int Source #
The response's http status code.