@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
130 lines (129 loc) • 5.36 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { ListDocumentsRequest, ListDocumentsResult } from "../models/models_1";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link ListDocumentsCommand}.
*/
export interface ListDocumentsCommandInput extends ListDocumentsRequest {
}
/**
* @public
*
* The output of {@link ListDocumentsCommand}.
*/
export interface ListDocumentsCommandOutput extends ListDocumentsResult, __MetadataBearer {
}
declare const ListDocumentsCommand_base: {
new (input: ListDocumentsCommandInput): import("@smithy/core/client").CommandImpl<ListDocumentsCommandInput, ListDocumentsCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (...[input]: [] | [ListDocumentsCommandInput]): import("@smithy/core/client").CommandImpl<ListDocumentsCommandInput, ListDocumentsCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Returns all Systems Manager (SSM) documents in the current Amazon Web Services account and Amazon Web Services Region. You can
* limit the results of this request by using a filter.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, ListDocumentsCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, ListDocumentsCommand } = 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 = { // ListDocumentsRequest
* DocumentFilterList: [ // DocumentFilterList
* { // DocumentFilter
* key: "Name" || "Owner" || "PlatformTypes" || "DocumentType", // required
* value: "STRING_VALUE", // required
* },
* ],
* Filters: [ // DocumentKeyValuesFilterList
* { // DocumentKeyValuesFilter
* Key: "STRING_VALUE",
* Values: [ // DocumentKeyValuesFilterValues
* "STRING_VALUE",
* ],
* },
* ],
* MaxResults: Number("int"),
* NextToken: "STRING_VALUE",
* };
* const command = new ListDocumentsCommand(input);
* const response = await client.send(command);
* // { // ListDocumentsResult
* // DocumentIdentifiers: [ // DocumentIdentifierList
* // { // DocumentIdentifier
* // Name: "STRING_VALUE",
* // CreatedDate: new Date("TIMESTAMP"),
* // DisplayName: "STRING_VALUE",
* // Owner: "STRING_VALUE",
* // VersionName: "STRING_VALUE",
* // PlatformTypes: [ // PlatformTypeList
* // "Windows" || "Linux" || "MacOS",
* // ],
* // DocumentVersion: "STRING_VALUE",
* // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup" || "ManualApprovalPolicy" || "AutoApprovalPolicy",
* // SchemaVersion: "STRING_VALUE",
* // DocumentFormat: "YAML" || "JSON" || "TEXT",
* // TargetType: "STRING_VALUE",
* // Tags: [ // TagList
* // { // Tag
* // Key: "STRING_VALUE", // required
* // Value: "STRING_VALUE", // required
* // },
* // ],
* // Requires: [ // DocumentRequiresList
* // { // DocumentRequires
* // Name: "STRING_VALUE", // required
* // Version: "STRING_VALUE",
* // RequireType: "STRING_VALUE",
* // VersionName: "STRING_VALUE",
* // },
* // ],
* // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED",
* // Author: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
* // };
*
* ```
*
* @param ListDocumentsCommandInput - {@link ListDocumentsCommandInput}
* @returns {@link ListDocumentsCommandOutput}
* @see {@link ListDocumentsCommandInput} for command's `input` shape.
* @see {@link ListDocumentsCommandOutput} 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 InvalidFilterKey} (client fault)
* <p>The specified key isn't valid.</p>
*
* @throws {@link InvalidNextToken} (client fault)
* <p>The specified token isn't valid.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class ListDocumentsCommand extends ListDocumentsCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: ListDocumentsRequest;
output: ListDocumentsResult;
};
sdk: {
input: ListDocumentsCommandInput;
output: ListDocumentsCommandOutput;
};
};
}