Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Does the following:
- Adds new
Attributes
,Rules
, orObjectTypes
. - Updates existing
Attributes
,Rules
, orObjectTypes
. - Deletes existing
Attributes
,Rules
, orObjectTypes
.
- updateFacet :: Text -> Text -> UpdateFacet
- data UpdateFacet
- ufObjectType :: Lens' UpdateFacet (Maybe ObjectType)
- ufAttributeUpdates :: Lens' UpdateFacet [FacetAttributeUpdate]
- ufSchemaARN :: Lens' UpdateFacet Text
- ufName :: Lens' UpdateFacet Text
- updateFacetResponse :: Int -> UpdateFacetResponse
- data UpdateFacetResponse
- ufrsResponseStatus :: Lens' UpdateFacetResponse Int
Creating a Request
:: Text | |
-> Text | |
-> UpdateFacet |
Creates a value of UpdateFacet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ufObjectType
- The object type that is associated with the facet. See 'CreateFacetRequest$ObjectType' for more details.ufAttributeUpdates
- List of attributes that need to be updated in a given schemaFacet
. Each attribute is followed byAttributeAction
, which specifies the type of update operation to perform.ufSchemaARN
- The Amazon Resource Name (ARN) that is associated with theFacet
. For more information, seearns
.ufName
- The name of the facet.
data UpdateFacet Source #
See: updateFacet
smart constructor.
Request Lenses
ufObjectType :: Lens' UpdateFacet (Maybe ObjectType) Source #
The object type that is associated with the facet. See 'CreateFacetRequest$ObjectType' for more details.
ufAttributeUpdates :: Lens' UpdateFacet [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.
ufSchemaARN :: Lens' UpdateFacet Text Source #
The Amazon Resource Name (ARN) that is associated with the Facet
. For more information, see arns
.
Destructuring the Response
Creates a value of UpdateFacetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ufrsResponseStatus
- -- | The response status code.
data UpdateFacetResponse Source #
See: updateFacetResponse
smart constructor.
Response Lenses
ufrsResponseStatus :: Lens' UpdateFacetResponse Int Source #
- - | The response status code.