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 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.
AddFacetToObject' | |
|
Instances
:: 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:
$sel:objectAttributeList:AddFacetToObject'
, addFacetToObject_objectAttributeList
- Attributes on the facet that you are adding to the object.
$sel:directoryArn:AddFacetToObject'
, addFacetToObject_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where the object resides. For more information, see arns.
$sel:schemaFacet:AddFacetToObject'
, addFacetToObject_schemaFacet
- Identifiers for the facet that you are adding to the object. See
SchemaFacet for details.
$sel:objectReference: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.
AddFacetToObjectResponse' | |
|
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.