CfnAutomationRulePropsMixin
- class aws_cdk.mixins_preview.aws_securityhub.mixins.CfnAutomationRulePropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::SecurityHub::AutomationRuleresource specifies an automation rule based on input parameters.For more information, see Automation rules in the Security Hub User Guide .
- See:
- CloudformationResource:
AWS::SecurityHub::AutomationRule
- 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_automation_rule_props_mixin = securityhub_mixins.CfnAutomationRulePropsMixin(securityhub_mixins.CfnAutomationRuleMixinProps( actions=[securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesActionProperty( finding_fields_update=securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesFindingFieldsUpdateProperty( confidence=123, criticality=123, note=securityhub_mixins.CfnAutomationRulePropsMixin.NoteUpdateProperty( text="text", updated_by="updatedBy" ), related_findings=[securityhub_mixins.CfnAutomationRulePropsMixin.RelatedFindingProperty( id="id", product_arn="productArn" )], severity=securityhub_mixins.CfnAutomationRulePropsMixin.SeverityUpdateProperty( label="label", normalized=123, product=123 ), types=["types"], user_defined_fields={ "user_defined_fields_key": "userDefinedFields" }, verification_state="verificationState", workflow=securityhub_mixins.CfnAutomationRulePropsMixin.WorkflowUpdateProperty( status="status" ) ), type="type" )], criteria=securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesFindingFiltersProperty( aws_account_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], company_name=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], compliance_associated_standards_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], compliance_security_control_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], compliance_status=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], confidence=[securityhub_mixins.CfnAutomationRulePropsMixin.NumberFilterProperty( eq=123, gte=123, lte=123 )], created_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], criticality=[securityhub_mixins.CfnAutomationRulePropsMixin.NumberFilterProperty( eq=123, gte=123, lte=123 )], description=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], first_observed_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], generator_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], last_observed_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], note_text=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], note_updated_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], note_updated_by=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], product_arn=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], product_name=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], record_state=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], related_findings_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], related_findings_product_arn=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_details_other=[securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )], resource_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_partition=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_region=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_tags=[securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )], resource_type=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], severity_label=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], source_url=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], title=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], type=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], updated_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], user_defined_fields=[securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )], verification_state=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], workflow_status=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )] ), description="description", is_terminal=False, rule_name="ruleName", rule_order=123, rule_status="ruleStatus", tags={ "tags_key": "tags" } ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::SecurityHub::AutomationRule.- Parameters:
props (
Union[CfnAutomationRuleMixinProps,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:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['actions', 'criteria', 'description', 'isTerminal', 'ruleName', 'ruleOrder', 'ruleStatus', 'tags']
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
AutomationRulesActionProperty
- class CfnAutomationRulePropsMixin.AutomationRulesActionProperty(*, finding_fields_update=None, type=None)
Bases:
objectOne or more actions that Security Hub takes when a finding matches the defined criteria of a rule.
- Parameters:
finding_fields_update (
Union[IResolvable,AutomationRulesFindingFieldsUpdateProperty,Dict[str,Any],None]) – Specifies that the automation rule action is an update to a finding field.type (
Optional[str]) – Specifies the type of action that Security Hub takes when a finding matches the defined criteria of a rule.
- 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 automation_rules_action_property = securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesActionProperty( finding_fields_update=securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesFindingFieldsUpdateProperty( confidence=123, criticality=123, note=securityhub_mixins.CfnAutomationRulePropsMixin.NoteUpdateProperty( text="text", updated_by="updatedBy" ), related_findings=[securityhub_mixins.CfnAutomationRulePropsMixin.RelatedFindingProperty( id="id", product_arn="productArn" )], severity=securityhub_mixins.CfnAutomationRulePropsMixin.SeverityUpdateProperty( label="label", normalized=123, product=123 ), types=["types"], user_defined_fields={ "user_defined_fields_key": "userDefinedFields" }, verification_state="verificationState", workflow=securityhub_mixins.CfnAutomationRulePropsMixin.WorkflowUpdateProperty( status="status" ) ), type="type" )
Attributes
- finding_fields_update
Specifies that the automation rule action is an update to a finding field.
- type
Specifies the type of action that Security Hub takes when a finding matches the defined criteria of a rule.
AutomationRulesFindingFieldsUpdateProperty
- class CfnAutomationRulePropsMixin.AutomationRulesFindingFieldsUpdateProperty(*, confidence=None, criticality=None, note=None, related_findings=None, severity=None, types=None, user_defined_fields=None, verification_state=None, workflow=None)
Bases:
objectIdentifies the finding fields that the automation rule action updates when a finding matches the defined criteria.
- Parameters:
confidence (
Union[int,float,None]) – The rule action updates theConfidencefield of a finding.criticality (
Union[int,float,None]) – The rule action updates theCriticalityfield of a finding.note (
Union[IResolvable,NoteUpdateProperty,Dict[str,Any],None]) – The rule action will update theNotefield of a finding.related_findings (
Union[IResolvable,Sequence[Union[IResolvable,RelatedFindingProperty,Dict[str,Any]]],None]) – The rule action will update theRelatedFindingsfield of a finding.severity (
Union[IResolvable,SeverityUpdateProperty,Dict[str,Any],None]) – The rule action will update theSeverityfield of a finding.types (
Optional[Sequence[str]]) – The rule action updates theTypesfield of a finding.user_defined_fields (
Union[Mapping[str,str],IResolvable,None]) – The rule action updates theUserDefinedFieldsfield of a finding.verification_state (
Optional[str]) – The rule action updates theVerificationStatefield of a finding.workflow (
Union[IResolvable,WorkflowUpdateProperty,Dict[str,Any],None]) – The rule action will update theWorkflowfield of a finding.
- 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 automation_rules_finding_fields_update_property = securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesFindingFieldsUpdateProperty( confidence=123, criticality=123, note=securityhub_mixins.CfnAutomationRulePropsMixin.NoteUpdateProperty( text="text", updated_by="updatedBy" ), related_findings=[securityhub_mixins.CfnAutomationRulePropsMixin.RelatedFindingProperty( id="id", product_arn="productArn" )], severity=securityhub_mixins.CfnAutomationRulePropsMixin.SeverityUpdateProperty( label="label", normalized=123, product=123 ), types=["types"], user_defined_fields={ "user_defined_fields_key": "userDefinedFields" }, verification_state="verificationState", workflow=securityhub_mixins.CfnAutomationRulePropsMixin.WorkflowUpdateProperty( status="status" ) )
Attributes
- confidence
The rule action updates the
Confidencefield of a finding.
- criticality
The rule action updates the
Criticalityfield of a finding.
- note
The rule action will update the
Notefield of a finding.
The rule action will update the
RelatedFindingsfield of a finding.
- severity
The rule action will update the
Severityfield of a finding.
- types
The rule action updates the
Typesfield of a finding.
- user_defined_fields
The rule action updates the
UserDefinedFieldsfield of a finding.
- verification_state
The rule action updates the
VerificationStatefield of a finding.
- workflow
The rule action will update the
Workflowfield of a finding.
AutomationRulesFindingFiltersProperty
- class CfnAutomationRulePropsMixin.AutomationRulesFindingFiltersProperty(*, aws_account_id=None, company_name=None, compliance_associated_standards_id=None, compliance_security_control_id=None, compliance_status=None, confidence=None, created_at=None, criticality=None, description=None, first_observed_at=None, generator_id=None, id=None, last_observed_at=None, note_text=None, note_updated_at=None, note_updated_by=None, product_arn=None, product_name=None, record_state=None, related_findings_id=None, related_findings_product_arn=None, resource_details_other=None, resource_id=None, resource_partition=None, resource_region=None, resource_tags=None, resource_type=None, severity_label=None, source_url=None, title=None, type=None, updated_at=None, user_defined_fields=None, verification_state=None, workflow_status=None)
Bases:
objectThe criteria that determine which findings a rule applies to.
- Parameters:
aws_account_id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The AWS account ID in which a finding was generated. Array Members: Minimum number of 1 item. Maximum number of 100 items.company_name (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The name of the company for the product that generated the finding. For control-based findings, the company is AWS . Array Members: Minimum number of 1 item. Maximum number of 20 items.compliance_associated_standards_id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The unique identifier of a standard in which a control is enabled. This field consists of the resource portion of the Amazon Resource Name (ARN) returned for a standard in the DescribeStandards API response. Array Members: Minimum number of 1 item. Maximum number of 20 items.compliance_security_control_id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The security control ID for which a finding was generated. Security control IDs are the same across standards. Array Members: Minimum number of 1 item. Maximum number of 20 items.compliance_status (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The result of a security check. This field is only used for findings generated from controls. Array Members: Minimum number of 1 item. Maximum number of 20 items.confidence (
Union[IResolvable,Sequence[Union[IResolvable,NumberFilterProperty,Dict[str,Any]]],None]) – The likelihood that a finding accurately identifies the behavior or issue that it was intended to identify.Confidenceis scored on a 0–100 basis using a ratio scale. A value of0means 0 percent confidence, and a value of100means 100 percent confidence. For example, a data exfiltration detection based on a statistical deviation of network traffic has low confidence because an actual exfiltration hasn’t been verified. For more information, see Confidence in the Security Hub User Guide . Array Members: Minimum number of 1 item. Maximum number of 20 items.created_at (
Union[IResolvable,Sequence[Union[IResolvable,DateFilterProperty,Dict[str,Any]]],None]) – A timestamp that indicates when this finding record was created. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps . Array Members: Minimum number of 1 item. Maximum number of 20 items.criticality (
Union[IResolvable,Sequence[Union[IResolvable,NumberFilterProperty,Dict[str,Any]]],None]) – The level of importance that is assigned to the resources that are associated with a finding.Criticalityis scored on a 0–100 basis, using a ratio scale that supports only full integers. A score of0means that the underlying resources have no criticality, and a score of100is reserved for the most critical resources. For more information, see Criticality in the Security Hub User Guide . Array Members: Minimum number of 1 item. Maximum number of 20 items.description (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – A finding’s description. Array Members: Minimum number of 1 item. Maximum number of 20 items.first_observed_at (
Union[IResolvable,Sequence[Union[IResolvable,DateFilterProperty,Dict[str,Any]]],None]) –A timestamp that indicates when the potential security issue captured by a finding was first observed by the security findings product. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps . Array Members: Minimum number of 1 item. Maximum number of 20 items.
generator_id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The identifier for the solution-specific component that generated a finding. Array Members: Minimum number of 1 item. Maximum number of 100 items.id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The product-specific identifier for a finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.last_observed_at (
Union[IResolvable,Sequence[Union[IResolvable,DateFilterProperty,Dict[str,Any]]],None]) –A timestamp that indicates when the security findings provider most recently observed a change in the resource that is involved in the finding. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps . Array Members: Minimum number of 1 item. Maximum number of 20 items.
note_text (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The text of a user-defined note that’s added to a finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.note_updated_at (
Union[IResolvable,Sequence[Union[IResolvable,DateFilterProperty,Dict[str,Any]]],None]) –The timestamp of when the note was updated. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps . Array Members: Minimum number of 1 item. Maximum number of 20 items.
note_updated_by (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The principal that created a note. Array Members: Minimum number of 1 item. Maximum number of 20 items.product_arn (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The Amazon Resource Name (ARN) for a third-party product that generated a finding in Security Hub. Array Members: Minimum number of 1 item. Maximum number of 20 items.product_name (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – Provides the name of the product that generated the finding. For control-based findings, the product name is Security Hub. Array Members: Minimum number of 1 item. Maximum number of 20 items.record_state (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – Provides the current state of a finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.related_findings_id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The product-generated identifier for a related finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.related_findings_product_arn (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The ARN for the product that generated a related finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.resource_details_other (
Union[IResolvable,Sequence[Union[IResolvable,MapFilterProperty,Dict[str,Any]]],None]) – Custom fields and values about the resource that a finding pertains to. Array Members: Minimum number of 1 item. Maximum number of 20 items.resource_id (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The identifier for the given resource type. For AWS resources that are identified by Amazon Resource Names (ARNs), this is the ARN. For AWS resources that lack ARNs, this is the identifier as defined by the AWS service that created the resource. For non- AWS resources, this is a unique identifier that is associated with the resource. Array Members: Minimum number of 1 item. Maximum number of 100 items.resource_partition (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The partition in which the resource that the finding pertains to is located. A partition is a group of AWS Regions . Each AWS account is scoped to one partition. Array Members: Minimum number of 1 item. Maximum number of 20 items.resource_region (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The AWS Region where the resource that a finding pertains to is located. Array Members: Minimum number of 1 item. Maximum number of 20 items.resource_tags (
Union[IResolvable,Sequence[Union[IResolvable,MapFilterProperty,Dict[str,Any]]],None]) – A list of AWS tags associated with a resource at the time the finding was processed. Array Members: Minimum number of 1 item. Maximum number of 20 items.resource_type (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – A finding’s title. Array Members: Minimum number of 1 item. Maximum number of 100 items.severity_label (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – The severity value of the finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.source_url (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – Provides a URL that links to a page about the current finding in the finding product. Array Members: Minimum number of 1 item. Maximum number of 20 items.title (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – A finding’s title. Array Members: Minimum number of 1 item. Maximum number of 100 items.type (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – One or more finding types in the format of namespace/category/classifier that classify a finding. For a list of namespaces, classifiers, and categories, see Types taxonomy for ASFF in the Security Hub User Guide . Array Members: Minimum number of 1 item. Maximum number of 20 items.updated_at (
Union[IResolvable,Sequence[Union[IResolvable,DateFilterProperty,Dict[str,Any]]],None]) –A timestamp that indicates when the finding record was most recently updated. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps . Array Members: Minimum number of 1 item. Maximum number of 20 items.
user_defined_fields (
Union[IResolvable,Sequence[Union[IResolvable,MapFilterProperty,Dict[str,Any]]],None]) – A list of user-defined name and value string pairs added to a finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.verification_state (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – Provides the veracity of a finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.workflow_status (
Union[IResolvable,Sequence[Union[IResolvable,StringFilterProperty,Dict[str,Any]]],None]) – Provides information about the status of the investigation into a finding. Array Members: Minimum number of 1 item. Maximum number of 20 items.
- 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 automation_rules_finding_filters_property = securityhub_mixins.CfnAutomationRulePropsMixin.AutomationRulesFindingFiltersProperty( aws_account_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], company_name=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], compliance_associated_standards_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], compliance_security_control_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], compliance_status=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], confidence=[securityhub_mixins.CfnAutomationRulePropsMixin.NumberFilterProperty( eq=123, gte=123, lte=123 )], created_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], criticality=[securityhub_mixins.CfnAutomationRulePropsMixin.NumberFilterProperty( eq=123, gte=123, lte=123 )], description=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], first_observed_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], generator_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], last_observed_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], note_text=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], note_updated_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], note_updated_by=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], product_arn=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], product_name=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], record_state=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], related_findings_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], related_findings_product_arn=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_details_other=[securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )], resource_id=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_partition=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_region=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], resource_tags=[securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )], resource_type=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], severity_label=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], source_url=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], title=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], type=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], updated_at=[securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )], user_defined_fields=[securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )], verification_state=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )], workflow_status=[securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )] )
Attributes
- aws_account_id
The AWS account ID in which a finding was generated.
Array Members: Minimum number of 1 item. Maximum number of 100 items.
- company_name
The name of the company for the product that generated the finding.
For control-based findings, the company is AWS .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- compliance_associated_standards_id
The unique identifier of a standard in which a control is enabled.
This field consists of the resource portion of the Amazon Resource Name (ARN) returned for a standard in the DescribeStandards API response.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- compliance_security_control_id
The security control ID for which a finding was generated. Security control IDs are the same across standards.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- compliance_status
The result of a security check. This field is only used for findings generated from controls.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- confidence
The likelihood that a finding accurately identifies the behavior or issue that it was intended to identify.
Confidenceis scored on a 0–100 basis using a ratio scale. A value of0means 0 percent confidence, and a value of100means 100 percent confidence. For example, a data exfiltration detection based on a statistical deviation of network traffic has low confidence because an actual exfiltration hasn’t been verified. For more information, see Confidence in the Security Hub User Guide .Array Members: Minimum number of 1 item. Maximum number of 20 items.
- created_at
A timestamp that indicates when this finding record was created.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- criticality
The level of importance that is assigned to the resources that are associated with a finding.
Criticalityis scored on a 0–100 basis, using a ratio scale that supports only full integers. A score of0means that the underlying resources have no criticality, and a score of100is reserved for the most critical resources. For more information, see Criticality in the Security Hub User Guide .Array Members: Minimum number of 1 item. Maximum number of 20 items.
- description
A finding’s description.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- first_observed_at
A timestamp that indicates when the potential security issue captured by a finding was first observed by the security findings product.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- generator_id
The identifier for the solution-specific component that generated a finding.
Array Members: Minimum number of 1 item. Maximum number of 100 items.
- id
The product-specific identifier for a finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- last_observed_at
A timestamp that indicates when the security findings provider most recently observed a change in the resource that is involved in the finding.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- note_text
The text of a user-defined note that’s added to a finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- note_updated_at
The timestamp of when the note was updated.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- note_updated_by
The principal that created a note.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- product_arn
The Amazon Resource Name (ARN) for a third-party product that generated a finding in Security Hub.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- product_name
Provides the name of the product that generated the finding. For control-based findings, the product name is Security Hub.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- record_state
Provides the current state of a finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
The product-generated identifier for a related finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
The ARN for the product that generated a related finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- resource_details_other
Custom fields and values about the resource that a finding pertains to.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- resource_id
The identifier for the given resource type.
For AWS resources that are identified by Amazon Resource Names (ARNs), this is the ARN. For AWS resources that lack ARNs, this is the identifier as defined by the AWS service that created the resource. For non- AWS resources, this is a unique identifier that is associated with the resource.
Array Members: Minimum number of 1 item. Maximum number of 100 items.
- resource_partition
The partition in which the resource that the finding pertains to is located.
A partition is a group of AWS Regions . Each AWS account is scoped to one partition.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- resource_region
The AWS Region where the resource that a finding pertains to is located.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- resource_tags
A list of AWS tags associated with a resource at the time the finding was processed.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- resource_type
A finding’s title.
Array Members: Minimum number of 1 item. Maximum number of 100 items.
- severity_label
The severity value of the finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- source_url
Provides a URL that links to a page about the current finding in the finding product.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- title
A finding’s title.
Array Members: Minimum number of 1 item. Maximum number of 100 items.
- type
One or more finding types in the format of namespace/category/classifier that classify a finding.
For a list of namespaces, classifiers, and categories, see Types taxonomy for ASFF in the Security Hub User Guide .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- updated_at
A timestamp that indicates when the finding record was most recently updated.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- user_defined_fields
A list of user-defined name and value string pairs added to a finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- verification_state
Provides the veracity of a finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
- workflow_status
Provides information about the status of the investigation into a finding.
Array Members: Minimum number of 1 item. Maximum number of 20 items.
DateFilterProperty
- class CfnAutomationRulePropsMixin.DateFilterProperty(*, date_range=None, end=None, start=None)
Bases:
objectA date filter for querying findings.
- Parameters:
date_range (
Union[IResolvable,DateRangeProperty,Dict[str,Any],None]) – A date range for the date filter.end (
Optional[str]) –A timestamp that provides the end date for the date filter. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
start (
Optional[str]) –A timestamp that provides the start date for the date filter. For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
- 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 date_filter_property = securityhub_mixins.CfnAutomationRulePropsMixin.DateFilterProperty( date_range=securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 ), end="end", start="start" )
Attributes
- date_range
A date range for the date filter.
- end
A timestamp that provides the end date for the date filter.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
- start
A timestamp that provides the start date for the date filter.
For more information about the validation and formatting of timestamp fields in Security Hub , see Timestamps .
DateRangeProperty
- class CfnAutomationRulePropsMixin.DateRangeProperty(*, unit=None, value=None)
Bases:
objectA date range for the date filter.
- Parameters:
unit (
Optional[str]) – A date range unit for the date filter.value (
Union[int,float,None]) – A date range value for the date filter.
- 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 date_range_property = securityhub_mixins.CfnAutomationRulePropsMixin.DateRangeProperty( unit="unit", value=123 )
Attributes
- unit
A date range unit for the date filter.
- value
A date range value for the date filter.
MapFilterProperty
- class CfnAutomationRulePropsMixin.MapFilterProperty(*, comparison=None, key=None, value=None)
Bases:
objectA map filter for filtering Security Hub findings.
Each map filter provides the field to check for, the value to check for, and the comparison operator.
- Parameters:
comparison (
Optional[str]) –The condition to apply to the key value when filtering Security Hub findings with a map filter. To search for values that have the filter value, use one of the following comparison operators: - To search for values that include the filter value, use
CONTAINS. For example, for theResourceTagsfield, the filterDepartment CONTAINS Securitymatches findings that include the valueSecurityfor theDepartmenttag. In the same example, a finding with a value ofSecurity teamfor theDepartmenttag is a match. - To search for values that exactly match the filter value, useEQUALS. For example, for theResourceTagsfield, the filterDepartment EQUALS Securitymatches findings that have the valueSecurityfor theDepartmenttag.CONTAINSandEQUALSfilters on the same field are joined byOR. A finding matches if it matches any one of those filters. For example, the filtersDepartment CONTAINS Security OR Department CONTAINS Financematch a finding that includes eitherSecurity,Finance, or both values. To search for values that don’t have the filter value, use one of the following comparison operators: - To search for values that exclude the filter value, useNOT_CONTAINS. For example, for theResourceTagsfield, the filterDepartment NOT_CONTAINS Financematches findings that exclude the valueFinancefor theDepartmenttag. - To search for values other than the filter value, useNOT_EQUALS. For example, for theResourceTagsfield, the filterDepartment NOT_EQUALS Financematches findings that don’t have the valueFinancefor theDepartmenttag.NOT_CONTAINSandNOT_EQUALSfilters on the same field are joined byAND. A finding matches only if it matches all of those filters. For example, the filtersDepartment NOT_CONTAINS Security AND Department NOT_CONTAINS Financematch a finding that excludes both theSecurityandFinancevalues.CONTAINSfilters can only be used with otherCONTAINSfilters.NOT_CONTAINSfilters can only be used with otherNOT_CONTAINSfilters. You can’t have both aCONTAINSfilter and aNOT_CONTAINSfilter on the same field. Similarly, you can’t have both anEQUALSfilter and aNOT_EQUALSfilter on the same field. Combining filters in this way returns an error.CONTAINSandNOT_CONTAINSoperators can be used only with automation rules. For more information, see Automation rules in the Security Hub User Guide .key (
Optional[str]) – The key of the map filter. For example, forResourceTags,Keyidentifies the name of the tag. ForUserDefinedFields,Keyis the name of the field.value (
Optional[str]) – The value for the key in the map filter. Filter values are case sensitive. For example, one of the values for a tag calledDepartmentmight beSecurity. If you providesecurityas the filter value, then there’s no match.
- 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 map_filter_property = securityhub_mixins.CfnAutomationRulePropsMixin.MapFilterProperty( comparison="comparison", key="key", value="value" )
Attributes
- comparison
The condition to apply to the key value when filtering Security Hub findings with a map filter.
To search for values that have the filter value, use one of the following comparison operators:
To search for values that include the filter value, use
CONTAINS. For example, for theResourceTagsfield, the filterDepartment CONTAINS Securitymatches findings that include the valueSecurityfor theDepartmenttag. In the same example, a finding with a value ofSecurity teamfor theDepartmenttag is a match.To search for values that exactly match the filter value, use
EQUALS. For example, for theResourceTagsfield, the filterDepartment EQUALS Securitymatches findings that have the valueSecurityfor theDepartmenttag.
CONTAINSandEQUALSfilters on the same field are joined byOR. A finding matches if it matches any one of those filters. For example, the filtersDepartment CONTAINS Security OR Department CONTAINS Financematch a finding that includes eitherSecurity,Finance, or both values.To search for values that don’t have the filter value, use one of the following comparison operators:
To search for values that exclude the filter value, use
NOT_CONTAINS. For example, for theResourceTagsfield, the filterDepartment NOT_CONTAINS Financematches findings that exclude the valueFinancefor theDepartmenttag.To search for values other than the filter value, use
NOT_EQUALS. For example, for theResourceTagsfield, the filterDepartment NOT_EQUALS Financematches findings that don’t have the valueFinancefor theDepartmenttag.
NOT_CONTAINSandNOT_EQUALSfilters on the same field are joined byAND. A finding matches only if it matches all of those filters. For example, the filtersDepartment NOT_CONTAINS Security AND Department NOT_CONTAINS Financematch a finding that excludes both theSecurityandFinancevalues.CONTAINSfilters can only be used with otherCONTAINSfilters.NOT_CONTAINSfilters can only be used with otherNOT_CONTAINSfilters.You can’t have both a
CONTAINSfilter and aNOT_CONTAINSfilter on the same field. Similarly, you can’t have both anEQUALSfilter and aNOT_EQUALSfilter on the same field. Combining filters in this way returns an error.CONTAINSandNOT_CONTAINSoperators can be used only with automation rules. For more information, see Automation rules in the Security Hub User Guide .
- key
The key of the map filter.
For example, for
ResourceTags,Keyidentifies the name of the tag. ForUserDefinedFields,Keyis the name of the field.
- value
The value for the key in the map filter.
Filter values are case sensitive. For example, one of the values for a tag called
Departmentmight beSecurity. If you providesecurityas the filter value, then there’s no match.
NoteUpdateProperty
- class CfnAutomationRulePropsMixin.NoteUpdateProperty(*, text=None, updated_by=None)
Bases:
objectThe updated note.
- Parameters:
text (
Optional[str]) – The updated note text.updated_by (
Optional[str]) – The principal that updated the note.
- 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 note_update_property = securityhub_mixins.CfnAutomationRulePropsMixin.NoteUpdateProperty( text="text", updated_by="updatedBy" )
Attributes
- text
The updated note text.
- updated_by
The principal that updated the note.
NumberFilterProperty
- class CfnAutomationRulePropsMixin.NumberFilterProperty(*, eq=None, gte=None, lte=None)
Bases:
objectA number filter for querying findings.
- Parameters:
eq (
Union[int,float,None]) – The equal-to condition to be applied to a single field when querying for findings.gte (
Union[int,float,None]) – The greater-than-equal condition to be applied to a single field when querying for findings.lte (
Union[int,float,None]) – The less-than-equal condition to be applied to a single field when querying for findings.
- 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 number_filter_property = securityhub_mixins.CfnAutomationRulePropsMixin.NumberFilterProperty( eq=123, gte=123, lte=123 )
Attributes
- eq
The equal-to condition to be applied to a single field when querying for findings.
- gte
The greater-than-equal condition to be applied to a single field when querying for findings.
- lte
The less-than-equal condition to be applied to a single field when querying for findings.
SeverityUpdateProperty
- class CfnAutomationRulePropsMixin.SeverityUpdateProperty(*, label=None, normalized=None, product=None)
Bases:
objectUpdates to the severity information for a finding.
- Parameters:
label (
Optional[str]) – The severity value of the finding. The allowed values are the following. -INFORMATIONAL- No issue was found. -LOW- The issue does not require action on its own. -MEDIUM- The issue must be addressed but not urgently. -HIGH- The issue must be addressed as a priority. -CRITICAL- The issue must be remediated immediately to avoid it escalating.normalized (
Union[int,float,None]) – The normalized severity for the finding. This attribute is to be deprecated in favor ofLabel. If you provideNormalizedand don’t provideLabel,Labelis set automatically as follows. - 0 -INFORMATIONAL- 1–39 -LOW- 40–69 -MEDIUM- 70–89 -HIGH- 90–100 -CRITICALproduct (
Union[int,float,None]) – The native severity as defined by the AWS service or integrated partner product that generated the finding.
- 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 severity_update_property = securityhub_mixins.CfnAutomationRulePropsMixin.SeverityUpdateProperty( label="label", normalized=123, product=123 )
Attributes
- label
The severity value of the finding. The allowed values are the following.
INFORMATIONAL- No issue was found.LOW- The issue does not require action on its own.MEDIUM- The issue must be addressed but not urgently.HIGH- The issue must be addressed as a priority.CRITICAL- The issue must be remediated immediately to avoid it escalating.
- normalized
The normalized severity for the finding. This attribute is to be deprecated in favor of
Label.If you provide
Normalizedand don’t provideLabel,Labelis set automatically as follows.0 -
INFORMATIONAL1–39 -
LOW40–69 -
MEDIUM70–89 -
HIGH90–100 -
CRITICAL
- product
The native severity as defined by the AWS service or integrated partner product that generated the finding.
StringFilterProperty
- class CfnAutomationRulePropsMixin.StringFilterProperty(*, comparison=None, value=None)
Bases:
objectA string filter for filtering Security Hub findings.
- Parameters:
comparison (
Optional[str]) –The condition to apply to a string value when filtering Security Hub findings. To search for values that have the filter value, use one of the following comparison operators: - To search for values that include the filter value, use
CONTAINS. For example, the filterTitle CONTAINS CloudFrontmatches findings that have aTitlethat includes the string CloudFront. - To search for values that exactly match the filter value, useEQUALS. For example, the filterAwsAccountId EQUALS 123456789012only matches findings that have an account ID of123456789012. - To search for values that start with the filter value, usePREFIX. For example, the filterResourceRegion PREFIX usmatches findings that have aResourceRegionthat starts withus. AResourceRegionthat starts with a different value, such asaf,ap, orca, doesn’t match.CONTAINS,EQUALS, andPREFIXfilters on the same field are joined byOR. A finding matches if it matches any one of those filters. For example, the filtersTitle CONTAINS CloudFront OR Title CONTAINS CloudWatchmatch a finding that includes eitherCloudFront,CloudWatch, or both strings in the title. To search for values that don’t have the filter value, use one of the following comparison operators: - To search for values that exclude the filter value, useNOT_CONTAINS. For example, the filterTitle NOT_CONTAINS CloudFrontmatches findings that have aTitlethat excludes the string CloudFront. - To search for values other than the filter value, useNOT_EQUALS. For example, the filterAwsAccountId NOT_EQUALS 123456789012only matches findings that have an account ID other than123456789012. - To search for values that don’t start with the filter value, usePREFIX_NOT_EQUALS. For example, the filterResourceRegion PREFIX_NOT_EQUALS usmatches findings with aResourceRegionthat starts with a value other thanus.NOT_CONTAINS,NOT_EQUALS, andPREFIX_NOT_EQUALSfilters on the same field are joined byAND. A finding matches only if it matches all of those filters. For example, the filtersTitle NOT_CONTAINS CloudFront AND Title NOT_CONTAINS CloudWatchmatch a finding that excludes bothCloudFrontandCloudWatchin the title. You can’t have both aCONTAINSfilter and aNOT_CONTAINSfilter on the same field. Similarly, you can’t provide both anEQUALSfilter and aNOT_EQUALSorPREFIX_NOT_EQUALSfilter on the same field. Combining filters in this way returns an error.CONTAINSfilters can only be used with otherCONTAINSfilters.NOT_CONTAINSfilters can only be used with otherNOT_CONTAINSfilters. You can combinePREFIXfilters withNOT_EQUALSorPREFIX_NOT_EQUALSfilters for the same field. Security Hub first processes thePREFIXfilters, and then theNOT_EQUALSorPREFIX_NOT_EQUALSfilters. For example, for the following filters, Security Hub first identifies findings that have resource types that start with eitherAwsIamorAwsEc2. It then excludes findings that have a resource type ofAwsIamPolicyand findings that have a resource type ofAwsEc2NetworkInterface. -ResourceType PREFIX AwsIam-ResourceType PREFIX AwsEc2-ResourceType NOT_EQUALS AwsIamPolicy-ResourceType NOT_EQUALS AwsEc2NetworkInterfaceCONTAINSandNOT_CONTAINSoperators can be used only with automation rules V1.CONTAINS_WORDoperator is only supported inGetFindingsV2,GetFindingStatisticsV2,GetResourcesV2, andGetResourceStatisticsV2APIs. For more information, see Automation rules in the Security Hub User Guide .value (
Optional[str]) – The string filter value. Filter values are case sensitive. For example, the product name for control-based findings isSecurity Hub. If you providesecurity hubas the filter value, there’s no match.
- 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 string_filter_property = securityhub_mixins.CfnAutomationRulePropsMixin.StringFilterProperty( comparison="comparison", value="value" )
Attributes
- comparison
The condition to apply to a string value when filtering Security Hub findings.
To search for values that have the filter value, use one of the following comparison operators:
To search for values that include the filter value, use
CONTAINS. For example, the filterTitle CONTAINS CloudFrontmatches findings that have aTitlethat includes the string CloudFront.To search for values that exactly match the filter value, use
EQUALS. For example, the filterAwsAccountId EQUALS 123456789012only matches findings that have an account ID of123456789012.To search for values that start with the filter value, use
PREFIX. For example, the filterResourceRegion PREFIX usmatches findings that have aResourceRegionthat starts withus. AResourceRegionthat starts with a different value, such asaf,ap, orca, doesn’t match.
CONTAINS,EQUALS, andPREFIXfilters on the same field are joined byOR. A finding matches if it matches any one of those filters. For example, the filtersTitle CONTAINS CloudFront OR Title CONTAINS CloudWatchmatch a finding that includes eitherCloudFront,CloudWatch, or both strings in the title.To search for values that don’t have the filter value, use one of the following comparison operators:
To search for values that exclude the filter value, use
NOT_CONTAINS. For example, the filterTitle NOT_CONTAINS CloudFrontmatches findings that have aTitlethat excludes the string CloudFront.To search for values other than the filter value, use
NOT_EQUALS. For example, the filterAwsAccountId NOT_EQUALS 123456789012only matches findings that have an account ID other than123456789012.To search for values that don’t start with the filter value, use
PREFIX_NOT_EQUALS. For example, the filterResourceRegion PREFIX_NOT_EQUALS usmatches findings with aResourceRegionthat starts with a value other thanus.
NOT_CONTAINS,NOT_EQUALS, andPREFIX_NOT_EQUALSfilters on the same field are joined byAND. A finding matches only if it matches all of those filters. For example, the filtersTitle NOT_CONTAINS CloudFront AND Title NOT_CONTAINS CloudWatchmatch a finding that excludes bothCloudFrontandCloudWatchin the title.You can’t have both a
CONTAINSfilter and aNOT_CONTAINSfilter on the same field. Similarly, you can’t provide both anEQUALSfilter and aNOT_EQUALSorPREFIX_NOT_EQUALSfilter on the same field. Combining filters in this way returns an error.CONTAINSfilters can only be used with otherCONTAINSfilters.NOT_CONTAINSfilters can only be used with otherNOT_CONTAINSfilters.You can combine
PREFIXfilters withNOT_EQUALSorPREFIX_NOT_EQUALSfilters for the same field. Security Hub first processes thePREFIXfilters, and then theNOT_EQUALSorPREFIX_NOT_EQUALSfilters.For example, for the following filters, Security Hub first identifies findings that have resource types that start with either
AwsIamorAwsEc2. It then excludes findings that have a resource type ofAwsIamPolicyand findings that have a resource type ofAwsEc2NetworkInterface.ResourceType PREFIX AwsIamResourceType PREFIX AwsEc2ResourceType NOT_EQUALS AwsIamPolicyResourceType NOT_EQUALS AwsEc2NetworkInterface
CONTAINSandNOT_CONTAINSoperators can be used only with automation rules V1.CONTAINS_WORDoperator is only supported inGetFindingsV2,GetFindingStatisticsV2,GetResourcesV2, andGetResourceStatisticsV2APIs. For more information, see Automation rules in the Security Hub User Guide .
- value
The string filter value.
Filter values are case sensitive. For example, the product name for control-based findings is
Security Hub. If you providesecurity hubas the filter value, there’s no match.
WorkflowUpdateProperty
- class CfnAutomationRulePropsMixin.WorkflowUpdateProperty(*, status=None)
Bases:
objectUsed to update information about the investigation into the finding.
- Parameters:
status (
Optional[str]) – The status of the investigation into the finding. The workflow status is specific to an individual finding. It does not affect the generation of new findings. For example, setting the workflow status toSUPPRESSEDorRESOLVEDdoes not prevent a new finding for the same issue. The allowed values are the following. -NEW- The initial state of a finding, before it is reviewed. Security Hub also resetsWorkFlowStatusfromNOTIFIEDorRESOLVEDtoNEWin the following cases: - The record state changes fromARCHIVEDtoACTIVE. - The compliance status changes fromPASSEDto eitherWARNING,FAILED, orNOT_AVAILABLE. -NOTIFIED- Indicates that you notified the resource owner about the security issue. Used when the initial reviewer is not the resource owner, and needs intervention from the resource owner. -RESOLVED- The finding was reviewed and remediated and is now considered resolved. -SUPPRESSED- Indicates that you reviewed the finding and don’t believe that any action is needed. The finding is no longer updated.- 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 workflow_update_property = securityhub_mixins.CfnAutomationRulePropsMixin.WorkflowUpdateProperty( status="status" )
Attributes
- status
The status of the investigation into the finding.
The workflow status is specific to an individual finding. It does not affect the generation of new findings. For example, setting the workflow status to
SUPPRESSEDorRESOLVEDdoes not prevent a new finding for the same issue.The allowed values are the following.
NEW- The initial state of a finding, before it is reviewed.
Security Hub also resets
WorkFlowStatusfromNOTIFIEDorRESOLVEDtoNEWin the following cases:The record state changes from
ARCHIVEDtoACTIVE.The compliance status changes from
PASSEDto eitherWARNING,FAILED, orNOT_AVAILABLE.NOTIFIED- Indicates that you notified the resource owner about the security issue. Used when the initial reviewer is not the resource owner, and needs intervention from the resource owner.RESOLVED- The finding was reviewed and remediated and is now considered resolved.SUPPRESSED- Indicates that you reviewed the finding and don’t believe that any action is needed. The finding is no longer updated.