/AWS1/IF_AMP=>CREATERULEGROUPSNAMESPACE()¶
About CreateRuleGroupsNamespace¶
The CreateRuleGroupsNamespace operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
The combined length of a rule group namespace and a rule group name cannot exceed 721 UTF-8 bytes.
Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use PutRuleGroupsNamespace.
Method Signature¶
METHODS /AWS1/IF_AMP~CREATERULEGROUPSNAMESPACE
IMPORTING
!IV_WORKSPACEID TYPE /AWS1/AMPWORKSPACEID OPTIONAL
!IV_NAME TYPE /AWS1/AMPRULEGRPSNAMESPACENAME OPTIONAL
!IV_DATA TYPE /AWS1/AMPRULEGRPSNAMESPACEDATA OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/AMPIDEMPOTENCYTOKEN OPTIONAL
!IT_TAGS TYPE /AWS1/CL_AMPTAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ampcrerlgrsnamespac01
RAISING
/AWS1/CX_AMPACCESSDENIEDEX
/AWS1/CX_AMPCONFLICTEXCEPTION
/AWS1/CX_AMPINTERNALSERVEREX
/AWS1/CX_AMPRESOURCENOTFOUNDEX
/AWS1/CX_AMPSERVICEQUOTAEXCDEX
/AWS1/CX_AMPTHROTTLINGEX
/AWS1/CX_AMPVALIDATIONEX
/AWS1/CX_AMPCLIENTEXC
/AWS1/CX_AMPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_workspaceid TYPE /AWS1/AMPWORKSPACEID /AWS1/AMPWORKSPACEID¶
The ID of the workspace to add the rule groups namespace.
iv_name TYPE /AWS1/AMPRULEGRPSNAMESPACENAME /AWS1/AMPRULEGRPSNAMESPACENAME¶
The name for the new rule groups namespace.
iv_data TYPE /AWS1/AMPRULEGRPSNAMESPACEDATA /AWS1/AMPRULEGRPSNAMESPACEDATA¶
The rules file to use in the new namespace.
Contains the base64-encoded version of the YAML rules file.
For details about the rule groups namespace structure, see RuleGroupsNamespaceData.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/AMPIDEMPOTENCYTOKEN /AWS1/AMPIDEMPOTENCYTOKEN¶
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
it_tags TYPE /AWS1/CL_AMPTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The list of tag keys and values to associate with the rule groups namespace.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ampcrerlgrsnamespac01 /AWS1/CL_AMPCRERLGRSNAMESPAC01¶
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->createrulegroupsnamespace(
it_tags = VALUE /aws1/cl_amptagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_amptagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_amptagmap_w( |string| )
)
)
)
iv_clienttoken = |string|
iv_data = '5347567362473873563239796247513D'
iv_name = |string|
iv_workspaceid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_rulegroupsnamespacename = lo_result->get_name( ).
lv_rulegroupsnamespacearn = lo_result->get_arn( ).
lo_rulegroupsnamespacestat = lo_result->get_status( ).
IF lo_rulegroupsnamespacestat IS NOT INITIAL.
lv_rulegroupsnamespacestat_1 = lo_rulegroupsnamespacestat->get_statuscode( ).
lv_string = lo_rulegroupsnamespacestat->get_statusreason( ).
ENDIF.
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.