Skip to main content

attached_files_configurations

Creates, updates, deletes, gets or lists an attached_files_configurations resource.

Overview

Nameattached_files_configurations
TypeResource
Idaws.connect.attached_files_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attachment_scopestringThe scope of the attachment. Valid values are: EMAIL - Attachments for email messages. CHAT - Attachments for chat conversations. CASE - Attachments for cases. TASK - Attachments for tasks. (EMAIL, CHAT, CASE, TASK)
extension_configurationobjectThe configuration for allowed file extensions.
instance_idstringThe identifier of the Connect Customer instance.
last_modified_timestring (date-time)The timestamp when the configuration was last modified.
maximum_size_limit_in_bytesinteger (int64)The maximum size limit for attached files in bytes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_attached_files_configurationselectinstance_id, attachment_scope, regionDescribes the attached files configuration for the specified Connect Customer instance and attachment scope. If a custom configuration exists for the specified attachment scope, the custom configuration is returned. If no custom configuration exists, the default configuration values for that attachment scope are returned.
list_attached_files_configurationsselectinstance_id, regionmaxResults, nextTokenProvides summary information about the attached files configurations for the specified Connect Customer instance. This API returns effective configurations (custom overrides or defaults) for each attachment scope. If no custom configuration exists for a scope, the default configuration values are returned.
update_attached_files_configurationupdateinstance_id, attachment_scope, regionUpdates the attached files configuration for the specified Connect Customer instance and attachment scope. If no instance-specific configuration exists, this operation creates one. Partial updates are supported—only specified fields are updated, while unspecified fields retain their current values.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
attachment_scopestringThe scope of the attachment. Valid values are EMAIL, CHAT, CASE, and TASK.
instance_idstringThe identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page. The default MaxResult size is 100.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Describes the attached files configuration for the specified Connect Customer instance and attachment scope. If a custom configuration exists for the specified attachment scope, the custom configuration is returned. If no custom configuration exists, the default configuration values for that attachment scope are returned.

SELECT
attachment_scope,
extension_configuration,
instance_id,
last_modified_time,
maximum_size_limit_in_bytes
FROM aws.connect.attached_files_configurations
WHERE instance_id = '{{ instance_id }}' -- required
AND attachment_scope = '{{ attachment_scope }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the attached files configuration for the specified Connect Customer instance and attachment scope. If no instance-specific configuration exists, this operation creates one. Partial updates are supported—only specified fields are updated, while unspecified fields retain their current values.

UPDATE aws.connect.attached_files_configurations
SET
MaximumSizeLimitInBytes = {{ MaximumSizeLimitInBytes }},
ExtensionConfiguration = '{{ ExtensionConfiguration }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND attachment_scope = '{{ attachment_scope }}' --required
AND region = '{{ region }}' --required
RETURNING
attachment_scope,
extension_configuration,
instance_id,
last_modified_time,
maximum_size_limit_in_bytes;