| 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.UpdateFacet
Description
Does the following:
- Adds new
Attributes,Rules, orObjectTypes. - Updates existing
Attributes,Rules, orObjectTypes. - Deletes existing
Attributes,Rules, orObjectTypes.
Synopsis
- data UpdateFacet = UpdateFacet' {}
- newUpdateFacet :: Text -> Text -> UpdateFacet
- updateFacet_attributeUpdates :: Lens' UpdateFacet (Maybe [FacetAttributeUpdate])
- updateFacet_objectType :: Lens' UpdateFacet (Maybe ObjectType)
- updateFacet_schemaArn :: Lens' UpdateFacet Text
- updateFacet_name :: Lens' UpdateFacet Text
- data UpdateFacetResponse = UpdateFacetResponse' {
- httpStatus :: Int
- newUpdateFacetResponse :: Int -> UpdateFacetResponse
- updateFacetResponse_httpStatus :: Lens' UpdateFacetResponse Int
Creating a Request
data UpdateFacet Source #
See: newUpdateFacet smart constructor.
Constructors
| UpdateFacet' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateFacet |
Create a value of UpdateFacet 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:
UpdateFacet, updateFacet_attributeUpdates - List of attributes that need to be updated in a given schema Facet. Each
attribute is followed by AttributeAction, which specifies the type of
update operation to perform.
UpdateFacet, updateFacet_objectType - The object type that is associated with the facet. See
CreateFacetRequest$ObjectType for more details.
UpdateFacet, updateFacet_schemaArn - The Amazon Resource Name (ARN) that is associated with the Facet. For
more information, see arns.
UpdateFacet, updateFacet_name - The name of the facet.
Request Lenses
updateFacet_attributeUpdates :: Lens' UpdateFacet (Maybe [FacetAttributeUpdate]) Source #
List of attributes that need to be updated in a given schema Facet. Each
attribute is followed by AttributeAction, which specifies the type of
update operation to perform.
updateFacet_objectType :: Lens' UpdateFacet (Maybe ObjectType) Source #
The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.
updateFacet_schemaArn :: Lens' UpdateFacet Text Source #
The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.
updateFacet_name :: Lens' UpdateFacet Text Source #
The name of the facet.
Destructuring the Response
data UpdateFacetResponse Source #
See: newUpdateFacetResponse smart constructor.
Constructors
| UpdateFacetResponse' | |
Fields
| |
Instances
newUpdateFacetResponse Source #
Arguments
| :: Int | |
| -> UpdateFacetResponse |
Create a value of UpdateFacetResponse 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:UpdateFacetResponse', updateFacetResponse_httpStatus - The response's http status code.
Response Lenses
updateFacetResponse_httpStatus :: Lens' UpdateFacetResponse Int Source #
The response's http status code.