/AWS1/IF_BLD=>UPDATEPROJECTVISIBILITY()
¶
About UpdateProjectVisibility¶
Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
-
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
-
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
-
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
-
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
-
-
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_projectarn
TYPE /AWS1/BLDNONEMPTYSTRING
/AWS1/BLDNONEMPTYSTRING
¶
The Amazon Resource Name (ARN) of the build project.
iv_projectvisibility
TYPE /AWS1/BLDPROJECTVISIBILITYTYPE
/AWS1/BLDPROJECTVISIBILITYTYPE
¶
projectVisibility
Optional arguments:¶
iv_resourceaccessrole
TYPE /AWS1/BLDNONEMPTYSTRING
/AWS1/BLDNONEMPTYSTRING
¶
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bldupprojectvisibil01
/AWS1/CL_BLDUPPROJECTVISIBIL01
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->/aws1/if_bld~updateprojectvisibility(
iv_projectarn = |string|
iv_projectvisibility = |string|
iv_resourceaccessrole = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nonemptystring = lo_result->get_projectarn( ).
lv_nonemptystring = lo_result->get_publicprojectalias( ).
lv_projectvisibilitytype = lo_result->get_projectvisibility( ).
ENDIF.