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
8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 | |