Class: AWSCDK::SecurityHub::CfnSecurityControl::ParameterConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnSecurityControl::ParameterConfigurationProperty
- Defined in:
- security_hub/cfn_security_control.rb
Overview
An object that provides the current value of a security control parameter and identifies whether it has been customized.
Instance Attribute Summary collapse
-
#value ⇒ AWSCDK::IResolvable, ...
readonly
The current value of a control parameter.
-
#value_type ⇒ String
readonly
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default AWS Security Hub CSPM behavior.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value_type:, value: nil) ⇒ ParameterConfigurationProperty
constructor
A new instance of ParameterConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value_type:, value: nil) ⇒ ParameterConfigurationProperty
Returns a new instance of ParameterConfigurationProperty.
536 537 538 539 540 541 |
# File 'security_hub/cfn_security_control.rb', line 536 def initialize(value_type:, value: nil) @value_type = value_type Jsii::Type.check_type(@value_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "valueType") @value = value.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnSecurityControl::ParameterValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5TZWN1cml0eUNvbnRyb2wuUGFyYW1ldGVyVmFsdWVQcm9wZXJ0eSJ9XX19")), "value") unless @value.nil? end |
Instance Attribute Details
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The current value of a control parameter.
556 557 558 |
# File 'security_hub/cfn_security_control.rb', line 556 def value @value end |
#value_type ⇒ String (readonly)
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default AWS Security Hub CSPM behavior.
When ValueType is set equal to DEFAULT , the default behavior can be a specific Security Hub CSPM default value, or the default behavior can be to ignore a specific parameter. When ValueType is set equal to DEFAULT , Security Hub CSPM ignores user-provided input for the Value field.
When ValueType is set equal to CUSTOM , the Value field can't be empty.
551 552 553 |
# File 'security_hub/cfn_security_control.rb', line 551 def value_type @value_type end |
Class Method Details
.jsii_properties ⇒ Object
558 559 560 561 562 563 |
# File 'security_hub/cfn_security_control.rb', line 558 def self.jsii_properties { :value_type => "valueType", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
565 566 567 568 569 570 571 572 |
# File 'security_hub/cfn_security_control.rb', line 565 def to_jsii result = {} result.merge!({ "valueType" => @value_type, "value" => @value, }) result.compact end |