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 |
Changes the status of a specific version of a message template to active.
Synopsis
- data UpdateTemplateActiveVersion = UpdateTemplateActiveVersion' {}
- newUpdateTemplateActiveVersion :: Text -> Text -> TemplateActiveVersionRequest -> UpdateTemplateActiveVersion
- updateTemplateActiveVersion_templateName :: Lens' UpdateTemplateActiveVersion Text
- updateTemplateActiveVersion_templateType :: Lens' UpdateTemplateActiveVersion Text
- updateTemplateActiveVersion_templateActiveVersionRequest :: Lens' UpdateTemplateActiveVersion TemplateActiveVersionRequest
- data UpdateTemplateActiveVersionResponse = UpdateTemplateActiveVersionResponse' {}
- newUpdateTemplateActiveVersionResponse :: Int -> MessageBody -> UpdateTemplateActiveVersionResponse
- updateTemplateActiveVersionResponse_httpStatus :: Lens' UpdateTemplateActiveVersionResponse Int
- updateTemplateActiveVersionResponse_messageBody :: Lens' UpdateTemplateActiveVersionResponse MessageBody
Creating a Request
data UpdateTemplateActiveVersion Source #
See: newUpdateTemplateActiveVersion
smart constructor.
UpdateTemplateActiveVersion' | |
|
Instances
newUpdateTemplateActiveVersion Source #
:: Text | |
-> Text | |
-> TemplateActiveVersionRequest |
|
-> UpdateTemplateActiveVersion |
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:
$sel:templateName: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.
$sel:templateType: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.
updateTemplateActiveVersion_templateActiveVersionRequest :: Lens' UpdateTemplateActiveVersion TemplateActiveVersionRequest Source #
Undocumented member.
Destructuring the Response
data UpdateTemplateActiveVersionResponse Source #
See: newUpdateTemplateActiveVersionResponse
smart constructor.
UpdateTemplateActiveVersionResponse' | |
|
Instances
Eq UpdateTemplateActiveVersionResponse Source # | |
Read UpdateTemplateActiveVersionResponse Source # | |
Show UpdateTemplateActiveVersionResponse Source # | |
Generic UpdateTemplateActiveVersionResponse Source # | |
NFData UpdateTemplateActiveVersionResponse Source # | |
Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion rnf :: UpdateTemplateActiveVersionResponse -> () # | |
type Rep UpdateTemplateActiveVersionResponse Source # | |
Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion type Rep UpdateTemplateActiveVersionResponse = D1 ('MetaData "UpdateTemplateActiveVersionResponse" "Amazonka.Pinpoint.UpdateTemplateActiveVersion" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "UpdateTemplateActiveVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "messageBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MessageBody))) |
newUpdateTemplateActiveVersionResponse Source #
Create a value of UpdateTemplateActiveVersionResponse
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:UpdateTemplateActiveVersionResponse'
, updateTemplateActiveVersionResponse_httpStatus
- The response's http status code.
$sel:messageBody:UpdateTemplateActiveVersionResponse'
, updateTemplateActiveVersionResponse_messageBody
- Undocumented member.
Response Lenses
updateTemplateActiveVersionResponse_httpStatus :: Lens' UpdateTemplateActiveVersionResponse Int Source #
The response's http status code.
updateTemplateActiveVersionResponse_messageBody :: Lens' UpdateTemplateActiveVersionResponse MessageBody Source #
Undocumented member.