Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CancelHandshakeCommand

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.

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);
see

CancelHandshakeCommandInput for command's input shape.

see

CancelHandshakeCommandOutput for command's response shape.

see

config for OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CancelHandshakeCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CancelHandshakeCommandInput, CancelHandshakeCommandOutput>

Methods

Static getEndpointParameterInstructions