getEncryptionKey method
Future<GetEncryptionKeyResponse>
getEncryptionKey({
- required ResourceType resourceType,
- required ScanType scanType,
Gets an encryption key.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter resourceType :
The resource type the key encrypts.
Parameter scanType :
The scan type the key encrypts.
Implementation
Future<GetEncryptionKeyResponse> getEncryptionKey({
required ResourceType resourceType,
required ScanType scanType,
}) async {
final $query = <String, List<String>>{
'resourceType': [resourceType.value],
'scanType': [scanType.value],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/encryptionkey/get',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetEncryptionKeyResponse.fromJson(response);
}