libZSservicesZSamazonka-sesZSamazonka-ses
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.SES.CreateReceiptRule

Description

Creates a receipt rule.

For information about setting up receipt rules, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Synopsis

Creating a Request

data CreateReceiptRule Source #

Represents a request to create a receipt rule. You use receipt rules to receive email with Amazon SES. For more information, see the Amazon SES Developer Guide.

See: newCreateReceiptRule smart constructor.

Constructors

CreateReceiptRule' 

Fields

  • after :: Maybe Text

    The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.

  • ruleSetName :: Text

    The name of the rule set that the receipt rule will be added to.

  • rule :: ReceiptRule

    A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.

Instances

Instances details
Eq CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Read CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Show CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Generic CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Associated Types

type Rep CreateReceiptRule :: Type -> Type #

NFData CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Methods

rnf :: CreateReceiptRule -> () #

Hashable CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

AWSRequest CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Associated Types

type AWSResponse CreateReceiptRule #

ToHeaders CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

ToPath CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

ToQuery CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

type Rep CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

type Rep CreateReceiptRule = D1 ('MetaData "CreateReceiptRule" "Amazonka.SES.CreateReceiptRule" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "CreateReceiptRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "after") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ruleSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "rule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReceiptRule))))
type AWSResponse CreateReceiptRule Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

newCreateReceiptRule Source #

Create a value of CreateReceiptRule 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:after:CreateReceiptRule', createReceiptRule_after - The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.

$sel:ruleSetName:CreateReceiptRule', createReceiptRule_ruleSetName - The name of the rule set that the receipt rule will be added to.

$sel:rule:CreateReceiptRule', createReceiptRule_rule - A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.

Request Lenses

createReceiptRule_after :: Lens' CreateReceiptRule (Maybe Text) Source #

The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.

createReceiptRule_ruleSetName :: Lens' CreateReceiptRule Text Source #

The name of the rule set that the receipt rule will be added to.

createReceiptRule_rule :: Lens' CreateReceiptRule ReceiptRule Source #

A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.

Destructuring the Response

data CreateReceiptRuleResponse Source #

An empty element returned on a successful request.

See: newCreateReceiptRuleResponse smart constructor.

Constructors

CreateReceiptRuleResponse' 

Fields

Instances

Instances details
Eq CreateReceiptRuleResponse Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Read CreateReceiptRuleResponse Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Show CreateReceiptRuleResponse Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Generic CreateReceiptRuleResponse Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

Associated Types

type Rep CreateReceiptRuleResponse :: Type -> Type #

NFData CreateReceiptRuleResponse Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

type Rep CreateReceiptRuleResponse Source # 
Instance details

Defined in Amazonka.SES.CreateReceiptRule

type Rep CreateReceiptRuleResponse = D1 ('MetaData "CreateReceiptRuleResponse" "Amazonka.SES.CreateReceiptRule" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "CreateReceiptRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateReceiptRuleResponse Source #

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

Response Lenses