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 |
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.
AssociateDelegateToResource' | |
|
Instances
newAssociateDelegateToResource Source #
:: 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:
$sel:organizationId: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.
$sel:entityId: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.
AssociateDelegateToResourceResponse' | |
|
Instances
Eq AssociateDelegateToResourceResponse Source # | |
Read AssociateDelegateToResourceResponse Source # | |
Show AssociateDelegateToResourceResponse Source # | |
Generic AssociateDelegateToResourceResponse Source # | |
NFData AssociateDelegateToResourceResponse Source # | |
Defined in Amazonka.WorkMail.AssociateDelegateToResource rnf :: AssociateDelegateToResourceResponse -> () # | |
type Rep AssociateDelegateToResourceResponse Source # | |
Defined in Amazonka.WorkMail.AssociateDelegateToResource type Rep AssociateDelegateToResourceResponse = D1 ('MetaData "AssociateDelegateToResourceResponse" "Amazonka.WorkMail.AssociateDelegateToResource" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "AssociateDelegateToResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociateDelegateToResourceResponse Source #
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.