getFacet method
Gets details of the Facet, such as facet name, attributes,
Rules, or ObjectType. You can call this on all kinds
of schema facets -- published, development, or applied.
May throw AccessDeniedException.
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 retrieve.
Parameter schemaArn :
The Amazon Resource Name (ARN) that is associated with the Facet.
For more information, see arns.
Implementation
Future<GetFacetResponse> getFacet({
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: 'POST',
requestUri: '/amazonclouddirectory/2017-01-11/facet',
headers: headers,
exceptionFnMap: _exceptionFns,
);
return GetFacetResponse.fromJson(response);
}