get_encryption_key
async
¶
get_encryption_key(
scan_type: ScanType,
resource_type: ResourceType,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
) -> GetEncryptionKeyResponse
Gets an encryption key.
Parameters:
-
scan_type(ScanType) –The scan type the key encrypts.
-
resource_type(ResourceType) –The resource type the key encrypts.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ResourceNotFoundException–The operation tried to access an invalid resource. Make sure the resource is specified correctly.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.