get_insights
¶
get_insights(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
insight_arns: Optional[ArnList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> GetInsightsResponse
Lists and describes insights for the specified insight ARNs.
Parameters:
-
insight_arns(Optional[ArnList], default:None) –The ARNs of the insights to describe. If you don't provide any insight ARNs, then
GetInsightsreturns all of your custom insights. It does not return any managed insights. -
next_token(Optional[NextToken], default:None) –The token that is required for pagination. On your first call to the
GetInsightsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return in the response.
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 get details of a Security Hub insight The following example returns details of the Security Hub insight with the specified ARN.
>>> client.get_insights(insight_arns=['arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111'])
Source code in docs_src/capo_securityhub/_services/security_hub.py
5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 | |