/AWS1/IF_GLU=>CREATETRIGGER()¶
About CreateTrigger¶
Creates a new trigger.
Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Amazon Web Services Secrets Manager or other secret management mechanism if you intend to keep them within the Job.
Method Signature¶
METHODS /AWS1/IF_GLU~CREATETRIGGER
IMPORTING
!IV_NAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_WORKFLOWNAME TYPE /AWS1/GLUNAMESTRING OPTIONAL
!IV_TYPE TYPE /AWS1/GLUTRIGGERTYPE OPTIONAL
!IV_SCHEDULE TYPE /AWS1/GLUGENERICSTRING OPTIONAL
!IO_PREDICATE TYPE REF TO /AWS1/CL_GLUPREDICATE OPTIONAL
!IT_ACTIONS TYPE /AWS1/CL_GLUACTION=>TT_ACTIONLIST OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/GLUDESCRIPTIONSTRING OPTIONAL
!IV_STARTONCREATION TYPE /AWS1/GLUBOOLEANVALUE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_GLUTAGSMAP_W=>TT_TAGSMAP OPTIONAL
!IO_EVENTBATCHINGCONDITION TYPE REF TO /AWS1/CL_GLUEVENTBATCHINGCOND OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_glucreatetriggerrsp
RAISING
/AWS1/CX_GLUALREADYEXISTSEX
/AWS1/CX_GLUCONCURRENTMODEX
/AWS1/CX_GLUENTITYNOTFOUNDEX
/AWS1/CX_GLUIDEMPOTENTPRMMIS00
/AWS1/CX_GLUINTERNALSERVICEEX
/AWS1/CX_GLUINVALIDINPUTEX
/AWS1/CX_GLUOPERATIONTIMEOUTEX
/AWS1/CX_GLURESRCNUMLMTEXCDEX
/AWS1/CX_GLUCLIENTEXC
/AWS1/CX_GLUSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
The name of the trigger.
iv_type TYPE /AWS1/GLUTRIGGERTYPE /AWS1/GLUTRIGGERTYPE¶
The type of the new trigger.
it_actions TYPE /AWS1/CL_GLUACTION=>TT_ACTIONLIST TT_ACTIONLIST¶
The actions initiated by this trigger when it fires.
Optional arguments:¶
iv_workflowname TYPE /AWS1/GLUNAMESTRING /AWS1/GLUNAMESTRING¶
The name of the workflow associated with the trigger.
iv_schedule TYPE /AWS1/GLUGENERICSTRING /AWS1/GLUGENERICSTRING¶
A
cronexpression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify:cron(15 12 * * ? *).This field is required when the trigger type is SCHEDULED.
io_predicate TYPE REF TO /AWS1/CL_GLUPREDICATE /AWS1/CL_GLUPREDICATE¶
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is
CONDITIONAL.
iv_description TYPE /AWS1/GLUDESCRIPTIONSTRING /AWS1/GLUDESCRIPTIONSTRING¶
A description of the new trigger.
iv_startoncreation TYPE /AWS1/GLUBOOLEANVALUE /AWS1/GLUBOOLEANVALUE¶
Set to
trueto startSCHEDULEDandCONDITIONALtriggers when created. True is not supported forON_DEMANDtriggers.
it_tags TYPE /AWS1/CL_GLUTAGSMAP_W=>TT_TAGSMAP TT_TAGSMAP¶
The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
io_eventbatchingcondition TYPE REF TO /AWS1/CL_GLUEVENTBATCHINGCOND /AWS1/CL_GLUEVENTBATCHINGCOND¶
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_glucreatetriggerrsp /AWS1/CL_GLUCREATETRIGGERRSP¶
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->createtrigger(
io_eventbatchingcondition = new /aws1/cl_glueventbatchingcond(
iv_batchsize = 123
iv_batchwindow = 123
)
io_predicate = new /aws1/cl_glupredicate(
it_conditions = VALUE /aws1/cl_glucondition=>tt_conditionlist(
(
new /aws1/cl_glucondition(
iv_crawlername = |string|
iv_crawlstate = |string|
iv_jobname = |string|
iv_logicaloperator = |string|
iv_state = |string|
)
)
)
iv_logical = |string|
)
it_actions = VALUE /aws1/cl_gluaction=>tt_actionlist(
(
new /aws1/cl_gluaction(
io_notificationproperty = new /aws1/cl_glunotifproperty( 123 )
it_arguments = VALUE /aws1/cl_glugenericmap_w=>tt_genericmap(
(
VALUE /aws1/cl_glugenericmap_w=>ts_genericmap_maprow(
value = new /aws1/cl_glugenericmap_w( |string| )
key = |string|
)
)
)
iv_crawlername = |string|
iv_jobname = |string|
iv_securityconfiguration = |string|
iv_timeout = 123
)
)
)
it_tags = VALUE /aws1/cl_glutagsmap_w=>tt_tagsmap(
(
VALUE /aws1/cl_glutagsmap_w=>ts_tagsmap_maprow(
key = |string|
value = new /aws1/cl_glutagsmap_w( |string| )
)
)
)
iv_description = |string|
iv_name = |string|
iv_schedule = |string|
iv_startoncreation = ABAP_TRUE
iv_type = |string|
iv_workflowname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_namestring = lo_result->get_name( ).
ENDIF.