Class: Cartography::CustomCname
- Inherits:
-
Object
- Object
- Cartography::CustomCname
- Defined in:
- lib/cartography/custom_cname.rb
Overview
CustomCname holds data for the current state of a specific custom CNAME.
Defined Under Namespace
Classes: Certificate, Fallback
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#associated_routing_policy ⇒ Object
readonly
Returns the value of attribute associated_routing_policy.
-
#aws_shield_enabled ⇒ Object
readonly
Returns the value of attribute aws_shield_enabled.
-
#certificate ⇒ Object
readonly
Returns the value of attribute certificate.
-
#cloudfront_distribution_id ⇒ Object
readonly
Returns the value of attribute cloudfront_distribution_id.
-
#cloudfront_routing_disabled ⇒ Object
readonly
Returns the value of attribute cloudfront_routing_disabled.
-
#cname_dns_validated ⇒ Object
readonly
Returns the value of attribute cname_dns_validated.
-
#custom_cname_id ⇒ String
readonly
The ID of the custom CNAME.
-
#fallbacks ⇒ Object
readonly
Returns the value of attribute fallbacks.
-
#site_group ⇒ Object
readonly
Returns the value of attribute site_group.
-
#target_cluster ⇒ Object
readonly
Returns the value of attribute target_cluster.
-
#target_record ⇒ Object
readonly
Returns the value of attribute target_record.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ CustomCname
constructor
A new instance of CustomCname.
Constructor Details
#initialize(params = {}) ⇒ CustomCname
Returns a new instance of CustomCname.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cartography/custom_cname.rb', line 22 def initialize(params = {}) @custom_cname_id = params["CustomCnameID"] @account_id = params["AccountID"] @site_group = params["SiteGroup"] @target_cluster = params["TargetCluster"] @associated_routing_policy = params["AssociatedRoutingPolicy"] @cloudfront_distribution_id = params["CloudfrontDistributionID"] @target_record = params["TargetRecord"] @cname_dns_validated = params["CnameDNSValidated"] @cloudfront_routing_disabled = params["CloudfrontRoutingDisabled"] @aws_shield_enabled = params["AWSShieldEnabled"] @fallbacks = params["Fallbacks"].map { |f| Fallback.new(f) } @certificate = Certificate.new(params["Certificate"]) end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def account_id @account_id end |
#associated_routing_policy ⇒ Object (readonly)
Returns the value of attribute associated_routing_policy.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def associated_routing_policy @associated_routing_policy end |
#aws_shield_enabled ⇒ Object (readonly)
Returns the value of attribute aws_shield_enabled.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def aws_shield_enabled @aws_shield_enabled end |
#certificate ⇒ Object (readonly)
Returns the value of attribute certificate.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def certificate @certificate end |
#cloudfront_distribution_id ⇒ Object (readonly)
Returns the value of attribute cloudfront_distribution_id.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def cloudfront_distribution_id @cloudfront_distribution_id end |
#cloudfront_routing_disabled ⇒ Object (readonly)
Returns the value of attribute cloudfront_routing_disabled.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def cloudfront_routing_disabled @cloudfront_routing_disabled end |
#cname_dns_validated ⇒ Object (readonly)
Returns the value of attribute cname_dns_validated.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def cname_dns_validated @cname_dns_validated end |
#custom_cname_id ⇒ String (readonly)
The ID of the custom CNAME
8 9 10 |
# File 'lib/cartography/custom_cname.rb', line 8 def custom_cname_id @custom_cname_id end |
#fallbacks ⇒ Object (readonly)
Returns the value of attribute fallbacks.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def fallbacks @fallbacks end |
#site_group ⇒ Object (readonly)
Returns the value of attribute site_group.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def site_group @site_group end |
#target_cluster ⇒ Object (readonly)
Returns the value of attribute target_cluster.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def target_cluster @target_cluster end |
#target_record ⇒ Object (readonly)
Returns the value of attribute target_record.
9 10 11 |
# File 'lib/cartography/custom_cname.rb', line 9 def target_record @target_record end |