/AWS1/CL_SDY=>CREATEPUBLICDNSNAMESPACE()
¶
About CreatePublicDnsNamespace¶
Creates a public namespace based on DNS, which is visible on the internet. The namespace defines your
service naming scheme. For example, if you name your namespace example.com
and name your service
backend
, the resulting DNS name for the service is backend.example.com
. You can
discover instances that were registered with a public DNS namespace by using either a
DiscoverInstances
request or using DNS. For the current quota on the number of namespaces that you
can create using the same Amazon Web Services account, see Cloud Map quotas in the
Cloud Map Developer Guide.
The CreatePublicDnsNamespace
API operation is not supported in the Amazon Web Services GovCloud (US)
Regions.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_name
TYPE /AWS1/SDYNAMESPACENAMEPUBLIC
/AWS1/SDYNAMESPACENAMEPUBLIC
¶
The name that you want to assign to this namespace.
Do not include sensitive information in the name. The name is publicly available using DNS queries.
Optional arguments:¶
iv_creatorrequestid
TYPE /AWS1/SDYRESOURCEID
/AWS1/SDYRESOURCEID
¶
A unique string that identifies the request and that allows failed
CreatePublicDnsNamespace
requests to be retried without the risk of running the operation twice.CreatorRequestId
can be any unique string (for example, a date/timestamp).
iv_description
TYPE /AWS1/SDYRESOURCEDESCRIPTION
/AWS1/SDYRESOURCEDESCRIPTION
¶
A description for the namespace.
it_tags
TYPE /AWS1/CL_SDYTAG=>TT_TAGLIST
TT_TAGLIST
¶
The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
io_properties
TYPE REF TO /AWS1/CL_SDYPUBDNSNAMESPACEP00
/AWS1/CL_SDYPUBDNSNAMESPACEP00
¶
Properties for the public DNS namespace.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_sdycrepubdnsnamespa01
/AWS1/CL_SDYCREPUBDNSNAMESPA01
¶
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_sdy~createpublicdnsnamespace(
io_properties = new /aws1/cl_sdypubdnsnamespacep00( new /aws1/cl_sdypubdnsprpsmutable( new /aws1/cl_sdysoa( 123 ) ) )
it_tags = VALUE /aws1/cl_sdytag=>tt_taglist(
(
new /aws1/cl_sdytag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_creatorrequestid = |string|
iv_description = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lv_operationid = lo_result->get_operationid( ).
CreatePublicDnsNamespace example¶
This example creates a public namespace based on DNS.
DATA(lo_result) = lo_client->/aws1/if_sdy~createpublicdnsnamespace(
iv_creatorrequestid = |example-creator-request-id-0003|
iv_description = |Example.com AWS Cloud Map Public DNS Namespace|
iv_name = |example-public-dns.com|
).