/AWS1/IF_PTS=>CREATERESOURCESNAPSHOTJOB()¶
About CreateResourceSnapshotJob¶
Use this action to create a job to generate a snapshot of the specified resource within an engagement. It initiates an asynchronous process to create a resource snapshot. The job creates a new snapshot only if the resource state has changed, adhering to the same access control and immutability rules as direct snapshot creation.
Method Signature¶
METHODS /AWS1/IF_PTS~CREATERESOURCESNAPSHOTJOB
IMPORTING
!IV_CATALOG TYPE /AWS1/PTSCATALOGIDENTIFIER OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/PTSCLIENTTOKEN OPTIONAL
!IV_ENGAGEMENTIDENTIFIER TYPE /AWS1/PTSENGAGEMENTIDENTIFIER OPTIONAL
!IV_RESOURCETYPE TYPE /AWS1/PTSRESOURCETYPE OPTIONAL
!IV_RESOURCEIDENTIFIER TYPE /AWS1/PTSRESOURCEIDENTIFIER OPTIONAL
!IV_RESOURCESNAPTEMPLATEID TYPE /AWS1/PTSRESOURCETEMPLATENAME OPTIONAL
!IT_TAGS TYPE /AWS1/CL_PTSTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ptscreresrcsnapjobrsp
RAISING
/AWS1/CX_PTSACCESSDENIEDEX
/AWS1/CX_PTSCONFLICTEXCEPTION
/AWS1/CX_PTSINTERNALSERVEREX
/AWS1/CX_PTSRESOURCENOTFOUNDEX
/AWS1/CX_PTSSERVICEQUOTAEXCDEX
/AWS1/CX_PTSTHROTTLINGEX
/AWS1/CX_PTSVALIDATIONEX
/AWS1/CX_PTSCLIENTEXC
/AWS1/CX_PTSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_catalog TYPE /AWS1/PTSCATALOGIDENTIFIER /AWS1/PTSCATALOGIDENTIFIER¶
Specifies the catalog in which to create the snapshot job. Valid values are
AWSandSandbox.
iv_clienttoken TYPE /AWS1/PTSCLIENTTOKEN /AWS1/PTSCLIENTTOKEN¶
A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.
iv_engagementidentifier TYPE /AWS1/PTSENGAGEMENTIDENTIFIER /AWS1/PTSENGAGEMENTIDENTIFIER¶
Specifies the identifier of the engagement associated with the resource to be snapshotted.
iv_resourcetype TYPE /AWS1/PTSRESOURCETYPE /AWS1/PTSRESOURCETYPE¶
The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e.
Opportunity
iv_resourceidentifier TYPE /AWS1/PTSRESOURCEIDENTIFIER /AWS1/PTSRESOURCEIDENTIFIER¶
Specifies the identifier of the specific resource to be snapshotted. The format depends on the
ResourceType.
iv_resourcesnaptemplateid TYPE /AWS1/PTSRESOURCETEMPLATENAME /AWS1/PTSRESOURCETEMPLATENAME¶
Specifies the name of the template that defines the schema for the snapshot.
Optional arguments:¶
it_tags TYPE /AWS1/CL_PTSTAG=>TT_TAGLIST TT_TAGLIST¶
A map of the key-value pairs of the tag or tags to assign.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ptscreresrcsnapjobrsp /AWS1/CL_PTSCRERESRCSNAPJOBRSP¶
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->createresourcesnapshotjob(
it_tags = VALUE /aws1/cl_ptstag=>tt_taglist(
(
new /aws1/cl_ptstag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_catalog = |string|
iv_clienttoken = |string|
iv_engagementidentifier = |string|
iv_resourceidentifier = |string|
iv_resourcesnaptemplateid = |string|
iv_resourcetype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourcesnapshotjobiden = lo_result->get_id( ).
lv_resourcesnapshotjobarn = lo_result->get_arn( ).
ENDIF.