Class: AWSCDK::SecurityHub::CfnConfigurationPolicy::ParameterConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnConfigurationPolicy::ParameterConfigurationProperty
- Defined in:
- security_hub/cfn_configuration_policy.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.
593 594 595 596 597 598 |
# File 'security_hub/cfn_configuration_policy.rb', line 593 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::CfnConfigurationPolicy::ParameterValueProperty.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5Db25maWd1cmF0aW9uUG9saWN5LlBhcmFtZXRlclZhbHVlUHJvcGVydHkifV19fQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#value ⇒ AWSCDK::IResolvable, ... (readonly)
The current value of a control parameter.
613 614 615 |
# File 'security_hub/cfn_configuration_policy.rb', line 613 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.
608 609 610 |
# File 'security_hub/cfn_configuration_policy.rb', line 608 def value_type @value_type end |
Class Method Details
.jsii_properties ⇒ Object
615 616 617 618 619 620 |
# File 'security_hub/cfn_configuration_policy.rb', line 615 def self.jsii_properties { :value_type => "valueType", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
622 623 624 625 626 627 628 629 |
# File 'security_hub/cfn_configuration_policy.rb', line 622 def to_jsii result = {} result.merge!({ "valueType" => @value_type, "value" => @value, }) result.compact end |