update_insight
async
¶
update_insight(
insight_arn: NonEmptyString,
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = 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.
>>> await 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/async_security_hub.py
8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 | |