Skip to content

/AWS1/IF_ACM=>CREATEACMEDOMAINVALIDATION()

About CreateAcmeDomainValidation

Creates a domain validation for an ACME endpoint. Domain validations authorize the endpoint to issue certificates for specified domain names. You configure prevalidation to prove domain ownership.

Method Signature

METHODS /AWS1/IF_ACM~CREATEACMEDOMAINVALIDATION
  IMPORTING
    !IV_IDEMPOTENCYTOKEN TYPE /AWS1/ACMSTRING00 OPTIONAL
    !IV_ACMEENDPOINTARN TYPE /AWS1/ACMACMEENDPOINTARN OPTIONAL
    !IV_DOMAINNAME TYPE /AWS1/ACMDOMAINNAME OPTIONAL
    !IO_PREVALIDATIONOPTIONS TYPE REF TO /AWS1/CL_ACMPREVLDTNOPTIONS OPTIONAL
    !IT_TAGS TYPE /AWS1/CL_ACMTAG=>TT_TAGLIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_acmcreacmedomvldtnrsp
  RAISING
    /AWS1/CX_ACMACCESSDENIEDEX
    /AWS1/CX_ACMCONFLICTEXCEPTION
    /AWS1/CX_ACMINTERNALSERVEREX
    /AWS1/CX_ACMRESOURCENOTFOUNDEX
    /AWS1/CX_ACMSERVICEQUOTAEXCDEX
    /AWS1/CX_ACMTHROTTLINGEX
    /AWS1/CX_ACMVALIDATIONEX
    /AWS1/CX_ACMCLIENTEXC
    /AWS1/CX_ACMSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_acmeendpointarn TYPE /AWS1/ACMACMEENDPOINTARN /AWS1/ACMACMEENDPOINTARN

The Amazon Resource Name (ARN) of the ACME endpoint.

iv_domainname TYPE /AWS1/ACMDOMAINNAME /AWS1/ACMDOMAINNAME

The domain name to validate.

io_prevalidationoptions TYPE REF TO /AWS1/CL_ACMPREVLDTNOPTIONS /AWS1/CL_ACMPREVLDTNOPTIONS

The prevalidation options for the domain.

Optional arguments:

iv_idempotencytoken TYPE /AWS1/ACMSTRING00 /AWS1/ACMSTRING00

A unique, case-sensitive identifier to ensure idempotency of the request.

it_tags TYPE /AWS1/CL_ACMTAG=>TT_TAGLIST TT_TAGLIST

One or more tags to associate with the domain validation.

RETURNING

oo_output TYPE REF TO /aws1/cl_acmcreacmedomvldtnrsp /AWS1/CL_ACMCREACMEDOMVLDTNRSP

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->createacmedomainvalidation(
  io_prevalidationoptions = new /aws1/cl_acmprevldtnoptions(
    io_dnsprevalidation = new /aws1/cl_acmdnsprevldtnoptions(
      io_domainscope = new /aws1/cl_acmdomainscope(
        iv_exactdomain = |string|
        iv_subdomains = |string|
        iv_wildcards = |string|
      )
      iv_hostedzoneid = |string|
    )
  )
  it_tags = VALUE /aws1/cl_acmtag=>tt_taglist(
    (
      new /aws1/cl_acmtag(
        iv_key = |string|
        iv_value = |string|
      )
    )
  )
  iv_acmeendpointarn = |string|
  iv_domainname = |string|
  iv_idempotencytoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_acmedomainvalidationarn = lo_result->get_acmedomainvalidationarn( ).
ENDIF.