Class: AWSCDK::Route53RecoveryReadiness::CfnResourceSet::TargetResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53RecoveryReadiness::CfnResourceSet::TargetResourceProperty
- Defined in:
- route53_recovery_readiness/cfn_resource_set.rb
Overview
The target resource that the Route 53 record points to.
Instance Attribute Summary collapse
-
#nlb_resource ⇒ AWSCDK::IResolvable, ...
readonly
The Network Load Balancer resource that a DNS target resource points to.
-
#r53_resource ⇒ AWSCDK::IResolvable, ...
readonly
The Route 53 resource that a DNS target resource record points to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(nlb_resource: nil, r53_resource: nil) ⇒ TargetResourceProperty
constructor
A new instance of TargetResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(nlb_resource: nil, r53_resource: nil) ⇒ TargetResourceProperty
Returns a new instance of TargetResourceProperty.
783 784 785 786 787 788 |
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 783 def initialize(nlb_resource: nil, r53_resource: nil) @nlb_resource = nlb_resource.is_a?(Hash) ? ::AWSCDK::Route53RecoveryReadiness::CfnResourceSet::NLBResourceProperty.new(**nlb_resource.transform_keys(&:to_sym)) : nlb_resource Jsii::Type.check_type(@nlb_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzcmVjb3ZlcnlyZWFkaW5lc3MuQ2ZuUmVzb3VyY2VTZXQuTkxCUmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "nlbResource") unless @nlb_resource.nil? @r53_resource = r53_resource.is_a?(Hash) ? ::AWSCDK::Route53RecoveryReadiness::CfnResourceSet::R53ResourceRecordProperty.new(**r53_resource.transform_keys(&:to_sym)) : r53_resource Jsii::Type.check_type(@r53_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzcmVjb3ZlcnlyZWFkaW5lc3MuQ2ZuUmVzb3VyY2VTZXQuUjUzUmVzb3VyY2VSZWNvcmRQcm9wZXJ0eSJ9XX19")), "r53Resource") unless @r53_resource.nil? end |
Instance Attribute Details
#nlb_resource ⇒ AWSCDK::IResolvable, ... (readonly)
The Network Load Balancer resource that a DNS target resource points to.
794 795 796 |
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 794 def nlb_resource @nlb_resource end |
#r53_resource ⇒ AWSCDK::IResolvable, ... (readonly)
The Route 53 resource that a DNS target resource record points to.
799 800 801 |
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 799 def r53_resource @r53_resource end |
Class Method Details
.jsii_properties ⇒ Object
801 802 803 804 805 806 |
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 801 def self.jsii_properties { :nlb_resource => "nlbResource", :r53_resource => "r53Resource", } end |
Instance Method Details
#to_jsii ⇒ Object
808 809 810 811 812 813 814 815 |
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 808 def to_jsii result = {} result.merge!({ "nlbResource" => @nlb_resource, "r53Resource" => @r53_resource, }) result.compact end |