batchAssociateScramSecret method

Future<BatchAssociateScramSecretResponse> batchAssociateScramSecret({
  1. required String clusterArn,
  2. required List<String> secretArnList,
})

Associates one or more Scram Secrets with an Amazon MSK cluster.

May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter clusterArn :

The Amazon Resource Name (ARN) of the cluster to be updated.

Parameter secretArnList :

List of AWS Secrets Manager secret ARNs.

Implementation

Future<BatchAssociateScramSecretResponse> batchAssociateScramSecret({
  required String clusterArn,
  required List<String> secretArnList,
}) async {
  ArgumentError.checkNotNull(clusterArn, 'clusterArn');
  ArgumentError.checkNotNull(secretArnList, 'secretArnList');
  final $payload = <String, dynamic>{
    'secretArnList': secretArnList,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/v1/clusters/${Uri.encodeComponent(clusterArn)}/scram-secrets',
    exceptionFnMap: _exceptionFns,
  );
  return BatchAssociateScramSecretResponse.fromJson(response);
}