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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, ResourceType, StorageType, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all instance_storage_configs in a region.

SELECT
region,
instance_arn,
resource_type,
association_id,
storage_type,
s3_config,
kinesis_video_stream_config,
kinesis_stream_config,
kinesis_firehose_config
FROM aws.connect.instance_storage_configs
WHERE region = 'us-east-1';

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 aws.connect.instance_storage_configs
WHERE region = 'us-east-1' AND data__Identifier = '<InstanceArn>|<AssociationId>|<ResourceType>';

INSERT example

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

/*+ create */
INSERT INTO aws.connect.instance_storage_configs (
InstanceArn,
ResourceType,
StorageType,
region
)
SELECT
'{{ InstanceArn }}',
'{{ ResourceType }}',
'{{ StorageType }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.instance_storage_configs
WHERE data__Identifier = '<InstanceArn|AssociationId|ResourceType>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

connect:DescribeInstanceStorageConfig,
connect:ListInstanceStorageConfigs,
connect:DescribeInstance,
ds:DescribeDirectories,
s3:GetBucketAcl,
s3:GetBucketLocation

Update

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

Delete

connect:DisassociateInstanceStorageConfig,
connect:DescribeInstance,
s3:GetBucketAcl,
s3:GetBucketLocation,
kms:RetireGrant

List

connect:DescribeInstance,
connect:ListInstanceStorageConfigs,
ds:DescribeDirectories