ScheduleKeyDeletion Method
Schedules the deletion of a CMK.
Syntax
ANSI (Cross Platform) int ScheduleKeyDeletion(const char* lpszKeyId, int iDaysToWait); Unicode (Windows) INT ScheduleKeyDeletion(LPCWSTR lpszKeyId, INT iDaysToWait);
- (void)scheduleKeyDeletion:(NSString*)keyId :(int)daysToWait;
#define MID_AMAZONKMS_SCHEDULEKEYDELETION 23 CLOUDKEYS_EXTERNAL int CLOUDKEYS_CALL CloudKeys_AmazonKMS_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method schedules the deletion of the CMK specified by KeyId. The DaysToWait parameter specifies the length of the waiting period; it must be a value between 7 and 30.
When a CMK is scheduled for deletion, it cannot be used. This is a safety feature designed to help identify any code that still relies on the CMK.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)