| 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.WorkMail.AssociateDelegateToResource
Description
Adds a member (user or group) to the resource's set of delegates.
Synopsis
- data AssociateDelegateToResource = AssociateDelegateToResource' {
- organizationId :: Text
- resourceId :: Text
- entityId :: Text
- newAssociateDelegateToResource :: Text -> Text -> Text -> AssociateDelegateToResource
- associateDelegateToResource_organizationId :: Lens' AssociateDelegateToResource Text
- associateDelegateToResource_resourceId :: Lens' AssociateDelegateToResource Text
- associateDelegateToResource_entityId :: Lens' AssociateDelegateToResource Text
- data AssociateDelegateToResourceResponse = AssociateDelegateToResourceResponse' {
- httpStatus :: Int
- newAssociateDelegateToResourceResponse :: Int -> AssociateDelegateToResourceResponse
- associateDelegateToResourceResponse_httpStatus :: Lens' AssociateDelegateToResourceResponse Int
Creating a Request
data AssociateDelegateToResource Source #
See: newAssociateDelegateToResource smart constructor.
Constructors
| AssociateDelegateToResource' | |
Fields
| |
Instances
newAssociateDelegateToResource Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> AssociateDelegateToResource |
Create a value of AssociateDelegateToResource 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:
AssociateDelegateToResource, associateDelegateToResource_organizationId - The organization under which the resource exists.
$sel:resourceId:AssociateDelegateToResource', associateDelegateToResource_resourceId - The resource for which members (users or groups) are associated.
AssociateDelegateToResource, associateDelegateToResource_entityId - The member (user or group) to associate to the resource.
Request Lenses
associateDelegateToResource_organizationId :: Lens' AssociateDelegateToResource Text Source #
The organization under which the resource exists.
associateDelegateToResource_resourceId :: Lens' AssociateDelegateToResource Text Source #
The resource for which members (users or groups) are associated.
associateDelegateToResource_entityId :: Lens' AssociateDelegateToResource Text Source #
The member (user or group) to associate to the resource.
Destructuring the Response
data AssociateDelegateToResourceResponse Source #
See: newAssociateDelegateToResourceResponse smart constructor.
Constructors
| AssociateDelegateToResourceResponse' | |
Fields
| |
Instances
newAssociateDelegateToResourceResponse Source #
Arguments
| :: Int | |
| -> AssociateDelegateToResourceResponse |
Create a value of AssociateDelegateToResourceResponse 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:httpStatus:AssociateDelegateToResourceResponse', associateDelegateToResourceResponse_httpStatus - The response's http status code.
Response Lenses
associateDelegateToResourceResponse_httpStatus :: Lens' AssociateDelegateToResourceResponse Int Source #
The response's http status code.