Class: AWSCDK::Config::CfnConfigRule::CustomPolicyDetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Config::CfnConfigRule::CustomPolicyDetailsProperty
- Defined in:
- config/cfn_config_rule.rb
Overview
Provides the CustomPolicyDetails, the rule owner ( AWS for managed rules, CUSTOM_POLICY for Custom Policy rules, and CUSTOM_LAMBDA for Custom Lambda rules), the rule identifier, and the events that cause the evaluation of your AWS resources.
Instance Attribute Summary collapse
-
#enable_debug_log_delivery ⇒ Boolean, ...
readonly
The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.
-
#policy_runtime ⇒ String?
readonly
The runtime system for your AWS Config Custom Policy rule.
-
#policy_text ⇒ String?
readonly
The policy definition containing the logic for your AWS Config Custom Policy rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enable_debug_log_delivery: nil, policy_runtime: nil, policy_text: nil) ⇒ CustomPolicyDetailsProperty
constructor
A new instance of CustomPolicyDetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enable_debug_log_delivery: nil, policy_runtime: nil, policy_text: nil) ⇒ CustomPolicyDetailsProperty
Returns a new instance of CustomPolicyDetailsProperty.
678 679 680 681 682 683 684 685 |
# File 'config/cfn_config_rule.rb', line 678 def initialize(enable_debug_log_delivery: nil, policy_runtime: nil, policy_text: nil) @enable_debug_log_delivery = enable_debug_log_delivery Jsii::Type.check_type(@enable_debug_log_delivery, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableDebugLogDelivery") unless @enable_debug_log_delivery.nil? @policy_runtime = policy_runtime Jsii::Type.check_type(@policy_runtime, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyRuntime") unless @policy_runtime.nil? @policy_text = policy_text Jsii::Type.check_type(@policy_text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyText") unless @policy_text.nil? end |
Instance Attribute Details
#enable_debug_log_delivery ⇒ Boolean, ... (readonly)
The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.
The default value is false .
693 694 695 |
# File 'config/cfn_config_rule.rb', line 693 def enable_debug_log_delivery @enable_debug_log_delivery end |
#policy_runtime ⇒ String? (readonly)
The runtime system for your AWS Config Custom Policy rule.
Guard is a policy-as-code language that allows you to write policies that are enforced by AWS Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository .
700 701 702 |
# File 'config/cfn_config_rule.rb', line 700 def policy_runtime @policy_runtime end |
#policy_text ⇒ String? (readonly)
The policy definition containing the logic for your AWS Config Custom Policy rule.
705 706 707 |
# File 'config/cfn_config_rule.rb', line 705 def policy_text @policy_text end |
Class Method Details
.jsii_properties ⇒ Object
707 708 709 710 711 712 713 |
# File 'config/cfn_config_rule.rb', line 707 def self.jsii_properties { :enable_debug_log_delivery => "enableDebugLogDelivery", :policy_runtime => "policyRuntime", :policy_text => "policyText", } end |
Instance Method Details
#to_jsii ⇒ Object
715 716 717 718 719 720 721 722 723 |
# File 'config/cfn_config_rule.rb', line 715 def to_jsii result = {} result.merge!({ "enableDebugLogDelivery" => @enable_debug_log_delivery, "policyRuntime" => @policy_runtime, "policyText" => @policy_text, }) result.compact end |