libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pinpoint.ListTemplates

Description

Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.

Synopsis

Creating a Request

data ListTemplates Source #

See: newListTemplates smart constructor.

Constructors

ListTemplates' 

Fields

  • templateType :: Maybe Text

    The type of message template to include in the results. Valid values are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don't include this parameter in your request.

  • prefix :: Maybe Text

    The substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.

  • nextToken :: Maybe Text

    The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.

  • pageSize :: Maybe Text

    The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

Instances

Instances details
Eq ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Read ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Show ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Generic ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Associated Types

type Rep ListTemplates :: Type -> Type #

NFData ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Methods

rnf :: ListTemplates -> () #

Hashable ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

AWSRequest ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Associated Types

type AWSResponse ListTemplates #

ToHeaders ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

ToPath ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

ToQuery ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

type Rep ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

type Rep ListTemplates = D1 ('MetaData "ListTemplates" "Amazonka.Pinpoint.ListTemplates" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "ListTemplates'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "templateType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))
type AWSResponse ListTemplates Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

newListTemplates :: ListTemplates Source #

Create a value of ListTemplates 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:templateType:ListTemplates', listTemplates_templateType - The type of message template to include in the results. Valid values are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don't include this parameter in your request.

$sel:prefix:ListTemplates', listTemplates_prefix - The substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.

$sel:nextToken:ListTemplates', listTemplates_nextToken - The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.

$sel:pageSize:ListTemplates', listTemplates_pageSize - The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

Request Lenses

listTemplates_templateType :: Lens' ListTemplates (Maybe Text) Source #

The type of message template to include in the results. Valid values are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don't include this parameter in your request.

listTemplates_prefix :: Lens' ListTemplates (Maybe Text) Source #

The substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.

listTemplates_nextToken :: Lens' ListTemplates (Maybe Text) Source #

The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.

listTemplates_pageSize :: Lens' ListTemplates (Maybe Text) Source #

The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

Destructuring the Response

data ListTemplatesResponse Source #

See: newListTemplatesResponse smart constructor.

Constructors

ListTemplatesResponse' 

Fields

Instances

Instances details
Eq ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Read ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Show ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Generic ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Associated Types

type Rep ListTemplatesResponse :: Type -> Type #

NFData ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

Methods

rnf :: ListTemplatesResponse -> () #

type Rep ListTemplatesResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.ListTemplates

type Rep ListTemplatesResponse = D1 ('MetaData "ListTemplatesResponse" "Amazonka.Pinpoint.ListTemplates" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "ListTemplatesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "templatesResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TemplatesResponse)))

newListTemplatesResponse Source #

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

$sel:templatesResponse:ListTemplatesResponse', listTemplatesResponse_templatesResponse - Undocumented member.

Response Lenses