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 |
Updates a vocabulary filter with a new list of filtered words.
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 a text file used as input to create the
vocabulary filter. Only use characters from the character set defined
for custom vocabularies. For a list of character sets, see
Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use the Words
parameter.
$sel:words:UpdateVocabularyFilter'
, updateVocabularyFilter_words
- The words to use in the vocabulary filter. Only use characters from the
character set defined for custom vocabularies. For a list of character
sets, see
Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you can't use
the VocabularyFilterFileUri
parameter.
$sel:vocabularyFilterName:UpdateVocabularyFilter'
, updateVocabularyFilter_vocabularyFilterName
- The name of the vocabulary filter to update. If you try to update a
vocabulary filter with the same name as another vocabulary filter, you
get a ConflictException
error.
Request Lenses
updateVocabularyFilter_vocabularyFilterFileUri :: Lens' UpdateVocabularyFilter (Maybe Text) Source #
The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
The specified file must be less than 50 KB of UTF-8 characters.
If you provide the location of a list of words in the
VocabularyFilterFileUri
parameter, you can't use the Words
parameter.
updateVocabularyFilter_words :: Lens' UpdateVocabularyFilter (Maybe (NonEmpty Text)) Source #
The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.
If you provide a list of words in the Words
parameter, you can't use
the VocabularyFilterFileUri
parameter.
updateVocabularyFilter_vocabularyFilterName :: Lens' UpdateVocabularyFilter Text Source #
The name of the vocabulary filter to update. If you try to update a
vocabulary filter with the same name as another vocabulary filter, you
get a ConflictException
error.
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:
$sel:languageCode:UpdateVocabularyFilterResponse'
, updateVocabularyFilterResponse_languageCode
- The language code of the words in the vocabulary filter.
$sel:lastModifiedTime:UpdateVocabularyFilterResponse'
, updateVocabularyFilterResponse_lastModifiedTime
- The date and time that the vocabulary filter was updated.
$sel:vocabularyFilterName:UpdateVocabularyFilter'
, updateVocabularyFilterResponse_vocabularyFilterName
- The name of the updated 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 of the words in the vocabulary filter.
updateVocabularyFilterResponse_lastModifiedTime :: Lens' UpdateVocabularyFilterResponse (Maybe UTCTime) Source #
The date and time that the vocabulary filter was updated.
updateVocabularyFilterResponse_vocabularyFilterName :: Lens' UpdateVocabularyFilterResponse (Maybe Text) Source #
The name of the updated vocabulary filter.
updateVocabularyFilterResponse_httpStatus :: Lens' UpdateVocabularyFilterResponse Int Source #
The response's http status code.