listProfilePermissions method

Future<ListProfilePermissionsResponse> listProfilePermissions({
  1. required String profileName,
  2. String? nextToken,
})

Lists the cross-account permissions associated with a signing profile.

May throw ValidationException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw TooManyRequestsException. May throw InternalServiceErrorException.

Parameter profileName : Name of the signing profile containing the cross-account permissions.

Parameter nextToken : String for specifying the next set of paginated results.

Implementation

Future<ListProfilePermissionsResponse> listProfilePermissions({
  required String profileName,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(profileName, 'profileName');
  _s.validateStringLength(
    'profileName',
    profileName,
    2,
    64,
    isRequired: true,
  );
  final $query = <String, List<String>>{
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/signing-profiles/${Uri.encodeComponent(profileName)}/permissions',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListProfilePermissionsResponse.fromJson(response);
}