AWS code-library documentation change
Summary
Added SAP ABAP code example for deleting Step Functions state machines
Security assessment
Basic code example addition with validation error handling. No security implications or vulnerability mitigations are introduced.
Diff
diff --git a/code-library/latest/ug/sfn_example_sfn_DeleteStateMachine_section.md b/code-library/latest/ug/sfn_example_sfn_DeleteStateMachine_section.md index b7337ebc1..2213951fb 100644 --- a//code-library/latest/ug/sfn_example_sfn_DeleteStateMachine_section.md +++ b//code-library/latest/ug/sfn_example_sfn_DeleteStateMachine_section.md @@ -170,0 +171,29 @@ 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/sfn#code-examples). + + + TRY. + lo_sfn->deletestatemachine( + iv_statemachinearn = iv_state_machine_arn + ). + MESSAGE 'State machine deleted successfully.' TYPE 'I'. + CATCH /aws1/cx_sfninvalidarn. + MESSAGE 'Invalid state machine ARN.' TYPE 'E'. + CATCH /aws1/cx_sfnvalidationex. + MESSAGE 'Validation error occurred.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [DeleteStateMachine](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +