AWS code-library documentation change
Summary
Added SAP ABAP code example for Comprehend StartTopicsDetectionJob operation
Security assessment
The change adds a new language example (SAP ABAP) for an existing API operation. There's no evidence of security vulnerabilities being addressed or security features being documented.
Diff
diff --git a/code-library/latest/ug/comprehend_example_comprehend_StartTopicsDetectionJob_section.md b/code-library/latest/ug/comprehend_example_comprehend_StartTopicsDetectionJob_section.md index 6351ed58b..85911a927 100644 --- a//code-library/latest/ug/comprehend_example_comprehend_StartTopicsDetectionJob_section.md +++ b//code-library/latest/ug/comprehend_example_comprehend_StartTopicsDetectionJob_section.md @@ -226,0 +227,45 @@ There's more on GitHub. Find the complete example and learn how to set up and ru +SAP ABAP + + +**SDK for SAP ABAP** + + +###### Note + +There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/sap-abap/services/cpd#code-examples). + + + TRY. + oo_result = lo_cpd->starttopicsdetectionjob( + iv_jobname = iv_job_name + io_inputdataconfig = NEW /aws1/cl_cpdinputdataconfig( + iv_s3uri = iv_input_s3_uri + iv_inputformat = iv_input_format + ) + io_outputdataconfig = NEW /aws1/cl_cpdoutputdataconfig( + iv_s3uri = iv_output_s3_uri + ) + iv_dataaccessrolearn = iv_data_access_role_arn + ). + MESSAGE 'Topics detection job started.' TYPE 'I'. + CATCH /aws1/cx_cpdinvalidrequestex. + MESSAGE 'Invalid request.' TYPE 'E'. + CATCH /aws1/cx_cpdtoomanyrequestsex. + MESSAGE 'Too many requests.' TYPE 'E'. + CATCH /aws1/cx_cpdkmskeyvalidationex. + MESSAGE 'KMS key validation error.' TYPE 'E'. + CATCH /aws1/cx_cpdtoomanytagsex. + MESSAGE 'Too many tags.' TYPE 'E'. + CATCH /aws1/cx_cpdresrclimitexcdex. + MESSAGE 'Resource limit exceeded.' TYPE 'E'. + CATCH /aws1/cx_cpdinternalserverex. + MESSAGE 'Internal server error occurred.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [StartTopicsDetectionJob](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +