| 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.CloudDirectory.UpdateObjectAttributes
Description
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.
Constructors
| UpdateObjectAttributes' | |
Fields
| |
Instances
newUpdateObjectAttributes Source #
Arguments
| :: Text | |
| -> ObjectReference | |
| -> UpdateObjectAttributes |
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:
UpdateObjectAttributes, updateObjectAttributes_directoryArn - The Amazon Resource Name (ARN) that is associated with the Directory
where the object resides. For more information, see arns.
UpdateObjectAttributes, updateObjectAttributes_objectReference - The reference that identifies the object.
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.
Constructors
| UpdateObjectAttributesResponse' | |
Fields
| |
Instances
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:
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.