/AWS1/IF_S3F=>PUTSYNCCONFIGURATION()¶
About PutSynchronizationConfiguration¶
Creates or updates the synchronization configuration for the specified S3 File System, including import data rules and expiration data rules.
Method Signature¶
METHODS /AWS1/IF_S3F~PUTSYNCCONFIGURATION
IMPORTING
!IV_FILESYSTEMID TYPE /AWS1/S3FFILESYSTEMID OPTIONAL
!IV_LATESTVERSIONNUMBER TYPE /AWS1/S3FINTEGER OPTIONAL
!IT_IMPORTDATARULES TYPE /AWS1/CL_S3FIMPORTDATARULE=>TT_IMPORTDATARULELIST OPTIONAL
!IT_EXPIRATIONDATARULES TYPE /AWS1/CL_S3FEXPIRATIONDATARULE=>TT_EXPIRATIONDATARULELIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_s3fputsyncconfrsp
RAISING
/AWS1/CX_S3FTHROTTLINGEX
/AWS1/CX_S3FCONFLICTEXCEPTION
/AWS1/CX_S3FINTERNALSERVEREX
/AWS1/CX_S3FRESOURCENOTFOUNDEX
/AWS1/CX_S3FVLDTNEXCEPTION
/AWS1/CX_S3FCLIENTEXC
/AWS1/CX_S3FSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_filesystemid TYPE /AWS1/S3FFILESYSTEMID /AWS1/S3FFILESYSTEMID¶
The ID or Amazon Resource Name (ARN) of the S3 File System to configure synchronization for.
it_importdatarules TYPE /AWS1/CL_S3FIMPORTDATARULE=>TT_IMPORTDATARULELIST TT_IMPORTDATARULELIST¶
An array of import data rules that control how data is imported from S3 into the file system.
it_expirationdatarules TYPE /AWS1/CL_S3FEXPIRATIONDATARULE=>TT_EXPIRATIONDATARULELIST TT_EXPIRATIONDATARULELIST¶
An array of expiration data rules that control when cached data expires from the file system.
Optional arguments:¶
iv_latestversionnumber TYPE /AWS1/S3FINTEGER /AWS1/S3FINTEGER¶
The version number of the current synchronization configuration. Omit this value when creating a synchronization configuration for the first time. For subsequent updates, provide this value for optimistic concurrency control. If the version number does not match the current configuration, the request fails with a
ConflictException.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_s3fputsyncconfrsp /AWS1/CL_S3FPUTSYNCCONFRSP¶
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->putsyncconfiguration(
it_expirationdatarules = VALUE /aws1/cl_s3fexpirationdatarule=>tt_expirationdatarulelist(
( new /aws1/cl_s3fexpirationdatarule( 123 ) )
)
it_importdatarules = VALUE /aws1/cl_s3fimportdatarule=>tt_importdatarulelist(
(
new /aws1/cl_s3fimportdatarule(
iv_prefix = |string|
iv_sizelessthan = 123
iv_trigger = |string|
)
)
)
iv_filesystemid = |string|
iv_latestversionnumber = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.