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
8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 | |