Inspector2 / Client / update_encryption_key

update_encryption_key#

Inspector2.Client.update_encryption_key(**kwargs)#

Updates an encryption key. A ResourceNotFoundException means that an Amazon Web Services owned key is being used for encryption.

See also: AWS API Documentation

Request Syntax

response = client.update_encryption_key(
    kmsKeyId='string',
    resourceType='AWS_EC2_INSTANCE'|'AWS_ECR_CONTAINER_IMAGE'|'AWS_ECR_REPOSITORY'|'AWS_LAMBDA_FUNCTION',
    scanType='NETWORK'|'PACKAGE'|'CODE'
)
Parameters:
  • kmsKeyId (string) –

    [REQUIRED]

    A KMS key ID for the encryption key.

  • resourceType (string) –

    [REQUIRED]

    The resource type for the encryption key.

  • scanType (string) –

    [REQUIRED]

    The scan type for the encryption key.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Inspector2.Client.exceptions.ValidationException

  • Inspector2.Client.exceptions.AccessDeniedException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.ResourceNotFoundException

  • Inspector2.Client.exceptions.InternalServerException