@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
108 lines (107 loc) • 4.54 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { ListOpsItemRelatedItemsRequest, ListOpsItemRelatedItemsResponse } from "../models/models_1";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link ListOpsItemRelatedItemsCommand}.
*/
export interface ListOpsItemRelatedItemsCommandInput extends ListOpsItemRelatedItemsRequest {
}
/**
* @public
*
* The output of {@link ListOpsItemRelatedItemsCommand}.
*/
export interface ListOpsItemRelatedItemsCommandOutput extends ListOpsItemRelatedItemsResponse, __MetadataBearer {
}
declare const ListOpsItemRelatedItemsCommand_base: {
new (input: ListOpsItemRelatedItemsCommandInput): import("@smithy/core/client").CommandImpl<ListOpsItemRelatedItemsCommandInput, ListOpsItemRelatedItemsCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (...[input]: [] | [ListOpsItemRelatedItemsCommandInput]): import("@smithy/core/client").CommandImpl<ListOpsItemRelatedItemsCommandInput, ListOpsItemRelatedItemsCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Lists all related-item resources associated with a Systems Manager OpsCenter OpsItem. OpsCenter 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, ListOpsItemRelatedItemsCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, ListOpsItemRelatedItemsCommand } = 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 = { // ListOpsItemRelatedItemsRequest
* OpsItemId: "STRING_VALUE",
* Filters: [ // OpsItemRelatedItemsFilters
* { // OpsItemRelatedItemsFilter
* Key: "ResourceType" || "AssociationId" || "ResourceUri", // required
* Values: [ // OpsItemRelatedItemsFilterValues // required
* "STRING_VALUE",
* ],
* Operator: "Equal", // required
* },
* ],
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* };
* const command = new ListOpsItemRelatedItemsCommand(input);
* const response = await client.send(command);
* // { // ListOpsItemRelatedItemsResponse
* // NextToken: "STRING_VALUE",
* // Summaries: [ // OpsItemRelatedItemSummaries
* // { // OpsItemRelatedItemSummary
* // OpsItemId: "STRING_VALUE",
* // AssociationId: "STRING_VALUE",
* // ResourceType: "STRING_VALUE",
* // AssociationType: "STRING_VALUE",
* // ResourceUri: "STRING_VALUE",
* // CreatedBy: { // OpsItemIdentity
* // Arn: "STRING_VALUE",
* // },
* // CreatedTime: new Date("TIMESTAMP"),
* // LastModifiedBy: {
* // Arn: "STRING_VALUE",
* // },
* // LastModifiedTime: new Date("TIMESTAMP"),
* // },
* // ],
* // };
*
* ```
*
* @param ListOpsItemRelatedItemsCommandInput - {@link ListOpsItemRelatedItemsCommandInput}
* @returns {@link ListOpsItemRelatedItemsCommandOutput}
* @see {@link ListOpsItemRelatedItemsCommandInput} for command's `input` shape.
* @see {@link ListOpsItemRelatedItemsCommandOutput} 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 OpsItemInvalidParameterException} (client fault)
* <p>A specified parameter argument isn't valid. Verify the available arguments and try
* again.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class ListOpsItemRelatedItemsCommand extends ListOpsItemRelatedItemsCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListOpsItemRelatedItemsRequest;
output: ListOpsItemRelatedItemsResponse;
};
sdk: {
input: ListOpsItemRelatedItemsCommandInput;
output: ListOpsItemRelatedItemsCommandOutput;
};
};
}