---
title: "PUT /instance/{InstanceId}/storage-config"
method: PUT
path: "/instance/{InstanceId}/storage-config"
---

# PUT /instance/{InstanceId}/storage-config

`PUT /instance/{InstanceId}/storage-config`

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.

## Path parameters

- `InstanceId` string, required

## Request body

- object
  - `ResourceType` 'CHAT_TRANSCRIPTS' | 'CALL_RECORDINGS' | 'SCHEDULED_REPORTS' | 'MEDIA_STREAMS' | 'CONTACT_TRACE_RECORDS' | 'AGENT_EVENTS' | 'REAL_TIME_CONTACT_ANALYSIS_SEGMENTS' | 'ATTACHMENTS' | 'CONTACT_EVALUATIONS', required — A valid resource type.
  - `StorageConfig` object, required — The storage configuration for the instance.
    - `AssociationId` string — The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.
    - `StorageType` 'S3' | 'KINESIS_VIDEO_STREAM' | 'KINESIS_STREAM' | 'KINESIS_FIREHOSE' — A valid storage type.
    - `S3Config` object — The S3 bucket configuration.
      - `BucketName` string, required — The S3 bucket name.
      - `BucketPrefix` string, required — The S3 bucket prefix.
      - `EncryptionConfig` object — The Amazon S3 encryption configuration.
        - `EncryptionType` 'KMS', required — The type of encryption.
        - `KeyId` string, required — <p>The full ARN of the encryption key. </p> <note> <p>Be sure to provide the full ARN of the encryption key, not just the ID.</p> <p>Amazon Connect supports only KMS keys with the default key spec of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-symmetric-default"> <code>SYMMETRIC_DEFAULT</code> </a>. </p> </note>
    - `KinesisVideoStreamConfig` object — The configuration of the Kinesis video stream.
      - `Prefix` string, required — The prefix of the video stream.
      - `RetentionPeriodHours` integer, required — <p>The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.</p> <p>The default value is 0, indicating that the stream does not persist data.</p>
      - `EncryptionConfig` object, required — The encryption configuration.
        - `EncryptionType` 'KMS', required — The type of encryption.
        - `KeyId` string, required — <p>The full ARN of the encryption key. </p> <note> <p>Be sure to provide the full ARN of the encryption key, not just the ID.</p> <p>Amazon Connect supports only KMS keys with the default key spec of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/asymmetric-key-specs.html#key-spec-symmetric-default"> <code>SYMMETRIC_DEFAULT</code> </a>. </p> </note>
    - `KinesisStreamConfig` object — The configuration of the Kinesis data stream.
      - `StreamArn` string, required — The Amazon Resource Name (ARN) of the data stream.
    - `KinesisFirehoseConfig` object — The configuration of the Kinesis Firehose delivery stream.
      - `FirehoseArn` string, required — The Amazon Resource Name (ARN) of the delivery stream.

## Response `200`

Success

- AssociateInstanceStorageConfigResponse
  - `AssociationId` string — The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

## Other responses

- `480` — ResourceNotFoundException
- `481` — ResourceConflictException
- `482` — InternalServiceException
- `483` — InvalidRequestException
- `484` — InvalidParameterException
- `485` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/connect.md) · [All operations](https://skmtc.net/aws/apis/connect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/connect/versions/fbcf0a4faed2/schema)
