ComputeType
- class aws_cdk.aws_codebuild.ComputeType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Build machine compute type.
- See:
- 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 ), 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
- LAMBDA_10GB = 'LAMBDA_10GB'
- LAMBDA_1GB = 'LAMBDA_1GB'
- LAMBDA_2GB = 'LAMBDA_2GB'
- LAMBDA_4GB = 'LAMBDA_4GB'
- LAMBDA_8GB = 'LAMBDA_8GB'
- LARGE = 'LARGE'
- MEDIUM = 'MEDIUM'
- SMALL = 'SMALL'
- X2_LARGE = 'X2_LARGE'
- X_LARGE = 'X_LARGE'