Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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:
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.
updateTemplateActiveVersion_templateActiveVersionRequest :: Lens' UpdateTemplateActiveVersion TemplateActiveVersionRequest Source #
Undocumented member.
Destructuring the Response
data UpdateTemplateActiveVersionResponse Source #
See: newUpdateTemplateActiveVersionResponse
smart constructor.
UpdateTemplateActiveVersionResponse' | |
|
Instances
Generic UpdateTemplateActiveVersionResponse Source # | |
Read UpdateTemplateActiveVersionResponse Source # | |
Show UpdateTemplateActiveVersionResponse Source # | |
NFData UpdateTemplateActiveVersionResponse Source # | |
Defined in Amazonka.Pinpoint.UpdateTemplateActiveVersion rnf :: UpdateTemplateActiveVersionResponse -> () # | |
Eq UpdateTemplateActiveVersionResponse Source # | |
type Rep UpdateTemplateActiveVersionResponse Source # | |
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))) |
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.