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.UpdateTemplateActiveVersion

Description

Changes the status of a specific version of a message template to active.

Synopsis

Creating a Request

data UpdateTemplateActiveVersion Source #

See: newUpdateTemplateActiveVersion smart constructor.

Constructors

UpdateTemplateActiveVersion' 

Fields

  • 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.

  • templateType :: Text

    The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.

  • templateActiveVersionRequest :: TemplateActiveVersionRequest
     

Instances

Instances details
ToJSON UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

ToHeaders UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

ToPath UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

ToQuery UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

AWSRequest UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Generic UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Associated Types

type Rep UpdateTemplateActiveVersion :: Type -> Type #

Read UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Show UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

NFData UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Eq UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Hashable UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

type AWSResponse UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

type Rep UpdateTemplateActiveVersion Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

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

newUpdateTemplateActiveVersion Source #

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

UpdateTemplateActiveVersion, updateTemplateActiveVersion_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.

UpdateTemplateActiveVersion, updateTemplateActiveVersion_templateType - The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.

$sel:templateActiveVersionRequest:UpdateTemplateActiveVersion', updateTemplateActiveVersion_templateActiveVersionRequest - Undocumented member.

Request Lenses

updateTemplateActiveVersion_templateName :: Lens' UpdateTemplateActiveVersion 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.

updateTemplateActiveVersion_templateType :: Lens' UpdateTemplateActiveVersion Text Source #

The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.

Destructuring the Response

data UpdateTemplateActiveVersionResponse Source #

Constructors

UpdateTemplateActiveVersionResponse' 

Fields

Instances

Instances details
Generic UpdateTemplateActiveVersionResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Read UpdateTemplateActiveVersionResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Show UpdateTemplateActiveVersionResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

NFData UpdateTemplateActiveVersionResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

Eq UpdateTemplateActiveVersionResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

type Rep UpdateTemplateActiveVersionResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion

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

Response Lenses