Show / Hide Table of Contents

Class ComputeType

Build machine compute type.

Inheritance
System.Object
ComputeType
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.AWS.CodeBuild.dll
Syntax (csharp)
public sealed class ComputeType : Enum
Syntax (vb)
Public NotInheritable Class ComputeType
    Inherits

     Enum
Remarks

ExampleMetadata: infused

Examples
Vpc vpc;
SecurityGroup mySecurityGroup;

new CodeBuildStep("Synth", new CodeBuildStepProps {
    // ...standard ShellStep props...
    Commands = new [] {  },
    Env = new Dictionary<string, object> { },

    // If you are using a CodeBuildStep explicitly, set the 'cdk.out' directory
    // to be the synth step's output.
    PrimaryOutputDirectory = "cdk.out",

    // Control the name of the project
    ProjectName = "MyProject",

    // Control parts of the BuildSpec other than the regular 'build' and 'install' commands
    PartialBuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {
        { "version", "0.2" }
    }),

    // Control the build environment
    BuildEnvironment = new BuildEnvironment {
        ComputeType = ComputeType.LARGE
    },
    Timeout = Duration.Minutes(90),

    // Control Elastic Network Interface creation
    Vpc = vpc,
    SubnetSelection = new SubnetSelection { SubnetType = SubnetType.PRIVATE_WITH_NAT },
    SecurityGroups = new [] { mySecurityGroup },

    // Additional policy statements for the execution role
    RolePolicyStatements = new [] {
        new PolicyStatement(new PolicyStatementProps { }) }
});

Synopsis

Fields

LARGE
MEDIUM
SMALL
value__
X2_LARGE

Fields

LARGE

public const ComputeType LARGE
Field Value
Type Description
ComputeType

MEDIUM

public const ComputeType MEDIUM
Field Value
Type Description
ComputeType

SMALL

public const ComputeType SMALL
Field Value
Type Description
ComputeType

value__

public int value__
Field Value
Type Description
System.Int32

X2_LARGE

public const ComputeType X2_LARGE
Field Value
Type Description
ComputeType
Back to top Generated by DocFX