get_protection_status
async
¶
get_protection_status(
policy_id: PolicyId,
*,
config_overrides: Optional[AsyncFMSClientConfig] = None,
member_account_id: Optional[AWSAccountId] = None,
start_time: Optional[TimeStamp] = None,
end_time: Optional[TimeStamp] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PaginationMaxResults] = None,
) -> GetProtectionStatusResponse
If you created a Shield Advanced policy, returns policy-level attack summary information in the event of a potential DDoS attack. Other policy types are currently unsupported.
Parameters:
-
policy_id(PolicyId) –The ID of the policy for which you want to get the attack information.
-
member_account_id(Optional[AWSAccountId], default:None) –The Amazon Web Services account that is in scope of the policy that you want to get the details for.
-
start_time(Optional[TimeStamp], default:None) –The start of the time period to query for the attacks. This is a
timestamptype. The request syntax listing indicates anumbertype because the default used by Firewall Manager is Unix time in seconds. However, any validtimestampformat is allowed. -
end_time(Optional[TimeStamp], default:None) –The end of the time period to query for the attacks. This is a
timestamptype. The request syntax listing indicates anumbertype because the default used by Firewall Manager is Unix time in seconds. However, any validtimestampformat is allowed. -
next_token(Optional[PaginationToken], default:None) –If you specify a value for
MaxResultsand you have more objects than the number that you specify forMaxResults, Firewall Manager returns aNextTokenvalue in the response, which you can use to retrieve another group of objects. For the second and subsequentGetProtectionStatusrequests, specify the value ofNextTokenfrom the previous response to get information about another batch of objects. -
max_results(Optional[PaginationMaxResults], default:None) –Specifies the number of objects that you want Firewall Manager to return for this request. If you have more objects than the number that you specify for
MaxResults, the response includes aNextTokenvalue that you can use to get another batch of objects.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidInputException–The parameters of the request were invalid.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fms/_services/async_fms.py
1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 | |