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 |
Retrieves the content and settings of a message template for messages that are sent through the voice channel.
Synopsis
- data GetVoiceTemplate = GetVoiceTemplate' {
- version :: Maybe Text
- templateName :: Text
- newGetVoiceTemplate :: Text -> GetVoiceTemplate
- getVoiceTemplate_version :: Lens' GetVoiceTemplate (Maybe Text)
- getVoiceTemplate_templateName :: Lens' GetVoiceTemplate Text
- data GetVoiceTemplateResponse = GetVoiceTemplateResponse' {}
- newGetVoiceTemplateResponse :: Int -> VoiceTemplateResponse -> GetVoiceTemplateResponse
- getVoiceTemplateResponse_httpStatus :: Lens' GetVoiceTemplateResponse Int
- getVoiceTemplateResponse_voiceTemplateResponse :: Lens' GetVoiceTemplateResponse VoiceTemplateResponse
Creating a Request
data GetVoiceTemplate Source #
See: newGetVoiceTemplate
smart constructor.
GetVoiceTemplate' | |
|
Instances
Create a value of GetVoiceTemplate
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:version:GetVoiceTemplate'
, getVoiceTemplate_version
- The unique identifier for the version of the message template to update,
retrieve information about, or delete. To retrieve identifiers and other
information for all the versions of a template, use the Template
Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
- For a get operation, retrieves information about the active version of the template.
- For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
- For a delete operation, deletes the template, including all versions of the template.
$sel:templateName:GetVoiceTemplate'
, getVoiceTemplate_templateName
- The name of the message template. A template name must start with an
alphanumeric character and can contain a maximum of 128 characters. The
characters can be alphanumeric characters, underscores (_), or hyphens
(-). Template names are case sensitive.
Request Lenses
getVoiceTemplate_version :: Lens' GetVoiceTemplate (Maybe Text) Source #
The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.
If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.
If you don't specify a value for this parameter, Amazon Pinpoint does the following:
- For a get operation, retrieves information about the active version of the template.
- For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.
- For a delete operation, deletes the template, including all versions of the template.
getVoiceTemplate_templateName :: Lens' GetVoiceTemplate Text Source #
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
Destructuring the Response
data GetVoiceTemplateResponse Source #
See: newGetVoiceTemplateResponse
smart constructor.
GetVoiceTemplateResponse' | |
|
Instances
newGetVoiceTemplateResponse Source #
Create a value of GetVoiceTemplateResponse
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:GetVoiceTemplateResponse'
, getVoiceTemplateResponse_httpStatus
- The response's http status code.
$sel:voiceTemplateResponse:GetVoiceTemplateResponse'
, getVoiceTemplateResponse_voiceTemplateResponse
- Undocumented member.
Response Lenses
getVoiceTemplateResponse_httpStatus :: Lens' GetVoiceTemplateResponse Int Source #
The response's http status code.
getVoiceTemplateResponse_voiceTemplateResponse :: Lens' GetVoiceTemplateResponse VoiceTemplateResponse Source #
Undocumented member.