listManagedSchemaArns method
Lists the major version families of each managed 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 ValidationException. 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 ListManagedSchemaArns. When this parameter is used, all
minor version ARNs for a major version are listed.
Implementation
Future<ListManagedSchemaArnsResponse> listManagedSchemaArns({
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/managed',
exceptionFnMap: _exceptionFns,
);
return ListManagedSchemaArnsResponse.fromJson(response);
}