# File lib/aws/simple_workflow/domain_collection.rb, line 92
      def register name, retention_period, options = {}

        client_opts = {}
        client_opts[:name] = name
        client_opts[:workflow_execution_retention_period_in_days] = retention_period
        client_opts[:description] = options[:description] if options[:description]

        duration_opts(client_opts, :workflow_execution_retention_period_in_days)
        client.register_domain(client_opts)

        client_opts[:retention_period] = retention_period.to_s =~ /^\d+$/ ?
          retention_period.to_i : retention_period.to_s.downcase.to_sym

        Domain.new(name, client_opts.merge(:config => config))

      end