ComputeType
- class aws_cdk.aws_codebuild.ComputeType(value)
Bases:
Enum
Build machine compute type.
- 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 ), timeout=Duration.minutes(90), # Control Elastic Network Interface creation vpc=vpc, subnet_selection=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_NAT), security_groups=[my_security_group], # Additional policy statements for the execution role role_policy_statements=[ iam.PolicyStatement() ] )
Attributes
- LARGE = 'LARGE'
- MEDIUM = 'MEDIUM'
- SMALL = 'SMALL'
- X2_LARGE = 'X2_LARGE'