GetKeyRotationStatus Method

Retrieves the key rotation status for a CMK.

Syntax

public func getKeyRotationStatus(keyId: String) throws -> Bool

Remarks

This method retrieves the key rotation status for the CMK specified by KeyId; it will return if the CMK's key material is set to be automatically rotated, or if not.

The value passed for the KeyId parameter must be the Id or ARN of a CMK in the current Region. If an ARN is provided, it can be for a CMK in another account so long as the appropriate permissions are in place.

This method will always return for asymmetric CMKs, CMKs with imported key material, and CMKs that reside in a custom key store, as such CMKs do not support automatic key rotation. This method will also return if the server returns an error for any other reason.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
Cloud Keys 2020 macOS Edition - Version 20.0 [Build 7876]