import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SetIdentityPoolConfigurationRequest, SetIdentityPoolConfigurationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link SetIdentityPoolConfigurationCommand}. */ export interface SetIdentityPoolConfigurationCommandInput extends SetIdentityPoolConfigurationRequest { } /** * @public * * The output of {@link SetIdentityPoolConfigurationCommand}. */ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPoolConfigurationResponse, __MetadataBearer { } declare const SetIdentityPoolConfigurationCommand_base: { new (input: SetIdentityPoolConfigurationCommandInput): import("@smithy/core/client").CommandImpl; new (input: SetIdentityPoolConfigurationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Sets the necessary configuration for push sync.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * * SetIdentityPoolConfiguration * The following examples have been edited for readability. * * POST / HTTP/1.1 * CONTENT-TYPE: application/json * X-AMZN-REQUESTID: a46db021-f5dd-45d6-af5b-7069fa4a211b * X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SetIdentityPoolConfiguration * HOST: cognito-sync.us-east-1.amazonaws.com * X-AMZ-DATE: 20141004T200006Z * AUTHORIZATION: AWS4-HMAC-SHA256 Credential=, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature= * * \{ * "Operation": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfiguration", * "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService", * "Input": * \{ * "IdentityPoolId": "ID_POOL_ID", * "PushSync": * \{ * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"], * "RoleArn": "ROLEARN" * \} * \} * \} * * * 1.1 200 OK * x-amzn-requestid: a46db021-f5dd-45d6-af5b-7069fa4a211b * date: Sat, 04 Oct 2014 20:00:06 GMT * content-type: application/json * content-length: 332 * * \{ * "Output": * \{ * "__type": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfigurationResponse", * "IdentityPoolId": "ID_POOL_ID", * "PushSync": * \{ * "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"], * "RoleArn": "ROLEARN" * \} * \}, * "Version": "1.0" * \} * * * * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CognitoSyncClient, SetIdentityPoolConfigurationCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import * // const { CognitoSyncClient, SetIdentityPoolConfigurationCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import * // import type { CognitoSyncClientConfig } from "@aws-sdk/client-cognito-sync"; * const config = {}; // type is CognitoSyncClientConfig * const client = new CognitoSyncClient(config); * const input = { // SetIdentityPoolConfigurationRequest * IdentityPoolId: "STRING_VALUE", // required * PushSync: { // PushSync * ApplicationArns: [ // ApplicationArnList * "STRING_VALUE", * ], * RoleArn: "STRING_VALUE", * }, * CognitoStreams: { // CognitoStreams * StreamName: "STRING_VALUE", * RoleArn: "STRING_VALUE", * StreamingStatus: "ENABLED" || "DISABLED", * }, * }; * const command = new SetIdentityPoolConfigurationCommand(input); * const response = await client.send(command); * // { // SetIdentityPoolConfigurationResponse * // IdentityPoolId: "STRING_VALUE", * // PushSync: { // PushSync * // ApplicationArns: [ // ApplicationArnList * // "STRING_VALUE", * // ], * // RoleArn: "STRING_VALUE", * // }, * // CognitoStreams: { // CognitoStreams * // StreamName: "STRING_VALUE", * // RoleArn: "STRING_VALUE", * // StreamingStatus: "ENABLED" || "DISABLED", * // }, * // }; * * ``` * * @param SetIdentityPoolConfigurationCommandInput - {@link SetIdentityPoolConfigurationCommandInput} * @returns {@link SetIdentityPoolConfigurationCommandOutput} * @see {@link SetIdentityPoolConfigurationCommandInput} for command's `input` shape. * @see {@link SetIdentityPoolConfigurationCommandOutput} for command's `response` shape. * @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

Thrown if there are parallel requests to modify a resource.

* * @throws {@link InternalErrorException} (server fault) * Indicates an internal service * error. * * @throws {@link InvalidParameterException} (client fault) * Thrown when a request parameter does not comply * with the associated constraints. * * @throws {@link NotAuthorizedException} (client fault) * Thrown when a user is not authorized to access the * requested resource. * * @throws {@link ResourceNotFoundException} (client fault) * Thrown if the resource doesn't * exist. * * @throws {@link TooManyRequestsException} (client fault) * Thrown if the request is * throttled. * * @throws {@link CognitoSyncServiceException} *

Base exception class for all service exceptions from CognitoSync service.

* * * @public */ export declare class SetIdentityPoolConfigurationCommand extends SetIdentityPoolConfigurationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SetIdentityPoolConfigurationRequest; output: SetIdentityPoolConfigurationResponse; }; sdk: { input: SetIdentityPoolConfigurationCommandInput; output: SetIdentityPoolConfigurationCommandOutput; }; }; }