Class: AWSCDK::Route53Resolver::CfnResolverRuleAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Resolver::CfnResolverRuleAssociationProps
- Defined in:
- route53_resolver/cfn_resolver_rule_association_props.rb
Overview
Properties for defining a CfnResolverRuleAssociation.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of an association between a Resolver rule and a VPC.
-
#resolver_rule_id ⇒ String, AWSCDK::Interfaces::AWSRoute53Resolver::IResolverRuleRef
readonly
The ID of the Resolver rule that you associated with the VPC that is specified by
VPCId. -
#vpc_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IVPCRef
readonly
The ID of the VPC that you associated the Resolver rule with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resolver_rule_id:, vpc_id:, name: nil) ⇒ CfnResolverRuleAssociationProps
constructor
A new instance of CfnResolverRuleAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resolver_rule_id:, vpc_id:, name: nil) ⇒ CfnResolverRuleAssociationProps
Returns a new instance of CfnResolverRuleAssociationProps.
12 13 14 15 16 17 18 19 |
# File 'route53_resolver/cfn_resolver_rule_association_props.rb', line 12 def initialize(resolver_rule_id:, vpc_id:, name: nil) @resolver_rule_id = resolver_rule_id Jsii::Type.check_type(@resolver_rule_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yb3V0ZTUzcmVzb2x2ZXIuSVJlc29sdmVyUnVsZVJlZiJ9XX19")), "resolverRuleId") @vpc_id = vpc_id Jsii::Type.check_type(@vpc_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVZQQ1JlZiJ9XX19")), "vpcId") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of an association between a Resolver rule and a VPC.
The name can be up to 64 characters long and can contain letters (a-z, A-Z), numbers (0-9), hyphens (-), underscores (_), and spaces. The name cannot consist of only numbers.
37 38 39 |
# File 'route53_resolver/cfn_resolver_rule_association_props.rb', line 37 def name @name end |
#resolver_rule_id ⇒ String, AWSCDK::Interfaces::AWSRoute53Resolver::IResolverRuleRef (readonly)
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId .
25 26 27 |
# File 'route53_resolver/cfn_resolver_rule_association_props.rb', line 25 def resolver_rule_id @resolver_rule_id end |
#vpc_id ⇒ String, AWSCDK::Interfaces::AWSEC2::IVPCRef (readonly)
The ID of the VPC that you associated the Resolver rule with.
30 31 32 |
# File 'route53_resolver/cfn_resolver_rule_association_props.rb', line 30 def vpc_id @vpc_id end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'route53_resolver/cfn_resolver_rule_association_props.rb', line 39 def self.jsii_properties { :resolver_rule_id => "resolverRuleId", :vpc_id => "vpcId", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'route53_resolver/cfn_resolver_rule_association_props.rb', line 47 def to_jsii result = {} result.merge!({ "resolverRuleId" => @resolver_rule_id, "vpcId" => @vpc_id, "name" => @name, }) result.compact end |