listFacetAttributes method

Future<ListFacetAttributesResponse> listFacetAttributes({
  1. required String name,
  2. required String schemaArn,
  3. int? maxResults,
  4. String? nextToken,
})

Retrieves attributes attached to the facet.

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

Parameter name : The name of the facet whose attributes will be retrieved.

Parameter schemaArn : The ARN of the schema where the facet resides.

Parameter maxResults : The maximum number of results to retrieve.

Parameter nextToken : The pagination token.

Implementation

Future<ListFacetAttributesResponse> listFacetAttributes({
  required String name,
  required String schemaArn,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1152921504606846976,
  );
  final headers = <String, String>{
    'x-amz-data-partition': schemaArn.toString(),
  };
  final $payload = <String, dynamic>{
    'Name': name,
    if (maxResults != null) 'MaxResults': maxResults,
    if (nextToken != null) 'NextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/amazonclouddirectory/2017-01-11/facet/attributes',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return ListFacetAttributesResponse.fromJson(response);
}