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 |
Updates an existing custom vocabulary filter with a new list of words. The new list you provide overwrites all previous entries; you cannot append new terms onto an existing custom vocabulary filter.
Synopsis
- data UpdateVocabularyFilter = UpdateVocabularyFilter' {}
- newUpdateVocabularyFilter :: Text -> UpdateVocabularyFilter
- updateVocabularyFilter_vocabularyFilterFileUri :: Lens' UpdateVocabularyFilter (Maybe Text)
- updateVocabularyFilter_words :: Lens' UpdateVocabularyFilter (Maybe (NonEmpty Text))
- updateVocabularyFilter_vocabularyFilterName :: Lens' UpdateVocabularyFilter Text
- data UpdateVocabularyFilterResponse = UpdateVocabularyFilterResponse' {}
- newUpdateVocabularyFilterResponse :: Int -> UpdateVocabularyFilterResponse
- updateVocabularyFilterResponse_languageCode :: Lens' UpdateVocabularyFilterResponse (Maybe LanguageCode)
- updateVocabularyFilterResponse_lastModifiedTime :: Lens' UpdateVocabularyFilterResponse (Maybe UTCTime)
- updateVocabularyFilterResponse_vocabularyFilterName :: Lens' UpdateVocabularyFilterResponse (Maybe Text)
- updateVocabularyFilterResponse_httpStatus :: Lens' UpdateVocabularyFilterResponse Int
Creating a Request
data UpdateVocabularyFilter Source #
See: newUpdateVocabularyFilter
smart constructor.
UpdateVocabularyFilter' | |
|
Instances
newUpdateVocabularyFilter Source #
Create a value of UpdateVocabularyFilter
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:vocabularyFilterFileUri:UpdateVocabularyFilter'
, updateVocabularyFilter_vocabularyFilterFileUri
- The Amazon S3 location of the text file that contains your custom
vocabulary filter terms. The URI must be located in the same Amazon Web
Services Region as the resource you're calling.
Here's an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-filter-file.txt
Note that if you include VocabularyFilterFileUri
in your request, you
cannot use Words
; you must choose one or the other.
$sel:words:UpdateVocabularyFilter'
, updateVocabularyFilter_words
- Use this parameter if you want to update your custom vocabulary filter
by including all desired terms, as comma-separated values, within your
request. The other option for updating your vocabulary filter is to save
your entries in a text file and upload them to an Amazon S3 bucket, then
specify the location of your file using the VocabularyFilterFileUri
parameter.
Note that if you include Words
in your request, you cannot use
VocabularyFilterFileUri
; you must choose one or the other.
Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your custom vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language.
UpdateVocabularyFilter
, updateVocabularyFilter_vocabularyFilterName
- The name of the custom vocabulary filter you want to update. Custom
vocabulary filter names are case sensitive.
Request Lenses
updateVocabularyFilter_vocabularyFilterFileUri :: Lens' UpdateVocabularyFilter (Maybe Text) Source #
The Amazon S3 location of the text file that contains your custom vocabulary filter terms. The URI must be located in the same Amazon Web Services Region as the resource you're calling.
Here's an example URI path:
s3://DOC-EXAMPLE-BUCKET/my-vocab-filter-file.txt
Note that if you include VocabularyFilterFileUri
in your request, you
cannot use Words
; you must choose one or the other.
updateVocabularyFilter_words :: Lens' UpdateVocabularyFilter (Maybe (NonEmpty Text)) Source #
Use this parameter if you want to update your custom vocabulary filter
by including all desired terms, as comma-separated values, within your
request. The other option for updating your vocabulary filter is to save
your entries in a text file and upload them to an Amazon S3 bucket, then
specify the location of your file using the VocabularyFilterFileUri
parameter.
Note that if you include Words
in your request, you cannot use
VocabularyFilterFileUri
; you must choose one or the other.
Each language has a character set that contains all allowed characters for that specific language. If you use unsupported characters, your custom vocabulary filter request fails. Refer to Character Sets for Custom Vocabularies to get the character set for your language.
updateVocabularyFilter_vocabularyFilterName :: Lens' UpdateVocabularyFilter Text Source #
The name of the custom vocabulary filter you want to update. Custom vocabulary filter names are case sensitive.
Destructuring the Response
data UpdateVocabularyFilterResponse Source #
See: newUpdateVocabularyFilterResponse
smart constructor.
UpdateVocabularyFilterResponse' | |
|
Instances
newUpdateVocabularyFilterResponse Source #
Create a value of UpdateVocabularyFilterResponse
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:
UpdateVocabularyFilterResponse
, updateVocabularyFilterResponse_languageCode
- The language code you selected for your custom vocabulary filter.
UpdateVocabularyFilterResponse
, updateVocabularyFilterResponse_lastModifiedTime
- The date and time the specified custom vocabulary filter was last
updated.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For
example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on
May 4, 2022.
UpdateVocabularyFilter
, updateVocabularyFilterResponse_vocabularyFilterName
- The name of the updated custom vocabulary filter.
$sel:httpStatus:UpdateVocabularyFilterResponse'
, updateVocabularyFilterResponse_httpStatus
- The response's http status code.
Response Lenses
updateVocabularyFilterResponse_languageCode :: Lens' UpdateVocabularyFilterResponse (Maybe LanguageCode) Source #
The language code you selected for your custom vocabulary filter.
updateVocabularyFilterResponse_lastModifiedTime :: Lens' UpdateVocabularyFilterResponse (Maybe UTCTime) Source #
The date and time the specified custom vocabulary filter was last updated.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For
example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on
May 4, 2022.
updateVocabularyFilterResponse_vocabularyFilterName :: Lens' UpdateVocabularyFilterResponse (Maybe Text) Source #
The name of the updated custom vocabulary filter.
updateVocabularyFilterResponse_httpStatus :: Lens' UpdateVocabularyFilterResponse Int Source #
The response's http status code.