/AWS1/IF_IMG=>CREATEDISTRIBUTIONCONF()¶
About CreateDistributionConfiguration¶
Creates a new distribution configuration. Distribution configurations define and configure the outputs of your pipeline.
Method Signature¶
METHODS /AWS1/IF_IMG~CREATEDISTRIBUTIONCONF
IMPORTING
!IV_NAME TYPE /AWS1/IMGRESOURCENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/IMGNONEMPTYSTRING OPTIONAL
!IT_DISTRIBUTIONS TYPE /AWS1/CL_IMGDISTRIBUTION=>TT_DISTRIBUTIONLIST OPTIONAL
!IT_TAGS TYPE /AWS1/CL_IMGTAGMAP_W=>TT_TAGMAP OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/IMGCLIENTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_imgcredistributionc01
RAISING
/AWS1/CX_IMGCALLRLIMEXCEEDEDEX
/AWS1/CX_IMGCLIENTEXCEPTION
/AWS1/CX_IMGFORBIDDENEXCEPTION
/AWS1/CX_IMGIDEMPOTENTPRMMIS00
/AWS1/CX_IMGINVPRMCOMBINATIO00
/AWS1/CX_IMGINVALIDREQUESTEX
/AWS1/CX_IMGRESRCALRDYEXISTSEX
/AWS1/CX_IMGRESOURCEINUSEEX
/AWS1/CX_IMGSERVICEEXCEPTION
/AWS1/CX_IMGSERVICEQUOTAEXCDEX
/AWS1/CX_IMGSERVICEUNAVAILEX
/AWS1/CX_IMGCLIENTEXC
/AWS1/CX_IMGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/IMGRESOURCENAME /AWS1/IMGRESOURCENAME¶
The name of the distribution configuration.
it_distributions TYPE /AWS1/CL_IMGDISTRIBUTION=>TT_DISTRIBUTIONLIST TT_DISTRIBUTIONLIST¶
The distributions of the distribution configuration.
iv_clienttoken TYPE /AWS1/IMGCLIENTTOKEN /AWS1/IMGCLIENTTOKEN¶
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
Optional arguments:¶
iv_description TYPE /AWS1/IMGNONEMPTYSTRING /AWS1/IMGNONEMPTYSTRING¶
The description of the distribution configuration.
it_tags TYPE /AWS1/CL_IMGTAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
The tags of the distribution configuration.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_imgcredistributionc01 /AWS1/CL_IMGCREDISTRIBUTIONC01¶
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->createdistributionconf(
it_distributions = VALUE /aws1/cl_imgdistribution=>tt_distributionlist(
(
new /aws1/cl_imgdistribution(
io_amidistributionconf = new /aws1/cl_imgamidistributionc00(
io_launchpermission = new /aws1/cl_imglaunchpermconf(
it_organizationalunitarns = VALUE /aws1/cl_imgorgalunitarnlist_w=>tt_organizationalunitarnlist(
( new /aws1/cl_imgorgalunitarnlist_w( |string| ) )
)
it_organizationarns = VALUE /aws1/cl_imgorgarnlist_w=>tt_organizationarnlist(
( new /aws1/cl_imgorgarnlist_w( |string| ) )
)
it_usergroups = VALUE /aws1/cl_imgstringlist_w=>tt_stringlist(
( new /aws1/cl_imgstringlist_w( |string| ) )
)
it_userids = VALUE /aws1/cl_imgaccountlist_w=>tt_accountlist(
( new /aws1/cl_imgaccountlist_w( |string| ) )
)
)
it_amitags = VALUE /aws1/cl_imgtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_imgtagmap_w=>ts_tagmap_maprow(
value = new /aws1/cl_imgtagmap_w( |string| )
key = |string|
)
)
)
it_targetaccountids = VALUE /aws1/cl_imgaccountlist_w=>tt_accountlist(
( new /aws1/cl_imgaccountlist_w( |string| ) )
)
iv_description = |string|
iv_kmskeyid = |string|
iv_name = |string|
)
io_containerdistributionconf = new /aws1/cl_imgcontainerdistrib00(
io_targetrepository = new /aws1/cl_imgtgtcontainerrepo00(
iv_repositoryname = |string|
iv_service = |string|
)
it_containertags = VALUE /aws1/cl_imgstringlist_w=>tt_stringlist(
( new /aws1/cl_imgstringlist_w( |string| ) )
)
iv_description = |string|
)
io_s3exportconfiguration = new /aws1/cl_imgs3exportconf(
iv_diskimageformat = |string|
iv_rolename = |string|
iv_s3bucket = |string|
iv_s3prefix = |string|
)
it_fastlaunchconfigurations = VALUE /aws1/cl_imgfastlaunchconf=>tt_fastlaunchconfigurationlist(
(
new /aws1/cl_imgfastlaunchconf(
io_launchtemplate = new /aws1/cl_imgfastlaunchlaunch00(
iv_launchtemplateid = |string|
iv_launchtemplatename = |string|
iv_launchtemplateversion = |string|
)
io_snapshotconfiguration = new /aws1/cl_imgfastlaunchsnapconf( 123 )
iv_accountid = |string|
iv_enabled = ABAP_TRUE
iv_maxparallellaunches = 123
)
)
)
it_launchtemplateconfs = VALUE /aws1/cl_imglaunchtemplateconf=>tt_launchtemplateconflist(
(
new /aws1/cl_imglaunchtemplateconf(
iv_accountid = |string|
iv_launchtemplateid = |string|
iv_setdefaultversion = ABAP_TRUE
)
)
)
it_licenseconfigurationarns = VALUE /aws1/cl_imglicenseconfarnls00=>tt_licenseconfigurationarnlist(
( new /aws1/cl_imglicenseconfarnls00( |string| ) )
)
it_ssmparameterconfs = VALUE /aws1/cl_imgssmparameterconf=>tt_ssmparameterconflist(
(
new /aws1/cl_imgssmparameterconf(
iv_amiaccountid = |string|
iv_datatype = |string|
iv_parametername = |string|
)
)
)
iv_region = |string|
)
)
)
it_tags = VALUE /aws1/cl_imgtagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_imgtagmap_w=>ts_tagmap_maprow(
value = new /aws1/cl_imgtagmap_w( |string| )
key = |string|
)
)
)
iv_clienttoken = |string|
iv_description = |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_nonemptystring = lo_result->get_requestid( ).
lv_clienttoken = lo_result->get_clienttoken( ).
lv_distributionconfigurati = lo_result->get_distributionconfarn( ).
ENDIF.