CodeBuild.Client.
update_project_visibility
(**kwargs)¶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 .
Warning
The following should be kept in mind when making your projects public:
See also: AWS API Documentation
Request Syntax
response = client.update_project_visibility(
projectArn='string',
projectVisibility='PUBLIC_READ'|'PRIVATE',
resourceAccessRole='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the build project.
[REQUIRED]
Specifies the visibility of the project's builds. Possible values are:
PUBLIC_READ
The project builds are visible to the public.
PRIVATE
The project builds are not visible to the public.
dict
Response Syntax
{
'projectArn': 'string',
'publicProjectAlias': 'string',
'projectVisibility': 'PUBLIC_READ'|'PRIVATE'
}
Response Structure
(dict) --
projectArn (string) --
The Amazon Resource Name (ARN) of the build project.
publicProjectAlias (string) --
Contains the project identifier used with the public build APIs.
projectVisibility (string) --
Specifies the visibility of the project's builds. Possible values are:
PUBLIC_READ
The project builds are visible to the public.
PRIVATE
The project builds are not visible to the public.
Exceptions
CodeBuild.Client.exceptions.InvalidInputException
CodeBuild.Client.exceptions.ResourceNotFoundException