/AWS1/IF_DZN=>CREATESUBSCRIPTIONREQUEST()¶
About CreateSubscriptionRequest¶
Creates a subscription request in Amazon DataZone.
Method Signature¶
METHODS /AWS1/IF_DZN~CREATESUBSCRIPTIONREQUEST
IMPORTING
!IV_DOMAINIDENTIFIER TYPE /AWS1/DZNDOMAINID OPTIONAL
!IT_SUBSCRIBEDPRINCIPALS TYPE /AWS1/CL_DZNSUBDPRINCINPUT=>TT_SUBSCRIBEDPRINCIPALINPUTS OPTIONAL
!IT_SUBSCRIBEDLISTINGS TYPE /AWS1/CL_DZNSUBDLISTINGINPUT=>TT_SUBSCRIBEDLISTINGINPUTS OPTIONAL
!IV_REQUESTREASON TYPE /AWS1/DZNREQUESTREASON OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/DZNSTRING OPTIONAL
!IT_METADATAFORMS TYPE /AWS1/CL_DZNFORMINPUT=>TT_METADATAFORMINPUTS OPTIONAL
!IT_ASSETPERMISSIONS TYPE /AWS1/CL_DZNASSETPERMISSION=>TT_ASSETPERMISSIONS OPTIONAL
!IT_ASSETSCOPES TYPE /AWS1/CL_DZNACCEPTEDASSETSCOPE=>TT_ACCEPTEDASSETSCOPES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dzncresubscriptionr01
RAISING
/AWS1/CX_DZNACCESSDENIEDEX
/AWS1/CX_DZNTHROTTLINGEX
/AWS1/CX_DZNUNAUTHORIZEDEX
/AWS1/CX_DZNCONFLICTEXCEPTION
/AWS1/CX_DZNINTERNALSERVEREX
/AWS1/CX_DZNRESOURCENOTFOUNDEX
/AWS1/CX_DZNSERVICEQUOTAEXCDEX
/AWS1/CX_DZNVALIDATIONEX
/AWS1/CX_DZNCLIENTEXC
/AWS1/CX_DZNSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_domainidentifier TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID¶
The ID of the Amazon DataZone domain in which the subscription request is created.
it_subscribedprincipals TYPE /AWS1/CL_DZNSUBDPRINCINPUT=>TT_SUBSCRIBEDPRINCIPALINPUTS TT_SUBSCRIBEDPRINCIPALINPUTS¶
The Amazon DataZone principals for whom the subscription request is created.
it_subscribedlistings TYPE /AWS1/CL_DZNSUBDLISTINGINPUT=>TT_SUBSCRIBEDLISTINGINPUTS TT_SUBSCRIBEDLISTINGINPUTS¶
The published asset for which the subscription grant is to be created.
iv_requestreason TYPE /AWS1/DZNREQUESTREASON /AWS1/DZNREQUESTREASON¶
The reason for the subscription request.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/DZNSTRING /AWS1/DZNSTRING¶
A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
it_metadataforms TYPE /AWS1/CL_DZNFORMINPUT=>TT_METADATAFORMINPUTS TT_METADATAFORMINPUTS¶
The metadata form included in the subscription request.
it_assetpermissions TYPE /AWS1/CL_DZNASSETPERMISSION=>TT_ASSETPERMISSIONS TT_ASSETPERMISSIONS¶
The asset permissions of the subscription request.
it_assetscopes TYPE /AWS1/CL_DZNACCEPTEDASSETSCOPE=>TT_ACCEPTEDASSETSCOPES TT_ACCEPTEDASSETSCOPES¶
The asset scopes of the subscription request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dzncresubscriptionr01 /AWS1/CL_DZNCRESUBSCRIPTIONR01¶
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->createsubscriptionrequest(
it_assetpermissions = VALUE /aws1/cl_dznassetpermission=>tt_assetpermissions(
(
new /aws1/cl_dznassetpermission(
io_permissions = new /aws1/cl_dznpermissions(
it_s3 = VALUE /aws1/cl_dzns3permissions_w=>tt_s3permissions(
( new /aws1/cl_dzns3permissions_w( |string| ) )
)
)
iv_assetid = |string|
)
)
)
it_assetscopes = VALUE /aws1/cl_dznacceptedassetscope=>tt_acceptedassetscopes(
(
new /aws1/cl_dznacceptedassetscope(
it_filterids = VALUE /aws1/cl_dznfilterids_w=>tt_filterids(
( new /aws1/cl_dznfilterids_w( |string| ) )
)
iv_assetid = |string|
)
)
)
it_metadataforms = VALUE /aws1/cl_dznforminput=>tt_metadataforminputs(
(
new /aws1/cl_dznforminput(
iv_content = |string|
iv_formname = |string|
iv_typeidentifier = |string|
iv_typerevision = |string|
)
)
)
it_subscribedlistings = VALUE /aws1/cl_dznsubdlistinginput=>tt_subscribedlistinginputs(
( new /aws1/cl_dznsubdlistinginput( |string| ) )
)
it_subscribedprincipals = VALUE /aws1/cl_dznsubdprincinput=>tt_subscribedprincipalinputs(
(
new /aws1/cl_dznsubdprincinput(
io_group = new /aws1/cl_dznsubdgroupinput( |string| )
io_project = new /aws1/cl_dznsubdprojectinput( |string| )
io_user = new /aws1/cl_dznsubduserinput( |string| )
)
)
)
iv_clienttoken = |string|
iv_domainidentifier = |string|
iv_requestreason = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_subscriptionrequestid = lo_result->get_id( ).
lv_createdby = lo_result->get_createdby( ).
lv_updatedby = lo_result->get_updatedby( ).
lv_domainid = lo_result->get_domainid( ).
lv_subscriptionrequeststat = lo_result->get_status( ).
lv_createdat = lo_result->get_createdat( ).
lv_updatedat = lo_result->get_updatedat( ).
lv_requestreason = lo_result->get_requestreason( ).
LOOP AT lo_result->get_subscribedprincipals( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lo_subscribedproject = lo_row_1->get_project( ).
IF lo_subscribedproject IS NOT INITIAL.
lv_projectid = lo_subscribedproject->get_id( ).
lv_projectname = lo_subscribedproject->get_name( ).
ENDIF.
lo_subscribeduser = lo_row_1->get_user( ).
IF lo_subscribeduser IS NOT INITIAL.
lv_userprofileid = lo_subscribeduser->get_id( ).
lo_userprofiledetails = lo_subscribeduser->get_details( ).
IF lo_userprofiledetails IS NOT INITIAL.
lo_iamuserprofiledetails = lo_userprofiledetails->get_iam( ).
IF lo_iamuserprofiledetails IS NOT INITIAL.
lv_string = lo_iamuserprofiledetails->get_arn( ).
lv_string = lo_iamuserprofiledetails->get_principalid( ).
ENDIF.
lo_ssouserprofiledetails = lo_userprofiledetails->get_sso( ).
IF lo_ssouserprofiledetails IS NOT INITIAL.
lv_userprofilename = lo_ssouserprofiledetails->get_username( ).
lv_firstname = lo_ssouserprofiledetails->get_firstname( ).
lv_lastname = lo_ssouserprofiledetails->get_lastname( ).
ENDIF.
ENDIF.
ENDIF.
lo_subscribedgroup = lo_row_1->get_group( ).
IF lo_subscribedgroup IS NOT INITIAL.
lv_groupprofileid = lo_subscribedgroup->get_id( ).
lv_groupprofilename = lo_subscribedgroup->get_name( ).
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_subscribedlistings( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_listingid = lo_row_3->get_id( ).
lv_revision = lo_row_3->get_revision( ).
lv_listingname = lo_row_3->get_name( ).
lv_description = lo_row_3->get_description( ).
lo_subscribedlistingitem = lo_row_3->get_item( ).
IF lo_subscribedlistingitem IS NOT INITIAL.
lo_subscribedassetlisting = lo_subscribedlistingitem->get_assetlisting( ).
IF lo_subscribedassetlisting IS NOT INITIAL.
lv_assetid = lo_subscribedassetlisting->get_entityid( ).
lv_revision = lo_subscribedassetlisting->get_entityrevision( ).
lv_typename = lo_subscribedassetlisting->get_entitytype( ).
lv_forms = lo_subscribedassetlisting->get_forms( ).
LOOP AT lo_subscribedassetlisting->get_glossaryterms( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_glossarytermname = lo_row_5->get_name( ).
lv_shortdescription = lo_row_5->get_shortdescription( ).
ENDIF.
ENDLOOP.
lo_assetscope = lo_subscribedassetlisting->get_assetscope( ).
IF lo_assetscope IS NOT INITIAL.
lv_assetid = lo_assetscope->get_assetid( ).
LOOP AT lo_assetscope->get_filterids( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_filterid = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
lv_string = lo_assetscope->get_status( ).
lv_string = lo_assetscope->get_errormessage( ).
ENDIF.
lo_permissions = lo_subscribedassetlisting->get_permissions( ).
IF lo_permissions IS NOT INITIAL.
LOOP AT lo_permissions->get_s3( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_s3permission = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lo_subscribedproductlistin = lo_subscribedlistingitem->get_productlisting( ).
IF lo_subscribedproductlistin IS NOT INITIAL.
lv_assetid = lo_subscribedproductlistin->get_entityid( ).
lv_revision = lo_subscribedproductlistin->get_entityrevision( ).
LOOP AT lo_subscribedproductlistin->get_glossaryterms( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_glossarytermname = lo_row_5->get_name( ).
lv_shortdescription = lo_row_5->get_shortdescription( ).
ENDIF.
ENDLOOP.
lv_string = lo_subscribedproductlistin->get_name( ).
lv_string = lo_subscribedproductlistin->get_description( ).
LOOP AT lo_subscribedproductlistin->get_assetlistings( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_string = lo_row_11->get_entityid( ).
lv_string = lo_row_11->get_entityrevision( ).
lv_string = lo_row_11->get_entitytype( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_projectid = lo_row_3->get_ownerprojectid( ).
lv_string = lo_row_3->get_ownerprojectname( ).
ENDIF.
ENDLOOP.
lv_string = lo_result->get_reviewerid( ).
lv_decisioncomment = lo_result->get_decisioncomment( ).
lv_subscriptionid = lo_result->get_existingsubscriptionid( ).
LOOP AT lo_result->get_metadataforms( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_formname = lo_row_13->get_formname( ).
lv_formtypename = lo_row_13->get_typename( ).
lv_revision = lo_row_13->get_typerevision( ).
lv_string = lo_row_13->get_content( ).
ENDIF.
ENDLOOP.
ENDIF.