WindowsImageType

class aws_cdk.aws_codebuild.WindowsImageType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Environment type for Windows Docker images.

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

SERVER_2019

The WINDOWS_SERVER_2019_CONTAINER environment type.

SERVER_2022

The WINDOWS_SERVER_2022_CONTAINER environment type.

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

See:

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

STANDARD

The standard environment type, WINDOWS_CONTAINER.