@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
160 lines (159 loc) • 6 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { GetInventoryResult } from "../models/models_0";
import type { GetInventoryRequest } from "../models/models_1";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link GetInventoryCommand}.
*/
export interface GetInventoryCommandInput extends GetInventoryRequest {
}
/**
* @public
*
* The output of {@link GetInventoryCommand}.
*/
export interface GetInventoryCommandOutput extends GetInventoryResult, __MetadataBearer {
}
declare const GetInventoryCommand_base: {
new (input: GetInventoryCommandInput): import("@smithy/core/client").CommandImpl<GetInventoryCommandInput, GetInventoryCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (...[input]: [] | [GetInventoryCommandInput]): import("@smithy/core/client").CommandImpl<GetInventoryCommandInput, GetInventoryCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Query inventory information. This includes managed node status, such as <code>Stopped</code>
* or <code>Terminated</code>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, GetInventoryCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, GetInventoryCommand } = 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 = { // GetInventoryRequest
* Filters: [ // InventoryFilterList
* { // InventoryFilter
* Key: "STRING_VALUE", // required
* Values: [ // InventoryFilterValueList // required
* "STRING_VALUE",
* ],
* Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists",
* },
* ],
* Aggregators: [ // InventoryAggregatorList
* { // InventoryAggregator
* Expression: "STRING_VALUE",
* Aggregators: [
* {
* Expression: "STRING_VALUE",
* Aggregators: "<InventoryAggregatorList>",
* Groups: [ // InventoryGroupList
* { // InventoryGroup
* Name: "STRING_VALUE", // required
* Filters: [ // required
* {
* Key: "STRING_VALUE", // required
* Values: [ // required
* "STRING_VALUE",
* ],
* Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists",
* },
* ],
* },
* ],
* },
* ],
* Groups: [
* {
* Name: "STRING_VALUE", // required
* Filters: "<InventoryFilterList>", // required
* },
* ],
* },
* ],
* ResultAttributes: [ // ResultAttributeList
* { // ResultAttribute
* TypeName: "STRING_VALUE", // required
* },
* ],
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* };
* const command = new GetInventoryCommand(input);
* const response = await client.send(command);
* // { // GetInventoryResult
* // Entities: [ // InventoryResultEntityList
* // { // InventoryResultEntity
* // Id: "STRING_VALUE",
* // Data: { // InventoryResultItemMap
* // "<keys>": { // InventoryResultItem
* // TypeName: "STRING_VALUE", // required
* // SchemaVersion: "STRING_VALUE", // required
* // CaptureTime: "STRING_VALUE",
* // ContentHash: "STRING_VALUE",
* // Content: [ // InventoryItemEntryList // required
* // { // InventoryItemEntry
* // "<keys>": "STRING_VALUE",
* // },
* // ],
* // },
* // },
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param GetInventoryCommandInput - {@link GetInventoryCommandInput}
* @returns {@link GetInventoryCommandOutput}
* @see {@link GetInventoryCommandInput} for command's `input` shape.
* @see {@link GetInventoryCommandOutput} 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 InvalidAggregatorException} (client fault)
* <p>The specified aggregator isn't valid for the group type. Verify that the aggregator you
* provided is supported.</p>
*
* @throws {@link InvalidFilter} (client fault)
* <p>The filter name isn't valid. Verify that you entered the correct name and try again.</p>
*
* @throws {@link InvalidInventoryGroupException} (client fault)
* <p>The specified inventory group isn't valid.</p>
*
* @throws {@link InvalidNextToken} (client fault)
* <p>The specified token isn't valid.</p>
*
* @throws {@link InvalidResultAttributeException} (client fault)
* <p>The specified inventory item result attribute isn't valid.</p>
*
* @throws {@link InvalidTypeNameException} (client fault)
* <p>The parameter type name isn't valid.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class GetInventoryCommand extends GetInventoryCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetInventoryRequest;
output: GetInventoryResult;
};
sdk: {
input: GetInventoryCommandInput;
output: GetInventoryCommandOutput;
};
};
}