BuildEnvironmentCertificate
- class aws_cdk.aws_codebuild.BuildEnvironmentCertificate(*, bucket, object_key)
Bases:
object
Location of a PEM certificate on S3.
- Parameters:
bucket (
IBucket
) – The bucket where the certificate is.object_key (
str
) – The full path and name of the key file.
- ExampleMetadata:
infused
Example:
# ecr_repository: ecr.Repository codebuild.Project(self, "Project", environment=codebuild.BuildEnvironment( build_image=codebuild.WindowsBuildImage.from_ecr_repository(ecr_repository, "v1.0", codebuild.WindowsImageType.SERVER_2019), # optional certificate to include in the build image certificate=codebuild.BuildEnvironmentCertificate( bucket=s3.Bucket.from_bucket_name(self, "Bucket", "amzn-s3-demo-bucket"), object_key="path/to/cert.pem" ) ) )
Attributes
- bucket
The bucket where the certificate is.
- object_key
The full path and name of the key file.