@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
109 lines (108 loc) • 4.43 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { ListOpsItemEventsRequest, ListOpsItemEventsResponse } from "../models/models_1";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link ListOpsItemEventsCommand}.
*/
export interface ListOpsItemEventsCommandInput extends ListOpsItemEventsRequest {
}
/**
* @public
*
* The output of {@link ListOpsItemEventsCommand}.
*/
export interface ListOpsItemEventsCommandOutput extends ListOpsItemEventsResponse, __MetadataBearer {
}
declare const ListOpsItemEventsCommand_base: {
new (input: ListOpsItemEventsCommandInput): import("@smithy/core/client").CommandImpl<ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (...[input]: [] | [ListOpsItemEventsCommandInput]): import("@smithy/core/client").CommandImpl<ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Returns a list of all OpsItem events in the current Amazon Web Services Region and Amazon Web Services account. You can
* limit the results to events associated with specific OpsItems by specifying a filter.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, ListOpsItemEventsCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, ListOpsItemEventsCommand } = 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 = { // ListOpsItemEventsRequest
* Filters: [ // OpsItemEventFilters
* { // OpsItemEventFilter
* Key: "OpsItemId", // required
* Values: [ // OpsItemEventFilterValues // required
* "STRING_VALUE",
* ],
* Operator: "Equal", // required
* },
* ],
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* };
* const command = new ListOpsItemEventsCommand(input);
* const response = await client.send(command);
* // { // ListOpsItemEventsResponse
* // NextToken: "STRING_VALUE",
* // Summaries: [ // OpsItemEventSummaries
* // { // OpsItemEventSummary
* // OpsItemId: "STRING_VALUE",
* // EventId: "STRING_VALUE",
* // Source: "STRING_VALUE",
* // DetailType: "STRING_VALUE",
* // Detail: "STRING_VALUE",
* // CreatedBy: { // OpsItemIdentity
* // Arn: "STRING_VALUE",
* // },
* // CreatedTime: new Date("TIMESTAMP"),
* // },
* // ],
* // };
*
* ```
*
* @param ListOpsItemEventsCommandInput - {@link ListOpsItemEventsCommandInput}
* @returns {@link ListOpsItemEventsCommandOutput}
* @see {@link ListOpsItemEventsCommandInput} for command's `input` shape.
* @see {@link ListOpsItemEventsCommandOutput} 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 OpsItemLimitExceededException} (client fault)
* <p>The request caused OpsItems to exceed one or more quotas.</p>
*
* @throws {@link OpsItemNotFoundException} (client fault)
* <p>The specified OpsItem ID doesn't exist. Verify the ID and try again.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class ListOpsItemEventsCommand extends ListOpsItemEventsCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListOpsItemEventsRequest;
output: ListOpsItemEventsResponse;
};
sdk: {
input: ListOpsItemEventsCommandInput;
output: ListOpsItemEventsCommandOutput;
};
};
}