与 AWS SDK或DeleteEndpoint一起使用 CLI - AWS SDK代码示例

AWS 文档 AWS SDK示例 GitHub 存储库中还有更多SDK示例

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

与 AWS SDK或DeleteEndpoint一起使用 CLI

以下代码示例显示了如何使用DeleteEndpoint

操作示例是大型程序的代码摘录,必须在上下文中运行。在以下代码示例中,您可以查看此操作的上下文:

SAP ABAP
SDK对于 SAP ABAP
注意

还有更多相关信息 GitHub。查找完整示例,学习如何在 AWS 代码示例存储库中进行设置和运行。

"Delete an endpoint." TRY. lo_sgm->deleteendpoint( iv_endpointname = iv_endpoint_name ). MESSAGE 'Endpoint configuration deleted.' TYPE 'I'. CATCH /aws1/cx_rt_service_generic INTO DATA(lo_endpoint_exception). DATA(lv_endpoint_error) = |"{ lo_endpoint_exception->av_err_code }" - { lo_endpoint_exception->av_err_msg }|. MESSAGE lv_endpoint_error TYPE 'E'. ENDTRY. "Delete an endpoint configuration." TRY. lo_sgm->deleteendpointconfig( iv_endpointconfigname = iv_endpoint_config_name ). MESSAGE 'Endpoint deleted.' TYPE 'I'. CATCH /aws1/cx_rt_service_generic INTO DATA(lo_endpointconfig_exception). DATA(lv_endpointconfig_error) = |"{ lo_endpointconfig_exception->av_err_code }" - { lo_endpointconfig_exception->av_err_msg }|. MESSAGE lv_endpointconfig_error TYPE 'E'. ENDTRY.
  • 有关API详细信息,请参阅DeleteEndpoint中的AWS SDK以供SAPABAPAPI参考