Sha256: 799f23230d1cf131160e8257b878d9b7112e6b59acb036f49b57376288365bb3

Contents?: true

Size: 1016 Bytes

Versions: 5

Compression:

Stored size: 1016 Bytes

Contents

# frozen_string_literal: true

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE


module Aws::SESV2
  # @api private
  module Endpoints

    class SendBulkEmail
      def self.build(context)
        Aws::SESV2::EndpointParameters.create(
          context.config,
          endpoint_id: context.params[:endpoint_id],
        )
      end
    end

    class SendEmail
      def self.build(context)
        Aws::SESV2::EndpointParameters.create(
          context.config,
          endpoint_id: context.params[:endpoint_id],
        )
      end
    end


    def self.parameters_for_operation(context)
      case context.operation_name
      when :send_bulk_email
        SendBulkEmail.build(context)
      when :send_email
        SendEmail.build(context)
      else
        Aws::SESV2::EndpointParameters.create(context.config)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aws-sdk-sesv2-1.72.0 lib/aws-sdk-sesv2/endpoints.rb
aws-sdk-sesv2-1.71.0 lib/aws-sdk-sesv2/endpoints.rb
aws-sdk-sesv2-1.70.0 lib/aws-sdk-sesv2/endpoints.rb
aws-sdk-sesv2-1.69.0 lib/aws-sdk-sesv2/endpoints.rb
aws-sdk-sesv2-1.68.0 lib/aws-sdk-sesv2/endpoints.rb