CfnSecurityControlPropsMixin
- class aws_cdk.mixins_preview.aws_securityhub.mixins.CfnSecurityControlPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::SecurityHub::SecurityControlresource specifies custom parameter values for an AWS Security Hub CSPM control.For a list of controls that support custom parameters, see Security Hub CSPM controls reference . You can also use this resource to specify the use of default parameter values for a control. For more information about custom parameters, see Custom control parameters in the AWS Security Hub CSPM User Guide .
Tags aren’t supported for this resource.
- See:
- CloudformationResource:
AWS::SecurityHub::SecurityControl
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_securityhub import mixins as securityhub_mixins cfn_security_control_props_mixin = securityhub_mixins.CfnSecurityControlPropsMixin(securityhub_mixins.CfnSecurityControlMixinProps( last_update_reason="lastUpdateReason", parameters={ "parameters_key": securityhub_mixins.CfnSecurityControlPropsMixin.ParameterConfigurationProperty( value=securityhub_mixins.CfnSecurityControlPropsMixin.ParameterValueProperty( boolean=False, double=123, enum="enum", enum_list=["enumList"], integer=123, integer_list=[123], string="string", string_list=["stringList"] ), value_type="valueType" ) }, security_control_arn="securityControlArn", security_control_id="securityControlId" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::SecurityHub::SecurityControl.- Parameters:
props (
Union[CfnSecurityControlMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['lastUpdateReason', 'parameters', 'securityControlArn', 'securityControlId']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ParameterConfigurationProperty
- class CfnSecurityControlPropsMixin.ParameterConfigurationProperty(*, value=None, value_type=None)
Bases:
objectAn object that provides the current value of a security control parameter and identifies whether it has been customized.
- Parameters:
value (
Union[IResolvable,ParameterValueProperty,Dict[str,Any],None]) – The current value of a control parameter.value_type (
Optional[str]) – Identifies whether a control parameter uses a custom user-defined value or subscribes to the default AWS Security Hub CSPM behavior. WhenValueTypeis set equal toDEFAULT, the default behavior can be a specific Security Hub CSPM default value, or the default behavior can be to ignore a specific parameter. WhenValueTypeis set equal toDEFAULT, Security Hub CSPM ignores user-provided input for theValuefield. WhenValueTypeis set equal toCUSTOM, theValuefield can’t be empty.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_securityhub import mixins as securityhub_mixins parameter_configuration_property = securityhub_mixins.CfnSecurityControlPropsMixin.ParameterConfigurationProperty( value=securityhub_mixins.CfnSecurityControlPropsMixin.ParameterValueProperty( boolean=False, double=123, enum="enum", enum_list=["enumList"], integer=123, integer_list=[123], string="string", string_list=["stringList"] ), value_type="valueType" )
Attributes
- value
The current value of a control parameter.
- value_type
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default AWS Security Hub CSPM behavior.
When
ValueTypeis set equal toDEFAULT, the default behavior can be a specific Security Hub CSPM default value, or the default behavior can be to ignore a specific parameter. WhenValueTypeis set equal toDEFAULT, Security Hub CSPM ignores user-provided input for theValuefield.When
ValueTypeis set equal toCUSTOM, theValuefield can’t be empty.
ParameterValueProperty
- class CfnSecurityControlPropsMixin.ParameterValueProperty(*, boolean=None, double=None, enum=None, enum_list=None, integer=None, integer_list=None, string=None, string_list=None)
Bases:
objectAn object that includes the data type of a security control parameter and its current value.
- Parameters:
boolean (
Union[bool,IResolvable,None]) – A control parameter that is a boolean.double (
Union[int,float,None]) – A control parameter that is a double.enum (
Optional[str]) – A control parameter that is an enum.enum_list (
Optional[Sequence[str]]) – A control parameter that is a list of enums.integer (
Union[int,float,None]) – A control parameter that is an integer.integer_list (
Union[Sequence[Union[int,float]],IResolvable,None]) – A control parameter that is a list of integers.string (
Optional[str]) – A control parameter that is a string.string_list (
Optional[Sequence[str]]) – A control parameter that is a list of strings.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_securityhub import mixins as securityhub_mixins parameter_value_property = securityhub_mixins.CfnSecurityControlPropsMixin.ParameterValueProperty( boolean=False, double=123, enum="enum", enum_list=["enumList"], integer=123, integer_list=[123], string="string", string_list=["stringList"] )
Attributes
- boolean
A control parameter that is a boolean.
- double
A control parameter that is a double.
- enum
A control parameter that is an enum.
- enum_list
A control parameter that is a list of enums.
- integer
A control parameter that is an integer.
- integer_list
A control parameter that is a list of integers.
- string
A control parameter that is a string.
- string_list
A control parameter that is a list of strings.