listOutgoingTypedLinks method

Future<ListOutgoingTypedLinksResponse> listOutgoingTypedLinks({
  1. required String directoryArn,
  2. required ObjectReference objectReference,
  3. ConsistencyLevel? consistencyLevel,
  4. List<TypedLinkAttributeRange>? filterAttributeRanges,
  5. TypedLinkSchemaAndFacetName? filterTypedLink,
  6. int? maxResults,
  7. String? nextToken,
})

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

May throw InternalServiceException. May throw InvalidArnException. May throw RetryableConflictException. May throw ValidationException. May throw LimitExceededException. May throw AccessDeniedException. May throw DirectoryNotEnabledException. May throw ResourceNotFoundException. May throw InvalidNextTokenException. May throw FacetValidationException.

Parameter directoryArn : The Amazon Resource Name (ARN) of the directory where you want to list the typed links.

Parameter objectReference : A reference that identifies the object whose attributes will be listed.

Parameter consistencyLevel : The consistency level to execute the request at.

Parameter filterAttributeRanges : Provides range filters for multiple attributes. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range.

Parameter filterTypedLink : Filters are interpreted in the order of the attributes defined on the typed link facet, not the order they are supplied to any API calls.

Parameter maxResults : The maximum number of results to retrieve.

Parameter nextToken : The pagination token.

Implementation

Future<ListOutgoingTypedLinksResponse> listOutgoingTypedLinks({
  required String directoryArn,
  required ObjectReference objectReference,
  ConsistencyLevel? consistencyLevel,
  List<TypedLinkAttributeRange>? filterAttributeRanges,
  TypedLinkSchemaAndFacetName? filterTypedLink,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(directoryArn, 'directoryArn');
  ArgumentError.checkNotNull(objectReference, 'objectReference');
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1152921504606846976,
  );
  final headers = <String, String>{
    'x-amz-data-partition': directoryArn.toString(),
  };
  final $payload = <String, dynamic>{
    'ObjectReference': objectReference,
    if (consistencyLevel != null)
      'ConsistencyLevel': consistencyLevel.toValue(),
    if (filterAttributeRanges != null)
      'FilterAttributeRanges': filterAttributeRanges,
    if (filterTypedLink != null) 'FilterTypedLink': filterTypedLink,
    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/outgoing',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return ListOutgoingTypedLinksResponse.fromJson(response);
}