/AWS1/CL_CNT=>ASSOCINSTANCESTORAGECONFIG()
¶
About AssociateInstanceStorageConfig¶
This API is in preview release for Amazon Connect and is subject to change.
Associates a storage resource type for the first time. You can only associate one type of storage configuration in a single call. This means, for example, that you can't define an instance with multiple S3 buckets for storing chat transcripts.
This API does not create a resource that doesn't exist. It only associates it to the instance. Ensure that the resource being specified in the storage configuration, like an S3 bucket, exists when being used for association.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_instanceid
TYPE /AWS1/CNTINSTANCEID
/AWS1/CNTINSTANCEID
¶
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
iv_resourcetype
TYPE /AWS1/CNTINSTSTRGRESOURCETYPE
/AWS1/CNTINSTSTRGRESOURCETYPE
¶
A valid resource type. To enable streaming for real-time analysis of contacts, use the following types:
For chat contacts, use
REAL_TIME_CONTACT_ANALYSIS_CHAT_SEGMENTS
.For voice contacts, use
REAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS
.
REAL_TIME_CONTACT_ANALYSIS_SEGMENTS
is deprecated, but it is still supported and will apply only to VOICE channel contacts. UseREAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS
for voice contacts moving forward.If you have previously associated a stream with
REAL_TIME_CONTACT_ANALYSIS_SEGMENTS
, no action is needed to update the stream toREAL_TIME_CONTACT_ANALYSIS_VOICE_SEGMENTS
.
io_storageconfig
TYPE REF TO /AWS1/CL_CNTINSTSTORAGECONFIG
/AWS1/CL_CNTINSTSTORAGECONFIG
¶
A valid storage type.
Optional arguments:¶
iv_clienttoken
TYPE /AWS1/CNTCLIENTTOKEN
/AWS1/CNTCLIENTTOKEN
¶
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.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_cntasscinststrgcfgrsp
/AWS1/CL_CNTASSCINSTSTRGCFGRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_cnt~associnstancestorageconfig(
io_storageconfig = new /aws1/cl_cntinststorageconfig(
io_kinesisfirehoseconfig = new /aws1/cl_cntkinesisfirehosecfg( |string| )
io_kinesisstreamconfig = new /aws1/cl_cntkinesisstreamcfg( |string| )
io_kinesisvideostreamconfig = new /aws1/cl_cntkinesisvideostrm00(
io_encryptionconfig = new /aws1/cl_cntencryptionconfig(
iv_encryptiontype = |string|
iv_keyid = |string|
)
iv_prefix = |string|
iv_retentionperiodhours = 123
)
io_s3config = new /aws1/cl_cnts3config(
io_encryptionconfig = new /aws1/cl_cntencryptionconfig(
iv_encryptiontype = |string|
iv_keyid = |string|
)
iv_bucketname = |string|
iv_bucketprefix = |string|
)
iv_associationid = |string|
iv_storagetype = |string|
)
iv_clienttoken = |string|
iv_instanceid = |string|
iv_resourcetype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_associationid = lo_result->get_associationid( ).
ENDIF.