AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateReceiptRuleInput

import "github.com/aws/aws-sdk-go/service/ses"

type CreateReceiptRuleInput struct { After *string `type:"string"` Rule *ReceiptRule `type:"structure" required:"true"` RuleSetName *string `type:"string" required:"true"` }

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 (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-concepts.html).

After

Type: *string

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.

Rule

Receipt rules enable you to specify which actions Amazon SES should take when it receives mail on behalf of one or more email addresses or domains that you own.

Each receipt rule defines a set of email addresses or domains that it applies to. If the email addresses or domains match at least one recipient address of the message, Amazon SES executes all of the receipt rule's actions on the message.

For information about setting up receipt rules, see the Amazon SES Developer Guide (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-receipt-rules.html).

RuleSetName

Type: *string

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

RuleSetName is a required field

Method

GoString

func (s CreateReceiptRuleInput) GoString() string

GoString returns the string representation

SetAfter

func (s *CreateReceiptRuleInput) SetAfter(v string) *CreateReceiptRuleInput

SetAfter sets the After field's value.

SetRule

func (s *CreateReceiptRuleInput) SetRule(v *ReceiptRule) *CreateReceiptRuleInput

SetRule sets the Rule field's value.

SetRuleSetName

func (s *CreateReceiptRuleInput) SetRuleSetName(v string) *CreateReceiptRuleInput

SetRuleSetName sets the RuleSetName field's value.

String

func (s CreateReceiptRuleInput) String() string

String returns the string representation

Validate

func (s *CreateReceiptRuleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: