/AWS1/IF_GGS=>CREATECOREDEFINITIONVERSION()¶
About CreateCoreDefinitionVersion¶
Creates a version of a core definition that has already been defined. Greengrass groups must each contain exactly one Greengrass core.
Method Signature¶
METHODS /AWS1/IF_GGS~CREATECOREDEFINITIONVERSION
IMPORTING
!IV_AMZNCLIENTTOKEN TYPE /AWS1/GGS__STRING OPTIONAL
!IV_COREDEFINITIONID TYPE /AWS1/GGS__STRING OPTIONAL
!IT_CORES TYPE /AWS1/CL_GGSCORE=>TT___LISTOFCORE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ggscrecoredefnvrsrsp
RAISING
/AWS1/CX_GGSBADREQUESTEX
/AWS1/CX_GGSCLIENTEXC
/AWS1/CX_GGSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_coredefinitionid TYPE /AWS1/GGS__STRING /AWS1/GGS__STRING¶
The ID of the core definition.
Optional arguments:¶
iv_amznclienttoken TYPE /AWS1/GGS__STRING /AWS1/GGS__STRING¶
A client token used to correlate requests and responses.
it_cores TYPE /AWS1/CL_GGSCORE=>TT___LISTOFCORE TT___LISTOFCORE¶
A list of cores in the core definition version.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ggscrecoredefnvrsrsp /AWS1/CL_GGSCRECOREDEFNVRSRSP¶
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->createcoredefinitionversion(
it_cores = VALUE /aws1/cl_ggscore=>tt___listofcore(
(
new /aws1/cl_ggscore(
iv_certificatearn = |string|
iv_id = |string|
iv_syncshadow = ABAP_TRUE
iv_thingarn = |string|
)
)
)
iv_amznclienttoken = |string|
iv_coredefinitionid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_arn( ).
lv___string = lo_result->get_creationtimestamp( ).
lv___string = lo_result->get_id( ).
lv___string = lo_result->get_version( ).
ENDIF.