RemoveProfilePermissionCommand

Removes cross-account permissions from a signing profile.

Example Syntax

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

import { SignerClient, RemoveProfilePermissionCommand } from "@aws-sdk/client-signer"; // ES Modules import
// const { SignerClient, RemoveProfilePermissionCommand } = require("@aws-sdk/client-signer"); // CommonJS import
const client = new SignerClient(config);
const input = { // RemoveProfilePermissionRequest
  profileName: "STRING_VALUE", // required
  revisionId: "STRING_VALUE", // required
  statementId: "STRING_VALUE", // required
};
const command = new RemoveProfilePermissionCommand(input);
const response = await client.send(command);
// { // RemoveProfilePermissionResponse
//   revisionId: "STRING_VALUE",
// };

RemoveProfilePermissionCommand Input

Parameter
Type
Description
profileName
Required
string | undefined

A human-readable name for the signing profile with permissions to be removed.

revisionId
Required
string | undefined

An identifier for the current revision of the signing profile permissions.

statementId
Required
string | undefined

A unique identifier for the cross-account permissions statement.

RemoveProfilePermissionCommand Output

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

An identifier for the current revision of the profile permissions.

Throws

Name
Fault
Details
AccessDeniedException
client

You do not have sufficient access to perform this action.

ConflictException
client

The resource encountered a conflicting state.

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.