listResourceSharePermissions method
Lists the AWS RAM permissions that are associated with a resource share.
May throw InvalidParameterException. May throw MalformedArnException. May throw UnknownResourceException. May throw InvalidNextTokenException. May throw ServerInternalException. May throw ServiceUnavailableException. May throw OperationNotPermittedException.
Parameter resourceShareArn
:
The Amazon Resource Name (ARN) of the resource share.
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<ListResourceSharePermissionsResponse> listResourceSharePermissions({
required String resourceShareArn,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(resourceShareArn, 'resourceShareArn');
_s.validateNumRange(
'maxResults',
maxResults,
1,
500,
);
final $payload = <String, dynamic>{
'resourceShareArn': resourceShareArn,
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/listresourcesharepermissions',
exceptionFnMap: _exceptionFns,
);
return ListResourceSharePermissionsResponse.fromJson(response);
}