You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SES::Types::CreateReceiptRuleRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb

Overview

Note:

When making an API call, you may pass CreateReceiptRuleRequest data as a hash:

{
  rule_set_name: "ReceiptRuleSetName", # required
  after: "ReceiptRuleName",
  rule: { # required
    name: "ReceiptRuleName", # required
    enabled: false,
    tls_policy: "Require", # accepts Require, Optional
    recipients: ["Recipient"],
    actions: [
      {
        s3_action: {
          topic_arn: "AmazonResourceName",
          bucket_name: "S3BucketName", # required
          object_key_prefix: "S3KeyPrefix",
          kms_key_arn: "AmazonResourceName",
        },
        bounce_action: {
          topic_arn: "AmazonResourceName",
          smtp_reply_code: "BounceSmtpReplyCode", # required
          status_code: "BounceStatusCode",
          message: "BounceMessage", # required
          sender: "Address", # required
        },
        workmail_action: {
          topic_arn: "AmazonResourceName",
          organization_arn: "AmazonResourceName", # required
        },
        lambda_action: {
          topic_arn: "AmazonResourceName",
          function_arn: "AmazonResourceName", # required
          invocation_type: "Event", # accepts Event, RequestResponse
        },
        stop_action: {
          scope: "RuleSet", # required, accepts RuleSet
          topic_arn: "AmazonResourceName",
        },
        add_header_action: {
          header_name: "HeaderName", # required
          header_value: "HeaderValue", # required
        },
        sns_action: {
          topic_arn: "AmazonResourceName", # required
          encoding: "UTF-8", # accepts UTF-8, Base64
        },
      },
    ],
    scan_enabled: false,
  },
}

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.

Instance Attribute Summary collapse

Instance Attribute Details

#afterString

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.

Returns:

  • (String)


647
648
649
650
651
652
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 647

class CreateReceiptRuleRequest < Struct.new(
  :rule_set_name,
  :after,
  :rule)
  include Aws::Structure
end

#ruleTypes::ReceiptRule

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

Returns:



647
648
649
650
651
652
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 647

class CreateReceiptRuleRequest < Struct.new(
  :rule_set_name,
  :after,
  :rule)
  include Aws::Structure
end

#rule_set_nameString

The name of the rule set to which to add the rule.

Returns:

  • (String)


647
648
649
650
651
652
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 647

class CreateReceiptRuleRequest < Struct.new(
  :rule_set_name,
  :after,
  :rule)
  include Aws::Structure
end