listAppliedSchemaArns method
Lists schema major versions applied to a directory. If
SchemaArn
is provided, lists the minor version.
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 directoryArn
:
The ARN of the directory you are listing.
Parameter maxResults
:
The maximum number of results to retrieve.
Parameter nextToken
:
The pagination token.
Parameter schemaArn
:
The response for ListAppliedSchemaArns
when this parameter is
used will list all minor version ARNs for a major version.
Implementation
Future<ListAppliedSchemaArnsResponse> listAppliedSchemaArns({
required String directoryArn,
int? maxResults,
String? nextToken,
String? schemaArn,
}) async {
ArgumentError.checkNotNull(directoryArn, 'directoryArn');
_s.validateNumRange(
'maxResults',
maxResults,
1,
1152921504606846976,
);
final $payload = <String, dynamic>{
'DirectoryArn': directoryArn,
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/applied',
exceptionFnMap: _exceptionFns,
);
return ListAppliedSchemaArnsResponse.fromJson(response);
}