FMS / Client / get_protection_status
get_protection_status#
- FMS.Client.get_protection_status(**kwargs)#
- 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. - See also: AWS API Documentation - Request Syntax - response = client.get_protection_status( PolicyId='string', MemberAccountId='string', StartTime=datetime(2015, 1, 1), EndTime=datetime(2015, 1, 1), NextToken='string', MaxResults=123 ) - Parameters:
- PolicyId (string) – - [REQUIRED] - The ID of the policy for which you want to get the attack information. 
- MemberAccountId (string) – The Amazon Web Services account that is in scope of the policy that you want to get the details for. 
- StartTime (datetime) – The start of the time period to query for the attacks. This is a - timestamptype. The request syntax listing indicates a- numbertype because the default used by Firewall Manager is Unix time in seconds. However, any valid- timestampformat is allowed.
- EndTime (datetime) – The end of the time period to query for the attacks. This is a - timestamptype. The request syntax listing indicates a- numbertype because the default used by Firewall Manager is Unix time in seconds. However, any valid- timestampformat is allowed.
- NextToken (string) – If you specify a value for - MaxResultsand you have more objects than the number that you specify for- MaxResults, Firewall Manager returns a- NextTokenvalue in the response, which you can use to retrieve another group of objects. For the second and subsequent- GetProtectionStatusrequests, specify the value of- NextTokenfrom the previous response to get information about another batch of objects.
- MaxResults (integer) – 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 a- NextTokenvalue that you can use to get another batch of objects.
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'AdminAccountId': 'string', 'ServiceType': 'WAF'|'WAFV2'|'SHIELD_ADVANCED'|'SECURITY_GROUPS_COMMON'|'SECURITY_GROUPS_CONTENT_AUDIT'|'SECURITY_GROUPS_USAGE_AUDIT'|'NETWORK_FIREWALL'|'DNS_FIREWALL'|'THIRD_PARTY_FIREWALL'|'IMPORT_NETWORK_FIREWALL', 'Data': 'string', 'NextToken': 'string' } - Response Structure - (dict) – - AdminAccountId (string) – - The ID of the Firewall Manager administrator account for this policy. 
- ServiceType (string) – - The service type that is protected by the policy. Currently, this is always - SHIELD_ADVANCED.
- Data (string) – - Details about the attack, including the following: - Attack type 
- Account ID 
- ARN of the resource attacked 
- Start time of the attack 
- End time of the attack (ongoing attacks will not have an end time) 
 - The details are in JSON format. 
- NextToken (string) – - If you have more objects than the number that you specified for - MaxResultsin the request, the response includes a- NextTokenvalue. To list more objects, submit another- GetProtectionStatusrequest, and specify the- NextTokenvalue from the response in the- NextTokenvalue in the next request.- Amazon Web Services SDKs provide auto-pagination that identify - NextTokenin a response and make subsequent request calls automatically on your behalf. However, this feature is not supported by- GetProtectionStatus. You must submit subsequent requests with- NextTokenusing your own processes.
 
 
 - Exceptions - FMS.Client.exceptions.InvalidInputException
- FMS.Client.exceptions.ResourceNotFoundException
- FMS.Client.exceptions.InternalErrorException