Skip to content

Updates an encryption key

Description

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

Usage

inspector2_update_encryption_key(kmsKeyId, scanType, resourceType)

Arguments

  • kmsKeyId

    [required] A KMS key ID for the encryption key.

  • scanType

    [required] The scan type for the encryption key.

  • resourceType

    [required] The resource type for the encryption key.

Value

An empty list.

Request syntax

svc$update_encryption_key(
  kmsKeyId = "string",
  scanType = "NETWORK"|"PACKAGE"|"CODE",
  resourceType = "AWS_EC2_INSTANCE"|"AWS_ECR_CONTAINER_IMAGE"|"AWS_ECR_REPOSITORY"|"AWS_LAMBDA_FUNCTION"|"CODE_REPOSITORY"|"Microsoft.Compute/virtualMachines"|"Microsoft.ContainerRegistry/registry/containerImage"|"Microsoft.Web/sites"
)