amazonka-pinpoint-2.0: Amazon Pinpoint SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Pinpoint.GetSmsTemplate

Description

Retrieves the content and settings of a message template for messages that are sent through the SMS channel.

Synopsis

Creating a Request

data GetSmsTemplate Source #

See: newGetSmsTemplate smart constructor.

Constructors

GetSmsTemplate' 

Fields

  • version :: Maybe Text

    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.
  • templateName :: Text

    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.

Instances

Instances details
ToHeaders GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

ToPath GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

ToQuery GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

AWSRequest GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Associated Types

type AWSResponse GetSmsTemplate #

Generic GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Associated Types

type Rep GetSmsTemplate :: Type -> Type #

Read GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Show GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

NFData GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Methods

rnf :: GetSmsTemplate -> () #

Eq GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Hashable GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

type AWSResponse GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

type Rep GetSmsTemplate Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

type Rep GetSmsTemplate = D1 ('MetaData "GetSmsTemplate" "Amazonka.Pinpoint.GetSmsTemplate" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "GetSmsTemplate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "templateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetSmsTemplate Source #

Create a value of GetSmsTemplate 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:

GetSmsTemplate, getSmsTemplate_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.

GetSmsTemplate, getSmsTemplate_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

getSmsTemplate_version :: Lens' GetSmsTemplate (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.

getSmsTemplate_templateName :: Lens' GetSmsTemplate 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 GetSmsTemplateResponse Source #

See: newGetSmsTemplateResponse smart constructor.

Constructors

GetSmsTemplateResponse' 

Fields

Instances

Instances details
Generic GetSmsTemplateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Associated Types

type Rep GetSmsTemplateResponse :: Type -> Type #

Read GetSmsTemplateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Show GetSmsTemplateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

NFData GetSmsTemplateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

Methods

rnf :: GetSmsTemplateResponse -> () #

Eq GetSmsTemplateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

type Rep GetSmsTemplateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.GetSmsTemplate

type Rep GetSmsTemplateResponse = D1 ('MetaData "GetSmsTemplateResponse" "Amazonka.Pinpoint.GetSmsTemplate" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "GetSmsTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "sMSTemplateResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SMSTemplateResponse)))

newGetSmsTemplateResponse Source #

Create a value of GetSmsTemplateResponse 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:GetSmsTemplateResponse', getSmsTemplateResponse_httpStatus - The response's http status code.

$sel:sMSTemplateResponse:GetSmsTemplateResponse', getSmsTemplateResponse_sMSTemplateResponse - Undocumented member.

Response Lenses