/AWS1/CL_BUP=>CREATEBACKUPVAULT()
¶
About CreateBackupVault¶
Creates a logical container where backups are stored. A CreateBackupVault
request includes a name, optionally one or more resource tags, an encryption key, and a
request ID.
Do not include sensitive data, such as passport numbers, in the name of a backup vault.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_backupvaultname
TYPE /AWS1/BUPBACKUPVAULTNAME
/AWS1/BUPBACKUPVAULTNAME
¶
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of letters, numbers, and hyphens.
Optional arguments:¶
it_backupvaulttags
TYPE /AWS1/CL_BUPTAGS_W=>TT_TAGS
TT_TAGS
¶
The tags to assign to the backup vault.
iv_encryptionkeyarn
TYPE /AWS1/BUPARN
/AWS1/BUPARN
¶
The server-side encryption key that is used to protect your backups; for example,
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
.
iv_creatorrequestid
TYPE /AWS1/BUPSTRING
/AWS1/BUPSTRING
¶
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_bupcrebackupvaultout
/AWS1/CL_BUPCREBACKUPVAULTOUT
¶
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_bup~createbackupvault(
it_backupvaulttags = 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_backupvaultname = |string|
iv_creatorrequestid = |string|
iv_encryptionkeyarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_backupvaultname = lo_result->get_backupvaultname( ).
lv_arn = lo_result->get_backupvaultarn( ).
lv_timestamp = lo_result->get_creationdate( ).
ENDIF.