start_attached_file_upload
¶
start_attached_file_upload(
instance_id: InstanceId,
file_name: FileName,
file_size_in_bytes: FileSizeInBytes,
file_use_case_type: FileUseCaseType,
associated_resource_arn: ARN,
*,
config_overrides: Optional[ConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
url_expiry_in_seconds: Optional[URLExpiryInSeconds] = None,
created_by: Optional[CreatedByInfo] = None,
tags: Optional[TagMap] = None,
) -> StartAttachedFileUploadResponse
Provides a pre-signed Amazon S3 URL in response for uploading your content.
You may only use this API to upload attachments to a Connect Customer Case, Connect Customer Email, or Connect Customer Task.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
-
instance_id(InstanceId) –The unique identifier of the Connect Customer instance.
-
file_name(FileName) –A case-sensitive name of the attached file being uploaded.
-
file_size_in_bytes(FileSizeInBytes) –The size of the attached file in bytes.
-
url_expiry_in_seconds(Optional[URLExpiryInSeconds], default:None) –Optional override for the expiry of the pre-signed S3 URL in seconds. The default value is 300.
-
file_use_case_type(FileUseCaseType) –The use case for the file.
Only
ATTACHMENTSare supported. -
associated_resource_arn(ARN) – -
created_by(Optional[CreatedByInfo], default:None) –Represents the identity that created the file.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example,
{ "Tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidRequestException–The request is not valid.
-
ResourceConflictException–A resource already has that name.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 | |