# Artifacts

Artifacts definition for a CodeBuild Project.

Extends: Artifacts
Implements: IArtifacts

- Source: [`aws-codebuild/lib/artifacts.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-codebuild/lib/artifacts.ts#L55)

## Example

```ts
declare const bucket: s3.Bucket;

const project = new codebuild.Project(this, 'MyProject', {
  buildSpec: codebuild.BuildSpec.fromObject({
    version: '0.2',
  }),
  artifacts: codebuild.Artifacts.s3({
      bucket,
      includeBuildId: false,
      packageZip: true,
      path: 'another/path',
      identifier: 'AddArtifact1',
    }),
});
```

## Properties

- `identifier`: string — The artifact identifier.

  This property is required on secondary artifacts.

- `type`: string (required) — The CodeBuild type of this artifact.

## Methods

- `bind(_scope: Construct, _project: IProject): ArtifactsConfig` — Callback when an Artifacts class is used in a CodeBuild Project.

- `s3(props: S3ArtifactsProps): IArtifacts` (static)
