DockerServerComputeType
- class aws_cdk.aws_codebuild.DockerServerComputeType(*values)
Bases:
Enum
Docker server compute type.
- See:
https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DockerServer.html
- ExampleMetadata:
infused
Example:
# vpc: ec2.Vpc # my_security_group: ec2.SecurityGroup pipelines.CodeBuildStep("Synth", # ...standard ShellStep props... commands=[], env={}, # If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory # to be the synth step's output. primary_output_directory="cdk.out", # Control the name of the project project_name="MyProject", # Control parts of the BuildSpec other than the regular 'build' and 'install' commands partial_build_spec=codebuild.BuildSpec.from_object({ "version": "0.2" }), # Control the build environment build_environment=codebuild.BuildEnvironment( compute_type=codebuild.ComputeType.LARGE, privileged=True, docker_server=codebuild.DockerServerOptions( compute_type=codebuild.DockerServerComputeType.SMALL, security_groups=[my_security_group] ) ), timeout=Duration.minutes(90), file_system_locations=[ codebuild.FileSystemLocation.efs( identifier="myidentifier2", location="myclodation.mydnsroot.com:/loc", mount_point="/media", mount_options="opts" ) ], # Control Elastic Network Interface creation vpc=vpc, subnet_selection=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS), security_groups=[my_security_group], # Control caching cache=codebuild.Cache.bucket(s3.Bucket(self, "Cache")), # Additional policy statements for the execution role role_policy_statements=[ iam.PolicyStatement() ] )
Attributes
- LARGE
BUILD_GENERAL1_LARGE.
- MEDIUM
BUILD_GENERAL1_MEDIUM.
- SMALL
BUILD_GENERAL1_SMALL.
- X2_LARGE
BUILD_GENERAL1_2XLARGE.
- X_LARGE
BUILD_GENERAL1_XLARGE.