/AWS1/IF_MQ=>CREATECONFIGURATION()¶
About CreateConfiguration¶
Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
Method Signature¶
METHODS /AWS1/IF_MQ~CREATECONFIGURATION
IMPORTING
!IV_AUTHENTICATIONSTRATEGY TYPE /AWS1/MQ_AUTHNTCTNSTRATEGY OPTIONAL
!IV_ENGINETYPE TYPE /AWS1/MQ_ENGINETYPE OPTIONAL
!IV_ENGINEVERSION TYPE /AWS1/MQ___STRING OPTIONAL
!IV_NAME TYPE /AWS1/MQ___STRING OPTIONAL
!IT_TAGS TYPE /AWS1/CL_MQ___MAPOF__STRING_W=>TT___MAPOF__STRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mq_createconfresponse
RAISING
/AWS1/CX_MQ_BADREQUESTEX
/AWS1/CX_MQ_CONFLICTEXCEPTION
/AWS1/CX_MQ_FORBIDDENEXCEPTION
/AWS1/CX_MQ_INTERNALSERVERER00
/AWS1/CX_MQ_CLIENTEXC
/AWS1/CX_MQ_SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_enginetype TYPE /AWS1/MQ_ENGINETYPE /AWS1/MQ_ENGINETYPE¶
Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
iv_name TYPE /AWS1/MQ___STRING /AWS1/MQ___STRING¶
Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.
Optional arguments:¶
iv_authenticationstrategy TYPE /AWS1/MQ_AUTHNTCTNSTRATEGY /AWS1/MQ_AUTHNTCTNSTRATEGY¶
Optional. The authentication strategy associated with the configuration. The default is SIMPLE.
iv_engineversion TYPE /AWS1/MQ___STRING /AWS1/MQ___STRING¶
The broker engine version. Defaults to the latest available version for the specified broker engine type. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
it_tags TYPE /AWS1/CL_MQ___MAPOF__STRING_W=>TT___MAPOF__STRING TT___MAPOF__STRING¶
Create tags when creating the configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mq_createconfresponse /AWS1/CL_MQ_CREATECONFRESPONSE¶
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->createconfiguration(
it_tags = VALUE /aws1/cl_mq___mapof__string_w=>tt___mapof__string(
(
VALUE /aws1/cl_mq___mapof__string_w=>ts___mapof__string_maprow(
key = |string|
value = new /aws1/cl_mq___mapof__string_w( |string| )
)
)
)
iv_authenticationstrategy = |string|
iv_enginetype = |string|
iv_engineversion = |string|
iv_name = |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_authenticationstrategy = lo_result->get_authenticationstrategy( ).
lv___timestampiso8601 = lo_result->get_created( ).
lv___string = lo_result->get_id( ).
lo_configurationrevision = lo_result->get_latestrevision( ).
IF lo_configurationrevision IS NOT INITIAL.
lv___timestampiso8601 = lo_configurationrevision->get_created( ).
lv___string = lo_configurationrevision->get_description( ).
lv___integer = lo_configurationrevision->get_revision( ).
ENDIF.
lv___string = lo_result->get_name( ).
ENDIF.