Class: Cartography::CustomCname

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute account_id.



9
10
11
# File 'lib/cartography/custom_cname.rb', line 9

def 
  @account_id
end

#associated_routing_policyObject (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_enabledObject (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

#certificateObject (readonly)

Returns the value of attribute certificate.



9
10
11
# File 'lib/cartography/custom_cname.rb', line 9

def certificate
  @certificate
end

#cloudfront_distribution_idObject (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_disabledObject (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_validatedObject (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_idString (readonly)

The ID of the custom CNAME

Returns:

  • (String)

    the current value of custom_cname_id



8
9
10
# File 'lib/cartography/custom_cname.rb', line 8

def custom_cname_id
  @custom_cname_id
end

#fallbacksObject (readonly)

Returns the value of attribute fallbacks.



9
10
11
# File 'lib/cartography/custom_cname.rb', line 9

def fallbacks
  @fallbacks
end

#site_groupObject (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_clusterObject (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_recordObject (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