import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient"; import type { AssociateInstanceStorageConfigRequest, AssociateInstanceStorageConfigResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateInstanceStorageConfigCommand}. */ export interface AssociateInstanceStorageConfigCommandInput extends AssociateInstanceStorageConfigRequest { } /** * @public * * The output of {@link AssociateInstanceStorageConfigCommand}. */ export interface AssociateInstanceStorageConfigCommandOutput extends AssociateInstanceStorageConfigResponse, __MetadataBearer { } declare const AssociateInstanceStorageConfigCommand_base: { new (input: AssociateInstanceStorageConfigCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssociateInstanceStorageConfigCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

This API is in preview release for Amazon Connect and is subject to change.

*

Associates a storage resource type for the first time. You can only associate one type of storage configuration * in a single call. This means, for example, that you can't define an instance with multiple S3 buckets for storing * chat transcripts.

*

This API does not create a resource that doesn't exist. It only associates it to the instance. Ensure that the * resource being specified in the storage configuration, like an S3 bucket, exists when being used for * association.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ConnectClient, AssociateInstanceStorageConfigCommand } from "@aws-sdk/client-connect"; // ES Modules import * // const { ConnectClient, AssociateInstanceStorageConfigCommand } = require("@aws-sdk/client-connect"); // CommonJS import * // import type { ConnectClientConfig } from "@aws-sdk/client-connect"; * const config = {}; // type is ConnectClientConfig * const client = new ConnectClient(config); * const input = { // AssociateInstanceStorageConfigRequest * InstanceId: "STRING_VALUE", // required * ResourceType: "CHAT_TRANSCRIPTS" || "CALL_RECORDINGS" || "SCHEDULED_REPORTS" || "MEDIA_STREAMS" || "CONTACT_TRACE_RECORDS" || "AGENT_EVENTS" || "REAL_TIME_CONTACT_ANALYSIS_SEGMENTS" || "ATTACHMENTS" || "CONTACT_EVALUATIONS" || "SCREEN_RECORDINGS" || "REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS" || "REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS" || "EMAIL_MESSAGES", // required * StorageConfig: { // InstanceStorageConfig * AssociationId: "STRING_VALUE", * StorageType: "S3" || "KINESIS_VIDEO_STREAM" || "KINESIS_STREAM" || "KINESIS_FIREHOSE", // required * S3Config: { // S3Config * BucketName: "STRING_VALUE", // required * BucketPrefix: "STRING_VALUE", // required * EncryptionConfig: { // EncryptionConfig * EncryptionType: "KMS", // required * KeyId: "STRING_VALUE", // required * }, * }, * KinesisVideoStreamConfig: { // KinesisVideoStreamConfig * Prefix: "STRING_VALUE", // required * RetentionPeriodHours: Number("int"), // required * EncryptionConfig: { * EncryptionType: "KMS", // required * KeyId: "STRING_VALUE", // required * }, * }, * KinesisStreamConfig: { // KinesisStreamConfig * StreamArn: "STRING_VALUE", // required * }, * KinesisFirehoseConfig: { // KinesisFirehoseConfig * FirehoseArn: "STRING_VALUE", // required * }, * }, * ClientToken: "STRING_VALUE", * }; * const command = new AssociateInstanceStorageConfigCommand(input); * const response = await client.send(command); * // { // AssociateInstanceStorageConfigResponse * // AssociationId: "STRING_VALUE", * // }; * * ``` * * @param AssociateInstanceStorageConfigCommandInput - {@link AssociateInstanceStorageConfigCommandInput} * @returns {@link AssociateInstanceStorageConfigCommandOutput} * @see {@link AssociateInstanceStorageConfigCommandInput} for command's `input` shape. * @see {@link AssociateInstanceStorageConfigCommandOutput} for command's `response` shape. * @see {@link ConnectClientResolvedConfig | config} for ConnectClient's `config` shape. * * @throws {@link InternalServiceException} (server fault) *

Request processing failed because of an error or failure with the service.

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

One or more of the specified parameters are not valid.

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

The request is not valid.

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

A resource already has that name.

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

The specified resource was not found.

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

The throttling limit has been exceeded.

* * @throws {@link ConnectServiceException} *

Base exception class for all service exceptions from Connect service.

* * * @public */ export declare class AssociateInstanceStorageConfigCommand extends AssociateInstanceStorageConfigCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateInstanceStorageConfigRequest; output: AssociateInstanceStorageConfigResponse; }; sdk: { input: AssociateInstanceStorageConfigCommandInput; output: AssociateInstanceStorageConfigCommandOutput; }; }; }