com.pulumi.aws.codebuild.Fleet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.codebuild;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.codebuild.FleetArgs;
import com.pulumi.aws.codebuild.inputs.FleetState;
import com.pulumi.aws.codebuild.outputs.FleetScalingConfiguration;
import com.pulumi.aws.codebuild.outputs.FleetStatus;
import com.pulumi.aws.codebuild.outputs.FleetVpcConfig;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Provides a CodeBuild Fleet Resource.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Using `pulumi import`, import CodeBuild Fleet using the `name`. For example:
*
* ```sh
* $ pulumi import aws:codebuild/fleet:Fleet name fleet-name
* ```
*
*/
@ResourceType(type="aws:codebuild/fleet:Fleet")
public class Fleet extends com.pulumi.resources.CustomResource {
/**
* ARN of the Fleet.
*
*/
@Export(name="arn", refs={String.class}, tree="[0]")
private Output arn;
/**
* @return ARN of the Fleet.
*
*/
public Output arn() {
return this.arn;
}
/**
* Number of machines allocated to the fleet.
*
*/
@Export(name="baseCapacity", refs={Integer.class}, tree="[0]")
private Output baseCapacity;
/**
* @return Number of machines allocated to the fleet.
*
*/
public Output baseCapacity() {
return this.baseCapacity;
}
/**
* Compute resources the compute fleet uses. See [compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types) for more information and valid values.
*
*/
@Export(name="computeType", refs={String.class}, tree="[0]")
private Output computeType;
/**
* @return Compute resources the compute fleet uses. See [compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types) for more information and valid values.
*
*/
public Output computeType() {
return this.computeType;
}
/**
* Creation time of the fleet.
*
*/
@Export(name="created", refs={String.class}, tree="[0]")
private Output created;
/**
* @return Creation time of the fleet.
*
*/
public Output created() {
return this.created;
}
/**
* Environment type of the compute fleet. See [environment types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types) for more information and valid values.
*
* The following arguments are optional:
*
*/
@Export(name="environmentType", refs={String.class}, tree="[0]")
private Output environmentType;
/**
* @return Environment type of the compute fleet. See [environment types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types) for more information and valid values.
*
* The following arguments are optional:
*
*/
public Output environmentType() {
return this.environmentType;
}
/**
* The service role associated with the compute fleet.
*
*/
@Export(name="fleetServiceRole", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> fleetServiceRole;
/**
* @return The service role associated with the compute fleet.
*
*/
public Output> fleetServiceRole() {
return Codegen.optional(this.fleetServiceRole);
}
/**
* The Amazon Machine Image (AMI) of the compute fleet.
*
*/
@Export(name="imageId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> imageId;
/**
* @return The Amazon Machine Image (AMI) of the compute fleet.
*
*/
public Output> imageId() {
return Codegen.optional(this.imageId);
}
/**
* Last modification time of the fleet.
*
*/
@Export(name="lastModified", refs={String.class}, tree="[0]")
private Output lastModified;
/**
* @return Last modification time of the fleet.
*
*/
public Output lastModified() {
return this.lastModified;
}
/**
* Fleet name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Fleet name.
*
*/
public Output name() {
return this.name;
}
/**
* Overflow behavior for compute fleet. Valid values: `ON_DEMAND`, `QUEUE`.
*
*/
@Export(name="overflowBehavior", refs={String.class}, tree="[0]")
private Output overflowBehavior;
/**
* @return Overflow behavior for compute fleet. Valid values: `ON_DEMAND`, `QUEUE`.
*
*/
public Output overflowBehavior() {
return this.overflowBehavior;
}
/**
* Configuration block. Detailed below. This option is only valid when your overflow behavior is `QUEUE`.
*
*/
@Export(name="scalingConfiguration", refs={FleetScalingConfiguration.class}, tree="[0]")
private Output* @Nullable */ FleetScalingConfiguration> scalingConfiguration;
/**
* @return Configuration block. Detailed below. This option is only valid when your overflow behavior is `QUEUE`.
*
*/
public Output> scalingConfiguration() {
return Codegen.optional(this.scalingConfiguration);
}
/**
* Nested attribute containing information about the current status of the fleet.
*
*/
@Export(name="statuses", refs={List.class,FleetStatus.class}, tree="[0,1]")
private Output> statuses;
/**
* @return Nested attribute containing information about the current status of the fleet.
*
*/
public Output> statuses() {
return this.statuses;
}
/**
* 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.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return 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.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* @deprecated
* Please use `tags` instead.
*
*/
@Deprecated /* Please use `tags` instead. */
@Export(name="tagsAll", refs={Map.class,String.class}, tree="[0,1,1]")
private Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy