AWS AmazonECR documentation change
Summary
Added SAP ABAP SDK code example for GetAuthorizationToken API
Security assessment
The change adds documentation for obtaining authorization tokens, which is a security feature for authenticating ECR access. However, it's a routine SDK example addition without evidence of addressing a specific security issue.
Diff
diff --git a/AmazonECR/latest/userguide/example_ecr_GetAuthorizationToken_section.md b/AmazonECR/latest/userguide/example_ecr_GetAuthorizationToken_section.md index 363043a7c..892a01efb 100644 --- a//AmazonECR/latest/userguide/example_ecr_GetAuthorizationToken_section.md +++ b//AmazonECR/latest/userguide/example_ecr_GetAuthorizationToken_section.md @@ -179,0 +180,30 @@ 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/ecr#code-examples). + + + TRY. + oo_result = lo_ecr->getauthorizationtoken( ). + DATA(lt_auth_data) = oo_result->get_authorizationdata( ). + IF lines( lt_auth_data ) > 0. + READ TABLE lt_auth_data INDEX 1 INTO DATA(lo_auth_data). + DATA(lv_token) = lo_auth_data->get_authorizationtoken( ). + MESSAGE 'Authorization token retrieved.' TYPE 'I'. + ENDIF. + CATCH /aws1/cx_ecrserverexception. + MESSAGE 'Server exception occurred.' TYPE 'I'. + ENDTRY. + + + + * For API details, see [GetAuthorizationToken](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +