listPendingInvitationResources method

Future<ListPendingInvitationResourcesResponse> listPendingInvitationResources({
  1. required String resourceShareInvitationArn,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the resources in a resource share that is shared with you but that the invitation is still pending for.

May throw MalformedArnException. May throw InvalidNextTokenException. May throw InvalidParameterException. May throw ServerInternalException. May throw ServiceUnavailableException. May throw ResourceShareInvitationArnNotFoundException. May throw MissingRequiredParameterException. May throw ResourceShareInvitationAlreadyRejectedException. May throw ResourceShareInvitationExpiredException.

Parameter resourceShareInvitationArn : The Amazon Resource Name (ARN) of the invitation.

Parameter maxResults : The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Parameter nextToken : The token for the next page of results.

Implementation

Future<ListPendingInvitationResourcesResponse>
    listPendingInvitationResources({
  required String resourceShareInvitationArn,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(
      resourceShareInvitationArn, 'resourceShareInvitationArn');
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    500,
  );
  final $payload = <String, dynamic>{
    'resourceShareInvitationArn': resourceShareInvitationArn,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/listpendinginvitationresources',
    exceptionFnMap: _exceptionFns,
  );
  return ListPendingInvitationResourcesResponse.fromJson(response);
}