ListProfilePermissionsCommand

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

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { SignerClient, ListProfilePermissionsCommand } from "@aws-sdk/client-signer"; // ES Modules import
// const { SignerClient, ListProfilePermissionsCommand } = require("@aws-sdk/client-signer"); // CommonJS import
const client = new SignerClient(config);
const input = { // ListProfilePermissionsRequest
  profileName: "STRING_VALUE", // required
  nextToken: "STRING_VALUE",
};
const command = new ListProfilePermissionsCommand(input);
const response = await client.send(command);
// { // ListProfilePermissionsResponse
//   revisionId: "STRING_VALUE",
//   policySizeBytes: Number("int"),
//   permissions: [ // Permissions
//     { // Permission
//       action: "STRING_VALUE",
//       principal: "STRING_VALUE",
//       statementId: "STRING_VALUE",
//       profileVersion: "STRING_VALUE",
//     },
//   ],
//   nextToken: "STRING_VALUE",
// };

ListProfilePermissionsCommand Input

Parameter
Type
Description
profileName
Required
string | undefined

Name of the signing profile containing the cross-account permissions.

nextToken
string | undefined

String for specifying the next set of paginated results.

ListProfilePermissionsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
nextToken
string | undefined

String for specifying the next set of paginated results.

permissions
Permission[] | undefined

List of permissions associated with the Signing Profile.

policySizeBytes
number | undefined

Total size of the policy associated with the Signing Profile in bytes.

revisionId
string | undefined

The identifier for the current revision of profile permissions.

Throws

Name
Fault
Details
AccessDeniedException
client

You do not have sufficient access to perform this action.

InternalServiceErrorException
server

An internal error occurred.

ResourceNotFoundException
client

A specified resource could not be found.

TooManyRequestsException
client

The allowed number of job-signing requests has been exceeded.

This error supersedes the error ThrottlingException.

ValidationException
client

You signing certificate could not be validated.

SignerServiceException
Base exception class for all service exceptions from Signer service.