Skip to content

/AWS1/IF_FRM=>REGISTERPUBLISHER()

About RegisterPublisher

Registers your account as a publisher of public extensions in the CloudFormation registry. Public extensions are available for use by all CloudFormation users. This publisher ID applies to your account in all Amazon Web Services Regions.

For information about requirements for registering as a public extension publisher, see Prerequisite: Registering your account to publish CloudFormation extensions in the CloudFormation Command Line Interface (CLI) User Guide.

Method Signature

METHODS /AWS1/IF_FRM~REGISTERPUBLISHER
  IMPORTING
    !IV_ACCEPTTERMSANDCONDITIONS TYPE /AWS1/FRMACCEPTTERMSANDCONDS OPTIONAL
    !IV_CONNECTIONARN TYPE /AWS1/FRMCONNECTIONARN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_frmregpublisheroutput
  RAISING
    /AWS1/CX_FRMCFNREGISTRYEX
    /AWS1/CX_FRMCLIENTEXC
    /AWS1/CX_FRMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Optional arguments:

iv_accepttermsandconditions TYPE /AWS1/FRMACCEPTTERMSANDCONDS /AWS1/FRMACCEPTTERMSANDCONDS

Whether you accept the Terms and Conditions for publishing extensions in the CloudFormation registry. You must accept the terms and conditions in order to register to publish public extensions to the CloudFormation registry.

The default is false.

iv_connectionarn TYPE /AWS1/FRMCONNECTIONARN /AWS1/FRMCONNECTIONARN

If you are using a Bitbucket or GitHub account for identity verification, the Amazon Resource Name (ARN) for your connection to that account.

For more information, see Prerequisite: Registering your account to publish CloudFormation extensions in the CloudFormation Command Line Interface (CLI) User Guide.

RETURNING

oo_output TYPE REF TO /aws1/cl_frmregpublisheroutput /AWS1/CL_FRMREGPUBLISHEROUTPUT

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->registerpublisher(
  iv_accepttermsandconditions = ABAP_TRUE
  iv_connectionarn = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_publisherid = lo_result->get_publisherid( ).
ENDIF.