aws-cdk-lib.aws_codebuild.BuildEnvironmentCertificate

interface BuildEnvironmentCertificate

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.BuildEnvironmentCertificate
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#BuildEnvironmentCertificate
Javasoftware.amazon.awscdk.services.codebuild.BuildEnvironmentCertificate
Pythonaws_cdk.aws_codebuild.BuildEnvironmentCertificate
TypeScript (source)aws-cdk-lib » aws_codebuild » BuildEnvironmentCertificate

Location of a PEM certificate on S3.

Example

declare const ecrRepository: ecr.Repository;

new codebuild.Project(this, 'Project', {
  environment: {
    buildImage: codebuild.WindowsBuildImage.fromEcrRepository(ecrRepository, 'v1.0', codebuild.WindowsImageType.SERVER_2019),
    // optional certificate to include in the build image
    certificate: {
      bucket: s3.Bucket.fromBucketName(this, 'Bucket', 'my-bucket'),
      objectKey: 'path/to/cert.pem',
    },
  },
  // ...
})

Properties

NameTypeDescription
bucketIBucketThe bucket where the certificate is.
objectKeystringThe full path and name of the key file.

bucket

Type: IBucket

The bucket where the certificate is.


objectKey

Type: string

The full path and name of the key file.