Class: AWSCDK::Interfaces::AWSConfig::ConfigRuleReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSConfig::ConfigRuleReference
- Defined in:
- interfaces/aws_config/config_rule_reference.rb
Overview
A reference to a ConfigRule resource.
Instance Attribute Summary collapse
-
#config_rule_arn ⇒ String
readonly
The ARN of the ConfigRule resource.
-
#config_rule_name ⇒ String
readonly
The ConfigRuleName of the ConfigRule resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config_rule_arn:, config_rule_name:) ⇒ ConfigRuleReference
constructor
A new instance of ConfigRuleReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(config_rule_arn:, config_rule_name:) ⇒ ConfigRuleReference
Returns a new instance of ConfigRuleReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_config/config_rule_reference.rb', line 9 def initialize(config_rule_arn:, config_rule_name:) @config_rule_arn = config_rule_arn Jsii::Type.check_type(@config_rule_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configRuleArn") @config_rule_name = config_rule_name Jsii::Type.check_type(@config_rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "configRuleName") end |
Instance Attribute Details
#config_rule_arn ⇒ String (readonly)
The ARN of the ConfigRule resource.
19 20 21 |
# File 'interfaces/aws_config/config_rule_reference.rb', line 19 def config_rule_arn @config_rule_arn end |
#config_rule_name ⇒ String (readonly)
The ConfigRuleName of the ConfigRule resource.
23 24 25 |
# File 'interfaces/aws_config/config_rule_reference.rb', line 23 def config_rule_name @config_rule_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_config/config_rule_reference.rb', line 25 def self.jsii_properties { :config_rule_arn => "configRuleArn", :config_rule_name => "configRuleName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_config/config_rule_reference.rb', line 32 def to_jsii result = {} result.merge!({ "configRuleArn" => @config_rule_arn, "configRuleName" => @config_rule_name, }) result.compact end |