| 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.AddFacetToObject
Description
Adds a new Facet to an object. An object can have more than one facet applied on it.
Synopsis
- data AddFacetToObject = AddFacetToObject' {}
- newAddFacetToObject :: Text -> SchemaFacet -> ObjectReference -> AddFacetToObject
- addFacetToObject_objectAttributeList :: Lens' AddFacetToObject (Maybe [AttributeKeyAndValue])
- addFacetToObject_directoryArn :: Lens' AddFacetToObject Text
- addFacetToObject_schemaFacet :: Lens' AddFacetToObject SchemaFacet
- addFacetToObject_objectReference :: Lens' AddFacetToObject ObjectReference
- data AddFacetToObjectResponse = AddFacetToObjectResponse' {
- httpStatus :: Int
- newAddFacetToObjectResponse :: Int -> AddFacetToObjectResponse
- addFacetToObjectResponse_httpStatus :: Lens' AddFacetToObjectResponse Int
Creating a Request
data AddFacetToObject Source #
See: newAddFacetToObject smart constructor.
Constructors
| AddFacetToObject' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SchemaFacet | |
| -> ObjectReference | |
| -> AddFacetToObject |
Create a value of AddFacetToObject 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:
AddFacetToObject, addFacetToObject_objectAttributeList - Attributes on the facet that you are adding to the object.
AddFacetToObject, addFacetToObject_directoryArn - The Amazon Resource Name (ARN) that is associated with the Directory
where the object resides. For more information, see arns.
AddFacetToObject, addFacetToObject_schemaFacet - Identifiers for the facet that you are adding to the object. See
SchemaFacet for details.
AddFacetToObject, addFacetToObject_objectReference - A reference to the object you are adding the specified facet to.
Request Lenses
addFacetToObject_objectAttributeList :: Lens' AddFacetToObject (Maybe [AttributeKeyAndValue]) Source #
Attributes on the facet that you are adding to the object.
addFacetToObject_directoryArn :: Lens' AddFacetToObject Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns.
addFacetToObject_schemaFacet :: Lens' AddFacetToObject SchemaFacet Source #
Identifiers for the facet that you are adding to the object. See SchemaFacet for details.
addFacetToObject_objectReference :: Lens' AddFacetToObject ObjectReference Source #
A reference to the object you are adding the specified facet to.
Destructuring the Response
data AddFacetToObjectResponse Source #
See: newAddFacetToObjectResponse smart constructor.
Constructors
| AddFacetToObjectResponse' | |
Fields
| |
Instances
newAddFacetToObjectResponse Source #
Create a value of AddFacetToObjectResponse 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:AddFacetToObjectResponse', addFacetToObjectResponse_httpStatus - The response's http status code.
Response Lenses
addFacetToObjectResponse_httpStatus :: Lens' AddFacetToObjectResponse Int Source #
The response's http status code.