Class: AWS::Route53::ChangeRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/route_53/change_batch.rb

Direct Known Subclasses

CreateRequest, DeleteRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionString (readonly)

Returns:

  • (String)


109
110
111
# File 'lib/aws/route_53/change_batch.rb', line 109

def action
  @action
end

#nameString (readonly)

Returns:

  • (String)


112
113
114
# File 'lib/aws/route_53/change_batch.rb', line 112

def name
  @name
end

#typeString (readonly)

Returns:

  • (String)


115
116
117
# File 'lib/aws/route_53/change_batch.rb', line 115

def type
  @type
end

Instance Method Details

#to_hashHash

Build query fro change request.

Returns:

  • (Hash)


119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/aws/route_53/change_batch.rb', line 119

def to_hash
  q = {}
  q[:action] = action
  q[:resource_record_set] = {}
  q[:resource_record_set][:name] = name
  q[:resource_record_set][:type] = type
  q[:resource_record_set][:set_identifier] = @change_options[:set_identifier] if @change_options[:set_identifier]
  q[:resource_record_set][:weight] = @change_options[:weight] if @change_options[:weight]
  q[:resource_record_set][:region] = @change_options[:region] if @change_options[:region]
  q[:resource_record_set][:ttl] = @change_options[:ttl] if @change_options[:ttl]
  q[:resource_record_set][:resource_records] = @change_options[:resource_records] if @change_options[:resource_records]
  q[:resource_record_set][:alias_target] = @change_options[:alias_target] if @change_options[:alias_target]
  q
end