AWS AmazonECR documentation change
Summary
Added SAP ABAP SDK code example for SetRepositoryPolicy API
Security assessment
The change documents repository policy management, a security feature for access control. But it's a standard SDK example update with no indication of fixing a security vulnerability.
Diff
diff --git a/AmazonECR/latest/userguide/example_ecr_SetRepositoryPolicy_section.md b/AmazonECR/latest/userguide/example_ecr_SetRepositoryPolicy_section.md index 9b0382f93..17429226f 100644 --- a//AmazonECR/latest/userguide/example_ecr_SetRepositoryPolicy_section.md +++ b//AmazonECR/latest/userguide/example_ecr_SetRepositoryPolicy_section.md @@ -274,0 +275,29 @@ Example that grants an IAM role download access. + + + + +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. + " iv_repository_name = 'my-repository' + " iv_policy_text = '{"Version":"2012-10-17", "Statement":[...]}' + lo_ecr->setrepositorypolicy( + iv_repositoryname = iv_repository_name + iv_policytext = iv_policy_text ). + MESSAGE |Policy set for repository { iv_repository_name }.| TYPE 'I'. + CATCH /aws1/cx_ecrrepositorynotfndex. + MESSAGE 'Repository not found.' TYPE 'I'. + ENDTRY. + + + + * For API details, see [SetRepositoryPolicy](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_.