UpdateCrlCommand

Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials.

Required permissions: rolesanywhere:UpdateCrl.

Example Syntax

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

import { RolesAnywhereClient, UpdateCrlCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import
// const { RolesAnywhereClient, UpdateCrlCommand } = require("@aws-sdk/client-rolesanywhere"); // CommonJS import
const client = new RolesAnywhereClient(config);
const input = { // UpdateCrlRequest
  crlId: "STRING_VALUE", // required
  name: "STRING_VALUE",
  crlData: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
};
const command = new UpdateCrlCommand(input);
const response = await client.send(command);
// { // CrlDetailResponse
//   crl: { // CrlDetail
//     crlId: "STRING_VALUE",
//     crlArn: "STRING_VALUE",
//     name: "STRING_VALUE",
//     enabled: true || false,
//     crlData: new Uint8Array(),
//     trustAnchorArn: "STRING_VALUE",
//     createdAt: new Date("TIMESTAMP"),
//     updatedAt: new Date("TIMESTAMP"),
//   },
// };

UpdateCrlCommand Input

See UpdateCrlCommandInput for more details

Parameter
Type
Description
crlId
Required
string | undefined

The unique identifier of the certificate revocation list (CRL).

crlData
Uint8Array | undefined

The x509 v3 specified certificate revocation list (CRL).

name
string | undefined

The name of the Crl.

UpdateCrlCommand Output

See UpdateCrlCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
crl
Required
CrlDetail | undefined

The state of the certificate revocation list (CRL) after a read or write operation.

Throws

Name
Fault
Details
AccessDeniedException
client

You do not have sufficient access to perform this action.

ResourceNotFoundException
client

The resource could not be found.

ValidationException
client

Validation exception error.

RolesAnywhereServiceException
Base exception class for all service exceptions from RolesAnywhere service.