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 { GetMetricPolicyInput, GetMetricPolicyOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetMetricPolicyCommand}. */ export interface GetMetricPolicyCommandInput extends GetMetricPolicyInput { } /** * @public * * The output of {@link GetMetricPolicyCommand}. */ export interface GetMetricPolicyCommandOutput extends GetMetricPolicyOutput, __MetadataBearer { } declare const GetMetricPolicyCommand_base: { new (input: GetMetricPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetMetricPolicyCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns the metric policy for the specified container.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { MediaStoreClient, GetMetricPolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import * // const { MediaStoreClient, GetMetricPolicyCommand } = 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 = { // GetMetricPolicyInput * ContainerName: "STRING_VALUE", // required * }; * const command = new GetMetricPolicyCommand(input); * const response = await client.send(command); * // { // GetMetricPolicyOutput * // MetricPolicy: { // MetricPolicy * // ContainerLevelMetrics: "ENABLED" || "DISABLED", // required * // MetricPolicyRules: [ // MetricPolicyRules * // { // MetricPolicyRule * // ObjectGroup: "STRING_VALUE", // required * // ObjectGroupName: "STRING_VALUE", // required * // }, * // ], * // }, * // }; * * ``` * * @param GetMetricPolicyCommandInput - {@link GetMetricPolicyCommandInput} * @returns {@link GetMetricPolicyCommandOutput} * @see {@link GetMetricPolicyCommandInput} for command's `input` shape. * @see {@link GetMetricPolicyCommandOutput} 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 GetMetricPolicyCommand extends GetMetricPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetMetricPolicyInput; output: GetMetricPolicyOutput; }; sdk: { input: GetMetricPolicyCommandInput; output: GetMetricPolicyCommandOutput; }; }; }