Connect / Client / update_attached_files_configuration
update_attached_files_configuration¶
- Connect.Client.update_attached_files_configuration(**kwargs)¶
Updates the attached files configuration for the specified Amazon Connect 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.
See also: AWS API Documentation
Request Syntax
response = client.update_attached_files_configuration( InstanceId='string', AttachmentScope='EMAIL'|'CHAT'|'CASE'|'TASK', MaximumSizeLimitInBytes=123, ExtensionConfiguration={ 'AllowedExtensions': [ { 'Extension': 'string' }, ] } )
- Parameters:
InstanceId (string) –
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
AttachmentScope (string) –
[REQUIRED]
The scope of the attachment. Valid values are
EMAIL,CHAT,CASE, andTASK.MaximumSizeLimitInBytes (integer) – The maximum size limit for attached files in bytes. The minimum value is 1 and the maximum value is 104857600 (100 MB).
ExtensionConfiguration (dict) –
The configuration for allowed file extensions.
AllowedExtensions (list) – [REQUIRED]
The list of allowed file extensions.
(dict) –
Information about an allowed file extension.
Extension (string) – [REQUIRED]
The file extension. The extension must be between 1 and 10 characters and can contain only alphanumeric characters, hyphens, and underscores.
- Return type:
dict
- Returns:
Response Syntax
{ 'InstanceId': 'string', 'AttachmentScope': 'EMAIL'|'CHAT'|'CASE'|'TASK', 'MaximumSizeLimitInBytes': 123, 'ExtensionConfiguration': { 'AllowedExtensions': [ { 'Extension': 'string' }, ] }, 'LastModifiedTime': datetime(2015, 1, 1) }
Response Structure
(dict) –
InstanceId (string) –
The identifier of the Amazon Connect instance.
AttachmentScope (string) –
The scope of the attachment.
MaximumSizeLimitInBytes (integer) –
The maximum size limit for attached files in bytes.
ExtensionConfiguration (dict) –
The configuration for allowed file extensions.
AllowedExtensions (list) –
The list of allowed file extensions.
(dict) –
Information about an allowed file extension.
Extension (string) –
The file extension. The extension must be between 1 and 10 characters and can contain only alphanumeric characters, hyphens, and underscores.
LastModifiedTime (datetime) –
The timestamp when the configuration was last modified.
Exceptions
Connect.Client.exceptions.InvalidParameterExceptionConnect.Client.exceptions.ResourceNotFoundExceptionConnect.Client.exceptions.ThrottlingExceptionConnect.Client.exceptions.InternalServiceExceptionConnect.Client.exceptions.AccessDeniedException