Class: AWSCDK::Route53RecoveryReadiness::CfnResourceSet::ResourceProperty

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

Overview

The resource element of a resource set.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_id: nil, dns_target_resource: nil, readiness_scopes: nil, resource_arn: nil) ⇒ ResourceProperty

Returns a new instance of ResourceProperty.

Parameters:

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

    The component identifier of the resource, generated when DNS target resource is used.

  • dns_target_resource (AWSCDK::IResolvable, AWSCDK::Route53RecoveryReadiness::CfnResourceSet::DNSTargetResourceProperty, nil) (defaults to: nil)

    A component for DNS/routing control readiness checks.

  • readiness_scopes (Array<String>, nil) (defaults to: nil)

    The recovery group Amazon Resource Name (ARN) or the cell ARN that the readiness checks for this resource set are scoped to.

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

    The Amazon Resource Name (ARN) of the AWS resource.



718
719
720
721
722
723
724
725
726
727
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 718

def initialize(component_id: nil, dns_target_resource: nil, readiness_scopes: nil, resource_arn: nil)
  @component_id = component_id
  Jsii::Type.check_type(@component_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentId") unless @component_id.nil?
  @dns_target_resource = dns_target_resource.is_a?(Hash) ? ::AWSCDK::Route53RecoveryReadiness::CfnResourceSet::DNSTargetResourceProperty.new(**dns_target_resource.transform_keys(&:to_sym)) : dns_target_resource
  Jsii::Type.check_type(@dns_target_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yb3V0ZTUzcmVjb3ZlcnlyZWFkaW5lc3MuQ2ZuUmVzb3VyY2VTZXQuRE5TVGFyZ2V0UmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "dnsTargetResource") unless @dns_target_resource.nil?
  @readiness_scopes = readiness_scopes
  Jsii::Type.check_type(@readiness_scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "readinessScopes") unless @readiness_scopes.nil?
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn") unless @resource_arn.nil?
end

Instance Attribute Details

#component_idString? (readonly)

The component identifier of the resource, generated when DNS target resource is used.



733
734
735
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 733

def component_id
  @component_id
end

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

A component for DNS/routing control readiness checks.

This is a required setting when ResourceSet ResourceSetType is set to AWS::Route53RecoveryReadiness::DNSTargetResource . Do not set it for any other ResourceSetType setting.



740
741
742
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 740

def dns_target_resource
  @dns_target_resource
end

#readiness_scopesArray<String>? (readonly)

The recovery group Amazon Resource Name (ARN) or the cell ARN that the readiness checks for this resource set are scoped to.



745
746
747
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 745

def readiness_scopes
  @readiness_scopes
end

#resource_arnString? (readonly)

The Amazon Resource Name (ARN) of the AWS resource.

This is a required setting for all ResourceSet ResourceSetType settings except AWS::Route53RecoveryReadiness::DNSTargetResource . Do not set this when ResourceSetType is set to AWS::Route53RecoveryReadiness::DNSTargetResource .



752
753
754
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 752

def resource_arn
  @resource_arn
end

Class Method Details

.jsii_propertiesObject



754
755
756
757
758
759
760
761
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 754

def self.jsii_properties
  {
    :component_id => "componentId",
    :dns_target_resource => "dnsTargetResource",
    :readiness_scopes => "readinessScopes",
    :resource_arn => "resourceArn",
  }
end

Instance Method Details

#to_jsiiObject



763
764
765
766
767
768
769
770
771
772
# File 'route53_recovery_readiness/cfn_resource_set.rb', line 763

def to_jsii
  result = {}
  result.merge!({
    "componentId" => @component_id,
    "dnsTargetResource" => @dns_target_resource,
    "readinessScopes" => @readiness_scopes,
    "resourceArn" => @resource_arn,
  })
  result.compact
end