@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
90 lines (89 loc) • 4.26 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { DisassociateOpsItemRelatedItemRequest, DisassociateOpsItemRelatedItemResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link DisassociateOpsItemRelatedItemCommand}.
*/
export interface DisassociateOpsItemRelatedItemCommandInput extends DisassociateOpsItemRelatedItemRequest {
}
/**
* @public
*
* The output of {@link DisassociateOpsItemRelatedItemCommand}.
*/
export interface DisassociateOpsItemRelatedItemCommandOutput extends DisassociateOpsItemRelatedItemResponse, __MetadataBearer {
}
declare const DisassociateOpsItemRelatedItemCommand_base: {
new (input: DisassociateOpsItemRelatedItemCommandInput): import("@smithy/core/client").CommandImpl<DisassociateOpsItemRelatedItemCommandInput, DisassociateOpsItemRelatedItemCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (input: DisassociateOpsItemRelatedItemCommandInput): import("@smithy/core/client").CommandImpl<DisassociateOpsItemRelatedItemCommandInput, DisassociateOpsItemRelatedItemCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Deletes the association between an OpsItem and a related item. For example, this API
* operation can delete an Incident Manager incident from an OpsItem. Incident Manager is a tool in
* Amazon Web Services Systems Manager.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, DisassociateOpsItemRelatedItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, DisassociateOpsItemRelatedItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import
* // import type { SSMClientConfig } from "@aws-sdk/client-ssm";
* const config = {}; // type is SSMClientConfig
* const client = new SSMClient(config);
* const input = { // DisassociateOpsItemRelatedItemRequest
* OpsItemId: "STRING_VALUE", // required
* AssociationId: "STRING_VALUE", // required
* };
* const command = new DisassociateOpsItemRelatedItemCommand(input);
* const response = await client.send(command);
* // {};
*
* ```
*
* @param DisassociateOpsItemRelatedItemCommandInput - {@link DisassociateOpsItemRelatedItemCommandInput}
* @returns {@link DisassociateOpsItemRelatedItemCommandOutput}
* @see {@link DisassociateOpsItemRelatedItemCommandInput} for command's `input` shape.
* @see {@link DisassociateOpsItemRelatedItemCommandOutput} for command's `response` shape.
* @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape.
*
* @throws {@link InternalServerError} (server fault)
* <p>An error occurred on the server side.</p>
*
* @throws {@link OpsItemConflictException} (client fault)
* <p>The specified OpsItem is in the process of being deleted.</p>
*
* @throws {@link OpsItemInvalidParameterException} (client fault)
* <p>A specified parameter argument isn't valid. Verify the available arguments and try
* again.</p>
*
* @throws {@link OpsItemNotFoundException} (client fault)
* <p>The specified OpsItem ID doesn't exist. Verify the ID and try again.</p>
*
* @throws {@link OpsItemRelatedItemAssociationNotFoundException} (client fault)
* <p>The association wasn't found using the parameters you specified in the call. Verify the
* information and try again.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class DisassociateOpsItemRelatedItemCommand extends DisassociateOpsItemRelatedItemCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: DisassociateOpsItemRelatedItemRequest;
output: {};
};
sdk: {
input: DisassociateOpsItemRelatedItemCommandInput;
output: DisassociateOpsItemRelatedItemCommandOutput;
};
};
}