Skip to content

/AWS1/IF_DZN=>GETASSETTYPE()

About GetAssetType

Gets an Amazon DataZone asset type.

Asset types define the categories and characteristics of different kinds of data assets within Amazon DataZone.. They determine what metadata fields are required, what operations are possible, and how the asset integrates with other Amazon Web Services services. Asset types can range from built-in types like Amazon S3 buckets and Amazon Web Services Glue tables to custom types defined for specific organizational needs. Understanding asset types is crucial for properly organizing and managing different kinds of data resources.

Prerequisites:

  • The asset type with identifier must exist in the domain. ResourceNotFoundException.

  • You must have the GetAssetType permission.

  • Ensure the domain-identifier value is correct and accessible.

Method Signature

IMPORTING

Required arguments:

iv_domainidentifier TYPE /AWS1/DZNDOMAINID /AWS1/DZNDOMAINID

The ID of the Amazon DataZone domain in which the asset type exists.

iv_identifier TYPE /AWS1/DZNASSETTYPEIDENTIFIER /AWS1/DZNASSETTYPEIDENTIFIER

The ID of the asset type.

Optional arguments:

iv_revision TYPE /AWS1/DZNREVISION /AWS1/DZNREVISION

The revision of the asset type.

RETURNING

oo_output TYPE REF TO /aws1/cl_dzngetassettypeoutput /AWS1/CL_DZNGETASSETTYPEOUTPUT

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->/aws1/if_dzn~getassettype(
  iv_domainidentifier = |string|
  iv_identifier = |string|
  iv_revision = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_domainid = lo_result->get_domainid( ).
  lv_typename = lo_result->get_name( ).
  lv_revision = lo_result->get_revision( ).
  lv_description = lo_result->get_description( ).
  LOOP AT lo_result->get_formsoutput( ) into ls_row.
    lv_key = ls_row-key.
    lo_value = ls_row-value.
    IF lo_value IS NOT INITIAL.
      lv_formtypename = lo_value->get_typename( ).
      lv_revision = lo_value->get_typerevision( ).
      lv_boolean = lo_value->get_required( ).
    ENDIF.
  ENDLOOP.
  lv_projectid = lo_result->get_owningprojectid( ).
  lv_domainid = lo_result->get_origindomainid( ).
  lv_projectid = lo_result->get_originprojectid( ).
  lv_createdat = lo_result->get_createdat( ).
  lv_createdby = lo_result->get_createdby( ).
  lv_updatedat = lo_result->get_updatedat( ).
  lv_updatedby = lo_result->get_updatedby( ).
ENDIF.