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 |
Updates a given object's attributes.
Synopsis
- data UpdateObjectAttributes = UpdateObjectAttributes' {}
- newUpdateObjectAttributes :: Text -> ObjectReference -> UpdateObjectAttributes
- updateObjectAttributes_directoryArn :: Lens' UpdateObjectAttributes Text
- updateObjectAttributes_objectReference :: Lens' UpdateObjectAttributes ObjectReference
- updateObjectAttributes_attributeUpdates :: Lens' UpdateObjectAttributes [ObjectAttributeUpdate]
- data UpdateObjectAttributesResponse = UpdateObjectAttributesResponse' {}
- newUpdateObjectAttributesResponse :: Int -> UpdateObjectAttributesResponse
- updateObjectAttributesResponse_objectIdentifier :: Lens' UpdateObjectAttributesResponse (Maybe Text)
- updateObjectAttributesResponse_httpStatus :: Lens' UpdateObjectAttributesResponse Int
Creating a Request
data UpdateObjectAttributes Source #
See: newUpdateObjectAttributes
smart constructor.
UpdateObjectAttributes' | |
|
Instances
newUpdateObjectAttributes Source #
Create a value of UpdateObjectAttributes
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:directoryArn:UpdateObjectAttributes'
, updateObjectAttributes_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where the object resides. For more information, see arns.
$sel:objectReference:UpdateObjectAttributes'
, updateObjectAttributes_objectReference
- The reference that identifies the object.
$sel:attributeUpdates:UpdateObjectAttributes'
, updateObjectAttributes_attributeUpdates
- The attributes update structure.
Request Lenses
updateObjectAttributes_directoryArn :: Lens' UpdateObjectAttributes Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns.
updateObjectAttributes_objectReference :: Lens' UpdateObjectAttributes ObjectReference Source #
The reference that identifies the object.
updateObjectAttributes_attributeUpdates :: Lens' UpdateObjectAttributes [ObjectAttributeUpdate] Source #
The attributes update structure.
Destructuring the Response
data UpdateObjectAttributesResponse Source #
See: newUpdateObjectAttributesResponse
smart constructor.
UpdateObjectAttributesResponse' | |
|
Instances
Eq UpdateObjectAttributesResponse Source # | |
Read UpdateObjectAttributesResponse Source # | |
Show UpdateObjectAttributesResponse Source # | |
Generic UpdateObjectAttributesResponse Source # | |
NFData UpdateObjectAttributesResponse Source # | |
Defined in Amazonka.CloudDirectory.UpdateObjectAttributes rnf :: UpdateObjectAttributesResponse -> () # | |
type Rep UpdateObjectAttributesResponse Source # | |
Defined in Amazonka.CloudDirectory.UpdateObjectAttributes type Rep UpdateObjectAttributesResponse = D1 ('MetaData "UpdateObjectAttributesResponse" "Amazonka.CloudDirectory.UpdateObjectAttributes" "libZSservicesZSamazonka-clouddirectoryZSamazonka-clouddirectory" 'False) (C1 ('MetaCons "UpdateObjectAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "objectIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateObjectAttributesResponse Source #
Create a value of UpdateObjectAttributesResponse
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:objectIdentifier:UpdateObjectAttributesResponse'
, updateObjectAttributesResponse_objectIdentifier
- The ObjectIdentifier
of the updated object.
$sel:httpStatus:UpdateObjectAttributesResponse'
, updateObjectAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
updateObjectAttributesResponse_objectIdentifier :: Lens' UpdateObjectAttributesResponse (Maybe Text) Source #
The ObjectIdentifier
of the updated object.
updateObjectAttributesResponse_httpStatus :: Lens' UpdateObjectAttributesResponse Int Source #
The response's http status code.