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

Class: Aws::Route53::Types::TrafficPolicy

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

Overview

A complex type that contains settings for a traffic policy.

Instance Attribute Summary collapse

Instance Attribute Details

#commentString

The comment that you specify in the CreateTrafficPolicy request, if any.

Returns:

  • (String)


5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 5060

class TrafficPolicy < Struct.new(
  :id,
  :version,
  :name,
  :type,
  :document,
  :comment)
  include Aws::Structure
end

#documentString

The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.

Returns:

  • (String)


5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 5060

class TrafficPolicy < Struct.new(
  :id,
  :version,
  :name,
  :type,
  :document,
  :comment)
  include Aws::Structure
end

#idString

The ID that Amazon Route 53 assigned to a traffic policy when you created it.

Returns:

  • (String)


5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 5060

class TrafficPolicy < Struct.new(
  :id,
  :version,
  :name,
  :type,
  :document,
  :comment)
  include Aws::Structure
end

#nameString

The name that you specified when you created the traffic policy.

Returns:

  • (String)


5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 5060

class TrafficPolicy < Struct.new(
  :id,
  :version,
  :name,
  :type,
  :document,
  :comment)
  include Aws::Structure
end

#typeString

The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.

Returns:

  • (String)


5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 5060

class TrafficPolicy < Struct.new(
  :id,
  :version,
  :name,
  :type,
  :document,
  :comment)
  include Aws::Structure
end

#versionInteger

The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of Version is always 1.

Returns:

  • (Integer)


5060
5061
5062
5063
5064
5065
5066
5067
5068
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 5060

class TrafficPolicy < Struct.new(
  :id,
  :version,
  :name,
  :type,
  :document,
  :comment)
  include Aws::Structure
end