Interface DockerImageOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DockerImageOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.776Z") @Stability(Stable) public interface DockerImageOptions extends software.amazon.jsii.JsiiSerializable
The options when creating a CodeBuild Docker build image using
invalid @link
LinuxBuildImage.fromDockerRegistry
or
invalid @link
WindowsBuildImage.fromDockerRegistry
.

Example:

 .environment(BuildEnvironment.builder()
         .buildImage(LinuxBuildImage.fromDockerRegistry("my-registry/my-repo", DockerImageOptions.builder()
                 .secretsManagerCredentials(secrets)
                 .build()))
         .build())
 .build();
 
  • Method Details

    • getSecretsManagerCredentials

      @Stability(Stable) @Nullable default ISecret getSecretsManagerCredentials()
      The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private.

      Default: no credentials will be used (we assume the repository is public)

    • builder

      @Stability(Stable) static DockerImageOptions.Builder builder()
      Returns:
      a DockerImageOptions.Builder of DockerImageOptions