import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { PutPolicyInput, PutPolicyOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link PutPolicyCommand}. */ export interface PutPolicyCommandInput extends PutPolicyInput { } /** * @public * * The output of {@link PutPolicyCommand}. */ export interface PutPolicyCommandOutput extends PutPolicyOutput, __MetadataBearer { } declare const PutPolicyCommand_base: { new (input: PutPolicyCommandInput): import("@smithy/core/client").CommandImpl; new (input: PutPolicyCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Updates the resource-based policy.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EntityResolutionClient, PutPolicyCommand } from "@aws-sdk/client-entityresolution"; // ES Modules import * // const { EntityResolutionClient, PutPolicyCommand } = require("@aws-sdk/client-entityresolution"); // CommonJS import * // import type { EntityResolutionClientConfig } from "@aws-sdk/client-entityresolution"; * const config = {}; // type is EntityResolutionClientConfig * const client = new EntityResolutionClient(config); * const input = { // PutPolicyInput * arn: "STRING_VALUE", // required * token: "STRING_VALUE", * policy: "STRING_VALUE", // required * }; * const command = new PutPolicyCommand(input); * const response = await client.send(command); * // { // PutPolicyOutput * // arn: "STRING_VALUE", // required * // token: "STRING_VALUE", // required * // policy: "STRING_VALUE", * // }; * * ``` * * @param PutPolicyCommandInput - {@link PutPolicyCommandInput} * @returns {@link PutPolicyCommandOutput} * @see {@link PutPolicyCommandInput} for command's `input` shape. * @see {@link PutPolicyCommandOutput} for command's `response` shape. * @see {@link EntityResolutionClientResolvedConfig | config} for EntityResolutionClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The request couldn't be processed because of conflict in the current state of the resource. Example: Workflow already exists, Schema already exists, Workflow is currently running, etc.

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

This exception occurs when there is an internal failure in the Entity Resolution service.

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

The resource couldn't be found.

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

The request was denied due to request throttling.

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

The input fails to satisfy the constraints specified by Entity Resolution.

* * @throws {@link EntityResolutionServiceException} *

Base exception class for all service exceptions from EntityResolution service.

* * * @public */ export declare class PutPolicyCommand extends PutPolicyCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PutPolicyInput; output: PutPolicyOutput; }; sdk: { input: PutPolicyCommandInput; output: PutPolicyCommandOutput; }; }; }