Class DockerImageOptions
The options when creating a CodeBuild Docker build image using LinuxBuildImage.fromDockerRegistry
or WindowsBuildImage.fromDockerRegistry
.
Inheritance
System.Object
DockerImageOptions
Implements
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DockerImageOptions : Object, IDockerImageOptions
Syntax (vb)
Public Class DockerImageOptions
Inherits Object
Implements IDockerImageOptions
Remarks
ExampleMetadata: lit=aws-codebuild/test/integ.docker-registry.lit.ts infused
Examples
Environment = new BuildEnvironment {
BuildImage = LinuxBuildImage.FromDockerRegistry("my-registry/my-repo", new DockerImageOptions {
SecretsManagerCredentials = secrets
})
}
Synopsis
Constructors
DockerImageOptions() |
Properties
SecretsManagerCredentials | The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private. |
Constructors
DockerImageOptions()
public DockerImageOptions()
Properties
SecretsManagerCredentials
The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private.
public ISecret SecretsManagerCredentials { get; set; }
Property Value
Remarks
Default: no credentials will be used (we assume the repository is public)