@aws-sdk/client-ssm
Version:
AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native
91 lines (90 loc) • 3.79 kB
TypeScript
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { GetResourcePoliciesRequest, GetResourcePoliciesResponse } from "../models/models_1";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link GetResourcePoliciesCommand}.
*/
export interface GetResourcePoliciesCommandInput extends GetResourcePoliciesRequest {
}
/**
* @public
*
* The output of {@link GetResourcePoliciesCommand}.
*/
export interface GetResourcePoliciesCommandOutput extends GetResourcePoliciesResponse, __MetadataBearer {
}
declare const GetResourcePoliciesCommand_base: {
new (input: GetResourcePoliciesCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (input: GetResourcePoliciesCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* <p>Returns an array of the <code>Policy</code> object.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SSMClient, GetResourcePoliciesCommand } from "@aws-sdk/client-ssm"; // ES Modules import
* // const { SSMClient, GetResourcePoliciesCommand } = 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 = { // GetResourcePoliciesRequest
* ResourceArn: "STRING_VALUE", // required
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* };
* const command = new GetResourcePoliciesCommand(input);
* const response = await client.send(command);
* // { // GetResourcePoliciesResponse
* // NextToken: "STRING_VALUE",
* // Policies: [ // GetResourcePoliciesResponseEntries
* // { // GetResourcePoliciesResponseEntry
* // PolicyId: "STRING_VALUE",
* // PolicyHash: "STRING_VALUE",
* // Policy: "STRING_VALUE",
* // },
* // ],
* // };
*
* ```
*
* @param GetResourcePoliciesCommandInput - {@link GetResourcePoliciesCommandInput}
* @returns {@link GetResourcePoliciesCommandOutput}
* @see {@link GetResourcePoliciesCommandInput} for command's `input` shape.
* @see {@link GetResourcePoliciesCommandOutput} 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 ResourceNotFoundException} (client fault)
* <p>The specified parameter to be shared could not be found.</p>
*
* @throws {@link ResourcePolicyInvalidParameterException} (client fault)
* <p>One or more parameters specified for the call aren't valid. Verify the parameters and their
* values and try again.</p>
*
* @throws {@link SSMServiceException}
* <p>Base exception class for all service exceptions from SSM service.</p>
*
*
* @public
*/
export declare class GetResourcePoliciesCommand extends GetResourcePoliciesCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: GetResourcePoliciesRequest;
output: GetResourcePoliciesResponse;
};
sdk: {
input: GetResourcePoliciesCommandInput;
output: GetResourcePoliciesCommandOutput;
};
};
}