File: verify_domain_identity.rb

package info (click to toggle)
ruby-fog-aws 3.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,816 kB
  • sloc: ruby: 68,587; makefile: 6
file content (28 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module Fog
  module AWS
    class SES
      class Real
        require 'fog/aws/parsers/ses/verify_domain_identity'

        # Verifies a domain. This action returns a verification authorization
        # token which must be added as a DNS TXT record to the domain.
        #
        # ==== Parameters
        # * domain<~String> - The domain to be verified
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'VerificationToken'<~String> - Verification token
        #       * 'RequestId'<~String> - Id of request
        def verify_domain_identity(domain)
          request({
            'Action'           => 'VerifyDomainIdentity',
            'Domain'           => domain,
            :parser            => Fog::Parsers::AWS::SES::VerifyDomainIdentity.new
          })
        end
      end
    end
  end
end