deleteSchema method
Deletes a given schema. Schemas in a development and published state can only be deleted.
May throw InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw StillContainsLinksException.
Parameter schemaArn
:
The Amazon Resource Name (ARN) of the development schema. For more
information, see arns.
Implementation
Future<DeleteSchemaResponse> deleteSchema({
required String schemaArn,
}) async {
ArgumentError.checkNotNull(schemaArn, 'schemaArn');
final headers = <String, String>{
'x-amz-data-partition': schemaArn.toString(),
};
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri: '/amazonclouddirectory/2017-01-11/schema',
headers: headers,
exceptionFnMap: _exceptionFns,
);
return DeleteSchemaResponse.fromJson(response);
}