Skip to main content

instance_storage_configs

Creates, updates, deletes or gets an instance_storage_config resource or lists instance_storage_configs in a region

Overview

Nameinstance_storage_configs
TypeResource
DescriptionResource Type definition for AWS::Connect::InstanceStorageConfig
Idawscc.connect.instance_storage_configs

Fields

NameDatatypeDescription
instance_arnstringConnect Instance ID with which the storage config will be associated
resource_typestringSpecifies the type of storage resource available for the instance
association_idstringAn associationID is automatically generated when a storage config is associated with an instance
storage_typestringSpecifies the storage type to be associated with the instance
s3_configobject
kinesis_video_stream_configobject
kinesis_stream_configobject
kinesis_firehose_configobject
regionstringAWS region.

For more information, see AWS::Connect::InstanceStorageConfig.

Methods

NameResourceAccessible byRequired Params
create_resourceinstance_storage_configsINSERTInstanceArn, ResourceType, StorageType, region
delete_resourceinstance_storage_configsDELETEIdentifier, region
update_resourceinstance_storage_configsUPDATEIdentifier, PatchDocument, region
list_resourcesinstance_storage_configs_list_onlySELECTregion
get_resourceinstance_storage_configsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual instance_storage_config.

SELECT
region,
instance_arn,
resource_type,
association_id,
storage_type,
s3_config,
kinesis_video_stream_config,
kinesis_stream_config,
kinesis_firehose_config
FROM awscc.connect.instance_storage_configs
WHERE
region = '{{ region }}' AND
Identifier = '{{ instance_arn }}|{{ association_id }}|{{ resource_type }}';

INSERT example

Use the following StackQL query and manifest file to create a new instance_storage_config resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.connect.instance_storage_configs (
InstanceArn,
ResourceType,
StorageType,
region
)
SELECT
'{{ instance_arn }}',
'{{ resource_type }}',
'{{ storage_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a instance_storage_config resource, using stack-deploy.

/*+ update */
UPDATE awscc.connect.instance_storage_configs
SET PatchDocument = string('{{ {
"StorageType": storage_type,
"S3Config": s3_config,
"KinesisVideoStreamConfig": kinesis_video_stream_config,
"KinesisStreamConfig": kinesis_stream_config,
"KinesisFirehoseConfig": kinesis_firehose_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ instance_arn }}|{{ association_id }}|{{ resource_type }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.instance_storage_configs
WHERE
Identifier = '{{ instance_arn }}|{{ association_id }}|{{ resource_type }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the instance_storage_configs resource, the following permissions are required:

connect:AssociateInstanceStorageConfig,
connect:DescribeInstance,
ds:DescribeDirectories,
s3:GetBucketAcl,
s3:GetBucketLocation,
iam:PutRolePolicy,
kinesis:DescribeStream,
kms:DescribeKey,
kms:CreateGrant,
firehose:DescribeDeliveryStream