Show / Hide Table of Contents

Class BuildEnvironmentCertificate

Location of a PEM certificate on S3.

Inheritance
object
BuildEnvironmentCertificate
Implements
IBuildEnvironmentCertificate
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BuildEnvironmentCertificate : IBuildEnvironmentCertificate
Syntax (vb)
Public Class BuildEnvironmentCertificate Implements IBuildEnvironmentCertificate
Remarks

ExampleMetadata: infused

Examples
Repository ecrRepository;


            new Project(this, "Project", new ProjectProps {
                Environment = new BuildEnvironment {
                    BuildImage = WindowsBuildImage.FromEcrRepository(ecrRepository, "v1.0", WindowsImageType.SERVER_2019),
                    // optional certificate to include in the build image
                    Certificate = new BuildEnvironmentCertificate {
                        Bucket = Bucket.FromBucketName(this, "Bucket", "amzn-s3-demo-bucket"),
                        ObjectKey = "path/to/cert.pem"
                    }
                }
            });

Synopsis

Constructors

BuildEnvironmentCertificate()

Location of a PEM certificate on S3.

Properties

Bucket

The bucket where the certificate is.

ObjectKey

The full path and name of the key file.

Constructors

BuildEnvironmentCertificate()

Location of a PEM certificate on S3.

public BuildEnvironmentCertificate()
Remarks

ExampleMetadata: infused

Examples
Repository ecrRepository;


            new Project(this, "Project", new ProjectProps {
                Environment = new BuildEnvironment {
                    BuildImage = WindowsBuildImage.FromEcrRepository(ecrRepository, "v1.0", WindowsImageType.SERVER_2019),
                    // optional certificate to include in the build image
                    Certificate = new BuildEnvironmentCertificate {
                        Bucket = Bucket.FromBucketName(this, "Bucket", "amzn-s3-demo-bucket"),
                        ObjectKey = "path/to/cert.pem"
                    }
                }
            });

Properties

Bucket

The bucket where the certificate is.

public IBucket Bucket { get; set; }
Property Value

IBucket

Remarks

ExampleMetadata: infused

ObjectKey

The full path and name of the key file.

public string ObjectKey { get; set; }
Property Value

string

Remarks

ExampleMetadata: infused

Implements

IBuildEnvironmentCertificate
Back to top Generated by DocFX