Skip to content

/AWS1/CL_GUR=>DESCRREPOSITORYASSOCIATION()

About DescribeRepositoryAssociation

Returns a RepositoryAssociation object that contains information about the requested repository association.

Method Signature

IMPORTING

Required arguments:

iv_associationarn TYPE /AWS1/GURASSOCIATIONARN /AWS1/GURASSOCIATIONARN

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations.

RETURNING

oo_output TYPE REF TO /aws1/cl_gurdscrepositoryass01 /AWS1/CL_GURDSCREPOSITORYASS01

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_gur~descrrepositoryassociation( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_repositoryassociation = lo_result->get_repositoryassociation( ).
  IF lo_repositoryassociation IS NOT INITIAL.
    lv_associationid = lo_repositoryassociation->get_associationid( ).
    lv_arn = lo_repositoryassociation->get_associationarn( ).
    lv_connectionarn = lo_repositoryassociation->get_connectionarn( ).
    lv_name = lo_repositoryassociation->get_name( ).
    lv_owner = lo_repositoryassociation->get_owner( ).
    lv_providertype = lo_repositoryassociation->get_providertype( ).
    lv_repositoryassociationst = lo_repositoryassociation->get_state( ).
    lv_statereason = lo_repositoryassociation->get_statereason( ).
    lv_timestamp = lo_repositoryassociation->get_lastupdatedtimestamp( ).
    lv_timestamp = lo_repositoryassociation->get_createdtimestamp( ).
    lo_kmskeydetails = lo_repositoryassociation->get_kmskeydetails( ).
    IF lo_kmskeydetails IS NOT INITIAL.
      lv_kmskeyid = lo_kmskeydetails->get_kmskeyid( ).
      lv_encryptionoption = lo_kmskeydetails->get_encryptionoption( ).
    ENDIF.
    lo_s3repositorydetails = lo_repositoryassociation->get_s3repositorydetails( ).
    IF lo_s3repositorydetails IS NOT INITIAL.
      lv_s3bucketname = lo_s3repositorydetails->get_bucketname( ).
      lo_codeartifacts = lo_s3repositorydetails->get_codeartifacts( ).
      IF lo_codeartifacts IS NOT INITIAL.
        lv_sourcecodeartifactsobje = lo_codeartifacts->get_srccodeartifactsobjkey( ).
        lv_buildartifactsobjectkey = lo_codeartifacts->get_buildartifactsobjectkey( ).
      ENDIF.
    ENDIF.
  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.