Inspector2 / Client / get_encryption_key

get_encryption_key#

Inspector2.Client.get_encryption_key(**kwargs)#

Gets an encryption key.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The resource type the key encrypts.

  • scanType (string) –

    [REQUIRED]

    The scan type the key encrypts.

Return type:

dict

Returns:

Response Syntax

{
    'kmsKeyId': 'string'
}

Response Structure

  • (dict) –

    • kmsKeyId (string) –

      A kms key ID.

Exceptions