import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaStoreClient"; import type { GetContainerPolicyInput, GetContainerPolicyOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetContainerPolicyCommand}. */ export interface GetContainerPolicyCommandInput extends GetContainerPolicyInput { } /** * @public * * The output of {@link GetContainerPolicyCommand}. */ export interface GetContainerPolicyCommandOutput extends GetContainerPolicyOutput, __MetadataBearer { } declare const GetContainerPolicyCommand_base: { new (input: GetContainerPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetContainerPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves the access policy for the specified container. For information about the * data that is included in an access policy, see the AWS Identity and Access Management User * Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaStoreClient, GetContainerPolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import * // const { MediaStoreClient, GetContainerPolicyCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import * // import type { MediaStoreClientConfig } from "@aws-sdk/client-mediastore"; * const config = {}; // type is MediaStoreClientConfig * const client = new MediaStoreClient(config); * const input = { // GetContainerPolicyInput * ContainerName: "STRING_VALUE", // required * }; * const command = new GetContainerPolicyCommand(input); * const response = await client.send(command); * // { // GetContainerPolicyOutput * // Policy: "STRING_VALUE", // required * // }; * * ``` * * @param GetContainerPolicyCommandInput - {@link GetContainerPolicyCommandInput} * @returns {@link GetContainerPolicyCommandOutput} * @see {@link GetContainerPolicyCommandInput} for command's `input` shape. * @see {@link GetContainerPolicyCommandOutput} for command's `response` shape. * @see {@link MediaStoreClientResolvedConfig | config} for MediaStoreClient's `config` shape. * * @throws {@link ContainerInUseException} (client fault) *

The container that you specified in the request already exists or is being * updated.

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

The container that you specified in the request does not exist.

* * @throws {@link InternalServerError} (server fault) *

The service is temporarily unavailable.

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

The policy that you specified in the request does not exist.

* * @throws {@link MediaStoreServiceException} *

Base exception class for all service exceptions from MediaStore service.

* * * @public */ export declare class GetContainerPolicyCommand extends GetContainerPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetContainerPolicyInput; output: GetContainerPolicyOutput; }; sdk: { input: GetContainerPolicyCommandInput; output: GetContainerPolicyCommandOutput; }; }; }