codebuild

class pulumi_aws.codebuild.Project(resource_name, opts=None, artifacts=None, badge_enabled=None, build_timeout=None, cache=None, description=None, encryption_key=None, environment=None, name=None, secondary_artifacts=None, secondary_sources=None, service_role=None, source=None, tags=None, vpc_config=None, __name__=None, __opts__=None)

Provides a CodeBuild Project resource. See also the ``aws_codebuild_webhook` resource <https://www.terraform.io/docs/providers/aws/r/codebuild_webhook.html>`_, which manages the webhook to the source (e.g. the “rebuild every time a code change is pushed” option in the CodeBuild web console).

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • artifacts (pulumi.Input[dict]) – Information about the project’s build output artifacts. Artifact blocks are documented below.
  • badge_enabled (pulumi.Input[bool]) – Generates a publicly-accessible URL for the projects build badge. Available as badge_url attribute when enabled.
  • build_timeout (pulumi.Input[float]) – How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed. The default is 60 minutes.
  • cache (pulumi.Input[dict]) – Information about the cache storage for the project. Cache blocks are documented below.
  • description (pulumi.Input[str]) – A short description of the project.
  • encryption_key (pulumi.Input[str]) – The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project’s build output artifacts.
  • environment (pulumi.Input[dict]) – Information about the project’s build environment. Environment blocks are documented below.
  • name (pulumi.Input[str]) – The name of the project. If type is set to S3, this is the name of the output artifact object
  • secondary_artifacts (pulumi.Input[list]) – A set of secondary artifacts to be used inside the build. Secondary artifacts blocks are documented below.
  • secondary_sources (pulumi.Input[list]) – A set of secondary sources to be used inside the build. Secondary sources blocks are documented below.
  • service_role (pulumi.Input[str]) – The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
  • source (pulumi.Input[dict]) – Information about the project’s input source code. Source blocks are documented below.
  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
  • vpc_config (pulumi.Input[dict]) – Configuration for the builds to run inside a VPC. VPC config blocks are documented below.
arn = None

The ARN of the CodeBuild project.

artifacts = None

Information about the project’s build output artifacts. Artifact blocks are documented below.

badge_enabled = None

Generates a publicly-accessible URL for the projects build badge. Available as badge_url attribute when enabled.

badge_url = None

The URL of the build badge when badge_enabled is enabled.

build_timeout = None

How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed. The default is 60 minutes.

cache = None

Information about the cache storage for the project. Cache blocks are documented below.

description = None

A short description of the project.

encryption_key = None

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project’s build output artifacts.

environment = None

Information about the project’s build environment. Environment blocks are documented below.

name = None

The name of the project. If type is set to S3, this is the name of the output artifact object

secondary_artifacts = None

A set of secondary artifacts to be used inside the build. Secondary artifacts blocks are documented below.

secondary_sources = None

A set of secondary sources to be used inside the build. Secondary sources blocks are documented below.

service_role = None

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

source = None

Information about the project’s input source code. Source blocks are documented below.

tags = None

A mapping of tags to assign to the resource.

vpc_config = None

Configuration for the builds to run inside a VPC. VPC config blocks are documented below.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_aws.codebuild.Webhook(resource_name, opts=None, branch_filter=None, project_name=None, __name__=None, __opts__=None)

Manages a CodeBuild webhook, which is an endpoint accepted by the CodeBuild service to trigger builds from source code repositories. Depending on the source type of the CodeBuild project, the CodeBuild service may also automatically create and delete the actual repository webhook as well.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • branch_filter (pulumi.Input[str]) – A regular expression used to determine which branches get built. Default is all branches are built.
  • project_name (pulumi.Input[str]) – The name of the build project.
branch_filter = None

A regular expression used to determine which branches get built. Default is all branches are built.

payload_url = None

The CodeBuild endpoint where webhook events are sent.

project_name = None

The name of the build project.

secret = None

The secret token of the associated repository. Not returned by the CodeBuild API for all source types.

url = None

The URL to the webhook.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str