DockerServerOptions

class aws_cdk.aws_codebuild.DockerServerOptions(*, compute_type, security_groups=None)

Bases: object

The Docker server configuration CodeBuild use to build your Docker image.

Parameters:
  • compute_type (DockerServerComputeType) – The type of compute to use for the docker server. See the DockerServerComputeType enum for the possible values.

  • security_groups (Optional[Sequence[ISecurityGroup]]) – A list of maximum 5 security groups. Default: - no security group

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
from aws_cdk import aws_ec2 as ec2

# security_group: ec2.SecurityGroup

docker_server_options = codebuild.DockerServerOptions(
    compute_type=codebuild.DockerServerComputeType.SMALL,

    # the properties below are optional
    security_groups=[security_group]
)

Attributes

compute_type

The type of compute to use for the docker server.

See the DockerServerComputeType enum for the possible values.

security_groups

A list of maximum 5 security groups.

Default:
  • no security group

Note:

Security groups configured for Docker servers should allow ingress network traffic from the VPC configured in the project. They should allow ingress on port 9876.