listPublishedSchemaArns method

Future<ListPublishedSchemaArnsResponse> listPublishedSchemaArns({
  1. int? maxResults,
  2. String? nextToken,
  3. String? schemaArn,
})

Lists the major version families of each published schema. If a major version ARN is provided as SchemaArn, the minor version revisions in that family are listed instead.

May throw InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw InvalidNextTokenException.

Parameter maxResults : The maximum number of results to retrieve.

Parameter nextToken : The pagination token.

Parameter schemaArn : The response for ListPublishedSchemaArns when this parameter is used will list all minor version ARNs for a major version.

Implementation

Future<ListPublishedSchemaArnsResponse> listPublishedSchemaArns({
  int? maxResults,
  String? nextToken,
  String? schemaArn,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1152921504606846976,
  );
  final $payload = <String, dynamic>{
    if (maxResults != null) 'MaxResults': maxResults,
    if (nextToken != null) 'NextToken': nextToken,
    if (schemaArn != null) 'SchemaArn': schemaArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/amazonclouddirectory/2017-01-11/schema/published',
    exceptionFnMap: _exceptionFns,
  );
  return ListPublishedSchemaArnsResponse.fromJson(response);
}