deleteFacet method
Deletes a given Facet. All attributes and Rules that are associated with the facet will be deleted. Only development schema facets are allowed deletion.
May throw AccessDeniedException.
May throw FacetInUseException.
May throw FacetNotFoundException.
May throw InternalServiceException.
May throw InvalidArnException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
May throw RetryableConflictException.
May throw ValidationException.
Parameter name :
The name of the facet to delete.
Parameter schemaArn :
The Amazon Resource Name (ARN) that is associated with the Facet.
For more information, see arns.
Implementation
Future<void> deleteFacet({
required String name,
required String schemaArn,
}) async {
final headers = <String, String>{
'x-amz-data-partition': schemaArn.toString(),
};
final $payload = <String, dynamic>{
'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/amazonclouddirectory/2017-01-11/facet/delete',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}