java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:58.970Z") @Stability(Stable) public class CfnFleet extends CfnResource implements IInspectable, ITaggableV2
The AWS::CodeBuild::Fleet resource configures a compute fleet, a set of dedicated instances for your build environment.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codebuild.*;
 CfnFleet cfnFleet = CfnFleet.Builder.create(this, "MyCfnFleet")
         .baseCapacity(123)
         .computeType("computeType")
         .environmentType("environmentType")
         .fleetServiceRole("fleetServiceRole")
         .fleetVpcConfig(VpcConfigProperty.builder()
                 .securityGroupIds(List.of("securityGroupIds"))
                 .subnets(List.of("subnets"))
                 .vpcId("vpcId")
                 .build())
         .name("name")
         .overflowBehavior("overflowBehavior")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnFleet

      protected CfnFleet(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnFleet

      protected CfnFleet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnFleet

      @Stability(Stable) public CfnFleet(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnFleetProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnFleet

      @Stability(Stable) public CfnFleet(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The ARN of the compute fleet.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getBaseCapacity

      @Stability(Stable) @Nullable public Number getBaseCapacity()
      The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.
    • setBaseCapacity

      @Stability(Stable) public void setBaseCapacity(@Nullable Number value)
      The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.
    • getComputeType

      @Stability(Stable) @Nullable public String getComputeType()
      Information about the compute resources the compute fleet uses.

      Available values include:.

    • setComputeType

      @Stability(Stable) public void setComputeType(@Nullable String value)
      Information about the compute resources the compute fleet uses.

      Available values include:.

    • getEnvironmentType

      @Stability(Stable) @Nullable public String getEnvironmentType()
      The environment type of the compute fleet.
    • setEnvironmentType

      @Stability(Stable) public void setEnvironmentType(@Nullable String value)
      The environment type of the compute fleet.
    • getFleetServiceRole

      @Stability(Stable) @Nullable public String getFleetServiceRole()
      The service role associated with the compute fleet.
    • setFleetServiceRole

      @Stability(Stable) public void setFleetServiceRole(@Nullable String value)
      The service role associated with the compute fleet.
    • getFleetVpcConfig

      @Stability(Stable) @Nullable public Object getFleetVpcConfig()
      Information about the VPC configuration that AWS CodeBuild accesses.
    • setFleetVpcConfig

      @Stability(Stable) public void setFleetVpcConfig(@Nullable IResolvable value)
      Information about the VPC configuration that AWS CodeBuild accesses.
    • setFleetVpcConfig

      @Stability(Stable) public void setFleetVpcConfig(@Nullable CfnFleet.VpcConfigProperty value)
      Information about the VPC configuration that AWS CodeBuild accesses.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the compute fleet.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the compute fleet.
    • getOverflowBehavior

      @Stability(Stable) @Nullable public String getOverflowBehavior()
      The compute fleet overflow behavior.
    • setOverflowBehavior

      @Stability(Stable) public void setOverflowBehavior(@Nullable String value)
      The compute fleet overflow behavior.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      A list of tag key and value pairs associated with this compute fleet.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      A list of tag key and value pairs associated with this compute fleet.