Class: CfRoute53RecordSetGroup
- Inherits:
-
Object
- Object
- CfRoute53RecordSetGroup
show all
- Includes:
- CfBase
- Defined in:
- lib/cf_factory/route53/cf_route53_record_set_group.rb
Instance Method Summary
collapse
Methods included from CfBase
#generate, #generate_ref, #get_deletion_policy, #get_name, #hash_to_string, #retrieve_attribute, #set_meta_data, #set_quotes, #set_tags
Constructor Details
Returns a new instance of CfRoute53RecordSetGroup.
7
8
9
10
11
12
13
14
15
|
# File 'lib/cf_factory/route53/cf_route53_record_set_group.rb', line 7
def initialize(name, record_sets, options)
raise Exception.new("don't use for now")
@name = name
@record_sets = record_sets
@hosted_zone_id = options[:hosted_zone_id]
@hosted_zone_name = options[:hosted_zone_name]
@comment = options[:comment]
validate()
end
|
Instance Method Details
#get_cf_attributes ⇒ Object
21
22
23
|
# File 'lib/cf_factory/route53/cf_route53_record_set_group.rb', line 21
def get_cf_attributes
{}
end
|
#get_cf_properties ⇒ Object
25
26
27
28
29
30
31
32
|
# File 'lib/cf_factory/route53/cf_route53_record_set_group.rb', line 25
def get_cf_properties
result = {}
result["RecordSets"] = CfHelper.generate_inner_array(@record_sets)
result["Comment"] = @comment unless @comment.nil?
result["HostedZoneId"] = @hosted_zone_id unless @hosted_zone_id.nil?
result["HostedZoneName"] = @hosted_zone_name unless @hosted_zone_name.nil?
result
end
|
#get_cf_type ⇒ Object
17
18
19
|
# File 'lib/cf_factory/route53/cf_route53_record_set_group.rb', line 17
def get_cf_type
"AWS::Route53::RecordSetGroup"
end
|