Cancels a handshake. Canceling a handshake sets the handshake state to
CANCELED.
This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use DeclineHandshake instead. After a handshake is canceled, the recipient
can no longer respond to that handshake.
After you cancel a handshake, it continues to appear in the results of relevant APIs
for only 30 days. After that, it's deleted.
example
Use a bare-bones client and the command you need to make an API call.
Cancels a handshake. Canceling a handshake sets the handshake state to
CANCELED
.This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use DeclineHandshake instead. After a handshake is canceled, the recipient can no longer respond to that handshake.
After you cancel a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that, it's deleted.
Use a bare-bones client and the command you need to make an API call.
import { OrganizationsClient, CancelHandshakeCommand } from "@aws-sdk/client-organizations"; // ES Modules import // const { OrganizationsClient, CancelHandshakeCommand } = require("@aws-sdk/client-organizations"); // CommonJS import const client = new OrganizationsClient(config); const command = new CancelHandshakeCommand(input); const response = await client.send(command);
CancelHandshakeCommandInput for command's
input
shape.CancelHandshakeCommandOutput for command's
response
shape.config for OrganizationsClient's
config
shape.