/AWS1/IF_SGG=>EXPORTEARTHOBSERVATIONJOB()¶
About ExportEarthObservationJob¶
Use this operation to export results of an Earth Observation job and optionally source images used as input to the EOJ to an Amazon S3 location.
Method Signature¶
METHODS /AWS1/IF_SGG~EXPORTEARTHOBSERVATIONJOB
IMPORTING
!IV_ARN TYPE /AWS1/SGGEARTHOBSERVATIONJOB00 OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/SGGSTRING OPTIONAL
!IV_EXECUTIONROLEARN TYPE /AWS1/SGGEXECUTIONROLEARN OPTIONAL
!IO_OUTPUTCONFIG TYPE REF TO /AWS1/CL_SGGOUTPUTCONFIGINPUT OPTIONAL
!IV_EXPORTSOURCEIMAGES TYPE /AWS1/SGGBOOLEAN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sggexpearthobservat01
RAISING
/AWS1/CX_SGGACCESSDENIEDEX
/AWS1/CX_SGGCONFLICTEXCEPTION
/AWS1/CX_SGGINTERNALSERVEREX
/AWS1/CX_SGGRESOURCENOTFOUNDEX
/AWS1/CX_SGGSERVICEQUOTAEXCDEX
/AWS1/CX_SGGTHROTTLINGEX
/AWS1/CX_SGGVALIDATIONEX
/AWS1/CX_SGGCLIENTEXC
/AWS1/CX_SGGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_arn TYPE /AWS1/SGGEARTHOBSERVATIONJOB00 /AWS1/SGGEARTHOBSERVATIONJOB00¶
The input Amazon Resource Name (ARN) of the Earth Observation job being exported.
iv_executionrolearn TYPE /AWS1/SGGEXECUTIONROLEARN /AWS1/SGGEXECUTIONROLEARN¶
The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
io_outputconfig TYPE REF TO /AWS1/CL_SGGOUTPUTCONFIGINPUT /AWS1/CL_SGGOUTPUTCONFIGINPUT¶
An object containing information about the output file.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/SGGSTRING /AWS1/SGGSTRING¶
A unique token that guarantees that the call to this API is idempotent.
iv_exportsourceimages TYPE /AWS1/SGGBOOLEAN /AWS1/SGGBOOLEAN¶
The source images provided to the Earth Observation job being exported.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sggexpearthobservat01 /AWS1/CL_SGGEXPEARTHOBSERVAT01¶
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->exportearthobservationjob(
io_outputconfig = new /aws1/cl_sggoutputconfiginput(
io_s3data = new /aws1/cl_sggexports3datainput(
iv_kmskeyid = |string|
iv_s3uri = |string|
)
)
iv_arn = |string|
iv_clienttoken = |string|
iv_executionrolearn = |string|
iv_exportsourceimages = ABAP_TRUE
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_earthobservationjobarn = lo_result->get_arn( ).
lv_timestamp = lo_result->get_creationtime( ).
lv_earthobservationjobexpo = lo_result->get_exportstatus( ).
lv_executionrolearn = lo_result->get_executionrolearn( ).
lo_outputconfiginput = lo_result->get_outputconfig( ).
IF lo_outputconfiginput IS NOT INITIAL.
lo_exports3datainput = lo_outputconfiginput->get_s3data( ).
IF lo_exports3datainput IS NOT INITIAL.
lv_s3uri = lo_exports3datainput->get_s3uri( ).
lv_kmskey = lo_exports3datainput->get_kmskeyid( ).
ENDIF.
ENDIF.
lv_boolean = lo_result->get_exportsourceimages( ).
ENDIF.