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

Class: Aws::Route53::Types::CreateTrafficPolicyRequest

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

Overview

Note:

When making an API call, you may pass CreateTrafficPolicyRequest data as a hash:

{
  name: "TrafficPolicyName", # required
  document: "TrafficPolicyDocument", # required
  comment: "TrafficPolicyComment",
}

A complex type that contains information about the traffic policy that you want to create.

Instance Attribute Summary collapse

Instance Attribute Details

#commentString

(Optional) Any comments that you want to include about the traffic policy.

Returns:

  • (String)


1147
1148
1149
1150
1151
1152
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 1147

class CreateTrafficPolicyRequest < Struct.new(
  :name,
  :document,
  :comment)
  include Aws::Structure
end

#documentString

The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.

Returns:

  • (String)


1147
1148
1149
1150
1151
1152
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 1147

class CreateTrafficPolicyRequest < Struct.new(
  :name,
  :document,
  :comment)
  include Aws::Structure
end

#nameString

The name of the traffic policy.

Returns:

  • (String)


1147
1148
1149
1150
1151
1152
# File 'gems/aws-sdk-route53/lib/aws-sdk-route53/types.rb', line 1147

class CreateTrafficPolicyRequest < Struct.new(
  :name,
  :document,
  :comment)
  include Aws::Structure
end