deleteSchema method
Deletes a given schema. Schemas in a development and published state can only be deleted.
May throw AccessDeniedException.
May throw InternalServiceException.
May throw InvalidArnException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw RetryableConflictException.
May throw StillContainsLinksException.
May throw ValidationException.
Parameter schemaArn :
The Amazon Resource Name (ARN) of the development schema. For more
information, see arns.
Implementation
Future<DeleteSchemaResponse> deleteSchema({
required String schemaArn,
}) async {
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);
}