/AWS1/IF_HS2=>CREATEHSM()¶
About CreateHsm¶
Creates a new hardware security module (HSM) in the specified CloudHSM cluster.
Cross-account use: No. You cannot perform this operation on an CloudHSM cluster in a different Amazon Web Service account.
Method Signature¶
METHODS /AWS1/IF_HS2~CREATEHSM
IMPORTING
!IV_CLUSTERID TYPE /AWS1/HS2CLUSTERID OPTIONAL
!IV_AVAILABILITYZONE TYPE /AWS1/HS2EXTERNALAZ OPTIONAL
!IV_IPADDRESS TYPE /AWS1/HS2IPADDRESS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_hs2createhsmresponse
RAISING
/AWS1/CX_HS2CLOUDHSMACCDENIE00
/AWS1/CX_HS2CLOUDHSMINTERNAL00
/AWS1/CX_HS2CLOUDHSMINVREQEX
/AWS1/CX_HS2CLOUDHSMRESRCNOT00
/AWS1/CX_HS2CLOUDHSMSERVICEEX
/AWS1/CX_HS2CLIENTEXC
/AWS1/CX_HS2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clusterid TYPE /AWS1/HS2CLUSTERID /AWS1/HS2CLUSTERID¶
The identifier (ID) of the HSM's cluster. To find the cluster ID, use DescribeClusters.
iv_availabilityzone TYPE /AWS1/HS2EXTERNALAZ /AWS1/HS2EXTERNALAZ¶
The Availability Zone where you are creating the HSM. To find the cluster's Availability Zones, use DescribeClusters.
Optional arguments:¶
iv_ipaddress TYPE /AWS1/HS2IPADDRESS /AWS1/HS2IPADDRESS¶
The HSM's IP address. If you specify an IP address, use an available address from the subnet that maps to the Availability Zone where you are creating the HSM. If you don't specify an IP address, one is chosen for you from that subnet.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_hs2createhsmresponse /AWS1/CL_HS2CREATEHSMRESPONSE¶
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->createhsm(
iv_availabilityzone = |string|
iv_clusterid = |string|
iv_ipaddress = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_hsm = lo_result->get_hsm( ).
IF lo_hsm IS NOT INITIAL.
lv_externalaz = lo_hsm->get_availabilityzone( ).
lv_clusterid = lo_hsm->get_clusterid( ).
lv_subnetid = lo_hsm->get_subnetid( ).
lv_eniid = lo_hsm->get_eniid( ).
lv_ipaddress = lo_hsm->get_eniip( ).
lv_ipv6address = lo_hsm->get_eniipv6( ).
lv_hsmid = lo_hsm->get_hsmid( ).
lv_hsmtype = lo_hsm->get_hsmtype( ).
lv_hsmstate = lo_hsm->get_state( ).
lv_string = lo_hsm->get_statemessage( ).
ENDIF.
ENDIF.