getAppliedSchemaVersion method

Future<GetAppliedSchemaVersionResponse> getAppliedSchemaVersion({
  1. required String schemaArn,
})

Returns current applied schema version ARN, including the minor version in use.

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

Parameter schemaArn : The ARN of the applied schema.

Implementation

Future<GetAppliedSchemaVersionResponse> getAppliedSchemaVersion({
  required String schemaArn,
}) async {
  ArgumentError.checkNotNull(schemaArn, 'schemaArn');
  final $payload = <String, dynamic>{
    'SchemaArn': schemaArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/amazonclouddirectory/2017-01-11/schema/getappliedschema',
    exceptionFnMap: _exceptionFns,
  );
  return GetAppliedSchemaVersionResponse.fromJson(response);
}