describeReplicationConfigurationTemplates method

Future<DescribeReplicationConfigurationTemplatesResponse> describeReplicationConfigurationTemplates({
  1. int? maxResults,
  2. String? nextToken,
  3. List<String>? replicationConfigurationTemplateIDs,
})

Lists all ReplicationConfigurationTemplates, filtered by Source Server IDs.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UninitializedAccountException. May throw ValidationException.

Parameter maxResults : Maximum number of Replication Configuration Templates to retrieve.

Parameter nextToken : The token of the next Replication Configuration Template to retrieve.

Parameter replicationConfigurationTemplateIDs : The IDs of the Replication Configuration Templates to retrieve. An empty list means all Replication Configuration Templates.

Implementation

Future<DescribeReplicationConfigurationTemplatesResponse>
    describeReplicationConfigurationTemplates({
  int? maxResults,
  String? nextToken,
  List<String>? replicationConfigurationTemplateIDs,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1152921504606846976,
  );
  final $payload = <String, dynamic>{
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
    if (replicationConfigurationTemplateIDs != null)
      'replicationConfigurationTemplateIDs':
          replicationConfigurationTemplateIDs,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/DescribeReplicationConfigurationTemplates',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeReplicationConfigurationTemplatesResponse.fromJson(response);
}