/AWS1/IF_BUP=>CREATETIERINGCONFIGURATION()¶
About CreateTieringConfiguration¶
Creates a tiering configuration.
A tiering configuration enables automatic movement of backup data to a lower-cost storage tier based on the age of backed-up objects in the backup vault.
Each vault can only have one vault-specific tiering configuration, in addition to any global configuration that applies to all vaults.
Method Signature¶
METHODS /AWS1/IF_BUP~CREATETIERINGCONFIGURATION
IMPORTING
!IO_TIERINGCONFIGURATION TYPE REF TO /AWS1/CL_BUPTIERCONFINPFORCRE OPTIONAL
!IT_TIERINGCONFIGURATIONTAGS TYPE /AWS1/CL_BUPTAGS_W=>TT_TAGS OPTIONAL
!IV_CREATORREQUESTID TYPE /AWS1/BUPCREATORREQUESTID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bupcreatetierconfout
RAISING
/AWS1/CX_BUPALREADYEXISTSEX
/AWS1/CX_BUPCONFLICTEXCEPTION
/AWS1/CX_BUPINVPARAMVALUEEX
/AWS1/CX_BUPLIMITEXCEEDEDEX
/AWS1/CX_BUPMISSINGPARAMVALEX
/AWS1/CX_BUPSERVICEUNAVAILEX
/AWS1/CX_BUPCLIENTEXC
/AWS1/CX_BUPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_tieringconfiguration TYPE REF TO /AWS1/CL_BUPTIERCONFINPFORCRE /AWS1/CL_BUPTIERCONFINPFORCRE¶
A tiering configuration must contain a unique
TieringConfigurationNamestring you create and must contain aBackupVaultNameandResourceSelection. You may optionally include aCreatorRequestIdstring.The
TieringConfigurationNameis a unique string that is the name of the tiering configuration. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
Optional arguments:¶
it_tieringconfigurationtags TYPE /AWS1/CL_BUPTAGS_W=>TT_TAGS TT_TAGS¶
The tags to assign to the tiering configuration.
iv_creatorrequestid TYPE /AWS1/BUPCREATORREQUESTID /AWS1/BUPCREATORREQUESTID¶
This is a unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bupcreatetierconfout /AWS1/CL_BUPCREATETIERCONFOUT¶
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->createtieringconfiguration(
io_tieringconfiguration = new /aws1/cl_buptierconfinpforcre(
it_resourceselection = VALUE /aws1/cl_bupresourceselection=>tt_resourceselections(
(
new /aws1/cl_bupresourceselection(
it_resources = VALUE /aws1/cl_bupresourcearns_w=>tt_resourcearns(
( new /aws1/cl_bupresourcearns_w( |string| ) )
)
iv_resourcetype = |string|
iv_tieringdownsettingsindays = 123
)
)
)
iv_backupvaultname = |string|
iv_tieringconfigurationname = |string|
)
it_tieringconfigurationtags = VALUE /aws1/cl_buptags_w=>tt_tags(
(
VALUE /aws1/cl_buptags_w=>ts_tags_maprow(
key = |string|
value = new /aws1/cl_buptags_w( |string| )
)
)
)
iv_creatorrequestid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_arn = lo_result->get_tieringconfigurationarn( ).
lv_string = lo_result->get_tieringconfigurationname( ).
lv_timestamp = lo_result->get_creationtime( ).
ENDIF.