update_encryption_key
async
¶
update_encryption_key(
kms_key_id: KmsKeyArn,
scan_type: ScanType,
resource_type: ResourceType,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
) -> UpdateEncryptionKeyResponse
Updates an encryption key. A ResourceNotFoundException means that an Amazon Web Services owned key is being used for encryption.
Parameters:
-
kms_key_id(KmsKeyArn) –A KMS key ID for the encryption key.
-
scan_type(ScanType) –The scan type for the encryption key.
-
resource_type(ResourceType) –The resource type for the encryption key.
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.