updateEncryptionKey method
Future<void>
updateEncryptionKey({
- required String kmsKeyId,
- required ResourceType resourceType,
- required ScanType scanType,
Updates an encryption key. A ResourceNotFoundException means
that an Amazon Web Services owned key is being used for encryption.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter kmsKeyId :
A KMS key ID for the encryption key.
Parameter resourceType :
The resource type for the encryption key.
Parameter scanType :
The scan type for the encryption key.
Implementation
Future<void> updateEncryptionKey({
required String kmsKeyId,
required ResourceType resourceType,
required ScanType scanType,
}) async {
final $payload = <String, dynamic>{
'kmsKeyId': kmsKeyId,
'resourceType': resourceType.value,
'scanType': scanType.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/encryptionkey/update',
exceptionFnMap: _exceptionFns,
);
}