Estados das chaves do AWS KMS - AWS Key Management Service

As traduções são geradas por tradução automática. Em caso de conflito entre o conteúdo da tradução e da versão original em inglês, a versão em inglês prevalecerá.

Estados das chaves do AWS KMS

Uma AWS KMS key tem sempre um estado de chave. As operações na chave do KMS e em seu ambiente podem alterar esse estado de chave, de forma transitória ou até que outra operação altere seu estado de chave.

A tabela nesta seção mostra como estados de chave afetam chamadas para operações de API do AWS KMS. Como resultado de seu estado de chave, espera-se que uma operação em uma chave do KMS tenha êxito (), apresente falhas (X) ou tenha êxito somente em certas condições (?). O resultado muitas vezes é diferente para chaves do KMS com material de chave importado.

Essa tabela inclui apenas as operações de API que usam uma chave do KMS existente. Outras operações, como CreateKey e ListKeys, são omitidas.

Estados de chave e tipos de chaves do KMS

O tipo da chave do KMS determina os estados de chave que ela pode ter.

  • Todas as chaves do KMS podem estar nos estados Enabled, Disabled e PendingDeletion.

  • A maioria das chaves do KMS é criada no estado Enabled. Chaves com material de chave importado são criadas no estado PendingImport.

  • O estado PendingImport aplica-se somente a chaves do KMS com material de chave importado.

  • O estado Unavailable aplica-se somente a uma chave do KMS em um armazenamento de chaves personalizado. Uma chave do KMS em um armazenamento de chaves do AWS CloudHSM é Unavailable quando esse armazenamento de chaves personalizado é intencionalmente desconectado do cluster do AWS CloudHSM. Uma chave do KMS em um armazenamento de chaves externas está Unavailable quando o armazenamento de chaves personalizado foi desconectado do proxy de armazenamento de chaves externas intencionalmente. É possível visualizar e gerenciar chaves do KMS indisponíveis, mas não é possível usá-las em operações de criptografia.

    O estado da chave de uma chave do KMS em um armazenamento de chaves personalizado não é afetado pelas alterações em sua chave de reserva. Uma chave do KMS em um armazenamento de chaves do AWS CloudHSM não é afetada por alterações em seu material de chaves associado no cluster do AWS CloudHSM. Uma chave do KMS em um armazenamento de chaves externas não é afetada por alterações em sua chave externa em um gerenciador de chaves externas. Se a chave de reserva estiver desabilitada ou excluída, o estado da chave do KMS não será alterado, mas as operações de criptografia que usam a chave do KMS apresentarão falha.

  • Os estados de chave Creating, Updating ePendingReplicaDeletion aplicam-se somente a chaves de várias regiões.

    • Uma chave de réplica de várias regiões está no estado de chave Creating enquanto ela está sendo criada. Esse processo ainda pode estar em andamento quando a operação ReplicateKey é concluída. Quando o processo de replicação estiver concluído, a chave de réplica estará no estado Enabled ou PendingImport.

    • Chaves de várias regiões estão no estado de chave Updating transitório enquanto a região primária está sendo atualizada. Esse processo ainda pode estar em andamento quando a operação UpdatePrimaryRegion é concluída. Quando o processo de atualização estiver concluído, as chaves primária e de réplica retomarão o estado de chave Enabled.

    • Quando você programar a exclusão de uma chave primária de várias regiões contendo chaves de réplica, essa chave primária estará no estado PendingReplicaDeletion até que todas as suas chaves de réplica sejam excluídas. Seu estado de chave muda para PendingDeletion. Para obter detalhes, consulte Deleting multi-Region keys.

Tabela de estados de chave

A tabela a seguir mostra como o estado de uma chave do KMS afeta operações do AWS KMS.

Descrições de notas de rodapé numeradas ([n]) estão no final deste tópico.

nota

Talvez seja necessário rolar horizontalmente ou verticalmente para ver todos os dados nessa tabela.

API Habilitado Desabilitado

Exclusão pendente

Exclusão pendente de réplica

Importação pendente Indisponível Criando Atualizando
CancelKeyDeletion No entry symbol with a person icon, indicating restricted access or prohibition.

[4]

No entry symbol with a person icon, indicating restricted access or prohibition.

[4]

Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[4]

No entry symbol with a person icon, indicating restricted access or prohibition.

[4], [13]

No entry symbol with a person icon, indicating restricted access or prohibition.

[4]

No entry symbol with a person icon, indicating restricted access or prohibition.

[4]

CreateAlias Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
CreateGrant Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
Decrypt Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
DeleteAlias Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
DeleteImportedKeyMaterial Green checkmark icon indicating success or completion.

[9]

Green checkmark icon indicating success or completion.

[9]

Green checkmark icon indicating success or completion.

[9]

Green checkmark icon indicating success or completion.

(sem efeito)

N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

No entry symbol with a person icon, indicating restricted access or prohibition.

[15]

DescribeKey Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
DisableKey Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

Green checkmark icon indicating success or completion.

[12]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

No entry symbol with a person icon, indicating restricted access or prohibition.

[15]

DisableKeyRotation Question mark icon in a purple circle, representing help or information.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[1] ou [7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[3] ou [7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[6]

No entry symbol with a person icon, indicating restricted access or prohibition.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Question mark icon in a purple circle, representing help or information.

[7]

EnableKey Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

Green checkmark icon indicating success or completion.

[12]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

No entry symbol with a person icon, indicating restricted access or prohibition.

[15]

EnableKeyRotation Question mark icon in a purple circle, representing help or information.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[1] ou [7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[3] ou [7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[6]

No entry symbol with a person icon, indicating restricted access or prohibition.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Question mark icon in a purple circle, representing help or information.

[7]

Encrypt Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
GenerateDataKey Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
GenerateDataKeyPair Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
GenerateDataKeyPairWithoutPlaintext Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
GenerateDataKeyWithoutPlaintext Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
GenerateMac Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

N/D N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
GetKeyPolicy Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
GetKeyRotationStatus Question mark icon in a purple circle, representing help or information.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[6]

No entry symbol with a person icon, indicating restricted access or prohibition.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

GetParametersForImport Question mark icon in a purple circle, representing help or information.

[9]

Question mark icon in a purple circle, representing help or information.

[9]

No entry symbol with a person icon, indicating restricted access or prohibition.

[8] ou [9]

Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[9]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

No entry symbol with a person icon, indicating restricted access or prohibition.

[15]

GetPublicKey Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

N/D N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
ImportKeyMaterial Question mark icon in a purple circle, representing help or information.

[9]

Question mark icon in a purple circle, representing help or information.

[9]

No entry symbol with a person icon, indicating restricted access or prohibition.

[8] ou [9]

Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[9]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
ListAliases Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
ListGrants Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
ListKeyPolicies Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
ListKeyRotations Question mark icon in a purple circle, representing help or information.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[6]

No entry symbol with a person icon, indicating restricted access or prohibition.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

Question mark icon in a purple circle, representing help or information.

[7]

ListResourceTags Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
PutKeyPolicy Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
ReEncrypt Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

No entry symbol with a person icon, indicating restricted access or prohibition.

[11]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
ReplicateKey Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

No entry symbol with a person icon, indicating restricted access or prohibition.

[15]

RetireGrant Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
RevokeGrant Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
RotateKeyOnDemand Question mark icon in a purple circle, representing help or information.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[1] ou [7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[3] ou [7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[6]

No entry symbol with a person icon, indicating restricted access or prohibition.

[7]

No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Question mark icon in a purple circle, representing help or information.

[7]

ScheduleKeyDeletion Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[15]

Sign Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

N/D N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
TagResource Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
UntagResource Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
UpdateAlias Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Question mark icon in a purple circle, representing help or information.

[10]

Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
UpdateKeyDescription Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[3]

Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion. Green checkmark icon indicating success or completion.
UpdatePrimaryRegion Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

No entry symbol with a person icon, indicating restricted access or prohibition.

[5]

N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
Verificar Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

N/D N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.
VerifyMac Green checkmark icon indicating success or completion. No entry symbol with a person icon, indicating restricted access or prohibition.

[1]

No entry symbol with a person icon, indicating restricted access or prohibition.

[2] ou [3]

N/D N/D No entry symbol with a person icon, indicating restricted access or prohibition.

[14]

Green checkmark icon indicating success or completion.

Detalhes da tabela

  • [1] DisabledException: <key ARN> is disabled.

  • [2] DisabledException: <key ARN> is pending deletion (or pending replica deletion).

  • [3] KMSInvalidStateException: <key ARN> is pending deletion (or pending replica deletion).

  • [4] KMSInvalidStateException: <key ARN> is not pending deletion (or pending replica deletion).

  • [5] KMSInvalidStateException: <key ARN> is pending import.

  • [6] UnsupportedOperationException: <key ARN> origin is EXTERNAL which is not valid for this operation.

  • [7] Se a chave do KMS tiver material de chave importado ou estiver em um armazenamento de chaves personalizado: UnsupportedOperationException.

  • [8] Se a chave do KMS tiver material de chave importado: KMSInvalidStateException

  • [9] Se a chave do KMS não puder ter ou não tiver material de chave importado: UnsupportedOperationException.

  • [10] Se a exclusão da chave do KMS de origem está pendente, o comando foi bem-sucedido. Se a exclusão da chave do KMS de destino está pendente, o comando falha com o erro: KMSInvalidStateException : <key ARN> is pending deletion.

  • [11] KMSInvalidStateException: <key ARN> is unavailable. Não é possível executar essa operação em uma chave do KMS indisponível.

  • [12] A operação é bem-sucedida, mas o estado da chave do KMS não muda até que ela se torne disponível.

  • [13] Enquanto a exclusão de uma chave do KMS em um armazenamento de chaves personalizado estiver pendente, seu estado de chave permanecerá PendingDeletion, mesmo que a chave do KMS se torne indisponível. Isso permite que você cancele a exclusão da chave do KMS a qualquer momento durante o período de espera.

  • [14] KMSInvalidStateException: <key ARN> is creating. O AWS KMS lança essa exceção enquanto está replicando uma chave de várias regiões (ReplicateKey).

  • [15] KMSInvalidStateException: <key ARN> is updating. O AWS KMS lança essa exceção enquanto está atualizando a região primária de uma chave de várias regiões (UpdatePrimaryRegion).