A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.WindowsBuildImage.html below:

class WindowsBuildImage · AWS CDK

class WindowsBuildImage

Implements IBuildImage

A CodeBuild image running Windows.

This class has a bunch of public constants that represent the most popular images.

You can also specify a custom image using one of the static methods:

See also: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html

Example
declare const ecrRepository: ecr.Repository;

new codebuild.Project(this, 'Project', {
  environment: {
    buildImage: codebuild.WindowsBuildImage.fromEcrRepository(ecrRepository, 'v1.0', codebuild.WindowsImageType.SERVER_2019),
    
    certificate: {
      bucket: s3.Bucket.fromBucketName(this, 'Bucket', 'amzn-s3-demo-bucket'),
      objectKey: 'path/to/cert.pem',
    },
  },
  
})
Properties Name Type Description defaultComputeType ComputeType The default ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly. imageId string The Docker image identifier that the build environment uses. type string The type of build environment. imagePullPrincipalType? ImagePullPrincipalType The type of principal that CodeBuild will use to pull this build Docker image. repository? IRepository An optional ECR repository that the image is hosted in. secretsManagerCredentials? ISecret The secretsManagerCredentials for access to a private registry. static WINDOWS_BASE_2_0⚠️ IBuildImage The standard CodeBuild image aws/codebuild/windows-base:2.0, which is based off Windows Server Core 2016. static WIN_SERVER_CORE_2019_BASE IBuildImage The standard CodeBuild image aws/codebuild/windows-base:2019-1.0, which is based off Windows Server Core 2019. static WIN_SERVER_CORE_2019_BASE_2_0 IBuildImage The standard CodeBuild image aws/codebuild/windows-base:2019-2.0, which is based off Windows Server Core 2019. static WIN_SERVER_CORE_2019_BASE_3_0 IBuildImage The standard CodeBuild image aws/codebuild/windows-base:2019-3.0, which is based off Windows Server Core 2019. static WIN_SERVER_CORE_2022_BASE_3_0 IBuildImage The standard CodeBuild image aws/codebuild/windows-base:2022-1.0, which is based off Windows Server Core 2022. defaultComputeType

Type: ComputeType

The default ComputeType to use with this image, if one was not specified in BuildEnvironment#computeType explicitly.

imageId

Type: string

The Docker image identifier that the build environment uses.

type

Type: string

The type of build environment.

imagePullPrincipalType?

Type: ImagePullPrincipalType (optional)

The type of principal that CodeBuild will use to pull this build Docker image.

repository?

Type: IRepository (optional)

An optional ECR repository that the image is hosted in.

secretsManagerCredentials?

Type: ISecret (optional)

The secretsManagerCredentials for access to a private registry.

static WINDOWS_BASE_2_0⚠️

⚠️ Deprecated: {@link WindowsBuildImage.WIN_SERVER_CORE_2019_BASE_3_0 } should be used instead.

Type: IBuildImage

The standard CodeBuild image aws/codebuild/windows-base:2.0, which is based off Windows Server Core 2016.

static WIN_SERVER_CORE_2019_BASE

Type: IBuildImage

The standard CodeBuild image aws/codebuild/windows-base:2019-1.0, which is based off Windows Server Core 2019.

static WIN_SERVER_CORE_2019_BASE_2_0

Type: IBuildImage

The standard CodeBuild image aws/codebuild/windows-base:2019-2.0, which is based off Windows Server Core 2019.

static WIN_SERVER_CORE_2019_BASE_3_0

Type: IBuildImage

The standard CodeBuild image aws/codebuild/windows-base:2019-3.0, which is based off Windows Server Core 2019.

static WIN_SERVER_CORE_2022_BASE_3_0

Type: IBuildImage

The standard CodeBuild image aws/codebuild/windows-base:2022-1.0, which is based off Windows Server Core 2022.

Notice: Cannot be used with on-demand compute, only with a {@link BuildEnvironment.fleet}.

See also: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

Methods Name Description runScriptBuildspec(entrypoint) Make a buildspec to run the indicated script. validate(buildEnvironment) Allows the image a chance to validate whether the passed configuration is correct. static fromAsset(scope, id, props, imageType?) Uses an Docker image asset as a Windows build image. static fromDockerRegistry(name, options?, imageType?) static fromEcrRepository(repository, tagOrDigest?, imageType?) runScriptBuildspec(entrypoint)
public runScriptBuildspec(entrypoint: string): BuildSpec

Parameters

Returns

Make a buildspec to run the indicated script.

validate(buildEnvironment)
public validate(buildEnvironment: BuildEnvironment): string[]

Parameters

Returns

Allows the image a chance to validate whether the passed configuration is correct.

static fromAsset(scope, id, props, imageType?)
public static fromAsset(scope: Construct, id: string, props: DockerImageAssetProps, imageType?: WindowsImageType): IBuildImage

Parameters

Returns

Uses an Docker image asset as a Windows build image.

static fromDockerRegistry(name, options?, imageType?)
public static fromDockerRegistry(name: string, options?: DockerImageOptions, imageType?: WindowsImageType): IBuildImage

Parameters

Returns

static fromEcrRepository(repository, tagOrDigest?, imageType?)
public static fromEcrRepository(repository: IRepository, tagOrDigest?: string, imageType?: WindowsImageType): IBuildImage

Parameters

Returns

See also: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-ecr.html


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4