Seleziona le tue preferenze relative ai cookie

Utilizziamo cookie essenziali e strumenti simili necessari per fornire il nostro sito e i nostri servizi. Utilizziamo i cookie prestazionali per raccogliere statistiche anonime in modo da poter capire come i clienti utilizzano il nostro sito e apportare miglioramenti. I cookie essenziali non possono essere disattivati, ma puoi fare clic su \"Personalizza\" o \"Rifiuta\" per rifiutare i cookie prestazionali.

Se sei d'accordo, AWS e le terze parti approvate utilizzeranno i cookie anche per fornire utili funzionalità del sito, ricordare le tue preferenze e visualizzare contenuti pertinenti, inclusa la pubblicità pertinente. Per continuare senza accettare questi cookie, fai clic su \"Continua\" o \"Rifiuta\". Per effettuare scelte più dettagliate o saperne di più, fai clic su \"Personalizza\".

DeleteAccessToken

Modalità Focus
DeleteAccessToken - Amazon CodeCatalyst
Questa pagina non è tradotta nella tua lingua. Richiedi traduzione

Deletes a specified personal access token (PAT). A personal access token can only be deleted by the user who created it.

Request Syntax

DELETE /v1/accessTokens/id HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

id

The ID of the personal access token to delete. You can find the IDs of all PATs associated with your AWS Builder ID in a space by calling ListAccessTokens.

Length Constraints: Minimum length of 1. Maximum length of 36.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

AccessDeniedException

The request was denied because you don't have sufficient access to perform this action. Verify that you are a member of a role that allows this action.

HTTP Status Code: 403

ConflictException

The request was denied because the requested operation would cause a conflict with the current state of a service resource associated with the request. Another user might have updated the resource. Reload, make sure you have the latest data, and then try again.

HTTP Status Code: 409

ResourceNotFoundException

The request was denied because the specified resource was not found. Verify that the spelling is correct and that you have access to the resource.

HTTP Status Code: 404

ServiceQuotaExceededException

The request was denied because one or more resources has reached its limits for the tier the space belongs to. Either reduce the number of resources, or change the tier if applicable.

HTTP Status Code: 402

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 429

ValidationException

The request was denied because an input failed to satisfy the constraints specified by the service. Check the spelling and input requirements, and then try again.

HTTP Status Code: 400

Examples

Example

The following example illustrates using DeleteAccessToken to delete the personal access token with the ID of a1b2c3d4-5678-90ab-cdef-EXAMPLEbbbbb. To get the ID of a personal access token, use ListAccessTokens.

Sample Request

DELETE https://codecatalyst.global.api.aws/v1/accessTokens/a1b2c3d4-5678-90ab-cdef-EXAMPLEbbbbb Host: codecatalyst.global.api.aws Accept-Encoding: identity User-Agent: aws-cli/2.7.31 Python/3.10.8 Darwin/21.6.0 source/x86_64 prompt/off command/codecatalyst.delete-access-token Content-Type: application/x-amz-json-1.1 Authorization: Bearer AKIAI44QH8DHBEXAMPLE Content-Length: 0

Sample Response

200 OK 2b Content-Type: application/json; charset=utf-8 Date: Sat, 05 Nov 2022 13:20:05 GMT {}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacyCondizioni del sitoPreferenze cookie
© 2025, Amazon Web Services, Inc. o società affiliate. Tutti i diritti riservati.