Class: AWSCDK::SecurityHub::CfnConfigurationPolicy::ParameterConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value_type:, value: nil) ⇒ ParameterConfigurationProperty

Returns a new instance of ParameterConfigurationProperty.

Parameters:



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_typeString (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_propertiesObject



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_jsiiObject



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