/AWS1/IF_TSW=>UPDATEDATABASE()¶
About UpdateDatabase¶
Modifies the KMS key for an existing database. While updating the
database, you must specify the database name and the identifier of the new KMS key to be used (KmsKeyId). If there are any concurrent
UpdateDatabase requests, first writer wins.
See code sample for details.
Method Signature¶
METHODS /AWS1/IF_TSW~UPDATEDATABASE
IMPORTING
!IV_DATABASENAME TYPE /AWS1/TSWRESOURCENAME OPTIONAL
!IV_KMSKEYID TYPE /AWS1/TSWSTRINGVALUE2048 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_tswupdatedatabasersp
RAISING
/AWS1/CX_TSWACCESSDENIEDEX
/AWS1/CX_TSWINTERNALSERVEREX
/AWS1/CX_TSWINVALIDENDPOINTEX
/AWS1/CX_TSWRESOURCENOTFOUNDEX
/AWS1/CX_TSWSERVICEQUOTAEXCDEX
/AWS1/CX_TSWTHROTTLINGEX
/AWS1/CX_TSWVALIDATIONEX
/AWS1/CX_TSWCLIENTEXC
/AWS1/CX_TSWSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_databasename TYPE /AWS1/TSWRESOURCENAME /AWS1/TSWRESOURCENAME¶
The name of the database.
iv_kmskeyid TYPE /AWS1/TSWSTRINGVALUE2048 /AWS1/TSWSTRINGVALUE2048¶
The identifier of the new KMS key (
KmsKeyId) to be used to encrypt the data stored in the database. If theKmsKeyIdcurrently registered with the database is the same as theKmsKeyIdin the request, there will not be any update.You can specify the
KmsKeyIdusing any of the following:
Key ID:
1234abcd-12ab-34cd-56ef-1234567890abKey ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890abAlias name:
alias/ExampleAliasAlias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
RETURNING¶
oo_output TYPE REF TO /aws1/cl_tswupdatedatabasersp /AWS1/CL_TSWUPDATEDATABASERSP¶
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->updatedatabase(
iv_databasename = |string|
iv_kmskeyid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_database = lo_result->get_database( ).
IF lo_database IS NOT INITIAL.
lv_string = lo_database->get_arn( ).
lv_resourcename = lo_database->get_databasename( ).
lv_long = lo_database->get_tablecount( ).
lv_stringvalue2048 = lo_database->get_kmskeyid( ).
lv_date = lo_database->get_creationtime( ).
lv_date = lo_database->get_lastupdatedtime( ).
ENDIF.
ENDIF.