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 |
Synopsis
- data VoiceTemplateRequest = VoiceTemplateRequest' {}
- newVoiceTemplateRequest :: VoiceTemplateRequest
- voiceTemplateRequest_languageCode :: Lens' VoiceTemplateRequest (Maybe Text)
- voiceTemplateRequest_body :: Lens' VoiceTemplateRequest (Maybe Text)
- voiceTemplateRequest_templateDescription :: Lens' VoiceTemplateRequest (Maybe Text)
- voiceTemplateRequest_defaultSubstitutions :: Lens' VoiceTemplateRequest (Maybe Text)
- voiceTemplateRequest_voiceId :: Lens' VoiceTemplateRequest (Maybe Text)
- voiceTemplateRequest_tags :: Lens' VoiceTemplateRequest (Maybe (HashMap Text Text))
Documentation
data VoiceTemplateRequest Source #
Specifies the content and settings for a message template that can be used in messages that are sent through the voice channel.
See: newVoiceTemplateRequest
smart constructor.
VoiceTemplateRequest' | |
|
Instances
newVoiceTemplateRequest :: VoiceTemplateRequest Source #
Create a value of VoiceTemplateRequest
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:VoiceTemplateRequest'
, voiceTemplateRequest_languageCode
- The code for the language to use when synthesizing the text of the
script in messages that are based on the message template. For a list of
supported languages and the code for each one, see the
Amazon Polly Developer Guide.
$sel:body:VoiceTemplateRequest'
, voiceTemplateRequest_body
- The text of the script to use in messages that are based on the message
template, in plain text format.
$sel:templateDescription:VoiceTemplateRequest'
, voiceTemplateRequest_templateDescription
- A custom description of the message template.
$sel:defaultSubstitutions:VoiceTemplateRequest'
, voiceTemplateRequest_defaultSubstitutions
- A JSON object that specifies the default values to use for message
variables in the message template. This object is a set of key-value
pairs. Each key defines a message variable in the template. The
corresponding value defines the default value for that variable. When
you create a message that's based on the template, you can override
these defaults with message-specific and address-specific variables and
values.
$sel:voiceId:VoiceTemplateRequest'
, voiceTemplateRequest_voiceId
- The name of the voice to use when delivering messages that are based on
the message template. For a list of supported voices, see the
Amazon Polly Developer Guide.
$sel:tags:VoiceTemplateRequest'
, voiceTemplateRequest_tags
- A string-to-string map of key-value pairs that defines the tags to
associate with the message template. Each tag consists of a required tag
key and an associated tag value.
voiceTemplateRequest_languageCode :: Lens' VoiceTemplateRequest (Maybe Text) Source #
The code for the language to use when synthesizing the text of the script in messages that are based on the message template. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
voiceTemplateRequest_body :: Lens' VoiceTemplateRequest (Maybe Text) Source #
The text of the script to use in messages that are based on the message template, in plain text format.
voiceTemplateRequest_templateDescription :: Lens' VoiceTemplateRequest (Maybe Text) Source #
A custom description of the message template.
voiceTemplateRequest_defaultSubstitutions :: Lens' VoiceTemplateRequest (Maybe Text) Source #
A JSON object that specifies the default values to use for message variables in the message template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the default value for that variable. When you create a message that's based on the template, you can override these defaults with message-specific and address-specific variables and values.
voiceTemplateRequest_voiceId :: Lens' VoiceTemplateRequest (Maybe Text) Source #
The name of the voice to use when delivering messages that are based on the message template. For a list of supported voices, see the Amazon Polly Developer Guide.
voiceTemplateRequest_tags :: Lens' VoiceTemplateRequest (Maybe (HashMap Text Text)) Source #
A string-to-string map of key-value pairs that defines the tags to associate with the message template. Each tag consists of a required tag key and an associated tag value.