import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { DescribeDocumentPermissionRequest, DescribeDocumentPermissionResponse } from "../models/models_0"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeDocumentPermissionCommand}. */ export interface DescribeDocumentPermissionCommandInput extends DescribeDocumentPermissionRequest { } /** * @public * * The output of {@link DescribeDocumentPermissionCommand}. */ export interface DescribeDocumentPermissionCommandOutput extends DescribeDocumentPermissionResponse, __MetadataBearer { } declare const DescribeDocumentPermissionCommand_base: { new (input: DescribeDocumentPermissionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribeDocumentPermissionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes the permissions for a Amazon Web Services Systems Manager document (SSM document). If you created the * document, you are the owner. If a document is shared, it can either be shared privately (by * specifying a user's Amazon Web Services account ID) or publicly (All).

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, DescribeDocumentPermissionCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, DescribeDocumentPermissionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // DescribeDocumentPermissionRequest * Name: "STRING_VALUE", // required * PermissionType: "Share", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new DescribeDocumentPermissionCommand(input); * const response = await client.send(command); * // { // DescribeDocumentPermissionResponse * // AccountIds: [ // AccountIdList * // "STRING_VALUE", * // ], * // AccountSharingInfoList: [ // AccountSharingInfoList * // { // AccountSharingInfo * // AccountId: "STRING_VALUE", * // SharedDocumentVersion: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeDocumentPermissionCommandInput - {@link DescribeDocumentPermissionCommandInput} * @returns {@link DescribeDocumentPermissionCommandOutput} * @see {@link DescribeDocumentPermissionCommandInput} for command's `input` shape. * @see {@link DescribeDocumentPermissionCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

* * @throws {@link InvalidDocument} (client fault) *

The specified SSM document doesn't exist.

* * @throws {@link InvalidDocumentOperation} (client fault) *

You attempted to delete a document while it is still shared. You must stop sharing the * document before you can delete it.

* * @throws {@link InvalidNextToken} (client fault) *

The specified token isn't valid.

* * @throws {@link InvalidPermissionType} (client fault) *

The permission type isn't supported. Share is the only supported * permission type.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class DescribeDocumentPermissionCommand extends DescribeDocumentPermissionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeDocumentPermissionRequest; output: DescribeDocumentPermissionResponse; }; sdk: { input: DescribeDocumentPermissionCommandInput; output: DescribeDocumentPermissionCommandOutput; }; }; }