update_insight
¶
update_insight(
insight_arn: NonEmptyString,
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
name: Optional[NonEmptyString] = None,
filters: Optional[AwsSecurityFindingFilters] = None,
group_by_attribute: Optional[NonEmptyString] = None,
) -> UpdateInsightResponse
Updates the Security Hub CSPM insight identified by the specified insight ARN.
Parameters:
-
insight_arn(NonEmptyString) –The ARN of the insight that you want to update.
-
name(Optional[NonEmptyString], default:None) –The updated name for the insight.
-
filters(Optional[AwsSecurityFindingFilters], default:None) –The updated filters that define this insight.
-
group_by_attribute(Optional[NonEmptyString], default:None) –The updated
GroupByattribute that defines this insight.
Raises:
-
InternalException–Internal server error.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
InvalidInputException–The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update an insight The following example updates the specified Security Hub insight.
>>> client.update_insight(insight_arn='arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', name='High severity role findings', filters={'ResourceType': [{'Comparison': 'EQUALS', 'Value': 'AwsIamRole'}], 'SeverityLabel': [{'Comparison': 'EQUALS', 'Value': 'HIGH'}]})
Source code in docs_src/capo_securityhub/_services/security_hub.py
8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 | |