Skip to content
v2.277.0

DockerServerProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const dockerServerProperty: codebuild.CfnProject.DockerServerProperty = {
  computeType: 'computeType',

  // the properties below are optional
  securityGroupIds: ['securityGroupIds'],
};
python
# 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

docker_server_property = codebuild.CfnProject.DockerServerProperty(
    compute_type="computeType",

    # the properties below are optional
    security_group_ids=["securityGroupIds"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;

DockerServerProperty dockerServerProperty = DockerServerProperty.builder()
        .computeType("computeType")

        // the properties below are optional
        .securityGroupIds(List.of("securityGroupIds"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;

var dockerServerProperty = new DockerServerProperty {
    ComputeType = "computeType",

    // the properties below are optional
    SecurityGroupIds = new [] { "securityGroupIds" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

dockerServerProperty := &DockerServerProperty{
	ComputeType: jsii.String("computeType"),

	// the properties below are optional
	SecurityGroupIds: []*string{
		jsii.String("securityGroupIds"),
	},
}

Properties ​

computeTypestringcompute_typestrcomputeTypeStringComputeTypestringComputeType*string required #
Information about the compute resources the docker server uses.
notes

Valid Values: BUILD_GENERAL1_SMALL | BUILD_GENERAL1_MEDIUM | BUILD_GENERAL1_LARGE | BUILD_GENERAL1_XLARGE | BUILD_GENERAL1_2XLARGE | BUILD_LAMBDA_1GB | BUILD_LAMBDA_2GB | BUILD_LAMBDA_4GB | BUILD_LAMBDA_8GB | BUILD_LAMBDA_10GB | ATTRIBUTE_BASED_COMPUTE | CUSTOM_INSTANCE_TYPE

securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string #
A list of one or more security groups IDs.