describe_protection
async
¶
describe_protection(
*,
config_overrides: Optional[AsyncShieldClientConfig] = None,
protection_id: Optional[ProtectionId] = None,
resource_arn: Optional[ResourceArn] = None,
) -> DescribeProtectionResponse
Lists the details of a Protection object.
Parameters:
-
protection_id(Optional[ProtectionId], default:None) –The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArnof the protected resource or theProtectionIDof the protection, but not both. -
resource_arn(Optional[ResourceArn], default:None) –The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArnof the protected resource or theProtectionIDof the protection, but not both.
Raises:
-
InternalErrorException–Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
-
InvalidParameterException–Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
-
ResourceNotFoundException–Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
-
UnknownServiceError–The service returned an error code this client does not model.