Class: AWS::Route53::HostedZone
- Inherits:
-
Core::Resource
- Object
- Core::Resource
- AWS::Route53::HostedZone
- Defined in:
- lib/aws/route_53/hosted_zone.rb
Overview
Instance Attribute Summary collapse
-
#caller_reference ⇒ String
readonly
The current value of caller_reference.
-
#change_info ⇒ ChangeInfo
readonly
Change info for the newly created HostedZone instance.
-
#delegation_set ⇒ Array<String>
readonly
The current value of delegation_set.
-
#id ⇒ String
readonly
The hosted zone ID.
-
#name ⇒ String
readonly
The hosted zone name.
-
#resource_record_set_count ⇒ Integer
readonly
The resource record set count.
Instance Method Summary collapse
-
#delete ⇒ ChangeInfo
Deletes the hosted zone.
-
#exists? ⇒ Boolean
Returns
true
if this hosted zone exists. -
#path ⇒ String
The Hosted zone path.
-
#resource_record_sets ⇒ ResourceRecordSetCollection
(also: #rrsets)
Returns resource recoed sets.
Instance Attribute Details
#caller_reference ⇒ String (readonly)
Returns the current value of caller_reference.
31 32 33 |
# File 'lib/aws/route_53/hosted_zone.rb', line 31 def caller_reference @caller_reference end |
#change_info ⇒ ChangeInfo (readonly)
Returns Change info for the newly created HostedZone instance.
45 46 47 |
# File 'lib/aws/route_53/hosted_zone.rb', line 45 def change_info @change_info end |
#delegation_set ⇒ Array<String> (readonly)
Returns the current value of delegation_set.
31 32 33 |
# File 'lib/aws/route_53/hosted_zone.rb', line 31 def delegation_set @delegation_set end |
#id ⇒ String (readonly)
Returns The hosted zone ID.
41 42 43 |
# File 'lib/aws/route_53/hosted_zone.rb', line 41 def id @id end |
#name ⇒ String (readonly)
The hosted zone name.
31 32 33 |
# File 'lib/aws/route_53/hosted_zone.rb', line 31 def name @name end |
#resource_record_set_count ⇒ Integer (readonly)
The resource record set count.
31 32 33 |
# File 'lib/aws/route_53/hosted_zone.rb', line 31 def resource_record_set_count @resource_record_set_count end |
Instance Method Details
#delete ⇒ ChangeInfo
Deletes the hosted zone.
77 78 79 80 81 82 83 84 85 |
# File 'lib/aws/route_53/hosted_zone.rb', line 77 def delete resp = client.delete_hosted_zone(:id => id) if resp[:change_info][:id] ChangeInfo.new_from(:delete_hosted_zone, resp[:change_info], resp[:change_info][:id], :config => config) end end |
#exists? ⇒ Boolean
Returns true
if this hosted zone exists.
88 89 90 |
# File 'lib/aws/route_53/hosted_zone.rb', line 88 def exists? get_resource.data[:hosted_zone][:id] == path end |
#path ⇒ String
The Hosted zone path.
49 50 51 |
# File 'lib/aws/route_53/hosted_zone.rb', line 49 def path "/hostedzone/#{id}" end |
#resource_record_sets ⇒ ResourceRecordSetCollection Also known as: rrsets
Returns resource recoed sets.
94 95 96 |
# File 'lib/aws/route_53/hosted_zone.rb', line 94 def resource_record_sets ResourceRecordSetCollection.new(id, :config => config) end |