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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#commentString

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

Returns:

  • (String)

1622
1623
1624
1625
1626
1627
1628
# File 'lib/aws-sdk-route53/types.rb', line 1622

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

#documentString

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

[1]: docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html

Returns:

  • (String)

1622
1623
1624
1625
1626
1627
1628
# File 'lib/aws-sdk-route53/types.rb', line 1622

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

#nameString

The name of the traffic policy.

Returns:

  • (String)

1622
1623
1624
1625
1626
1627
1628
# File 'lib/aws-sdk-route53/types.rb', line 1622

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