get_protection_status
¶
get_protection_status(
policy_id: PolicyId,
*,
config_overrides: Optional[FMSClientConfig] = 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/fms.py
1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 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 | |