listTypedLinkFacetAttributes method

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

Returns a paginated list of all attribute definitions for a particular TypedLinkFacet. For more information, see Typed Links.

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

Parameter name : The unique name of the typed link facet.

Parameter schemaArn : The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns.

Parameter maxResults : The maximum number of results to retrieve.

Parameter nextToken : The pagination token.

Implementation

Future<ListTypedLinkFacetAttributesResponse> listTypedLinkFacetAttributes({
  required String name,
  required String schemaArn,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  ArgumentError.checkNotNull(schemaArn, 'schemaArn');
  _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/typedlink/facet/attributes',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return ListTypedLinkFacetAttributesResponse.fromJson(response);
}