Class Fleet
Fleet for a reserved capacity CodeBuild project.
Inherited Members
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
Remarks
Connections
The network connections associated with this Fleet's security group(s) in the configured VPC.
public virtual Connections_ Connections { get; }
Property Value
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
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
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
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
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
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
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