/AWS1/IF_DMG=>CREATEFLEETADVISORCOLLECTOR()¶
About CreateFleetAdvisorCollector¶
End of support notice: On May 20, 2026, Amazon Web Services will end support for Amazon Web Services DMS Fleet Advisor;. After May 20, 2026, you will no longer be able to access the Amazon Web Services DMS Fleet Advisor; console or Amazon Web Services DMS Fleet Advisor; resources. For more information, see Amazon Web Services DMS Fleet Advisor end of support.
Creates a Fleet Advisor collector using the specified parameters.
Method Signature¶
METHODS /AWS1/IF_DMG~CREATEFLEETADVISORCOLLECTOR
IMPORTING
!IV_COLLECTORNAME TYPE /AWS1/DMGSTRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/DMGSTRING OPTIONAL
!IV_SERVICEACCESSROLEARN TYPE /AWS1/DMGSTRING OPTIONAL
!IV_S3BUCKETNAME TYPE /AWS1/DMGSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dmgcrefleetadvisorc01
RAISING
/AWS1/CX_DMGACCESSDENIEDFAULT
/AWS1/CX_DMGINVRESRCSTATEFAULT
/AWS1/CX_DMGRESRCQUOTAEXCDFA00
/AWS1/CX_DMGS3ACCDENIEDFAULT
/AWS1/CX_DMGS3RESRCNOTFNDFAULT
/AWS1/CX_DMGCLIENTEXC
/AWS1/CX_DMGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_collectorname TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING¶
The name of your Fleet Advisor collector (for example,
sample-collector).
iv_serviceaccessrolearn TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING¶
The IAM role that grants permissions to access the specified Amazon S3 bucket.
iv_s3bucketname TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING¶
The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.
Optional arguments:¶
iv_description TYPE /AWS1/DMGSTRING /AWS1/DMGSTRING¶
A summary description of your Fleet Advisor collector.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dmgcrefleetadvisorc01 /AWS1/CL_DMGCREFLEETADVISORC01¶
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->createfleetadvisorcollector(
iv_collectorname = |string|
iv_description = |string|
iv_s3bucketname = |string|
iv_serviceaccessrolearn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_collectorreferencedid( ).
lv_string = lo_result->get_collectorname( ).
lv_string = lo_result->get_description( ).
lv_string = lo_result->get_serviceaccessrolearn( ).
lv_string = lo_result->get_s3bucketname( ).
ENDIF.