Class: Aws::MailManager::Client

Inherits:
Seahorse::Client::Base show all
Includes:
ClientStubs
Defined in:
gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb

Overview

An API client for MailManager. To construct a client, you need to configure a :region and :credentials.

client = Aws::MailManager::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

For details on configuring region and credentials see the developer guide.

See #initialize for a full list of supported configuration options.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

API Operations collapse

Instance Method Summary collapse

Methods included from ClientStubs

#api_requests, #stub_data, #stub_responses

Methods inherited from Seahorse::Client::Base

add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.

Parameters:

  • options (Hash)

Options Hash (options):

  • :credentials (required, Aws::CredentialProvider)

    Your AWS credentials. This can be an instance of any one of the following classes:

    • Aws::Credentials - Used for configuring static, non-refreshing credentials.

    • Aws::SharedCredentials - Used for loading static credentials from a shared file, such as ~/.aws/config.

    • Aws::AssumeRoleCredentials - Used when you need to assume a role.

    • Aws::AssumeRoleWebIdentityCredentials - Used when you need to assume a role after providing credentials via the web.

    • Aws::SSOCredentials - Used for loading credentials from AWS SSO using an access token generated from aws login.

    • Aws::ProcessCredentials - Used for loading credentials from a process that outputs to stdout.

    • Aws::InstanceProfileCredentials - Used for loading credentials from an EC2 IMDS on an EC2 instance.

    • Aws::ECSCredentials - Used for loading credentials from instances running in ECS.

    • Aws::CognitoIdentityCredentials - Used for loading credentials from the Cognito Identity service.

    When :credentials are not configured directly, the following locations will be searched for credentials:

    • Aws.config[:credentials]
    • The :access_key_id, :secret_access_key, and :session_token options.
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • ~/.aws/credentials
    • ~/.aws/config
    • EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive. Construct and pass an instance of Aws::InstanceProfileCredentails or Aws::ECSCredentials to enable retries and extended timeouts. Instance profile credential fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] to true.
  • :region (required, String)

    The AWS region to connect to. The configured :region is used to determine the service :endpoint. When not passed, a default :region is searched for in the following locations:

    • Aws.config[:region]
    • ENV['AWS_REGION']
    • ENV['AMAZON_REGION']
    • ENV['AWS_DEFAULT_REGION']
    • ~/.aws/credentials
    • ~/.aws/config
  • :access_key_id (String)
  • :active_endpoint_cache (Boolean) — default: false

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false.

  • :adaptive_retry_wait_to_fill (Boolean) — default: true

    Used only in adaptive retry mode. When true, the request will sleep until there is sufficent client side capacity to retry the request. When false, the request will raise a RetryCapacityNotAvailableError and will not retry instead of sleeping.

  • :client_side_monitoring (Boolean) — default: false

    When true, client-side metrics will be collected for all API requests from this client.

  • :client_side_monitoring_client_id (String) — default: ""

    Allows you to provide an identifier for this client which will be attached to all generated client side metrics. Defaults to an empty string.

  • :client_side_monitoring_host (String) — default: "127.0.0.1"

    Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_port (Integer) — default: 31000

    Required for publishing client metrics. The port that the client side monitoring agent is running on, where client metrics will be published via UDP.

  • :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) — default: Aws::ClientSideMonitoring::Publisher

    Allows you to provide a custom client-side monitoring publisher class. By default, will use the Client Side Monitoring Agent Publisher.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types.

  • :correct_clock_skew (Boolean) — default: true

    Used only in standard and adaptive retry modes. Specifies whether to apply a clock skew correction and retry requests with skewed client clocks.

  • :defaults_mode (String) — default: "legacy"

    See DefaultsModeConfiguration for a list of the accepted modes and the configuration defaults that are included.

  • :disable_host_prefix_injection (Boolean) — default: false

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available.

  • :disable_request_compression (Boolean) — default: false

    When set to 'true' the request body will not be compressed for supported operations.

  • :endpoint (String, URI::HTTPS, URI::HTTP)

    Normally you should not configure the :endpoint option directly. This is normally constructed from the :region option. Configuring :endpoint is normally reserved for connecting to test or custom endpoints. The endpoint should be a URI formatted like:

    'http://example.com'
    'https://example.com'
    'http://example.com:123'
    
  • :endpoint_cache_max_entries (Integer) — default: 1000

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000.

  • :endpoint_cache_max_threads (Integer) — default: 10

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.

  • :endpoint_cache_poll_interval (Integer) — default: 60

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec.

  • :endpoint_discovery (Boolean) — default: false

    When set to true, endpoint discovery will be enabled for operations when available.

  • :ignore_configured_endpoint_urls (Boolean)

    Setting to true disables use of endpoint URLs provided via environment variables and the shared configuration file.

  • :log_formatter (Aws::Log::Formatter) — default: Aws::Log::Formatter.default

    The log formatter.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the :logger at.

  • :logger (Logger)

    The Logger instance to send log messages to. If this option is not set, logging will be disabled.

  • :max_attempts (Integer) — default: 3

    An integer representing the maximum number attempts that will be made for a single request, including the initial attempt. For example, setting this value to 5 will result in a request being retried up to 4 times. Used in standard and adaptive retry modes.

  • :profile (String) — default: "default"

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used.

  • :request_min_compression_size_bytes (Integer) — default: 10240

    The minimum size in bytes that triggers compression for request bodies. The value must be non-negative integer value between 0 and 10485780 bytes inclusive.

  • :retry_backoff (Proc)

    A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. This option is only used in the legacy retry mode.

  • :retry_base_delay (Float) — default: 0.3

    The base delay in seconds used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_jitter (Symbol) — default: :none

    A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number. This option is only used in the legacy retry mode.

    @see https://www.awsarchitectureblog.com/2015/03/backoff.html

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors, auth errors, endpoint discovery, and errors from expired credentials. This option is only used in the legacy retry mode.

  • :retry_max_delay (Integer) — default: 0

    The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function. This option is only used in the legacy retry mode.

  • :retry_mode (String) — default: "legacy"

    Specifies which retry algorithm to use. Values are:

    • legacy - The pre-existing retry behavior. This is default value if no retry mode is provided.

    • standard - A standardized set of retry rules across the AWS SDKs. This includes support for retry quotas, which limit the number of unsuccessful retries a client can make.

    • adaptive - An experimental retry mode that includes all the functionality of standard mode along with automatic client side throttling. This is a provisional mode that may change behavior in the future.

  • :sdk_ua_app_id (String)

    A unique and opaque application ID that is appended to the User-Agent header as app/sdk_ua_app_id. It should have a maximum length of 50. This variable is sourced from environment variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.

  • :secret_access_key (String)
  • :session_token (String)
  • :simple_json (Boolean) — default: false

    Disables request parameter conversion, validation, and formatting. Also disable response data type conversions. This option is useful when you want to ensure the highest level of performance by avoiding overhead of walking request parameters and response data structures.

    When :simple_json is enabled, the request parameters hash must be formatted exactly as the DynamoDB API expects.

  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled.

  • :token_provider (Aws::TokenProvider)

    A Bearer Token Provider. This can be an instance of any one of the following classes:

    • Aws::StaticTokenProvider - Used for configuring static, non-refreshing tokens.

    • Aws::SSOTokenProvider - Used for loading tokens from AWS SSO using an access token generated from aws login.

    When :token_provider is not configured directly, the Aws::TokenProviderChain will be used to search for tokens configured for your profile in shared configuration files.

  • :use_dualstack_endpoint (Boolean)

    When set to true, dualstack enabled endpoints (with .aws TLD) will be used if available.

  • :use_fips_endpoint (Boolean)

    When set to true, fips compatible endpoints will be used if available. When a fips region is used, the region is normalized and this config is set to true.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request.

  • :endpoint_provider (Aws::MailManager::EndpointProvider)

    The endpoint provider used to resolve endpoints. Any object that responds to #resolve_endpoint(parameters) where parameters is a Struct similar to Aws::MailManager::EndpointParameters

  • :http_continue_timeout (Float) — default: 1

    The number of seconds to wait for a 100-continue response before sending the request body. This option has no effect unless the request has "Expect" header set to "100-continue". Defaults to nil which disables this behaviour. This value can safely be set per request on the session.

  • :http_idle_timeout (Float) — default: 5

    The number of seconds a connection is allowed to sit idle before it is considered stale. Stale connections are closed and removed from the pool before making a request.

  • :http_open_timeout (Float) — default: 15

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_proxy (URI::HTTP, String)

    A proxy to send requests through. Formatted like 'http://proxy.com:123'.

  • :http_read_timeout (Float) — default: 60

    The default number of seconds to wait for response data. This value can safely be set per-request on the session.

  • :http_wire_trace (Boolean) — default: false

    When true, HTTP debug output will be sent to the :logger.

  • :on_chunk_received (Proc)

    When a Proc object is provided, it will be used as callback when each chunk of the response body is received. It provides three arguments: the chunk, the number of bytes received, and the total number of bytes in the response (or nil if the server did not send a content-length).

  • :on_chunk_sent (Proc)

    When a Proc object is provided, it will be used as callback when each chunk of the request body is sent. It provides three arguments: the chunk, the number of bytes read from the body, and the total number of bytes in the body.

  • :raise_response_errors (Boolean) — default: true

    When true, response errors are raised.

  • :ssl_ca_bundle (String)

    Full path to the SSL certificate authority bundle file that should be used when verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_directory (String)

    Full path of the directory that contains the unbundled SSL certificate authority files for verifying peer certificates. If you do not pass :ssl_ca_bundle or :ssl_ca_directory the the system default will be used if available.

  • :ssl_ca_store (String)

    Sets the X509::Store to verify peer certificate.

  • :ssl_timeout (Float)

    Sets the SSL timeout in seconds

  • :ssl_verify_peer (Boolean) — default: true

    When true, SSL peer certificates are verified when establishing a connection.



420
421
422
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 420

def initialize(*args)
  super
end

Instance Method Details

#create_addon_instance(params = {}) ⇒ Types::CreateAddonInstanceResponse

Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or traffic policy.

Examples:

Request syntax with placeholder values


resp = client.create_addon_instance({
  addon_subscription_id: "AddonSubscriptionId", # required
  client_token: "IdempotencyToken",
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.addon_instance_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :addon_subscription_id (required, String)

    The unique ID of a previously created subscription that an Add On instance is created for. You can only have one instance per subscription.

  • :client_token (String)

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

Returns:

See Also:



472
473
474
475
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 472

def create_addon_instance(params = {}, options = {})
  req = build_request(:create_addon_instance, params)
  req.send_request(options)
end

#create_addon_subscription(params = {}) ⇒ Types::CreateAddonSubscriptionResponse

Creates a subscription for an Add On representing the acceptance of its terms of use and additional pricing. The subscription can then be used to create an instance for use in rule sets or traffic policies.

Examples:

Request syntax with placeholder values


resp = client.create_addon_subscription({
  addon_name: "AddonName", # required
  client_token: "IdempotencyToken",
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.addon_subscription_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :addon_name (required, String)

    The name of the Add On to subscribe to. You can only have one subscription for each Add On name.

  • :client_token (String)

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

Returns:

See Also:



522
523
524
525
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 522

def create_addon_subscription(params = {}, options = {})
  req = build_request(:create_addon_subscription, params)
  req.send_request(options)
end

#create_archive(params = {}) ⇒ Types::CreateArchiveResponse

Creates a new email archive resource for storing and retaining emails.

Examples:

Request syntax with placeholder values


resp = client.create_archive({
  archive_name: "ArchiveNameString", # required
  client_token: "IdempotencyToken",
  kms_key_arn: "KmsKeyArn",
  retention: {
    retention_period: "THREE_MONTHS", # accepts THREE_MONTHS, SIX_MONTHS, NINE_MONTHS, ONE_YEAR, EIGHTEEN_MONTHS, TWO_YEARS, THIRTY_MONTHS, THREE_YEARS, FOUR_YEARS, FIVE_YEARS, SIX_YEARS, SEVEN_YEARS, EIGHT_YEARS, NINE_YEARS, TEN_YEARS, PERMANENT
  },
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.archive_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_name (required, String)

    A unique name for the new archive.

  • :client_token (String)

    A unique token Amazon SES uses to recognize retries of this request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :kms_key_arn (String)

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.

  • :retention (Types::ArchiveRetention)

    The period for retaining emails in the archive before automatic deletion.

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

Returns:

See Also:



580
581
582
583
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 580

def create_archive(params = {}, options = {})
  req = build_request(:create_archive, params)
  req.send_request(options)
end

#create_ingress_point(params = {}) ⇒ Types::CreateIngressPointResponse

Provision a new ingress endpoint resource.

Examples:

Request syntax with placeholder values


resp = client.create_ingress_point({
  client_token: "IdempotencyToken",
  ingress_point_configuration: {
    secret_arn: "SecretArn",
    smtp_password: "SmtpPassword",
  },
  ingress_point_name: "IngressPointName", # required
  rule_set_id: "RuleSetId", # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
  traffic_policy_id: "TrafficPolicyId", # required
  type: "OPEN", # required, accepts OPEN, AUTH
})

Response structure


resp.ingress_point_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :client_token (String)

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :ingress_point_configuration (Types::IngressPointConfiguration)

    If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

  • :ingress_point_name (required, String)

    A user friendly name for an ingress endpoint resource.

  • :rule_set_id (required, String)

    The identifier of an existing rule set that you attach to an ingress endpoint resource.

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

  • :traffic_policy_id (required, String)

    The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

  • :type (required, String)

    The type of the ingress endpoint to create.

Returns:

See Also:



649
650
651
652
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 649

def create_ingress_point(params = {}, options = {})
  req = build_request(:create_ingress_point, params)
  req.send_request(options)
end

#create_relay(params = {}) ⇒ Types::CreateRelayResponse

Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.

Examples:

Request syntax with placeholder values


resp = client.create_relay({
  authentication: { # required
    no_authentication: {
    },
    secret_arn: "SecretArn",
  },
  client_token: "IdempotencyToken",
  relay_name: "RelayName", # required
  server_name: "RelayServerName", # required
  server_port: 1, # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.relay_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :authentication (required, Types::RelayAuthentication)

    Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

  • :client_token (String)

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :relay_name (required, String)

    The unique name of the relay resource.

  • :server_name (required, String)

    The destination relay server address.

  • :server_port (required, Integer)

    The destination relay server port.

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

Returns:

See Also:



714
715
716
717
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 714

def create_relay(params = {}, options = {})
  req = build_request(:create_relay, params)
  req.send_request(options)
end

#create_rule_set(params = {}) ⇒ Types::CreateRuleSetResponse

Provision a new rule set.

Examples:

Request syntax with placeholder values


resp = client.create_rule_set({
  client_token: "IdempotencyToken",
  rule_set_name: "RuleSetName", # required
  rules: [ # required
    {
      actions: [ # required
        {
          add_header: {
            header_name: "HeaderName", # required
            header_value: "HeaderValue", # required
          },
          archive: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            target_archive: "NameOrArn", # required
          },
          deliver_to_mailbox: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            mailbox_arn: "NameOrArn", # required
            role_arn: "IamRoleArn", # required
          },
          drop: {
          },
          relay: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            mail_from: "REPLACE", # accepts REPLACE, PRESERVE
            relay: "IdOrArn", # required
          },
          replace_recipient: {
            replace_with: ["EmailAddress"],
          },
          send: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            role_arn: "IamRoleArn", # required
          },
          write_to_s3: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            role_arn: "IamRoleArn", # required
            s3_bucket: "S3Bucket", # required
            s3_prefix: "S3Prefix",
            s3_sse_kms_key_id: "KmsKeyId",
          },
        },
      ],
      conditions: [
        {
          boolean_expression: {
            evaluate: { # required
              attribute: "READ_RECEIPT_REQUESTED", # accepts READ_RECEIPT_REQUESTED, TLS, TLS_WRAPPED
            },
            operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
          },
          dmarc_expression: {
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["NONE"], # required, accepts NONE, QUARANTINE, REJECT
          },
          ip_expression: {
            evaluate: { # required
              attribute: "SOURCE_IP", # accepts SOURCE_IP
            },
            operator: "CIDR_MATCHES", # required, accepts CIDR_MATCHES, NOT_CIDR_MATCHES
            values: ["RuleIpStringValue"], # required
          },
          number_expression: {
            evaluate: { # required
              attribute: "MESSAGE_SIZE", # accepts MESSAGE_SIZE
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL
            value: 1.0, # required
          },
          string_expression: {
            evaluate: { # required
              attribute: "MAIL_FROM", # accepts MAIL_FROM, HELO, RECIPIENT, SENDER, FROM, SUBJECT, TO, CC
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, STARTS_WITH, ENDS_WITH, CONTAINS
            values: ["RuleStringValue"], # required
          },
          verdict_expression: {
            evaluate: { # required
              analysis: {
                analyzer: "AnalyzerArn", # required
                result_field: "ResultField", # required
              },
              attribute: "SPF", # accepts SPF, DKIM
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["PASS"], # required, accepts PASS, FAIL, GRAY, PROCESSING_FAILED
          },
        },
      ],
      name: "RuleName",
      unless: [
        {
          boolean_expression: {
            evaluate: { # required
              attribute: "READ_RECEIPT_REQUESTED", # accepts READ_RECEIPT_REQUESTED, TLS, TLS_WRAPPED
            },
            operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
          },
          dmarc_expression: {
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["NONE"], # required, accepts NONE, QUARANTINE, REJECT
          },
          ip_expression: {
            evaluate: { # required
              attribute: "SOURCE_IP", # accepts SOURCE_IP
            },
            operator: "CIDR_MATCHES", # required, accepts CIDR_MATCHES, NOT_CIDR_MATCHES
            values: ["RuleIpStringValue"], # required
          },
          number_expression: {
            evaluate: { # required
              attribute: "MESSAGE_SIZE", # accepts MESSAGE_SIZE
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL
            value: 1.0, # required
          },
          string_expression: {
            evaluate: { # required
              attribute: "MAIL_FROM", # accepts MAIL_FROM, HELO, RECIPIENT, SENDER, FROM, SUBJECT, TO, CC
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, STARTS_WITH, ENDS_WITH, CONTAINS
            values: ["RuleStringValue"], # required
          },
          verdict_expression: {
            evaluate: { # required
              analysis: {
                analyzer: "AnalyzerArn", # required
                result_field: "ResultField", # required
              },
              attribute: "SPF", # accepts SPF, DKIM
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["PASS"], # required, accepts PASS, FAIL, GRAY, PROCESSING_FAILED
          },
        },
      ],
    },
  ],
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.rule_set_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :client_token (String)

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :rule_set_name (required, String)

    A user-friendly name for the rule set.

  • :rules (required, Array<Types::Rule>)

    Conditional rules that are evaluated for determining actions on email.

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

Returns:

See Also:



899
900
901
902
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 899

def create_rule_set(params = {}, options = {})
  req = build_request(:create_rule_set, params)
  req.send_request(options)
end

#create_traffic_policy(params = {}) ⇒ Types::CreateTrafficPolicyResponse

Provision a new traffic policy resource.

Examples:

Request syntax with placeholder values


resp = client.create_traffic_policy({
  client_token: "IdempotencyToken",
  default_action: "ALLOW", # required, accepts ALLOW, DENY
  max_message_size_bytes: 1,
  policy_statements: [ # required
    {
      action: "ALLOW", # required, accepts ALLOW, DENY
      conditions: [ # required
        {
          boolean_expression: {
            evaluate: { # required
              analysis: {
                analyzer: "AnalyzerArn", # required
                result_field: "ResultField", # required
              },
            },
            operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
          },
          ip_expression: {
            evaluate: { # required
              attribute: "SENDER_IP", # accepts SENDER_IP
            },
            operator: "CIDR_MATCHES", # required, accepts CIDR_MATCHES, NOT_CIDR_MATCHES
            values: ["Ipv4Cidr"], # required
          },
          string_expression: {
            evaluate: { # required
              attribute: "RECIPIENT", # accepts RECIPIENT
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, STARTS_WITH, ENDS_WITH, CONTAINS
            values: ["String"], # required
          },
          tls_expression: {
            evaluate: { # required
              attribute: "TLS_PROTOCOL", # accepts TLS_PROTOCOL
            },
            operator: "MINIMUM_TLS_VERSION", # required, accepts MINIMUM_TLS_VERSION, IS
            value: "TLS1_2", # required, accepts TLS1_2, TLS1_3
          },
        },
      ],
    },
  ],
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
  traffic_policy_name: "TrafficPolicyName", # required
})

Response structure


resp.traffic_policy_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :client_token (String)

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    A suitable default value is auto-generated. You should normally not need to pass this option.**

  • :default_action (required, String)

    Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

  • :max_message_size_bytes (Integer)

    The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

  • :policy_statements (required, Array<Types::PolicyStatement>)

    Conditional statements for filtering email traffic.

  • :tags (Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

  • :traffic_policy_name (required, String)

    A user-friendly name for the traffic policy resource.

Returns:

See Also:



999
1000
1001
1002
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 999

def create_traffic_policy(params = {}, options = {})
  req = build_request(:create_traffic_policy, params)
  req.send_request(options)
end

#delete_addon_instance(params = {}) ⇒ Struct

Deletes an Add On instance.

Examples:

Request syntax with placeholder values


resp = client.delete_addon_instance({
  addon_instance_id: "AddonInstanceId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :addon_instance_id (required, String)

    The Add On instance ID to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1021
1022
1023
1024
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1021

def delete_addon_instance(params = {}, options = {})
  req = build_request(:delete_addon_instance, params)
  req.send_request(options)
end

#delete_addon_subscription(params = {}) ⇒ Struct

Deletes an Add On subscription.

Examples:

Request syntax with placeholder values


resp = client.delete_addon_subscription({
  addon_subscription_id: "AddonSubscriptionId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :addon_subscription_id (required, String)

    The Add On subscription ID to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1043
1044
1045
1046
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1043

def delete_addon_subscription(params = {}, options = {})
  req = build_request(:delete_addon_subscription, params)
  req.send_request(options)
end

#delete_archive(params = {}) ⇒ Struct

Initiates deletion of an email archive. This changes the archive state to pending deletion. In this state, no new emails can be added, and existing archived emails become inaccessible (search, export, download). The archive and all of its contents will be permanently deleted 30 days after entering the pending deletion state, regardless of the configured retention period.

Examples:

Request syntax with placeholder values


resp = client.delete_archive({
  archive_id: "ArchiveIdString", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1070
1071
1072
1073
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1070

def delete_archive(params = {}, options = {})
  req = build_request(:delete_archive, params)
  req.send_request(options)
end

#delete_ingress_point(params = {}) ⇒ Struct

Delete an ingress endpoint resource.

Examples:

Request syntax with placeholder values


resp = client.delete_ingress_point({
  ingress_point_id: "IngressPointId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :ingress_point_id (required, String)

    The identifier of the ingress endpoint resource that you want to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1093
1094
1095
1096
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1093

def delete_ingress_point(params = {}, options = {})
  req = build_request(:delete_ingress_point, params)
  req.send_request(options)
end

#delete_relay(params = {}) ⇒ Struct

Deletes an existing relay resource.

Examples:

Request syntax with placeholder values


resp = client.delete_relay({
  relay_id: "RelayId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :relay_id (required, String)

    The unique relay identifier.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1115
1116
1117
1118
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1115

def delete_relay(params = {}, options = {})
  req = build_request(:delete_relay, params)
  req.send_request(options)
end

#delete_rule_set(params = {}) ⇒ Struct

Delete a rule set.

Examples:

Request syntax with placeholder values


resp = client.delete_rule_set({
  rule_set_id: "RuleSetId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule_set_id (required, String)

    The identifier of an existing rule set resource to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1137
1138
1139
1140
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1137

def delete_rule_set(params = {}, options = {})
  req = build_request(:delete_rule_set, params)
  req.send_request(options)
end

#delete_traffic_policy(params = {}) ⇒ Struct

Delete a traffic policy resource.

Examples:

Request syntax with placeholder values


resp = client.delete_traffic_policy({
  traffic_policy_id: "TrafficPolicyId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :traffic_policy_id (required, String)

    The identifier of the traffic policy that you want to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1159
1160
1161
1162
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1159

def delete_traffic_policy(params = {}, options = {})
  req = build_request(:delete_traffic_policy, params)
  req.send_request(options)
end

#get_addon_instance(params = {}) ⇒ Types::GetAddonInstanceResponse

Gets detailed information about an Add On instance.

Examples:

Request syntax with placeholder values


resp = client.get_addon_instance({
  addon_instance_id: "AddonInstanceId", # required
})

Response structure


resp.addon_instance_arn #=> String
resp.addon_name #=> String
resp.addon_subscription_id #=> String
resp.created_timestamp #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :addon_instance_id (required, String)

    The Add On instance ID to retrieve information for.

Returns:

See Also:



1193
1194
1195
1196
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1193

def get_addon_instance(params = {}, options = {})
  req = build_request(:get_addon_instance, params)
  req.send_request(options)
end

#get_addon_subscription(params = {}) ⇒ Types::GetAddonSubscriptionResponse

Gets detailed information about an Add On subscription.

Examples:

Request syntax with placeholder values


resp = client.get_addon_subscription({
  addon_subscription_id: "AddonSubscriptionId", # required
})

Response structure


resp.addon_name #=> String
resp.addon_subscription_arn #=> String
resp.created_timestamp #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :addon_subscription_id (required, String)

    The Add On subscription ID to retrieve information for.

Returns:

See Also:



1225
1226
1227
1228
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1225

def get_addon_subscription(params = {}, options = {})
  req = build_request(:get_addon_subscription, params)
  req.send_request(options)
end

#get_archive(params = {}) ⇒ Types::GetArchiveResponse

Retrieves the full details and current state of a specified email archive.

Examples:

Request syntax with placeholder values


resp = client.get_archive({
  archive_id: "ArchiveIdString", # required
})

Response structure


resp.archive_arn #=> String
resp.archive_id #=> String
resp.archive_name #=> String
resp.archive_state #=> String, one of "ACTIVE", "PENDING_DELETION"
resp.created_timestamp #=> Time
resp.kms_key_arn #=> String
resp.last_updated_timestamp #=> Time
resp.retention.retention_period #=> String, one of "THREE_MONTHS", "SIX_MONTHS", "NINE_MONTHS", "ONE_YEAR", "EIGHTEEN_MONTHS", "TWO_YEARS", "THIRTY_MONTHS", "THREE_YEARS", "FOUR_YEARS", "FIVE_YEARS", "SIX_YEARS", "SEVEN_YEARS", "EIGHT_YEARS", "NINE_YEARS", "TEN_YEARS", "PERMANENT"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive to retrieve.

Returns:

See Also:



1268
1269
1270
1271
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1268

def get_archive(params = {}, options = {})
  req = build_request(:get_archive, params)
  req.send_request(options)
end

#get_archive_export(params = {}) ⇒ Types::GetArchiveExportResponse

Retrieves the details and current status of a specific email archive export job.

Examples:

Request syntax with placeholder values


resp = client.get_archive_export({
  export_id: "ExportId", # required
})

Response structure


resp.archive_id #=> String
resp.export_destination_configuration.s3.s3_location #=> String
resp.filters.include #=> Array
resp.filters.include[0].boolean_expression.evaluate.attribute #=> String, one of "HAS_ATTACHMENTS"
resp.filters.include[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.filters.include[0].string_expression.evaluate.attribute #=> String, one of "TO", "FROM", "CC", "SUBJECT"
resp.filters.include[0].string_expression.operator #=> String, one of "CONTAINS"
resp.filters.include[0].string_expression.values #=> Array
resp.filters.include[0].string_expression.values[0] #=> String
resp.filters.unless #=> Array
resp.filters.unless[0].boolean_expression.evaluate.attribute #=> String, one of "HAS_ATTACHMENTS"
resp.filters.unless[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.filters.unless[0].string_expression.evaluate.attribute #=> String, one of "TO", "FROM", "CC", "SUBJECT"
resp.filters.unless[0].string_expression.operator #=> String, one of "CONTAINS"
resp.filters.unless[0].string_expression.values #=> Array
resp.filters.unless[0].string_expression.values[0] #=> String
resp.from_timestamp #=> Time
resp.max_results #=> Integer
resp.status.completion_timestamp #=> Time
resp.status.error_message #=> String
resp.status.state #=> String, one of "QUEUED", "PREPROCESSING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"
resp.status.submission_timestamp #=> Time
resp.to_timestamp #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :export_id (required, String)

    The identifier of the export job to get details for.

Returns:

See Also:



1325
1326
1327
1328
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1325

def get_archive_export(params = {}, options = {})
  req = build_request(:get_archive_export, params)
  req.send_request(options)
end

#get_archive_message(params = {}) ⇒ Types::GetArchiveMessageResponse

Returns a pre-signed URL that provides temporary download access to the specific email message stored in the archive.

Examples:

Request syntax with placeholder values


resp = client.get_archive_message({
  archived_message_id: "ArchivedMessageId", # required
})

Response structure


resp.message_download_link #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archived_message_id (required, String)

    The unique identifier of the archived email message.

Returns:

See Also:



1354
1355
1356
1357
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1354

def get_archive_message(params = {}, options = {})
  req = build_request(:get_archive_message, params)
  req.send_request(options)
end

#get_archive_message_content(params = {}) ⇒ Types::GetArchiveMessageContentResponse

Returns the textual content of a specific email message stored in the archive. Attachments are not included.

Examples:

Request syntax with placeholder values


resp = client.get_archive_message_content({
  archived_message_id: "ArchivedMessageId", # required
})

Response structure


resp.body.html #=> String
resp.body.message_malformed #=> Boolean
resp.body.text #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archived_message_id (required, String)

    The unique identifier of the archived email message.

Returns:

See Also:



1385
1386
1387
1388
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1385

def get_archive_message_content(params = {}, options = {})
  req = build_request(:get_archive_message_content, params)
  req.send_request(options)
end

#get_archive_search(params = {}) ⇒ Types::GetArchiveSearchResponse

Retrieves the details and current status of a specific email archive search job.

Examples:

Request syntax with placeholder values


resp = client.get_archive_search({
  search_id: "SearchId", # required
})

Response structure


resp.archive_id #=> String
resp.filters.include #=> Array
resp.filters.include[0].boolean_expression.evaluate.attribute #=> String, one of "HAS_ATTACHMENTS"
resp.filters.include[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.filters.include[0].string_expression.evaluate.attribute #=> String, one of "TO", "FROM", "CC", "SUBJECT"
resp.filters.include[0].string_expression.operator #=> String, one of "CONTAINS"
resp.filters.include[0].string_expression.values #=> Array
resp.filters.include[0].string_expression.values[0] #=> String
resp.filters.unless #=> Array
resp.filters.unless[0].boolean_expression.evaluate.attribute #=> String, one of "HAS_ATTACHMENTS"
resp.filters.unless[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.filters.unless[0].string_expression.evaluate.attribute #=> String, one of "TO", "FROM", "CC", "SUBJECT"
resp.filters.unless[0].string_expression.operator #=> String, one of "CONTAINS"
resp.filters.unless[0].string_expression.values #=> Array
resp.filters.unless[0].string_expression.values[0] #=> String
resp.from_timestamp #=> Time
resp.max_results #=> Integer
resp.status.completion_timestamp #=> Time
resp.status.error_message #=> String
resp.status.state #=> String, one of "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"
resp.status.submission_timestamp #=> Time
resp.to_timestamp #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :search_id (required, String)

    The identifier of the search job to get details for.

Returns:

See Also:



1440
1441
1442
1443
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1440

def get_archive_search(params = {}, options = {})
  req = build_request(:get_archive_search, params)
  req.send_request(options)
end

#get_archive_search_results(params = {}) ⇒ Types::GetArchiveSearchResultsResponse

Returns the results of a completed email archive search job.

Examples:

Request syntax with placeholder values


resp = client.get_archive_search_results({
  search_id: "SearchId", # required
})

Response structure


resp.rows #=> Array
resp.rows[0].archived_message_id #=> String
resp.rows[0].cc #=> String
resp.rows[0].date #=> String
resp.rows[0].from #=> String
resp.rows[0].has_attachments #=> Boolean
resp.rows[0].in_reply_to #=> String
resp.rows[0].message_id #=> String
resp.rows[0].received_headers #=> Array
resp.rows[0].received_headers[0] #=> String
resp.rows[0].received_timestamp #=> Time
resp.rows[0].subject #=> String
resp.rows[0].to #=> String
resp.rows[0].x_mailer #=> String
resp.rows[0].x_original_mailer #=> String
resp.rows[0].x_priority #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :search_id (required, String)

    The identifier of the completed search job.

Returns:

See Also:



1483
1484
1485
1486
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1483

def get_archive_search_results(params = {}, options = {})
  req = build_request(:get_archive_search_results, params)
  req.send_request(options)
end

#get_ingress_point(params = {}) ⇒ Types::GetIngressPointResponse

Fetch ingress endpoint resource attributes.

Examples:

Request syntax with placeholder values


resp = client.get_ingress_point({
  ingress_point_id: "IngressPointId", # required
})

Response structure


resp.a_record #=> String
resp.created_timestamp #=> Time
resp.ingress_point_arn #=> String
resp.ingress_point_auth_configuration.ingress_point_password_configuration.previous_smtp_password_expiry_timestamp #=> Time
resp.ingress_point_auth_configuration.ingress_point_password_configuration.previous_smtp_password_version #=> String
resp.ingress_point_auth_configuration.ingress_point_password_configuration.smtp_password_version #=> String
resp.ingress_point_auth_configuration.secret_arn #=> String
resp.ingress_point_id #=> String
resp.ingress_point_name #=> String
resp.last_updated_timestamp #=> Time
resp.rule_set_id #=> String
resp.status #=> String, one of "PROVISIONING", "DEPROVISIONING", "UPDATING", "ACTIVE", "CLOSED", "FAILED"
resp.traffic_policy_id #=> String
resp.type #=> String, one of "OPEN", "AUTH"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :ingress_point_id (required, String)

    The identifier of an ingress endpoint.

Returns:

See Also:



1534
1535
1536
1537
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1534

def get_ingress_point(params = {}, options = {})
  req = build_request(:get_ingress_point, params)
  req.send_request(options)
end

#get_relay(params = {}) ⇒ Types::GetRelayResponse

Fetch the relay resource and it's attributes.

Examples:

Request syntax with placeholder values


resp = client.get_relay({
  relay_id: "RelayId", # required
})

Response structure


resp.authentication.secret_arn #=> String
resp.created_timestamp #=> Time
resp.last_modified_timestamp #=> Time
resp.relay_arn #=> String
resp.relay_id #=> String
resp.relay_name #=> String
resp.server_name #=> String
resp.server_port #=> Integer

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :relay_id (required, String)

    A unique relay identifier.

Returns:

See Also:



1576
1577
1578
1579
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1576

def get_relay(params = {}, options = {})
  req = build_request(:get_relay, params)
  req.send_request(options)
end

#get_rule_set(params = {}) ⇒ Types::GetRuleSetResponse

Fetch attributes of a rule set.

Examples:

Request syntax with placeholder values


resp = client.get_rule_set({
  rule_set_id: "RuleSetId", # required
})

Response structure


resp.created_date #=> Time
resp.last_modification_date #=> Time
resp.rule_set_arn #=> String
resp.rule_set_id #=> String
resp.rule_set_name #=> String
resp.rules #=> Array
resp.rules[0].actions #=> Array
resp.rules[0].actions[0].add_header.header_name #=> String
resp.rules[0].actions[0].add_header.header_value #=> String
resp.rules[0].actions[0].archive.action_failure_policy #=> String, one of "CONTINUE", "DROP"
resp.rules[0].actions[0].archive.target_archive #=> String
resp.rules[0].actions[0].deliver_to_mailbox.action_failure_policy #=> String, one of "CONTINUE", "DROP"
resp.rules[0].actions[0].deliver_to_mailbox.mailbox_arn #=> String
resp.rules[0].actions[0].deliver_to_mailbox.role_arn #=> String
resp.rules[0].actions[0].relay.action_failure_policy #=> String, one of "CONTINUE", "DROP"
resp.rules[0].actions[0].relay.mail_from #=> String, one of "REPLACE", "PRESERVE"
resp.rules[0].actions[0].relay.relay #=> String
resp.rules[0].actions[0].replace_recipient.replace_with #=> Array
resp.rules[0].actions[0].replace_recipient.replace_with[0] #=> String
resp.rules[0].actions[0].send.action_failure_policy #=> String, one of "CONTINUE", "DROP"
resp.rules[0].actions[0].send.role_arn #=> String
resp.rules[0].actions[0].write_to_s3.action_failure_policy #=> String, one of "CONTINUE", "DROP"
resp.rules[0].actions[0].write_to_s3.role_arn #=> String
resp.rules[0].actions[0].write_to_s3.s3_bucket #=> String
resp.rules[0].actions[0].write_to_s3.s3_prefix #=> String
resp.rules[0].actions[0].write_to_s3.s3_sse_kms_key_id #=> String
resp.rules[0].conditions #=> Array
resp.rules[0].conditions[0].boolean_expression.evaluate.attribute #=> String, one of "READ_RECEIPT_REQUESTED", "TLS", "TLS_WRAPPED"
resp.rules[0].conditions[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.rules[0].conditions[0].dmarc_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS"
resp.rules[0].conditions[0].dmarc_expression.values #=> Array
resp.rules[0].conditions[0].dmarc_expression.values[0] #=> String, one of "NONE", "QUARANTINE", "REJECT"
resp.rules[0].conditions[0].ip_expression.evaluate.attribute #=> String, one of "SOURCE_IP"
resp.rules[0].conditions[0].ip_expression.operator #=> String, one of "CIDR_MATCHES", "NOT_CIDR_MATCHES"
resp.rules[0].conditions[0].ip_expression.values #=> Array
resp.rules[0].conditions[0].ip_expression.values[0] #=> String
resp.rules[0].conditions[0].number_expression.evaluate.attribute #=> String, one of "MESSAGE_SIZE"
resp.rules[0].conditions[0].number_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS", "LESS_THAN", "GREATER_THAN", "LESS_THAN_OR_EQUAL", "GREATER_THAN_OR_EQUAL"
resp.rules[0].conditions[0].number_expression.value #=> Float
resp.rules[0].conditions[0].string_expression.evaluate.attribute #=> String, one of "MAIL_FROM", "HELO", "RECIPIENT", "SENDER", "FROM", "SUBJECT", "TO", "CC"
resp.rules[0].conditions[0].string_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS", "STARTS_WITH", "ENDS_WITH", "CONTAINS"
resp.rules[0].conditions[0].string_expression.values #=> Array
resp.rules[0].conditions[0].string_expression.values[0] #=> String
resp.rules[0].conditions[0].verdict_expression.evaluate.analysis.analyzer #=> String
resp.rules[0].conditions[0].verdict_expression.evaluate.analysis.result_field #=> String
resp.rules[0].conditions[0].verdict_expression.evaluate.attribute #=> String, one of "SPF", "DKIM"
resp.rules[0].conditions[0].verdict_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS"
resp.rules[0].conditions[0].verdict_expression.values #=> Array
resp.rules[0].conditions[0].verdict_expression.values[0] #=> String, one of "PASS", "FAIL", "GRAY", "PROCESSING_FAILED"
resp.rules[0].name #=> String
resp.rules[0].unless #=> Array
resp.rules[0].unless[0].boolean_expression.evaluate.attribute #=> String, one of "READ_RECEIPT_REQUESTED", "TLS", "TLS_WRAPPED"
resp.rules[0].unless[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.rules[0].unless[0].dmarc_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS"
resp.rules[0].unless[0].dmarc_expression.values #=> Array
resp.rules[0].unless[0].dmarc_expression.values[0] #=> String, one of "NONE", "QUARANTINE", "REJECT"
resp.rules[0].unless[0].ip_expression.evaluate.attribute #=> String, one of "SOURCE_IP"
resp.rules[0].unless[0].ip_expression.operator #=> String, one of "CIDR_MATCHES", "NOT_CIDR_MATCHES"
resp.rules[0].unless[0].ip_expression.values #=> Array
resp.rules[0].unless[0].ip_expression.values[0] #=> String
resp.rules[0].unless[0].number_expression.evaluate.attribute #=> String, one of "MESSAGE_SIZE"
resp.rules[0].unless[0].number_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS", "LESS_THAN", "GREATER_THAN", "LESS_THAN_OR_EQUAL", "GREATER_THAN_OR_EQUAL"
resp.rules[0].unless[0].number_expression.value #=> Float
resp.rules[0].unless[0].string_expression.evaluate.attribute #=> String, one of "MAIL_FROM", "HELO", "RECIPIENT", "SENDER", "FROM", "SUBJECT", "TO", "CC"
resp.rules[0].unless[0].string_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS", "STARTS_WITH", "ENDS_WITH", "CONTAINS"
resp.rules[0].unless[0].string_expression.values #=> Array
resp.rules[0].unless[0].string_expression.values[0] #=> String
resp.rules[0].unless[0].verdict_expression.evaluate.analysis.analyzer #=> String
resp.rules[0].unless[0].verdict_expression.evaluate.analysis.result_field #=> String
resp.rules[0].unless[0].verdict_expression.evaluate.attribute #=> String, one of "SPF", "DKIM"
resp.rules[0].unless[0].verdict_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS"
resp.rules[0].unless[0].verdict_expression.values #=> Array
resp.rules[0].unless[0].verdict_expression.values[0] #=> String, one of "PASS", "FAIL", "GRAY", "PROCESSING_FAILED"

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule_set_id (required, String)

    The identifier of an existing rule set to be retrieved.

Returns:

See Also:



1681
1682
1683
1684
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1681

def get_rule_set(params = {}, options = {})
  req = build_request(:get_rule_set, params)
  req.send_request(options)
end

#get_traffic_policy(params = {}) ⇒ Types::GetTrafficPolicyResponse

Fetch attributes of a traffic policy resource.

Examples:

Request syntax with placeholder values


resp = client.get_traffic_policy({
  traffic_policy_id: "TrafficPolicyId", # required
})

Response structure


resp.created_timestamp #=> Time
resp.default_action #=> String, one of "ALLOW", "DENY"
resp.last_updated_timestamp #=> Time
resp.max_message_size_bytes #=> Integer
resp.policy_statements #=> Array
resp.policy_statements[0].action #=> String, one of "ALLOW", "DENY"
resp.policy_statements[0].conditions #=> Array
resp.policy_statements[0].conditions[0].boolean_expression.evaluate.analysis.analyzer #=> String
resp.policy_statements[0].conditions[0].boolean_expression.evaluate.analysis.result_field #=> String
resp.policy_statements[0].conditions[0].boolean_expression.operator #=> String, one of "IS_TRUE", "IS_FALSE"
resp.policy_statements[0].conditions[0].ip_expression.evaluate.attribute #=> String, one of "SENDER_IP"
resp.policy_statements[0].conditions[0].ip_expression.operator #=> String, one of "CIDR_MATCHES", "NOT_CIDR_MATCHES"
resp.policy_statements[0].conditions[0].ip_expression.values #=> Array
resp.policy_statements[0].conditions[0].ip_expression.values[0] #=> String
resp.policy_statements[0].conditions[0].string_expression.evaluate.attribute #=> String, one of "RECIPIENT"
resp.policy_statements[0].conditions[0].string_expression.operator #=> String, one of "EQUALS", "NOT_EQUALS", "STARTS_WITH", "ENDS_WITH", "CONTAINS"
resp.policy_statements[0].conditions[0].string_expression.values #=> Array
resp.policy_statements[0].conditions[0].string_expression.values[0] #=> String
resp.policy_statements[0].conditions[0].tls_expression.evaluate.attribute #=> String, one of "TLS_PROTOCOL"
resp.policy_statements[0].conditions[0].tls_expression.operator #=> String, one of "MINIMUM_TLS_VERSION", "IS"
resp.policy_statements[0].conditions[0].tls_expression.value #=> String, one of "TLS1_2", "TLS1_3"
resp.traffic_policy_arn #=> String
resp.traffic_policy_id #=> String
resp.traffic_policy_name #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :traffic_policy_id (required, String)

    The identifier of the traffic policy resource.

Returns:

See Also:



1739
1740
1741
1742
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1739

def get_traffic_policy(params = {}, options = {})
  req = build_request(:get_traffic_policy, params)
  req.send_request(options)
end

#list_addon_instances(params = {}) ⇒ Types::ListAddonInstancesResponse

Lists all Add On instances in your account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_addon_instances({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.addon_instances #=> Array
resp.addon_instances[0].addon_instance_arn #=> String
resp.addon_instances[0].addon_instance_id #=> String
resp.addon_instances[0].addon_name #=> String
resp.addon_instances[0].addon_subscription_id #=> String
resp.addon_instances[0].created_timestamp #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • :page_size (Integer)

    The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

Returns:

See Also:



1783
1784
1785
1786
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1783

def list_addon_instances(params = {}, options = {})
  req = build_request(:list_addon_instances, params)
  req.send_request(options)
end

#list_addon_subscriptions(params = {}) ⇒ Types::ListAddonSubscriptionsResponse

Lists all Add On subscriptions in your account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_addon_subscriptions({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.addon_subscriptions #=> Array
resp.addon_subscriptions[0].addon_name #=> String
resp.addon_subscriptions[0].addon_subscription_arn #=> String
resp.addon_subscriptions[0].addon_subscription_id #=> String
resp.addon_subscriptions[0].created_timestamp #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • :page_size (Integer)

    The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

Returns:

See Also:



1826
1827
1828
1829
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1826

def list_addon_subscriptions(params = {}, options = {})
  req = build_request(:list_addon_subscriptions, params)
  req.send_request(options)
end

#list_archive_exports(params = {}) ⇒ Types::ListArchiveExportsResponse

Returns a list of email archive export jobs.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_archive_exports({
  archive_id: "ArchiveId", # required
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.exports #=> Array
resp.exports[0].export_id #=> String
resp.exports[0].status.completion_timestamp #=> Time
resp.exports[0].status.error_message #=> String
resp.exports[0].status.state #=> String, one of "QUEUED", "PREPROCESSING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"
resp.exports[0].status.submission_timestamp #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive.

  • :next_token (String)

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

  • :page_size (Integer)

    The maximum number of archive export jobs that are returned per call. You can use NextToken to obtain further pages of archives.

Returns:

See Also:



1874
1875
1876
1877
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1874

def list_archive_exports(params = {}, options = {})
  req = build_request(:list_archive_exports, params)
  req.send_request(options)
end

#list_archive_searches(params = {}) ⇒ Types::ListArchiveSearchesResponse

Returns a list of email archive search jobs.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_archive_searches({
  archive_id: "ArchiveId", # required
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.next_token #=> String
resp.searches #=> Array
resp.searches[0].search_id #=> String
resp.searches[0].status.completion_timestamp #=> Time
resp.searches[0].status.error_message #=> String
resp.searches[0].status.state #=> String, one of "QUEUED", "RUNNING", "COMPLETED", "FAILED", "CANCELLED"
resp.searches[0].status.submission_timestamp #=> Time

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive.

  • :next_token (String)

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

  • :page_size (Integer)

    The maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives.

Returns:

See Also:



1922
1923
1924
1925
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1922

def list_archive_searches(params = {}, options = {})
  req = build_request(:list_archive_searches, params)
  req.send_request(options)
end

#list_archives(params = {}) ⇒ Types::ListArchivesResponse

Returns a list of all email archives in your account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_archives({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.archives #=> Array
resp.archives[0].archive_id #=> String
resp.archives[0].archive_name #=> String
resp.archives[0].archive_state #=> String, one of "ACTIVE", "PENDING_DELETION"
resp.archives[0].last_updated_timestamp #=> Time
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

  • :page_size (Integer)

    The maximum number of archives that are returned per call. You can use NextToken to obtain further pages of archives.

Returns:

See Also:



1965
1966
1967
1968
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 1965

def list_archives(params = {}, options = {})
  req = build_request(:list_archives, params)
  req.send_request(options)
end

#list_ingress_points(params = {}) ⇒ Types::ListIngressPointsResponse

List all ingress endpoint resources.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_ingress_points({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.ingress_points #=> Array
resp.ingress_points[0].a_record #=> String
resp.ingress_points[0].ingress_point_id #=> String
resp.ingress_points[0].ingress_point_name #=> String
resp.ingress_points[0].status #=> String, one of "PROVISIONING", "DEPROVISIONING", "UPDATING", "ACTIVE", "CLOSED", "FAILED"
resp.ingress_points[0].type #=> String, one of "OPEN", "AUTH"
resp.next_token #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • :page_size (Integer)

    The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

Returns:

See Also:



2009
2010
2011
2012
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2009

def list_ingress_points(params = {}, options = {})
  req = build_request(:list_ingress_points, params)
  req.send_request(options)
end

#list_relays(params = {}) ⇒ Types::ListRelaysResponse

Lists all the existing relay resources.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_relays({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.next_token #=> String
resp.relays #=> Array
resp.relays[0].last_modified_timestamp #=> Time
resp.relays[0].relay_id #=> String
resp.relays[0].relay_name #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • :page_size (Integer)

    The number of relays to be returned in one request.

Returns:

See Also:



2050
2051
2052
2053
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2050

def list_relays(params = {}, options = {})
  req = build_request(:list_relays, params)
  req.send_request(options)
end

#list_rule_sets(params = {}) ⇒ Types::ListRuleSetsResponse

List rule sets for this account.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_rule_sets({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.next_token #=> String
resp.rule_sets #=> Array
resp.rule_sets[0].last_modification_date #=> Time
resp.rule_sets[0].rule_set_id #=> String
resp.rule_sets[0].rule_set_name #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • :page_size (Integer)

    The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.

Returns:

See Also:



2092
2093
2094
2095
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2092

def list_rule_sets(params = {}, options = {})
  req = build_request(:list_rule_sets, params)
  req.send_request(options)
end

#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse

Retrieves the list of tags (keys and values) assigned to the resource.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  resource_arn: "TaggableResourceArn", # required
})

Response structure


resp.tags #=> Array
resp.tags[0].key #=> String
resp.tags[0].value #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

Returns:

See Also:



2122
2123
2124
2125
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2122

def list_tags_for_resource(params = {}, options = {})
  req = build_request(:list_tags_for_resource, params)
  req.send_request(options)
end

#list_traffic_policies(params = {}) ⇒ Types::ListTrafficPoliciesResponse

List traffic policy resources.

The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.

Examples:

Request syntax with placeholder values


resp = client.list_traffic_policies({
  next_token: "PaginationToken",
  page_size: 1,
})

Response structure


resp.next_token #=> String
resp.traffic_policies #=> Array
resp.traffic_policies[0].default_action #=> String, one of "ALLOW", "DENY"
resp.traffic_policies[0].traffic_policy_id #=> String
resp.traffic_policies[0].traffic_policy_name #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :next_token (String)

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

  • :page_size (Integer)

    The maximum number of traffic policy resources that are returned per call. You can use NextToken to obtain further traffic policies.

Returns:

See Also:



2164
2165
2166
2167
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2164

def list_traffic_policies(params = {}, options = {})
  req = build_request(:list_traffic_policies, params)
  req.send_request(options)
end

#start_archive_export(params = {}) ⇒ Types::StartArchiveExportResponse

Initiates an export of emails from the specified archive.

Examples:

Request syntax with placeholder values


resp = client.start_archive_export({
  archive_id: "ArchiveId", # required
  export_destination_configuration: { # required
    s3: {
      s3_location: "S3Location",
    },
  },
  filters: {
    include: [
      {
        boolean_expression: {
          evaluate: { # required
            attribute: "HAS_ATTACHMENTS", # accepts HAS_ATTACHMENTS
          },
          operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
        },
        string_expression: {
          evaluate: { # required
            attribute: "TO", # accepts TO, FROM, CC, SUBJECT
          },
          operator: "CONTAINS", # required, accepts CONTAINS
          values: ["String"], # required
        },
      },
    ],
    unless: [
      {
        boolean_expression: {
          evaluate: { # required
            attribute: "HAS_ATTACHMENTS", # accepts HAS_ATTACHMENTS
          },
          operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
        },
        string_expression: {
          evaluate: { # required
            attribute: "TO", # accepts TO, FROM, CC, SUBJECT
          },
          operator: "CONTAINS", # required, accepts CONTAINS
          values: ["String"], # required
        },
      },
    ],
  },
  from_timestamp: Time.now, # required
  max_results: 1,
  to_timestamp: Time.now, # required
})

Response structure


resp.export_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive to export emails from.

  • :export_destination_configuration (required, Types::ExportDestinationConfiguration)

    Details on where to deliver the exported email data.

  • :filters (Types::ArchiveFilters)

    Criteria to filter which emails are included in the export.

  • :from_timestamp (required, Time, DateTime, Date, Integer, String)

    The start of the timestamp range to include emails from.

  • :max_results (Integer)

    The maximum number of email items to include in the export.

  • :to_timestamp (required, Time, DateTime, Date, Integer, String)

    The end of the timestamp range to include emails from.

Returns:

See Also:



2251
2252
2253
2254
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2251

def start_archive_export(params = {}, options = {})
  req = build_request(:start_archive_export, params)
  req.send_request(options)
end

#start_archive_search(params = {}) ⇒ Types::StartArchiveSearchResponse

Initiates a search across emails in the specified archive.

Examples:

Request syntax with placeholder values


resp = client.start_archive_search({
  archive_id: "ArchiveId", # required
  filters: {
    include: [
      {
        boolean_expression: {
          evaluate: { # required
            attribute: "HAS_ATTACHMENTS", # accepts HAS_ATTACHMENTS
          },
          operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
        },
        string_expression: {
          evaluate: { # required
            attribute: "TO", # accepts TO, FROM, CC, SUBJECT
          },
          operator: "CONTAINS", # required, accepts CONTAINS
          values: ["String"], # required
        },
      },
    ],
    unless: [
      {
        boolean_expression: {
          evaluate: { # required
            attribute: "HAS_ATTACHMENTS", # accepts HAS_ATTACHMENTS
          },
          operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
        },
        string_expression: {
          evaluate: { # required
            attribute: "TO", # accepts TO, FROM, CC, SUBJECT
          },
          operator: "CONTAINS", # required, accepts CONTAINS
          values: ["String"], # required
        },
      },
    ],
  },
  from_timestamp: Time.now, # required
  max_results: 1, # required
  to_timestamp: Time.now, # required
})

Response structure


resp.search_id #=> String

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive to search emails in.

  • :filters (Types::ArchiveFilters)

    Criteria to filter which emails are included in the search results.

  • :from_timestamp (required, Time, DateTime, Date, Integer, String)

    The start timestamp of the range to search emails from.

  • :max_results (required, Integer)

    The maximum number of search results to return.

  • :to_timestamp (required, Time, DateTime, Date, Integer, String)

    The end timestamp of the range to search emails from.

Returns:

See Also:



2330
2331
2332
2333
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2330

def start_archive_search(params = {}, options = {})
  req = build_request(:start_archive_search, params)
  req.send_request(options)
end

#stop_archive_export(params = {}) ⇒ Struct

Stops an in-progress export of emails from an archive.

Examples:

Request syntax with placeholder values


resp = client.stop_archive_export({
  export_id: "ExportId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :export_id (required, String)

    The identifier of the export job to stop.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2352
2353
2354
2355
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2352

def stop_archive_export(params = {}, options = {})
  req = build_request(:stop_archive_export, params)
  req.send_request(options)
end

#stop_archive_search(params = {}) ⇒ Struct

Stops an in-progress archive search job.

Examples:

Request syntax with placeholder values


resp = client.stop_archive_search({
  search_id: "SearchId", # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :search_id (required, String)

    The identifier of the search job to stop.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2374
2375
2376
2377
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2374

def stop_archive_search(params = {}, options = {})
  req = build_request(:stop_archive_search, params)
  req.send_request(options)
end

#tag_resource(params = {}) ⇒ Struct

Adds one or more tags (keys and values) to a specified resource.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "TaggableResourceArn", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource that you want to tag.

  • :tags (required, Array<Types::Tag>)

    The tags used to organize, track, or control access for the resource. For example, \{ "tags": {"key1":"value1", "key2":"value2"\} \}.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2407
2408
2409
2410
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2407

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end

#untag_resource(params = {}) ⇒ Struct

Remove one or more tags (keys and values) from a specified resource.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "TaggableResourceArn", # required
  tag_keys: ["TagKey"], # required
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource that you want to untag.

  • :tag_keys (required, Array<String>)

    The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2434
2435
2436
2437
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2434

def untag_resource(params = {}, options = {})
  req = build_request(:untag_resource, params)
  req.send_request(options)
end

#update_archive(params = {}) ⇒ Struct

Updates the attributes of an existing email archive.

Examples:

Request syntax with placeholder values


resp = client.update_archive({
  archive_id: "ArchiveIdString", # required
  archive_name: "ArchiveNameString",
  retention: {
    retention_period: "THREE_MONTHS", # accepts THREE_MONTHS, SIX_MONTHS, NINE_MONTHS, ONE_YEAR, EIGHTEEN_MONTHS, TWO_YEARS, THIRTY_MONTHS, THREE_YEARS, FOUR_YEARS, FIVE_YEARS, SIX_YEARS, SEVEN_YEARS, EIGHT_YEARS, NINE_YEARS, TEN_YEARS, PERMANENT
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :archive_id (required, String)

    The identifier of the archive to update.

  • :archive_name (String)

    A new, unique name for the archive.

  • :retention (Types::ArchiveRetention)

    A new retention period for emails in the archive.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2466
2467
2468
2469
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2466

def update_archive(params = {}, options = {})
  req = build_request(:update_archive, params)
  req.send_request(options)
end

#update_ingress_point(params = {}) ⇒ Struct

Update attributes of a provisioned ingress endpoint resource.

Examples:

Request syntax with placeholder values


resp = client.update_ingress_point({
  ingress_point_configuration: {
    secret_arn: "SecretArn",
    smtp_password: "SmtpPassword",
  },
  ingress_point_id: "IngressPointId", # required
  ingress_point_name: "IngressPointName",
  rule_set_id: "RuleSetId",
  status_to_update: "ACTIVE", # accepts ACTIVE, CLOSED
  traffic_policy_id: "TrafficPolicyId",
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :ingress_point_configuration (Types::IngressPointConfiguration)

    If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

  • :ingress_point_id (required, String)

    The identifier for the ingress endpoint you want to update.

  • :ingress_point_name (String)

    A user friendly name for the ingress endpoint resource.

  • :rule_set_id (String)

    The identifier of an existing rule set that you attach to an ingress endpoint resource.

  • :status_to_update (String)

    The update status of an ingress endpoint.

  • :traffic_policy_id (String)

    The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2514
2515
2516
2517
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2514

def update_ingress_point(params = {}, options = {})
  req = build_request(:update_ingress_point, params)
  req.send_request(options)
end

#update_relay(params = {}) ⇒ Struct

Updates the attributes of an existing relay resource.

Examples:

Request syntax with placeholder values


resp = client.update_relay({
  authentication: {
    no_authentication: {
    },
    secret_arn: "SecretArn",
  },
  relay_id: "RelayId", # required
  relay_name: "RelayName",
  server_name: "RelayServerName",
  server_port: 1,
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :authentication (Types::RelayAuthentication)

    Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

  • :relay_id (required, String)

    The unique relay identifier.

  • :relay_name (String)

    The name of the relay resource.

  • :server_name (String)

    The destination relay server address.

  • :server_port (Integer)

    The destination relay server port.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2557
2558
2559
2560
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2557

def update_relay(params = {}, options = {})
  req = build_request(:update_relay, params)
  req.send_request(options)
end

#update_rule_set(params = {}) ⇒ Struct

>Update attributes of an already provisioned rule set.

Examples:

Request syntax with placeholder values


resp = client.update_rule_set({
  rule_set_id: "RuleSetId", # required
  rule_set_name: "RuleSetName",
  rules: [
    {
      actions: [ # required
        {
          add_header: {
            header_name: "HeaderName", # required
            header_value: "HeaderValue", # required
          },
          archive: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            target_archive: "NameOrArn", # required
          },
          deliver_to_mailbox: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            mailbox_arn: "NameOrArn", # required
            role_arn: "IamRoleArn", # required
          },
          drop: {
          },
          relay: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            mail_from: "REPLACE", # accepts REPLACE, PRESERVE
            relay: "IdOrArn", # required
          },
          replace_recipient: {
            replace_with: ["EmailAddress"],
          },
          send: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            role_arn: "IamRoleArn", # required
          },
          write_to_s3: {
            action_failure_policy: "CONTINUE", # accepts CONTINUE, DROP
            role_arn: "IamRoleArn", # required
            s3_bucket: "S3Bucket", # required
            s3_prefix: "S3Prefix",
            s3_sse_kms_key_id: "KmsKeyId",
          },
        },
      ],
      conditions: [
        {
          boolean_expression: {
            evaluate: { # required
              attribute: "READ_RECEIPT_REQUESTED", # accepts READ_RECEIPT_REQUESTED, TLS, TLS_WRAPPED
            },
            operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
          },
          dmarc_expression: {
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["NONE"], # required, accepts NONE, QUARANTINE, REJECT
          },
          ip_expression: {
            evaluate: { # required
              attribute: "SOURCE_IP", # accepts SOURCE_IP
            },
            operator: "CIDR_MATCHES", # required, accepts CIDR_MATCHES, NOT_CIDR_MATCHES
            values: ["RuleIpStringValue"], # required
          },
          number_expression: {
            evaluate: { # required
              attribute: "MESSAGE_SIZE", # accepts MESSAGE_SIZE
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL
            value: 1.0, # required
          },
          string_expression: {
            evaluate: { # required
              attribute: "MAIL_FROM", # accepts MAIL_FROM, HELO, RECIPIENT, SENDER, FROM, SUBJECT, TO, CC
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, STARTS_WITH, ENDS_WITH, CONTAINS
            values: ["RuleStringValue"], # required
          },
          verdict_expression: {
            evaluate: { # required
              analysis: {
                analyzer: "AnalyzerArn", # required
                result_field: "ResultField", # required
              },
              attribute: "SPF", # accepts SPF, DKIM
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["PASS"], # required, accepts PASS, FAIL, GRAY, PROCESSING_FAILED
          },
        },
      ],
      name: "RuleName",
      unless: [
        {
          boolean_expression: {
            evaluate: { # required
              attribute: "READ_RECEIPT_REQUESTED", # accepts READ_RECEIPT_REQUESTED, TLS, TLS_WRAPPED
            },
            operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
          },
          dmarc_expression: {
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["NONE"], # required, accepts NONE, QUARANTINE, REJECT
          },
          ip_expression: {
            evaluate: { # required
              attribute: "SOURCE_IP", # accepts SOURCE_IP
            },
            operator: "CIDR_MATCHES", # required, accepts CIDR_MATCHES, NOT_CIDR_MATCHES
            values: ["RuleIpStringValue"], # required
          },
          number_expression: {
            evaluate: { # required
              attribute: "MESSAGE_SIZE", # accepts MESSAGE_SIZE
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN_OR_EQUAL
            value: 1.0, # required
          },
          string_expression: {
            evaluate: { # required
              attribute: "MAIL_FROM", # accepts MAIL_FROM, HELO, RECIPIENT, SENDER, FROM, SUBJECT, TO, CC
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, STARTS_WITH, ENDS_WITH, CONTAINS
            values: ["RuleStringValue"], # required
          },
          verdict_expression: {
            evaluate: { # required
              analysis: {
                analyzer: "AnalyzerArn", # required
                result_field: "ResultField", # required
              },
              attribute: "SPF", # accepts SPF, DKIM
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS
            values: ["PASS"], # required, accepts PASS, FAIL, GRAY, PROCESSING_FAILED
          },
        },
      ],
    },
  ],
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :rule_set_id (required, String)

    The identifier of a rule set you want to update.

  • :rule_set_name (String)

    A user-friendly name for the rule set resource.

  • :rules (Array<Types::Rule>)

    A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2722
2723
2724
2725
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2722

def update_rule_set(params = {}, options = {})
  req = build_request(:update_rule_set, params)
  req.send_request(options)
end

#update_traffic_policy(params = {}) ⇒ Struct

Update attributes of an already provisioned traffic policy resource.

Examples:

Request syntax with placeholder values


resp = client.update_traffic_policy({
  default_action: "ALLOW", # accepts ALLOW, DENY
  max_message_size_bytes: 1,
  policy_statements: [
    {
      action: "ALLOW", # required, accepts ALLOW, DENY
      conditions: [ # required
        {
          boolean_expression: {
            evaluate: { # required
              analysis: {
                analyzer: "AnalyzerArn", # required
                result_field: "ResultField", # required
              },
            },
            operator: "IS_TRUE", # required, accepts IS_TRUE, IS_FALSE
          },
          ip_expression: {
            evaluate: { # required
              attribute: "SENDER_IP", # accepts SENDER_IP
            },
            operator: "CIDR_MATCHES", # required, accepts CIDR_MATCHES, NOT_CIDR_MATCHES
            values: ["Ipv4Cidr"], # required
          },
          string_expression: {
            evaluate: { # required
              attribute: "RECIPIENT", # accepts RECIPIENT
            },
            operator: "EQUALS", # required, accepts EQUALS, NOT_EQUALS, STARTS_WITH, ENDS_WITH, CONTAINS
            values: ["String"], # required
          },
          tls_expression: {
            evaluate: { # required
              attribute: "TLS_PROTOCOL", # accepts TLS_PROTOCOL
            },
            operator: "MINIMUM_TLS_VERSION", # required, accepts MINIMUM_TLS_VERSION, IS
            value: "TLS1_2", # required, accepts TLS1_2, TLS1_3
          },
        },
      ],
    },
  ],
  traffic_policy_id: "TrafficPolicyId", # required
  traffic_policy_name: "TrafficPolicyName",
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :default_action (String)

    Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

  • :max_message_size_bytes (Integer)

    The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

  • :policy_statements (Array<Types::PolicyStatement>)

    The list of conditions to be updated for filtering email traffic.

  • :traffic_policy_id (required, String)

    The identifier of the traffic policy that you want to update.

  • :traffic_policy_name (String)

    A user-friendly name for the traffic policy resource.

Returns:

  • (Struct)

    Returns an empty response.

See Also:



2801
2802
2803
2804
# File 'gems/aws-sdk-mailmanager/lib/aws-sdk-mailmanager/client.rb', line 2801

def update_traffic_policy(params = {}, options = {})
  req = build_request(:update_traffic_policy, params)
  req.send_request(options)
end