Class: AWSCDK::Route53RecoveryReadiness::CfnResourceSetProps

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

Overview

Properties for defining a CfnResourceSet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resources:, resource_set_type:, resource_set_name: nil, tags: nil) ⇒ CfnResourceSetProps

Returns a new instance of CfnResourceSetProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'route53_recovery_readiness/cfn_resource_set_props.rb', line 13

def initialize(resources:, resource_set_type:, resource_set_name: nil, tags: nil)
  @resources = resources
  Jsii::Type.check_type(@resources, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfcm91dGU1M3JlY292ZXJ5cmVhZGluZXNzLkNmblJlc291cmNlU2V0LlJlc291cmNlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "resources")
  @resource_set_type = resource_set_type
  Jsii::Type.check_type(@resource_set_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceSetType")
  @resource_set_name = resource_set_name
  Jsii::Type.check_type(@resource_set_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceSetName") unless @resource_set_name.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#resource_set_nameString? (readonly)

The name of the resource set to create.



42
43
44
# File 'route53_recovery_readiness/cfn_resource_set_props.rb', line 42

def resource_set_name
  @resource_set_name
end

#resource_set_typeString (readonly)

The resource type of the resources in the resource set. Enter one of the following values for resource type:.

AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource.

Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn't an actual AWS CloudFormation resource type.



37
38
39
# File 'route53_recovery_readiness/cfn_resource_set_props.rb', line 37

def resource_set_type
  @resource_set_type
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A tag to associate with the parameters for a resource set.



47
48
49
# File 'route53_recovery_readiness/cfn_resource_set_props.rb', line 47

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'route53_recovery_readiness/cfn_resource_set_props.rb', line 49

def self.jsii_properties
  {
    :resources => "resources",
    :resource_set_type => "resourceSetType",
    :resource_set_name => "resourceSetName",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'route53_recovery_readiness/cfn_resource_set_props.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "resources" => @resources,
    "resourceSetType" => @resource_set_type,
    "resourceSetName" => @resource_set_name,
    "tags" => @tags,
  })
  result.compact
end