/AWS1/IF_SSM=>REGISTERDEFAULTPATCHBASELINE()¶
About RegisterDefaultPatchBaseline¶
Defines the default patch baseline for the relevant operating system.
To reset the Amazon Web Services-predefined patch baseline as the default, specify the full patch baseline
Amazon Resource Name (ARN) as the baseline ID value. For example, for CentOS, specify
arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0574b43a65ea646ed instead of
pb-0574b43a65ea646ed.
Method Signature¶
METHODS /AWS1/IF_SSM~REGISTERDEFAULTPATCHBASELINE
IMPORTING
!IV_BASELINEID TYPE /AWS1/SSMBASELINEID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ssmregdefpatchbasel01
RAISING
/AWS1/CX_SSMDOESNOTEXISTEX
/AWS1/CX_SSMINTERNALSERVERERR
/AWS1/CX_SSMINVALIDRESOURCEID
/AWS1/CX_SSMCLIENTEXC
/AWS1/CX_SSMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_baselineid TYPE /AWS1/SSMBASELINEID /AWS1/SSMBASELINEID¶
The ID of the patch baseline that should be the default patch baseline.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ssmregdefpatchbasel01 /AWS1/CL_SSMREGDEFPATCHBASEL01¶
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->registerdefaultpatchbaseline( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_baselineid = lo_result->get_baselineid( ).
ENDIF.