aws.codebuild.Fleet
Explore with Pulumi AI
Provides a CodeBuild Fleet Resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.codebuild.Fleet("test", {
baseCapacity: 2,
computeType: "BUILD_GENERAL1_SMALL",
environmentType: "LINUX_CONTAINER",
name: "full-example-codebuild-fleet",
overflowBehavior: "QUEUE",
scalingConfiguration: {
maxCapacity: 5,
scalingType: "TARGET_TRACKING_SCALING",
targetTrackingScalingConfigs: [{
metricType: "FLEET_UTILIZATION_RATE",
targetValue: 97.5,
}],
},
});
import pulumi
import pulumi_aws as aws
test = aws.codebuild.Fleet("test",
base_capacity=2,
compute_type="BUILD_GENERAL1_SMALL",
environment_type="LINUX_CONTAINER",
name="full-example-codebuild-fleet",
overflow_behavior="QUEUE",
scaling_configuration={
"max_capacity": 5,
"scaling_type": "TARGET_TRACKING_SCALING",
"target_tracking_scaling_configs": [{
"metric_type": "FLEET_UTILIZATION_RATE",
"target_value": 97.5,
}],
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codebuild"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codebuild.NewFleet(ctx, "test", &codebuild.FleetArgs{
BaseCapacity: pulumi.Int(2),
ComputeType: pulumi.String("BUILD_GENERAL1_SMALL"),
EnvironmentType: pulumi.String("LINUX_CONTAINER"),
Name: pulumi.String("full-example-codebuild-fleet"),
OverflowBehavior: pulumi.String("QUEUE"),
ScalingConfiguration: &codebuild.FleetScalingConfigurationArgs{
MaxCapacity: pulumi.Int(5),
ScalingType: pulumi.String("TARGET_TRACKING_SCALING"),
TargetTrackingScalingConfigs: codebuild.FleetScalingConfigurationTargetTrackingScalingConfigArray{
&codebuild.FleetScalingConfigurationTargetTrackingScalingConfigArgs{
MetricType: pulumi.String("FLEET_UTILIZATION_RATE"),
TargetValue: pulumi.Float64(97.5),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.CodeBuild.Fleet("test", new()
{
BaseCapacity = 2,
ComputeType = "BUILD_GENERAL1_SMALL",
EnvironmentType = "LINUX_CONTAINER",
Name = "full-example-codebuild-fleet",
OverflowBehavior = "QUEUE",
ScalingConfiguration = new Aws.CodeBuild.Inputs.FleetScalingConfigurationArgs
{
MaxCapacity = 5,
ScalingType = "TARGET_TRACKING_SCALING",
TargetTrackingScalingConfigs = new[]
{
new Aws.CodeBuild.Inputs.FleetScalingConfigurationTargetTrackingScalingConfigArgs
{
MetricType = "FLEET_UTILIZATION_RATE",
TargetValue = 97.5,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codebuild.Fleet;
import com.pulumi.aws.codebuild.FleetArgs;
import com.pulumi.aws.codebuild.inputs.FleetScalingConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Fleet("test", FleetArgs.builder()
.baseCapacity(2)
.computeType("BUILD_GENERAL1_SMALL")
.environmentType("LINUX_CONTAINER")
.name("full-example-codebuild-fleet")
.overflowBehavior("QUEUE")
.scalingConfiguration(FleetScalingConfigurationArgs.builder()
.maxCapacity(5)
.scalingType("TARGET_TRACKING_SCALING")
.targetTrackingScalingConfigs(FleetScalingConfigurationTargetTrackingScalingConfigArgs.builder()
.metricType("FLEET_UTILIZATION_RATE")
.targetValue(97.5)
.build())
.build())
.build());
}
}
resources:
test:
type: aws:codebuild:Fleet
properties:
baseCapacity: 2
computeType: BUILD_GENERAL1_SMALL
environmentType: LINUX_CONTAINER
name: full-example-codebuild-fleet
overflowBehavior: QUEUE
scalingConfiguration:
maxCapacity: 5
scalingType: TARGET_TRACKING_SCALING
targetTrackingScalingConfigs:
- metricType: FLEET_UTILIZATION_RATE
targetValue: 97.5
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.codebuild.Fleet("example", {name: "example-codebuild-fleet"});
import pulumi
import pulumi_aws as aws
example = aws.codebuild.Fleet("example", name="example-codebuild-fleet")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codebuild"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codebuild.NewFleet(ctx, "example", &codebuild.FleetArgs{
Name: pulumi.String("example-codebuild-fleet"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CodeBuild.Fleet("example", new()
{
Name = "example-codebuild-fleet",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codebuild.Fleet;
import com.pulumi.aws.codebuild.FleetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Fleet("example", FleetArgs.builder()
.name("example-codebuild-fleet")
.build());
}
}
resources:
example:
type: aws:codebuild:Fleet
properties:
name: example-codebuild-fleet
Create Fleet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Fleet(name: string, args: FleetArgs, opts?: CustomResourceOptions);
@overload
def Fleet(resource_name: str,
args: FleetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Fleet(resource_name: str,
opts: Optional[ResourceOptions] = None,
base_capacity: Optional[int] = None,
compute_type: Optional[str] = None,
environment_type: Optional[str] = None,
fleet_service_role: Optional[str] = None,
image_id: Optional[str] = None,
name: Optional[str] = None,
overflow_behavior: Optional[str] = None,
scaling_configuration: Optional[FleetScalingConfigurationArgs] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_configs: Optional[Sequence[FleetVpcConfigArgs]] = None)
func NewFleet(ctx *Context, name string, args FleetArgs, opts ...ResourceOption) (*Fleet, error)
public Fleet(string name, FleetArgs args, CustomResourceOptions? opts = null)
type: aws:codebuild:Fleet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FleetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsFleetResource = new Aws.CodeBuild.Fleet("awsFleetResource", new()
{
BaseCapacity = 0,
ComputeType = "string",
EnvironmentType = "string",
FleetServiceRole = "string",
ImageId = "string",
Name = "string",
OverflowBehavior = "string",
ScalingConfiguration = new Aws.CodeBuild.Inputs.FleetScalingConfigurationArgs
{
DesiredCapacity = 0,
MaxCapacity = 0,
ScalingType = "string",
TargetTrackingScalingConfigs = new[]
{
new Aws.CodeBuild.Inputs.FleetScalingConfigurationTargetTrackingScalingConfigArgs
{
MetricType = "string",
TargetValue = 0,
},
},
},
Tags =
{
{ "string", "string" },
},
VpcConfigs = new[]
{
new Aws.CodeBuild.Inputs.FleetVpcConfigArgs
{
SecurityGroupIds = new[]
{
"string",
},
Subnets = new[]
{
"string",
},
VpcId = "string",
},
},
});
example, err := codebuild.NewFleet(ctx, "awsFleetResource", &codebuild.FleetArgs{
BaseCapacity: pulumi.Int(0),
ComputeType: pulumi.String("string"),
EnvironmentType: pulumi.String("string"),
FleetServiceRole: pulumi.String("string"),
ImageId: pulumi.String("string"),
Name: pulumi.String("string"),
OverflowBehavior: pulumi.String("string"),
ScalingConfiguration: &codebuild.FleetScalingConfigurationArgs{
DesiredCapacity: pulumi.Int(0),
MaxCapacity: pulumi.Int(0),
ScalingType: pulumi.String("string"),
TargetTrackingScalingConfigs: codebuild.FleetScalingConfigurationTargetTrackingScalingConfigArray{
&codebuild.FleetScalingConfigurationTargetTrackingScalingConfigArgs{
MetricType: pulumi.String("string"),
TargetValue: pulumi.Float64(0),
},
},
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VpcConfigs: codebuild.FleetVpcConfigArray{
&codebuild.FleetVpcConfigArgs{
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Subnets: pulumi.StringArray{
pulumi.String("string"),
},
VpcId: pulumi.String("string"),
},
},
})
var awsFleetResource = new Fleet("awsFleetResource", FleetArgs.builder()
.baseCapacity(0)
.computeType("string")
.environmentType("string")
.fleetServiceRole("string")
.imageId("string")
.name("string")
.overflowBehavior("string")
.scalingConfiguration(FleetScalingConfigurationArgs.builder()
.desiredCapacity(0)
.maxCapacity(0)
.scalingType("string")
.targetTrackingScalingConfigs(FleetScalingConfigurationTargetTrackingScalingConfigArgs.builder()
.metricType("string")
.targetValue(0)
.build())
.build())
.tags(Map.of("string", "string"))
.vpcConfigs(FleetVpcConfigArgs.builder()
.securityGroupIds("string")
.subnets("string")
.vpcId("string")
.build())
.build());
aws_fleet_resource = aws.codebuild.Fleet("awsFleetResource",
base_capacity=0,
compute_type="string",
environment_type="string",
fleet_service_role="string",
image_id="string",
name="string",
overflow_behavior="string",
scaling_configuration={
"desired_capacity": 0,
"max_capacity": 0,
"scaling_type": "string",
"target_tracking_scaling_configs": [{
"metric_type": "string",
"target_value": 0,
}],
},
tags={
"string": "string",
},
vpc_configs=[{
"security_group_ids": ["string"],
"subnets": ["string"],
"vpc_id": "string",
}])
const awsFleetResource = new aws.codebuild.Fleet("awsFleetResource", {
baseCapacity: 0,
computeType: "string",
environmentType: "string",
fleetServiceRole: "string",
imageId: "string",
name: "string",
overflowBehavior: "string",
scalingConfiguration: {
desiredCapacity: 0,
maxCapacity: 0,
scalingType: "string",
targetTrackingScalingConfigs: [{
metricType: "string",
targetValue: 0,
}],
},
tags: {
string: "string",
},
vpcConfigs: [{
securityGroupIds: ["string"],
subnets: ["string"],
vpcId: "string",
}],
});
type: aws:codebuild:Fleet
properties:
baseCapacity: 0
computeType: string
environmentType: string
fleetServiceRole: string
imageId: string
name: string
overflowBehavior: string
scalingConfiguration:
desiredCapacity: 0
maxCapacity: 0
scalingType: string
targetTrackingScalingConfigs:
- metricType: string
targetValue: 0
tags:
string: string
vpcConfigs:
- securityGroupIds:
- string
subnets:
- string
vpcId: string
Fleet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Fleet resource accepts the following input properties:
- Base
Capacity int - Number of machines allocated to the fleet.
- Compute
Type string - Compute resources the compute fleet uses. See compute types for more information and valid values.
- Environment
Type string Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- Fleet
Service stringRole - The service role associated with the compute fleet.
- Image
Id string - The Amazon Machine Image (AMI) of the compute fleet.
- Name string
- Fleet name.
- Overflow
Behavior string - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - Scaling
Configuration FleetScaling Configuration - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Vpc
Configs List<FleetVpc Config> - Configuration block. Detailed below.
- Base
Capacity int - Number of machines allocated to the fleet.
- Compute
Type string - Compute resources the compute fleet uses. See compute types for more information and valid values.
- Environment
Type string Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- Fleet
Service stringRole - The service role associated with the compute fleet.
- Image
Id string - The Amazon Machine Image (AMI) of the compute fleet.
- Name string
- Fleet name.
- Overflow
Behavior string - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - Scaling
Configuration FleetScaling Configuration Args - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Vpc
Configs []FleetVpc Config Args - Configuration block. Detailed below.
- base
Capacity Integer - Number of machines allocated to the fleet.
- compute
Type String - Compute resources the compute fleet uses. See compute types for more information and valid values.
- environment
Type String Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet
Service StringRole - The service role associated with the compute fleet.
- image
Id String - The Amazon Machine Image (AMI) of the compute fleet.
- name String
- Fleet name.
- overflow
Behavior String - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling
Configuration FleetScaling Configuration - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc
Configs List<FleetVpc Config> - Configuration block. Detailed below.
- base
Capacity number - Number of machines allocated to the fleet.
- compute
Type string - Compute resources the compute fleet uses. See compute types for more information and valid values.
- environment
Type string Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet
Service stringRole - The service role associated with the compute fleet.
- image
Id string - The Amazon Machine Image (AMI) of the compute fleet.
- name string
- Fleet name.
- overflow
Behavior string - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling
Configuration FleetScaling Configuration - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc
Configs FleetVpc Config[] - Configuration block. Detailed below.
- base_
capacity int - Number of machines allocated to the fleet.
- compute_
type str - Compute resources the compute fleet uses. See compute types for more information and valid values.
- environment_
type str Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet_
service_ strrole - The service role associated with the compute fleet.
- image_
id str - The Amazon Machine Image (AMI) of the compute fleet.
- name str
- Fleet name.
- overflow_
behavior str - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling_
configuration FleetScaling Configuration Args - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc_
configs Sequence[FleetVpc Config Args] - Configuration block. Detailed below.
- base
Capacity Number - Number of machines allocated to the fleet.
- compute
Type String - Compute resources the compute fleet uses. See compute types for more information and valid values.
- environment
Type String Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet
Service StringRole - The service role associated with the compute fleet.
- image
Id String - The Amazon Machine Image (AMI) of the compute fleet.
- name String
- Fleet name.
- overflow
Behavior String - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling
Configuration Property Map - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - vpc
Configs List<Property Map> - Configuration block. Detailed below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Fleet resource produces the following output properties:
- Arn string
- ARN of the Fleet.
- Created string
- Creation time of the fleet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - Last modification time of the fleet.
- Statuses
List<Fleet
Status> - Nested attribute containing information about the current status of the fleet.
- Dictionary<string, string>
- Arn string
- ARN of the Fleet.
- Created string
- Creation time of the fleet.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - Last modification time of the fleet.
- Statuses
[]Fleet
Status - Nested attribute containing information about the current status of the fleet.
- map[string]string
- arn String
- ARN of the Fleet.
- created String
- Creation time of the fleet.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - Last modification time of the fleet.
- statuses
List<Fleet
Status> - Nested attribute containing information about the current status of the fleet.
- Map<String,String>
- arn string
- ARN of the Fleet.
- created string
- Creation time of the fleet.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified string - Last modification time of the fleet.
- statuses
Fleet
Status[] - Nested attribute containing information about the current status of the fleet.
- {[key: string]: string}
- arn str
- ARN of the Fleet.
- created str
- Creation time of the fleet.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified str - Last modification time of the fleet.
- statuses
Sequence[Fleet
Status] - Nested attribute containing information about the current status of the fleet.
- Mapping[str, str]
- arn String
- ARN of the Fleet.
- created String
- Creation time of the fleet.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - Last modification time of the fleet.
- statuses List<Property Map>
- Nested attribute containing information about the current status of the fleet.
- Map<String>
Look up Existing Fleet Resource
Get an existing Fleet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FleetState, opts?: CustomResourceOptions): Fleet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
base_capacity: Optional[int] = None,
compute_type: Optional[str] = None,
created: Optional[str] = None,
environment_type: Optional[str] = None,
fleet_service_role: Optional[str] = None,
image_id: Optional[str] = None,
last_modified: Optional[str] = None,
name: Optional[str] = None,
overflow_behavior: Optional[str] = None,
scaling_configuration: Optional[FleetScalingConfigurationArgs] = None,
statuses: Optional[Sequence[FleetStatusArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
vpc_configs: Optional[Sequence[FleetVpcConfigArgs]] = None) -> Fleet
func GetFleet(ctx *Context, name string, id IDInput, state *FleetState, opts ...ResourceOption) (*Fleet, error)
public static Fleet Get(string name, Input<string> id, FleetState? state, CustomResourceOptions? opts = null)
public static Fleet get(String name, Output<String> id, FleetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the Fleet.
- Base
Capacity int - Number of machines allocated to the fleet.
- Compute
Type string - Compute resources the compute fleet uses. See compute types for more information and valid values.
- Created string
- Creation time of the fleet.
- Environment
Type string Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- Fleet
Service stringRole - The service role associated with the compute fleet.
- Image
Id string - The Amazon Machine Image (AMI) of the compute fleet.
- Last
Modified string - Last modification time of the fleet.
- Name string
- Fleet name.
- Overflow
Behavior string - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - Scaling
Configuration FleetScaling Configuration - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - Statuses
List<Fleet
Status> - Nested attribute containing information about the current status of the fleet.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Vpc
Configs List<FleetVpc Config> - Configuration block. Detailed below.
- Arn string
- ARN of the Fleet.
- Base
Capacity int - Number of machines allocated to the fleet.
- Compute
Type string - Compute resources the compute fleet uses. See compute types for more information and valid values.
- Created string
- Creation time of the fleet.
- Environment
Type string Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- Fleet
Service stringRole - The service role associated with the compute fleet.
- Image
Id string - The Amazon Machine Image (AMI) of the compute fleet.
- Last
Modified string - Last modification time of the fleet.
- Name string
- Fleet name.
- Overflow
Behavior string - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - Scaling
Configuration FleetScaling Configuration Args - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - Statuses
[]Fleet
Status Args - Nested attribute containing information about the current status of the fleet.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Vpc
Configs []FleetVpc Config Args - Configuration block. Detailed below.
- arn String
- ARN of the Fleet.
- base
Capacity Integer - Number of machines allocated to the fleet.
- compute
Type String - Compute resources the compute fleet uses. See compute types for more information and valid values.
- created String
- Creation time of the fleet.
- environment
Type String Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet
Service StringRole - The service role associated with the compute fleet.
- image
Id String - The Amazon Machine Image (AMI) of the compute fleet.
- last
Modified String - Last modification time of the fleet.
- name String
- Fleet name.
- overflow
Behavior String - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling
Configuration FleetScaling Configuration - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - statuses
List<Fleet
Status> - Nested attribute containing information about the current status of the fleet.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- vpc
Configs List<FleetVpc Config> - Configuration block. Detailed below.
- arn string
- ARN of the Fleet.
- base
Capacity number - Number of machines allocated to the fleet.
- compute
Type string - Compute resources the compute fleet uses. See compute types for more information and valid values.
- created string
- Creation time of the fleet.
- environment
Type string Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet
Service stringRole - The service role associated with the compute fleet.
- image
Id string - The Amazon Machine Image (AMI) of the compute fleet.
- last
Modified string - Last modification time of the fleet.
- name string
- Fleet name.
- overflow
Behavior string - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling
Configuration FleetScaling Configuration - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - statuses
Fleet
Status[] - Nested attribute containing information about the current status of the fleet.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- vpc
Configs FleetVpc Config[] - Configuration block. Detailed below.
- arn str
- ARN of the Fleet.
- base_
capacity int - Number of machines allocated to the fleet.
- compute_
type str - Compute resources the compute fleet uses. See compute types for more information and valid values.
- created str
- Creation time of the fleet.
- environment_
type str Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet_
service_ strrole - The service role associated with the compute fleet.
- image_
id str - The Amazon Machine Image (AMI) of the compute fleet.
- last_
modified str - Last modification time of the fleet.
- name str
- Fleet name.
- overflow_
behavior str - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling_
configuration FleetScaling Configuration Args - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - statuses
Sequence[Fleet
Status Args] - Nested attribute containing information about the current status of the fleet.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- vpc_
configs Sequence[FleetVpc Config Args] - Configuration block. Detailed below.
- arn String
- ARN of the Fleet.
- base
Capacity Number - Number of machines allocated to the fleet.
- compute
Type String - Compute resources the compute fleet uses. See compute types for more information and valid values.
- created String
- Creation time of the fleet.
- environment
Type String Environment type of the compute fleet. See environment types for more information and valid values.
The following arguments are optional:
- fleet
Service StringRole - The service role associated with the compute fleet.
- image
Id String - The Amazon Machine Image (AMI) of the compute fleet.
- last
Modified String - Last modification time of the fleet.
- name String
- Fleet name.
- overflow
Behavior String - Overflow behavior for compute fleet. Valid values:
ON_DEMAND
,QUEUE
. - scaling
Configuration Property Map - Configuration block. Detailed below. This option is only valid when your overflow behavior is
QUEUE
. - statuses List<Property Map>
- Nested attribute containing information about the current status of the fleet.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- vpc
Configs List<Property Map> - Configuration block. Detailed below.
Supporting Types
FleetScalingConfiguration, FleetScalingConfigurationArgs
- Desired
Capacity int - Max
Capacity int - Maximum number of instances in the fleet when auto-scaling.
- Scaling
Type string - Scaling type for a compute fleet. Valid value:
TARGET_TRACKING_SCALING
. - Target
Tracking List<FleetScaling Configs Scaling Configuration Target Tracking Scaling Config> - Configuration block. Detailed below.
- Desired
Capacity int - Max
Capacity int - Maximum number of instances in the fleet when auto-scaling.
- Scaling
Type string - Scaling type for a compute fleet. Valid value:
TARGET_TRACKING_SCALING
. - Target
Tracking []FleetScaling Configs Scaling Configuration Target Tracking Scaling Config - Configuration block. Detailed below.
- desired
Capacity Integer - max
Capacity Integer - Maximum number of instances in the fleet when auto-scaling.
- scaling
Type String - Scaling type for a compute fleet. Valid value:
TARGET_TRACKING_SCALING
. - target
Tracking List<FleetScaling Configs Scaling Configuration Target Tracking Scaling Config> - Configuration block. Detailed below.
- desired
Capacity number - max
Capacity number - Maximum number of instances in the fleet when auto-scaling.
- scaling
Type string - Scaling type for a compute fleet. Valid value:
TARGET_TRACKING_SCALING
. - target
Tracking FleetScaling Configs Scaling Configuration Target Tracking Scaling Config[] - Configuration block. Detailed below.
- desired_
capacity int - max_
capacity int - Maximum number of instances in the fleet when auto-scaling.
- scaling_
type str - Scaling type for a compute fleet. Valid value:
TARGET_TRACKING_SCALING
. - target_
tracking_ Sequence[Fleetscaling_ configs Scaling Configuration Target Tracking Scaling Config] - Configuration block. Detailed below.
- desired
Capacity Number - max
Capacity Number - Maximum number of instances in the fleet when auto-scaling.
- scaling
Type String - Scaling type for a compute fleet. Valid value:
TARGET_TRACKING_SCALING
. - target
Tracking List<Property Map>Scaling Configs - Configuration block. Detailed below.
FleetScalingConfigurationTargetTrackingScalingConfig, FleetScalingConfigurationTargetTrackingScalingConfigArgs
- Metric
Type string - Metric type to determine auto-scaling. Valid value:
FLEET_UTILIZATION_RATE
. - Target
Value double - Value of metricType when to start scaling.
- Metric
Type string - Metric type to determine auto-scaling. Valid value:
FLEET_UTILIZATION_RATE
. - Target
Value float64 - Value of metricType when to start scaling.
- metric
Type String - Metric type to determine auto-scaling. Valid value:
FLEET_UTILIZATION_RATE
. - target
Value Double - Value of metricType when to start scaling.
- metric
Type string - Metric type to determine auto-scaling. Valid value:
FLEET_UTILIZATION_RATE
. - target
Value number - Value of metricType when to start scaling.
- metric_
type str - Metric type to determine auto-scaling. Valid value:
FLEET_UTILIZATION_RATE
. - target_
value float - Value of metricType when to start scaling.
- metric
Type String - Metric type to determine auto-scaling. Valid value:
FLEET_UTILIZATION_RATE
. - target
Value Number - Value of metricType when to start scaling.
FleetStatus, FleetStatusArgs
- Context string
- Additional information about a compute fleet.
- Message string
- Message associated with the status of a compute fleet.
- Status
Code string - Status code of the compute fleet.
- Context string
- Additional information about a compute fleet.
- Message string
- Message associated with the status of a compute fleet.
- Status
Code string - Status code of the compute fleet.
- context String
- Additional information about a compute fleet.
- message String
- Message associated with the status of a compute fleet.
- status
Code String - Status code of the compute fleet.
- context string
- Additional information about a compute fleet.
- message string
- Message associated with the status of a compute fleet.
- status
Code string - Status code of the compute fleet.
- context str
- Additional information about a compute fleet.
- message str
- Message associated with the status of a compute fleet.
- status_
code str - Status code of the compute fleet.
- context String
- Additional information about a compute fleet.
- message String
- Message associated with the status of a compute fleet.
- status
Code String - Status code of the compute fleet.
FleetVpcConfig, FleetVpcConfigArgs
- Security
Group List<string>Ids - A list of one or more security groups IDs in your Amazon VPC.
- Subnets List<string>
- A list of one or more subnet IDs in your Amazon VPC.
- Vpc
Id string - The ID of the Amazon VPC.
- Security
Group []stringIds - A list of one or more security groups IDs in your Amazon VPC.
- Subnets []string
- A list of one or more subnet IDs in your Amazon VPC.
- Vpc
Id string - The ID of the Amazon VPC.
- security
Group List<String>Ids - A list of one or more security groups IDs in your Amazon VPC.
- subnets List<String>
- A list of one or more subnet IDs in your Amazon VPC.
- vpc
Id String - The ID of the Amazon VPC.
- security
Group string[]Ids - A list of one or more security groups IDs in your Amazon VPC.
- subnets string[]
- A list of one or more subnet IDs in your Amazon VPC.
- vpc
Id string - The ID of the Amazon VPC.
- security_
group_ Sequence[str]ids - A list of one or more security groups IDs in your Amazon VPC.
- subnets Sequence[str]
- A list of one or more subnet IDs in your Amazon VPC.
- vpc_
id str - The ID of the Amazon VPC.
- security
Group List<String>Ids - A list of one or more security groups IDs in your Amazon VPC.
- subnets List<String>
- A list of one or more subnet IDs in your Amazon VPC.
- vpc
Id String - The ID of the Amazon VPC.
Import
Using pulumi import
, import CodeBuild Fleet using the name
. For example:
$ pulumi import aws:codebuild/fleet:Fleet name fleet-name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.