rotateEncryptionKey method

Future<RotateEncryptionKeyResult> rotateEncryptionKey({
  1. required String clusterIdentifier,
})

Rotates the encryption keys for a cluster.

May throw ClusterNotFoundFault. May throw InvalidClusterStateFault. May throw DependentServiceRequestThrottlingFault.

Parameter clusterIdentifier : The unique identifier of the cluster that you want to rotate the encryption keys for.

Constraints: Must be the name of valid cluster that has encryption enabled.

Implementation

Future<RotateEncryptionKeyResult> rotateEncryptionKey({
  required String clusterIdentifier,
}) async {
  ArgumentError.checkNotNull(clusterIdentifier, 'clusterIdentifier');
  _s.validateStringLength(
    'clusterIdentifier',
    clusterIdentifier,
    0,
    2147483647,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['ClusterIdentifier'] = clusterIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'RotateEncryptionKey',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RotateEncryptionKeyMessage'],
    shapes: shapes,
    resultWrapper: 'RotateEncryptionKeyResult',
  );
  return RotateEncryptionKeyResult.fromXml($result);
}