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
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 | |