Show / Hide Table of Contents

Class Fleet

Fleet for a reserved capacity CodeBuild project.

Inheritance
object
Resource
Fleet
Implements
IFleet
IResource
IConstruct
IDependable
IEnvironmentAware
IGrantable
IConnectable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Fleet : Resource, IFleet, IResource, IConstruct, IDependable, IEnvironmentAware, IGrantable, IConnectable
Syntax (vb)
Public Class Fleet Inherits Resource Implements IFleet, IResource, IConstruct, IDependable, IEnvironmentAware, IGrantable, IConnectable
Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

Examples
var fleet = new Fleet(this, "Fleet", new FleetProps {
                 ComputeType = FleetComputeType.MEDIUM,
                 EnvironmentType = EnvironmentType.LINUX_CONTAINER,
                 BaseCapacity = 1
             });

             new Project(this, "Project", new ProjectProps {
                 Environment = new BuildEnvironment {
                     Fleet = fleet,
                     BuildImage = LinuxBuildImage.STANDARD_7_0
                 }
             });

Synopsis

Constructors

Fleet(Construct, string, IFleetProps)

Fleet for a reserved capacity CodeBuild project.

Properties

ComputeType

The compute type of the fleet.

Connections

The network connections associated with this Fleet's security group(s) in the configured VPC.

EnvironmentType

The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.

FleetArn

The ARN of the fleet.

FleetName

The name of the fleet.

GrantPrincipal

The grant principal for this Fleet's service role.

PROPERTY_INJECTION_ID

Uniquely identifies this class.

Methods

FromFleetArn(Construct, string, string)

Creates a Fleet construct that represents an external fleet.

Constructors

Fleet(Construct, string, IFleetProps)

Fleet for a reserved capacity CodeBuild project.

public Fleet(Construct scope, string id, IFleetProps props)
Parameters
scope Construct
id string
props IFleetProps
Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

Examples
var fleet = new Fleet(this, "Fleet", new FleetProps {
                 ComputeType = FleetComputeType.MEDIUM,
                 EnvironmentType = EnvironmentType.LINUX_CONTAINER,
                 BaseCapacity = 1
             });

             new Project(this, "Project", new ProjectProps {
                 Environment = new BuildEnvironment {
                     Fleet = fleet,
                     BuildImage = LinuxBuildImage.STANDARD_7_0
                 }
             });

Properties

ComputeType

The compute type of the fleet.

public virtual FleetComputeType ComputeType { get; }
Property Value

FleetComputeType

Remarks

See: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.ComputeType.html

Connections

The network connections associated with this Fleet's security group(s) in the configured VPC.

public virtual Connections_ Connections { get; }
Property Value

Connections_

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

EnvironmentType

The build environment (operating system/architecture/accelerator) type made available to projects using this fleet.

public virtual EnvironmentType EnvironmentType { get; }
Property Value

EnvironmentType

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

FleetArn

The ARN of the fleet.

public virtual string FleetArn { get; }
Property Value

string

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

FleetName

The name of the fleet.

public virtual string FleetName { get; }
Property Value

string

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

GrantPrincipal

The grant principal for this Fleet's service role.

public virtual IPrincipal GrantPrincipal { get; }
Property Value

IPrincipal

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

Methods

FromFleetArn(Construct, string, string)

Creates a Fleet construct that represents an external fleet.

public static IFleet FromFleetArn(Construct scope, string id, string fleetArn)
Parameters
scope Construct

The scope creating construct (usually this).

id string

The construct's id.

fleetArn string

The ARN of the fleet.

Returns

IFleet

Remarks

Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects.

You will be charged for the resources in the fleet, even if they are idle.

See: https://docs.aws.amazon.com/codebuild/latest/userguide/fleets.html

ExampleMetadata: infused

Implements

IFleet
IResource
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
IGrantable
IConnectable
Back to top Generated by DocFX