Fork me on GitHub

Module codebuild

@pulumi/aws > codebuild

Index

codebuild/project.ts codebuild/webhook.ts

class Project

Provides a CodeBuild Project resource.

constructor

new Project(name: string, args: ProjectArgs, opts?: pulumi.CustomResourceOptions)

Create a Project resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectState): Project

Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property arn

public arn: pulumi.Output<string>;

The ARN of the CodeBuild project.

property artifacts

public artifacts: pulumi.Output<{ ... }>;

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

property badgeEnabled

public badgeEnabled: pulumi.Output<boolean | undefined>;

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

property badgeUrl

public badgeUrl: pulumi.Output<string>;

The URL of the build badge when badge_enabled is enabled.

property buildTimeout

public buildTimeout: pulumi.Output<number | undefined>;

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.

property cache

public cache: pulumi.Output<{ ... } | undefined>;

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

property description

public description: pulumi.Output<string>;

A short description of the project.

property encryptionKey

public encryptionKey: pulumi.Output<string>;

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

property environment

public environment: pulumi.Output<{ ... }>;

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

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

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

property secondaryArtifacts

public secondaryArtifacts: pulumi.Output<{ ... }[] | undefined>;

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

property secondarySources

public secondarySources: pulumi.Output<{ ... }[] | undefined>;

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

property serviceRole

public serviceRole: pulumi.Output<string>;

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.

property source

public source: pulumi.Output<{ ... }>;

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

property tags

public tags: pulumi.Output<Tags | undefined>;

A mapping of tags to assign to the resource.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

property vpcConfig

public vpcConfig: pulumi.Output<{ ... } | undefined>;

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

class Webhook

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.

constructor

new Webhook(name: string, args: WebhookArgs, opts?: pulumi.CustomResourceOptions)

Create a Webhook resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WebhookState): Webhook

Get an existing Webhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property branchFilter

public branchFilter: pulumi.Output<string | undefined>;

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

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property payloadUrl

public payloadUrl: pulumi.Output<string>;

The CodeBuild endpoint where webhook events are sent.

property projectName

public projectName: pulumi.Output<string>;

The name of the build project.

property secret

public secret: pulumi.Output<string>;

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

property url

public url: pulumi.Output<string>;

The URL to the webhook.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

interface ProjectArgs

The set of arguments for constructing a Project resource.

property artifacts

artifacts: pulumi.Input<{ ... }>;

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

property badgeEnabled

badgeEnabled?: pulumi.Input<boolean>;

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

property buildTimeout

buildTimeout?: pulumi.Input<number>;

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.

property cache

cache?: pulumi.Input<{ ... }>;

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

property description

description?: pulumi.Input<string>;

A short description of the project.

property encryptionKey

encryptionKey?: pulumi.Input<string>;

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

property environment

environment: pulumi.Input<{ ... }>;

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

property name

name?: pulumi.Input<string>;

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

property secondaryArtifacts

secondaryArtifacts?: pulumi.Input<pulumi.Input<{ ... }>[]>;

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

property secondarySources

secondarySources?: pulumi.Input<pulumi.Input<{ ... }>[]>;

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

property serviceRole

serviceRole: pulumi.Input<string>;

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.

property source

source: pulumi.Input<{ ... }>;

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

property tags

tags?: pulumi.Input<Tags>;

A mapping of tags to assign to the resource.

property vpcConfig

vpcConfig?: pulumi.Input<{ ... }>;

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

interface ProjectState

Input properties used for looking up and filtering Project resources.

property arn

arn?: pulumi.Input<string>;

The ARN of the CodeBuild project.

property artifacts

artifacts?: pulumi.Input<{ ... }>;

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

property badgeEnabled

badgeEnabled?: pulumi.Input<boolean>;

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

property badgeUrl

badgeUrl?: pulumi.Input<string>;

The URL of the build badge when badge_enabled is enabled.

property buildTimeout

buildTimeout?: pulumi.Input<number>;

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.

property cache

cache?: pulumi.Input<{ ... }>;

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

property description

description?: pulumi.Input<string>;

A short description of the project.

property encryptionKey

encryptionKey?: pulumi.Input<string>;

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

property environment

environment?: pulumi.Input<{ ... }>;

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

property name

name?: pulumi.Input<string>;

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

property secondaryArtifacts

secondaryArtifacts?: pulumi.Input<pulumi.Input<{ ... }>[]>;

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

property secondarySources

secondarySources?: pulumi.Input<pulumi.Input<{ ... }>[]>;

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

property serviceRole

serviceRole?: pulumi.Input<string>;

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.

property source

source?: pulumi.Input<{ ... }>;

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

property tags

tags?: pulumi.Input<Tags>;

A mapping of tags to assign to the resource.

property vpcConfig

vpcConfig?: pulumi.Input<{ ... }>;

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

interface WebhookArgs

The set of arguments for constructing a Webhook resource.

property branchFilter

branchFilter?: pulumi.Input<string>;

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

property projectName

projectName: pulumi.Input<string>;

The name of the build project.

interface WebhookState

Input properties used for looking up and filtering Webhook resources.

property branchFilter

branchFilter?: pulumi.Input<string>;

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

property payloadUrl

payloadUrl?: pulumi.Input<string>;

The CodeBuild endpoint where webhook events are sent.

property projectName

projectName?: pulumi.Input<string>;

The name of the build project.

property secret

secret?: pulumi.Input<string>;

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

property url

url?: pulumi.Input<string>;

The URL to the webhook.