Class: AWSCDK::Route53RecoveryReadiness::CfnResourceSet::DNSTargetResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_recovery_readiness/cfn_resource_set.rb

Overview

A component for DNS/routing control readiness checks and architecture checks.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_name: nil, hosted_zone_arn: nil, record_set_id: nil, record_type: nil, target_resource: nil) ⇒ DNSTargetResourceProperty

Returns a new instance of DNSTargetResourceProperty.

Parameters:

  • domain_name (String, nil) (defaults to: nil)

    The domain name that acts as an ingress point to a portion of the customer application.

  • hosted_zone_arn (String, nil) (defaults to: nil)

    The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource.

  • record_set_id (String, nil) (defaults to: nil)

    The Amazon Route 53 record set ID that uniquely identifies a DNS record, given a name and a type.

  • record_type (String, nil) (defaults to: nil)

    The type of DNS record of the target resource.

  • target_resource (AWSCDK::IResolvable, AWSCDK::Route53RecoveryReadiness::CfnResourceSet::TargetResourceProperty, nil) (defaults to: nil)

    The target resource that the Route 53 record points to.



570
571
572
573
574
575
576
577
578
579
580
581
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 570

def initialize(domain_name: nil, hosted_zone_arn: nil, record_set_id: nil, record_type: nil, target_resource: nil)
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName") unless @domain_name.nil?
  @hosted_zone_arn = hosted_zone_arn
  Jsii::Type.check_type(@hosted_zone_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostedZoneArn") unless @hosted_zone_arn.nil?
  @record_set_id = record_set_id
  Jsii::Type.check_type(@record_set_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recordSetId") unless @record_set_id.nil?
  @record_type = record_type
  Jsii::Type.check_type(@record_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "recordType") unless @record_type.nil?
  @target_resource = target_resource.is_a?(Hash) ? ::AWSCDK::Route53RecoveryReadiness::CfnResourceSet::TargetResourceProperty.new(**target_resource.transform_keys(&:to_sym)) : target_resource
  Jsii::Type.check_type(@target_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzcmVjb3ZlcnlyZWFkaW5lc3MuQ2ZuUmVzb3VyY2VTZXQuVGFyZ2V0UmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "targetResource") unless @target_resource.nil?
end

Instance Attribute Details

#domain_nameString? (readonly)

The domain name that acts as an ingress point to a portion of the customer application.



587
588
589
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 587

def domain_name
  @domain_name
end

#hosted_zone_arnString? (readonly)

The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource.



592
593
594
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 592

def hosted_zone_arn
  @hosted_zone_arn
end

#record_set_idString? (readonly)

The Amazon Route 53 record set ID that uniquely identifies a DNS record, given a name and a type.



597
598
599
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 597

def record_set_id
  @record_set_id
end

#record_typeString? (readonly)

The type of DNS record of the target resource.



602
603
604
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 602

def record_type
  @record_type
end

#target_resourceAWSCDK::IResolvable, ... (readonly)

The target resource that the Route 53 record points to.



607
608
609
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 607

def target_resource
  @target_resource
end

Class Method Details

.jsii_propertiesObject



609
610
611
612
613
614
615
616
617
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 609

def self.jsii_properties
  {
    :domain_name => "domainName",
    :hosted_zone_arn => "hostedZoneArn",
    :record_set_id => "recordSetId",
    :record_type => "recordType",
    :target_resource => "targetResource",
  }
end

Instance Method Details

#to_jsiiObject



619
620
621
622
623
624
625
626
627
628
629
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 619

def to_jsii
  result = {}
  result.merge!({
    "domainName" => @domain_name,
    "hostedZoneArn" => @hosted_zone_arn,
    "recordSetId" => @record_set_id,
    "recordType" => @record_type,
    "targetResource" => @target_resource,
  })
  result.compact
end