Create Fleet
codebuild_create_fleet | R Documentation |
Creates a compute fleet¶
Description¶
Creates a compute fleet.
Usage¶
codebuild_create_fleet(name, baseCapacity, environmentType, computeType,
computeConfiguration, scalingConfiguration, overflowBehavior, vpcConfig,
proxyConfiguration, imageId, fleetServiceRole, tags)
Arguments¶
name |
[required] The name of the compute fleet. |
baseCapacity |
[required] The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel. |
environmentType |
[required] The environment type of the compute fleet.
For more information, see Build environment compute types in the CodeBuild user guide. |
computeType |
[required] Information about the compute resources the compute fleet uses. Available values include:
If you use
If you use
For more information, see On-demand environment types in the CodeBuild User Guide. |
computeConfiguration |
The compute configuration of the compute fleet. This is only
required if |
scalingConfiguration |
The scaling configuration of the compute fleet. |
overflowBehavior |
The compute fleet overflow behavior.
|
vpcConfig |
|
proxyConfiguration |
The proxy configuration of the compute fleet. |
imageId |
The Amazon Machine Image (AMI) of the compute fleet. |
fleetServiceRole |
The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide. |
tags |
A list of tag key and value pairs associated with this compute fleet. These tags are available for use by Amazon Web Services services that support CodeBuild build project tags. |
Value¶
A list with the following syntax:
list(
fleet = list(
arn = "string",
name = "string",
id = "string",
created = as.POSIXct(
"2015-01-01"
),
lastModified = as.POSIXct(
"2015-01-01"
),
status = list(
statusCode = "CREATING"|"UPDATING"|"ROTATING"|"PENDING_DELETION"|"DELETING"|"CREATE_FAILED"|"UPDATE_ROLLBACK_FAILED"|"ACTIVE",
context = "CREATE_FAILED"|"UPDATE_FAILED"|"ACTION_REQUIRED"|"PENDING_DELETION"|"INSUFFICIENT_CAPACITY",
message = "string"
),
baseCapacity = 123,
environmentType = "WINDOWS_CONTAINER"|"LINUX_CONTAINER"|"LINUX_GPU_CONTAINER"|"ARM_CONTAINER"|"WINDOWS_SERVER_2019_CONTAINER"|"LINUX_LAMBDA_CONTAINER"|"ARM_LAMBDA_CONTAINER"|"LINUX_EC2"|"ARM_EC2"|"WINDOWS_EC2"|"MAC_ARM",
computeType = "BUILD_GENERAL1_SMALL"|"BUILD_GENERAL1_MEDIUM"|"BUILD_GENERAL1_LARGE"|"BUILD_GENERAL1_XLARGE"|"BUILD_GENERAL1_2XLARGE"|"BUILD_LAMBDA_1GB"|"BUILD_LAMBDA_2GB"|"BUILD_LAMBDA_4GB"|"BUILD_LAMBDA_8GB"|"BUILD_LAMBDA_10GB"|"ATTRIBUTE_BASED_COMPUTE",
computeConfiguration = list(
vCpu = 123,
memory = 123,
disk = 123,
machineType = "GENERAL"|"NVME"
),
scalingConfiguration = list(
scalingType = "TARGET_TRACKING_SCALING",
targetTrackingScalingConfigs = list(
list(
metricType = "FLEET_UTILIZATION_RATE",
targetValue = 123.0
)
),
maxCapacity = 123,
desiredCapacity = 123
),
overflowBehavior = "QUEUE"|"ON_DEMAND",
vpcConfig = list(
vpcId = "string",
subnets = list(
"string"
),
securityGroupIds = list(
"string"
)
),
proxyConfiguration = list(
defaultBehavior = "ALLOW_ALL"|"DENY_ALL",
orderedProxyRules = list(
list(
type = "DOMAIN"|"IP",
effect = "ALLOW"|"DENY",
entities = list(
"string"
)
)
)
),
imageId = "string",
fleetServiceRole = "string",
tags = list(
list(
key = "string",
value = "string"
)
)
)
)
Request syntax¶
svc$create_fleet(
name = "string",
baseCapacity = 123,
environmentType = "WINDOWS_CONTAINER"|"LINUX_CONTAINER"|"LINUX_GPU_CONTAINER"|"ARM_CONTAINER"|"WINDOWS_SERVER_2019_CONTAINER"|"LINUX_LAMBDA_CONTAINER"|"ARM_LAMBDA_CONTAINER"|"LINUX_EC2"|"ARM_EC2"|"WINDOWS_EC2"|"MAC_ARM",
computeType = "BUILD_GENERAL1_SMALL"|"BUILD_GENERAL1_MEDIUM"|"BUILD_GENERAL1_LARGE"|"BUILD_GENERAL1_XLARGE"|"BUILD_GENERAL1_2XLARGE"|"BUILD_LAMBDA_1GB"|"BUILD_LAMBDA_2GB"|"BUILD_LAMBDA_4GB"|"BUILD_LAMBDA_8GB"|"BUILD_LAMBDA_10GB"|"ATTRIBUTE_BASED_COMPUTE",
computeConfiguration = list(
vCpu = 123,
memory = 123,
disk = 123,
machineType = "GENERAL"|"NVME"
),
scalingConfiguration = list(
scalingType = "TARGET_TRACKING_SCALING",
targetTrackingScalingConfigs = list(
list(
metricType = "FLEET_UTILIZATION_RATE",
targetValue = 123.0
)
),
maxCapacity = 123
),
overflowBehavior = "QUEUE"|"ON_DEMAND",
vpcConfig = list(
vpcId = "string",
subnets = list(
"string"
),
securityGroupIds = list(
"string"
)
),
proxyConfiguration = list(
defaultBehavior = "ALLOW_ALL"|"DENY_ALL",
orderedProxyRules = list(
list(
type = "DOMAIN"|"IP",
effect = "ALLOW"|"DENY",
entities = list(
"string"
)
)
)
),
imageId = "string",
fleetServiceRole = "string",
tags = list(
list(
key = "string",
value = "string"
)
)
)