aws-sdk-codebuild 1.135.0 → 1.136.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1438,6 +1438,38 @@ module Aws::CodeBuild
1438
1438
  include Aws::Structure
1439
1439
  end
1440
1440
 
1441
+ # Contains compute attributes. These attributes only need be specified
1442
+ # when your project's or fleet's `computeType` is set to
1443
+ # `ATTRIBUTE_BASED_COMPUTE`.
1444
+ #
1445
+ # @!attribute [rw] v_cpu
1446
+ # The number of vCPUs of the instance type included in your fleet.
1447
+ # @return [Integer]
1448
+ #
1449
+ # @!attribute [rw] memory
1450
+ # The amount of memory of the instance type included in your fleet.
1451
+ # @return [Integer]
1452
+ #
1453
+ # @!attribute [rw] disk
1454
+ # The amount of disk space of the instance type included in your
1455
+ # fleet.
1456
+ # @return [Integer]
1457
+ #
1458
+ # @!attribute [rw] machine_type
1459
+ # The machine type of the instance type included in your fleet.
1460
+ # @return [String]
1461
+ #
1462
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ComputeConfiguration AWS API Documentation
1463
+ #
1464
+ class ComputeConfiguration < Struct.new(
1465
+ :v_cpu,
1466
+ :memory,
1467
+ :disk,
1468
+ :machine_type)
1469
+ SENSITIVE = []
1470
+ include Aws::Structure
1471
+ end
1472
+
1441
1473
  # @!attribute [rw] name
1442
1474
  # The name of the compute fleet.
1443
1475
  # @return [String]
@@ -1498,52 +1530,89 @@ module Aws::CodeBuild
1498
1530
  # Information about the compute resources the compute fleet uses.
1499
1531
  # Available values include:
1500
1532
  #
1501
- # * `BUILD_GENERAL1_SMALL`: Use up to 3 GB memory and 2 vCPUs for
1533
+ # * `ATTRIBUTE_BASED_COMPUTE`: Specify the amount of vCPUs, memory,
1534
+ # disk space, and the type of machine.
1535
+ #
1536
+ # <note markdown="1"> If you use `ATTRIBUTE_BASED_COMPUTE`, you must define your
1537
+ # attributes by using `computeConfiguration`. CodeBuild will select
1538
+ # the cheapest instance that satisfies your specified attributes.
1539
+ # For more information, see [Reserved capacity environment types][1]
1540
+ # in the *CodeBuild User Guide*.
1541
+ #
1542
+ # </note>
1543
+ #
1544
+ # * `BUILD_GENERAL1_SMALL`: Use up to 4 GiB memory and 2 vCPUs for
1502
1545
  # builds.
1503
1546
  #
1504
- # * `BUILD_GENERAL1_MEDIUM`: Use up to 7 GB memory and 4 vCPUs for
1547
+ # * `BUILD_GENERAL1_MEDIUM`: Use up to 8 GiB memory and 4 vCPUs for
1505
1548
  # builds.
1506
1549
  #
1507
- # * `BUILD_GENERAL1_LARGE`: Use up to 16 GB memory and 8 vCPUs for
1550
+ # * `BUILD_GENERAL1_LARGE`: Use up to 16 GiB memory and 8 vCPUs for
1508
1551
  # builds, depending on your environment type.
1509
1552
  #
1510
- # * `BUILD_GENERAL1_XLARGE`: Use up to 70 GB memory and 36 vCPUs for
1553
+ # * `BUILD_GENERAL1_XLARGE`: Use up to 72 GiB memory and 36 vCPUs for
1511
1554
  # builds, depending on your environment type.
1512
1555
  #
1513
- # * `BUILD_GENERAL1_2XLARGE`: Use up to 145 GB memory, 72 vCPUs, and
1556
+ # * `BUILD_GENERAL1_2XLARGE`: Use up to 144 GiB memory, 72 vCPUs, and
1514
1557
  # 824 GB of SSD storage for builds. This compute type supports
1515
1558
  # Docker images up to 100 GB uncompressed.
1516
1559
  #
1560
+ # * `BUILD_LAMBDA_1GB`: Use up to 1 GiB memory for builds. Only
1561
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
1562
+ # `ARM_LAMBDA_CONTAINER`.
1563
+ #
1564
+ # * `BUILD_LAMBDA_2GB`: Use up to 2 GiB memory for builds. Only
1565
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
1566
+ # `ARM_LAMBDA_CONTAINER`.
1567
+ #
1568
+ # * `BUILD_LAMBDA_4GB`: Use up to 4 GiB memory for builds. Only
1569
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
1570
+ # `ARM_LAMBDA_CONTAINER`.
1571
+ #
1572
+ # * `BUILD_LAMBDA_8GB`: Use up to 8 GiB memory for builds. Only
1573
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
1574
+ # `ARM_LAMBDA_CONTAINER`.
1575
+ #
1576
+ # * `BUILD_LAMBDA_10GB`: Use up to 10 GiB memory for builds. Only
1577
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
1578
+ # `ARM_LAMBDA_CONTAINER`.
1579
+ #
1517
1580
  # If you use `BUILD_GENERAL1_SMALL`:
1518
1581
  #
1519
- # * For environment type `LINUX_CONTAINER`, you can use up to 3 GB
1582
+ # * For environment type `LINUX_CONTAINER`, you can use up to 4 GiB
1520
1583
  # memory and 2 vCPUs for builds.
1521
1584
  #
1522
1585
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 16
1523
- # GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
1586
+ # GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
1524
1587
  #
1525
- # * For environment type `ARM_CONTAINER`, you can use up to 4 GB
1588
+ # * For environment type `ARM_CONTAINER`, you can use up to 4 GiB
1526
1589
  # memory and 2 vCPUs on ARM-based processors for builds.
1527
1590
  #
1528
1591
  # If you use `BUILD_GENERAL1_LARGE`:
1529
1592
  #
1530
- # * For environment type `LINUX_CONTAINER`, you can use up to 15 GB
1593
+ # * For environment type `LINUX_CONTAINER`, you can use up to 16 GiB
1531
1594
  # memory and 8 vCPUs for builds.
1532
1595
  #
1533
1596
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 255
1534
- # GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
1597
+ # GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
1535
1598
  #
1536
- # * For environment type `ARM_CONTAINER`, you can use up to 16 GB
1599
+ # * For environment type `ARM_CONTAINER`, you can use up to 16 GiB
1537
1600
  # memory and 8 vCPUs on ARM-based processors for builds.
1538
1601
  #
1539
- # For more information, see [Build environment compute types][1] in
1540
- # the *CodeBuild User Guide.*
1602
+ # For more information, see [On-demand environment types][2] in the
1603
+ # *CodeBuild User Guide.*
1541
1604
  #
1542
1605
  #
1543
1606
  #
1544
- # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
1607
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
1608
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
1545
1609
  # @return [String]
1546
1610
  #
1611
+ # @!attribute [rw] compute_configuration
1612
+ # The compute configuration of the compute fleet. This is only
1613
+ # required if `computeType` is set to `ATTRIBUTE_BASED_COMPUTE`.
1614
+ # @return [Types::ComputeConfiguration]
1615
+ #
1547
1616
  # @!attribute [rw] scaling_configuration
1548
1617
  # The scaling configuration of the compute fleet.
1549
1618
  # @return [Types::ScalingConfigurationInput]
@@ -1608,6 +1677,7 @@ module Aws::CodeBuild
1608
1677
  :base_capacity,
1609
1678
  :environment_type,
1610
1679
  :compute_type,
1680
+ :compute_configuration,
1611
1681
  :scaling_configuration,
1612
1682
  :overflow_behavior,
1613
1683
  :vpc_config,
@@ -2523,52 +2593,89 @@ module Aws::CodeBuild
2523
2593
  # Information about the compute resources the compute fleet uses.
2524
2594
  # Available values include:
2525
2595
  #
2526
- # * `BUILD_GENERAL1_SMALL`: Use up to 3 GB memory and 2 vCPUs for
2596
+ # * `ATTRIBUTE_BASED_COMPUTE`: Specify the amount of vCPUs, memory,
2597
+ # disk space, and the type of machine.
2598
+ #
2599
+ # <note markdown="1"> If you use `ATTRIBUTE_BASED_COMPUTE`, you must define your
2600
+ # attributes by using `computeConfiguration`. CodeBuild will select
2601
+ # the cheapest instance that satisfies your specified attributes.
2602
+ # For more information, see [Reserved capacity environment types][1]
2603
+ # in the *CodeBuild User Guide*.
2604
+ #
2605
+ # </note>
2606
+ #
2607
+ # * `BUILD_GENERAL1_SMALL`: Use up to 4 GiB memory and 2 vCPUs for
2527
2608
  # builds.
2528
2609
  #
2529
- # * `BUILD_GENERAL1_MEDIUM`: Use up to 7 GB memory and 4 vCPUs for
2610
+ # * `BUILD_GENERAL1_MEDIUM`: Use up to 8 GiB memory and 4 vCPUs for
2530
2611
  # builds.
2531
2612
  #
2532
- # * `BUILD_GENERAL1_LARGE`: Use up to 16 GB memory and 8 vCPUs for
2613
+ # * `BUILD_GENERAL1_LARGE`: Use up to 16 GiB memory and 8 vCPUs for
2533
2614
  # builds, depending on your environment type.
2534
2615
  #
2535
- # * `BUILD_GENERAL1_XLARGE`: Use up to 70 GB memory and 36 vCPUs for
2616
+ # * `BUILD_GENERAL1_XLARGE`: Use up to 72 GiB memory and 36 vCPUs for
2536
2617
  # builds, depending on your environment type.
2537
2618
  #
2538
- # * `BUILD_GENERAL1_2XLARGE`: Use up to 145 GB memory, 72 vCPUs, and
2619
+ # * `BUILD_GENERAL1_2XLARGE`: Use up to 144 GiB memory, 72 vCPUs, and
2539
2620
  # 824 GB of SSD storage for builds. This compute type supports
2540
2621
  # Docker images up to 100 GB uncompressed.
2541
2622
  #
2623
+ # * `BUILD_LAMBDA_1GB`: Use up to 1 GiB memory for builds. Only
2624
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
2625
+ # `ARM_LAMBDA_CONTAINER`.
2626
+ #
2627
+ # * `BUILD_LAMBDA_2GB`: Use up to 2 GiB memory for builds. Only
2628
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
2629
+ # `ARM_LAMBDA_CONTAINER`.
2630
+ #
2631
+ # * `BUILD_LAMBDA_4GB`: Use up to 4 GiB memory for builds. Only
2632
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
2633
+ # `ARM_LAMBDA_CONTAINER`.
2634
+ #
2635
+ # * `BUILD_LAMBDA_8GB`: Use up to 8 GiB memory for builds. Only
2636
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
2637
+ # `ARM_LAMBDA_CONTAINER`.
2638
+ #
2639
+ # * `BUILD_LAMBDA_10GB`: Use up to 10 GiB memory for builds. Only
2640
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
2641
+ # `ARM_LAMBDA_CONTAINER`.
2642
+ #
2542
2643
  # If you use `BUILD_GENERAL1_SMALL`:
2543
2644
  #
2544
- # * For environment type `LINUX_CONTAINER`, you can use up to 3 GB
2645
+ # * For environment type `LINUX_CONTAINER`, you can use up to 4 GiB
2545
2646
  # memory and 2 vCPUs for builds.
2546
2647
  #
2547
2648
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 16
2548
- # GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
2649
+ # GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
2549
2650
  #
2550
- # * For environment type `ARM_CONTAINER`, you can use up to 4 GB
2651
+ # * For environment type `ARM_CONTAINER`, you can use up to 4 GiB
2551
2652
  # memory and 2 vCPUs on ARM-based processors for builds.
2552
2653
  #
2553
2654
  # If you use `BUILD_GENERAL1_LARGE`:
2554
2655
  #
2555
- # * For environment type `LINUX_CONTAINER`, you can use up to 15 GB
2656
+ # * For environment type `LINUX_CONTAINER`, you can use up to 16 GiB
2556
2657
  # memory and 8 vCPUs for builds.
2557
2658
  #
2558
2659
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 255
2559
- # GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
2660
+ # GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
2560
2661
  #
2561
- # * For environment type `ARM_CONTAINER`, you can use up to 16 GB
2662
+ # * For environment type `ARM_CONTAINER`, you can use up to 16 GiB
2562
2663
  # memory and 8 vCPUs on ARM-based processors for builds.
2563
2664
  #
2564
- # For more information, see [Build environment compute types][1] in
2565
- # the *CodeBuild User Guide.*
2665
+ # For more information, see [On-demand environment types][2] in the
2666
+ # *CodeBuild User Guide.*
2566
2667
  #
2567
2668
  #
2568
2669
  #
2569
- # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
2670
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
2671
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
2570
2672
  # @return [String]
2571
2673
  #
2674
+ # @!attribute [rw] compute_configuration
2675
+ # The compute configuration of the compute fleet. This is only
2676
+ # required if `computeType` is set to `ATTRIBUTE_BASED_COMPUTE`.
2677
+ # @return [Types::ComputeConfiguration]
2678
+ #
2572
2679
  # @!attribute [rw] scaling_configuration
2573
2680
  # The scaling configuration of the compute fleet.
2574
2681
  # @return [Types::ScalingConfigurationOutput]
@@ -2638,6 +2745,7 @@ module Aws::CodeBuild
2638
2745
  :base_capacity,
2639
2746
  :environment_type,
2640
2747
  :compute_type,
2748
+ :compute_configuration,
2641
2749
  :scaling_configuration,
2642
2750
  :overflow_behavior,
2643
2751
  :vpc_config,
@@ -3715,7 +3823,7 @@ module Aws::CodeBuild
3715
3823
  # @!attribute [rw] cloud_watch_logs_arn
3716
3824
  # The ARN of the CloudWatch Logs stream for a build execution. Its
3717
3825
  # format is
3718
- # `arn:$\{Partition\}:logs:$\{Region\}:$\{Account\}:log-group:$\{LogGroupName\}:log-stream:$\{LogStreamName\}`.
3826
+ # `arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}`.
3719
3827
  # The CloudWatch Logs stream is created during the PROVISIONING phase
3720
3828
  # of a build and the ARN will not be valid until it is created. For
3721
3829
  # more information, see [Resources Defined by CloudWatch Logs][1].
@@ -3727,7 +3835,7 @@ module Aws::CodeBuild
3727
3835
  #
3728
3836
  # @!attribute [rw] s3_logs_arn
3729
3837
  # The ARN of S3 logs for a build project. Its format is
3730
- # `arn:$\{Partition\}:s3:::$\{BucketName\}/$\{ObjectName\}`. For more
3838
+ # `arn:${Partition}:s3:::${BucketName}/${ObjectName}`. For more
3731
3839
  # information, see [Resources Defined by Amazon S3][1].
3732
3840
  #
3733
3841
  #
@@ -4478,77 +4586,89 @@ module Aws::CodeBuild
4478
4586
  # Information about the compute resources the build project uses.
4479
4587
  # Available values include:
4480
4588
  #
4481
- # * `BUILD_GENERAL1_SMALL`: Use up to 3 GB memory and 2 vCPUs for
4589
+ # * `ATTRIBUTE_BASED_COMPUTE`: Specify the amount of vCPUs, memory,
4590
+ # disk space, and the type of machine.
4591
+ #
4592
+ # <note markdown="1"> If you use `ATTRIBUTE_BASED_COMPUTE`, you must define your
4593
+ # attributes by using `computeConfiguration`. CodeBuild will select
4594
+ # the cheapest instance that satisfies your specified attributes.
4595
+ # For more information, see [Reserved capacity environment types][1]
4596
+ # in the *CodeBuild User Guide*.
4597
+ #
4598
+ # </note>
4599
+ #
4600
+ # * `BUILD_GENERAL1_SMALL`: Use up to 4 GiB memory and 2 vCPUs for
4482
4601
  # builds.
4483
4602
  #
4484
- # * `BUILD_GENERAL1_MEDIUM`: Use up to 7 GB memory and 4 vCPUs for
4603
+ # * `BUILD_GENERAL1_MEDIUM`: Use up to 8 GiB memory and 4 vCPUs for
4485
4604
  # builds.
4486
4605
  #
4487
- # * `BUILD_GENERAL1_LARGE`: Use up to 16 GB memory and 8 vCPUs for
4606
+ # * `BUILD_GENERAL1_LARGE`: Use up to 16 GiB memory and 8 vCPUs for
4488
4607
  # builds, depending on your environment type.
4489
4608
  #
4490
- # * `BUILD_GENERAL1_XLARGE`: Use up to 70 GB memory and 36 vCPUs for
4609
+ # * `BUILD_GENERAL1_XLARGE`: Use up to 72 GiB memory and 36 vCPUs for
4491
4610
  # builds, depending on your environment type.
4492
4611
  #
4493
- # * `BUILD_GENERAL1_2XLARGE`: Use up to 145 GB memory, 72 vCPUs, and
4612
+ # * `BUILD_GENERAL1_2XLARGE`: Use up to 144 GiB memory, 72 vCPUs, and
4494
4613
  # 824 GB of SSD storage for builds. This compute type supports
4495
4614
  # Docker images up to 100 GB uncompressed.
4496
4615
  #
4497
- # * `BUILD_LAMBDA_1GB`: Use up to 1 GB memory for builds. Only
4616
+ # * `BUILD_LAMBDA_1GB`: Use up to 1 GiB memory for builds. Only
4498
4617
  # available for environment type `LINUX_LAMBDA_CONTAINER` and
4499
4618
  # `ARM_LAMBDA_CONTAINER`.
4500
4619
  #
4501
- # * `BUILD_LAMBDA_2GB`: Use up to 2 GB memory for builds. Only
4620
+ # * `BUILD_LAMBDA_2GB`: Use up to 2 GiB memory for builds. Only
4502
4621
  # available for environment type `LINUX_LAMBDA_CONTAINER` and
4503
4622
  # `ARM_LAMBDA_CONTAINER`.
4504
4623
  #
4505
- # * `BUILD_LAMBDA_4GB`: Use up to 4 GB memory for builds. Only
4624
+ # * `BUILD_LAMBDA_4GB`: Use up to 4 GiB memory for builds. Only
4506
4625
  # available for environment type `LINUX_LAMBDA_CONTAINER` and
4507
4626
  # `ARM_LAMBDA_CONTAINER`.
4508
4627
  #
4509
- # * `BUILD_LAMBDA_8GB`: Use up to 8 GB memory for builds. Only
4628
+ # * `BUILD_LAMBDA_8GB`: Use up to 8 GiB memory for builds. Only
4510
4629
  # available for environment type `LINUX_LAMBDA_CONTAINER` and
4511
4630
  # `ARM_LAMBDA_CONTAINER`.
4512
4631
  #
4513
- # * `BUILD_LAMBDA_10GB`: Use up to 10 GB memory for builds. Only
4632
+ # * `BUILD_LAMBDA_10GB`: Use up to 10 GiB memory for builds. Only
4514
4633
  # available for environment type `LINUX_LAMBDA_CONTAINER` and
4515
4634
  # `ARM_LAMBDA_CONTAINER`.
4516
4635
  #
4517
4636
  # If you use `BUILD_GENERAL1_SMALL`:
4518
4637
  #
4519
- # * For environment type `LINUX_CONTAINER`, you can use up to 3 GB
4638
+ # * For environment type `LINUX_CONTAINER`, you can use up to 4 GiB
4520
4639
  # memory and 2 vCPUs for builds.
4521
4640
  #
4522
4641
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 16
4523
- # GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
4642
+ # GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
4524
4643
  #
4525
- # * For environment type `ARM_CONTAINER`, you can use up to 4 GB
4644
+ # * For environment type `ARM_CONTAINER`, you can use up to 4 GiB
4526
4645
  # memory and 2 vCPUs on ARM-based processors for builds.
4527
4646
  #
4528
4647
  # If you use `BUILD_GENERAL1_LARGE`:
4529
4648
  #
4530
- # * For environment type `LINUX_CONTAINER`, you can use up to 15 GB
4649
+ # * For environment type `LINUX_CONTAINER`, you can use up to 16 GiB
4531
4650
  # memory and 8 vCPUs for builds.
4532
4651
  #
4533
4652
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 255
4534
- # GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
4653
+ # GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
4535
4654
  #
4536
- # * For environment type `ARM_CONTAINER`, you can use up to 16 GB
4655
+ # * For environment type `ARM_CONTAINER`, you can use up to 16 GiB
4537
4656
  # memory and 8 vCPUs on ARM-based processors for builds.
4538
4657
  #
4539
- # <note markdown="1"> If you're using compute fleets during project creation,
4540
- # `computeType` will be ignored.
4541
- #
4542
- # </note>
4543
- #
4544
- # For more information, see [Build Environment Compute Types][1] in
4545
- # the *CodeBuild User Guide.*
4658
+ # For more information, see [On-demand environment types][2] in the
4659
+ # *CodeBuild User Guide.*
4546
4660
  #
4547
4661
  #
4548
4662
  #
4549
- # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
4663
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
4664
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
4550
4665
  # @return [String]
4551
4666
  #
4667
+ # @!attribute [rw] compute_configuration
4668
+ # The compute configuration of the build project. This is only
4669
+ # required if `computeType` is set to `ATTRIBUTE_BASED_COMPUTE`.
4670
+ # @return [Types::ComputeConfiguration]
4671
+ #
4552
4672
  # @!attribute [rw] fleet
4553
4673
  # A ProjectFleet object to use for this build project.
4554
4674
  # @return [Types::ProjectFleet]
@@ -4621,6 +4741,7 @@ module Aws::CodeBuild
4621
4741
  :type,
4622
4742
  :image,
4623
4743
  :compute_type,
4744
+ :compute_configuration,
4624
4745
  :fleet,
4625
4746
  :environment_variables,
4626
4747
  :privileged_mode,
@@ -6581,52 +6702,89 @@ module Aws::CodeBuild
6581
6702
  # Information about the compute resources the compute fleet uses.
6582
6703
  # Available values include:
6583
6704
  #
6584
- # * `BUILD_GENERAL1_SMALL`: Use up to 3 GB memory and 2 vCPUs for
6705
+ # * `ATTRIBUTE_BASED_COMPUTE`: Specify the amount of vCPUs, memory,
6706
+ # disk space, and the type of machine.
6707
+ #
6708
+ # <note markdown="1"> If you use `ATTRIBUTE_BASED_COMPUTE`, you must define your
6709
+ # attributes by using `computeConfiguration`. CodeBuild will select
6710
+ # the cheapest instance that satisfies your specified attributes.
6711
+ # For more information, see [Reserved capacity environment types][1]
6712
+ # in the *CodeBuild User Guide*.
6713
+ #
6714
+ # </note>
6715
+ #
6716
+ # * `BUILD_GENERAL1_SMALL`: Use up to 4 GiB memory and 2 vCPUs for
6585
6717
  # builds.
6586
6718
  #
6587
- # * `BUILD_GENERAL1_MEDIUM`: Use up to 7 GB memory and 4 vCPUs for
6719
+ # * `BUILD_GENERAL1_MEDIUM`: Use up to 8 GiB memory and 4 vCPUs for
6588
6720
  # builds.
6589
6721
  #
6590
- # * `BUILD_GENERAL1_LARGE`: Use up to 16 GB memory and 8 vCPUs for
6722
+ # * `BUILD_GENERAL1_LARGE`: Use up to 16 GiB memory and 8 vCPUs for
6591
6723
  # builds, depending on your environment type.
6592
6724
  #
6593
- # * `BUILD_GENERAL1_XLARGE`: Use up to 70 GB memory and 36 vCPUs for
6725
+ # * `BUILD_GENERAL1_XLARGE`: Use up to 72 GiB memory and 36 vCPUs for
6594
6726
  # builds, depending on your environment type.
6595
6727
  #
6596
- # * `BUILD_GENERAL1_2XLARGE`: Use up to 145 GB memory, 72 vCPUs, and
6728
+ # * `BUILD_GENERAL1_2XLARGE`: Use up to 144 GiB memory, 72 vCPUs, and
6597
6729
  # 824 GB of SSD storage for builds. This compute type supports
6598
6730
  # Docker images up to 100 GB uncompressed.
6599
6731
  #
6732
+ # * `BUILD_LAMBDA_1GB`: Use up to 1 GiB memory for builds. Only
6733
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
6734
+ # `ARM_LAMBDA_CONTAINER`.
6735
+ #
6736
+ # * `BUILD_LAMBDA_2GB`: Use up to 2 GiB memory for builds. Only
6737
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
6738
+ # `ARM_LAMBDA_CONTAINER`.
6739
+ #
6740
+ # * `BUILD_LAMBDA_4GB`: Use up to 4 GiB memory for builds. Only
6741
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
6742
+ # `ARM_LAMBDA_CONTAINER`.
6743
+ #
6744
+ # * `BUILD_LAMBDA_8GB`: Use up to 8 GiB memory for builds. Only
6745
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
6746
+ # `ARM_LAMBDA_CONTAINER`.
6747
+ #
6748
+ # * `BUILD_LAMBDA_10GB`: Use up to 10 GiB memory for builds. Only
6749
+ # available for environment type `LINUX_LAMBDA_CONTAINER` and
6750
+ # `ARM_LAMBDA_CONTAINER`.
6751
+ #
6600
6752
  # If you use `BUILD_GENERAL1_SMALL`:
6601
6753
  #
6602
- # * For environment type `LINUX_CONTAINER`, you can use up to 3 GB
6754
+ # * For environment type `LINUX_CONTAINER`, you can use up to 4 GiB
6603
6755
  # memory and 2 vCPUs for builds.
6604
6756
  #
6605
6757
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 16
6606
- # GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
6758
+ # GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
6607
6759
  #
6608
- # * For environment type `ARM_CONTAINER`, you can use up to 4 GB
6760
+ # * For environment type `ARM_CONTAINER`, you can use up to 4 GiB
6609
6761
  # memory and 2 vCPUs on ARM-based processors for builds.
6610
6762
  #
6611
6763
  # If you use `BUILD_GENERAL1_LARGE`:
6612
6764
  #
6613
- # * For environment type `LINUX_CONTAINER`, you can use up to 15 GB
6765
+ # * For environment type `LINUX_CONTAINER`, you can use up to 16 GiB
6614
6766
  # memory and 8 vCPUs for builds.
6615
6767
  #
6616
6768
  # * For environment type `LINUX_GPU_CONTAINER`, you can use up to 255
6617
- # GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
6769
+ # GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
6618
6770
  #
6619
- # * For environment type `ARM_CONTAINER`, you can use up to 16 GB
6771
+ # * For environment type `ARM_CONTAINER`, you can use up to 16 GiB
6620
6772
  # memory and 8 vCPUs on ARM-based processors for builds.
6621
6773
  #
6622
- # For more information, see [Build environment compute types][1] in
6623
- # the *CodeBuild User Guide.*
6774
+ # For more information, see [On-demand environment types][2] in the
6775
+ # *CodeBuild User Guide.*
6624
6776
  #
6625
6777
  #
6626
6778
  #
6627
- # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
6779
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types
6780
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types
6628
6781
  # @return [String]
6629
6782
  #
6783
+ # @!attribute [rw] compute_configuration
6784
+ # The compute configuration of the compute fleet. This is only
6785
+ # required if `computeType` is set to `ATTRIBUTE_BASED_COMPUTE`.
6786
+ # @return [Types::ComputeConfiguration]
6787
+ #
6630
6788
  # @!attribute [rw] scaling_configuration
6631
6789
  # The scaling configuration of the compute fleet.
6632
6790
  # @return [Types::ScalingConfigurationInput]
@@ -6691,6 +6849,7 @@ module Aws::CodeBuild
6691
6849
  :base_capacity,
6692
6850
  :environment_type,
6693
6851
  :compute_type,
6852
+ :compute_configuration,
6694
6853
  :scaling_configuration,
6695
6854
  :overflow_behavior,
6696
6855
  :vpc_config,
@@ -54,7 +54,7 @@ module Aws::CodeBuild
54
54
  autoload :EndpointProvider, 'aws-sdk-codebuild/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-codebuild/endpoints'
56
56
 
57
- GEM_VERSION = '1.135.0'
57
+ GEM_VERSION = '1.136.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -162,7 +162,13 @@ module Aws
162
162
  name: ::String,
163
163
  base_capacity: ::Integer,
164
164
  environment_type: ("WINDOWS_CONTAINER" | "LINUX_CONTAINER" | "LINUX_GPU_CONTAINER" | "ARM_CONTAINER" | "WINDOWS_SERVER_2019_CONTAINER" | "LINUX_LAMBDA_CONTAINER" | "ARM_LAMBDA_CONTAINER" | "MAC_ARM"),
165
- compute_type: ("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"),
165
+ compute_type: ("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"),
166
+ ?compute_configuration: {
167
+ v_cpu: ::Integer?,
168
+ memory: ::Integer?,
169
+ disk: ::Integer?,
170
+ machine_type: ("GENERAL" | "NVME")?
171
+ },
166
172
  ?scaling_configuration: {
167
173
  scaling_type: ("TARGET_TRACKING_SCALING")?,
168
174
  target_tracking_scaling_configs: Array[
@@ -291,7 +297,13 @@ module Aws
291
297
  environment: {
292
298
  type: ("WINDOWS_CONTAINER" | "LINUX_CONTAINER" | "LINUX_GPU_CONTAINER" | "ARM_CONTAINER" | "WINDOWS_SERVER_2019_CONTAINER" | "LINUX_LAMBDA_CONTAINER" | "ARM_LAMBDA_CONTAINER" | "MAC_ARM"),
293
299
  image: ::String,
294
- compute_type: ("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"),
300
+ compute_type: ("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"),
301
+ compute_configuration: {
302
+ v_cpu: ::Integer?,
303
+ memory: ::Integer?,
304
+ disk: ::Integer?,
305
+ machine_type: ("GENERAL" | "NVME")?
306
+ }?,
295
307
  fleet: {
296
308
  fleet_arn: ::String?
297
309
  }?,
@@ -875,7 +887,7 @@ module Aws
875
887
  },
876
888
  ?environment_type_override: ("WINDOWS_CONTAINER" | "LINUX_CONTAINER" | "LINUX_GPU_CONTAINER" | "ARM_CONTAINER" | "WINDOWS_SERVER_2019_CONTAINER" | "LINUX_LAMBDA_CONTAINER" | "ARM_LAMBDA_CONTAINER" | "MAC_ARM"),
877
889
  ?image_override: ::String,
878
- ?compute_type_override: ("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"),
890
+ ?compute_type_override: ("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"),
879
891
  ?certificate_override: ::String,
880
892
  ?cache_override: {
881
893
  type: ("NO_CACHE" | "S3" | "LOCAL"),
@@ -998,7 +1010,7 @@ module Aws
998
1010
  ?report_build_batch_status_override: bool,
999
1011
  ?environment_type_override: ("WINDOWS_CONTAINER" | "LINUX_CONTAINER" | "LINUX_GPU_CONTAINER" | "ARM_CONTAINER" | "WINDOWS_SERVER_2019_CONTAINER" | "LINUX_LAMBDA_CONTAINER" | "ARM_LAMBDA_CONTAINER" | "MAC_ARM"),
1000
1012
  ?image_override: ::String,
1001
- ?compute_type_override: ("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"),
1013
+ ?compute_type_override: ("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"),
1002
1014
  ?certificate_override: ::String,
1003
1015
  ?cache_override: {
1004
1016
  type: ("NO_CACHE" | "S3" | "LOCAL"),
@@ -1072,7 +1084,13 @@ module Aws
1072
1084
  arn: ::String,
1073
1085
  ?base_capacity: ::Integer,
1074
1086
  ?environment_type: ("WINDOWS_CONTAINER" | "LINUX_CONTAINER" | "LINUX_GPU_CONTAINER" | "ARM_CONTAINER" | "WINDOWS_SERVER_2019_CONTAINER" | "LINUX_LAMBDA_CONTAINER" | "ARM_LAMBDA_CONTAINER" | "MAC_ARM"),
1075
- ?compute_type: ("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"),
1087
+ ?compute_type: ("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"),
1088
+ ?compute_configuration: {
1089
+ v_cpu: ::Integer?,
1090
+ memory: ::Integer?,
1091
+ disk: ::Integer?,
1092
+ machine_type: ("GENERAL" | "NVME")?
1093
+ },
1076
1094
  ?scaling_configuration: {
1077
1095
  scaling_type: ("TARGET_TRACKING_SCALING")?,
1078
1096
  target_tracking_scaling_configs: Array[
@@ -1201,7 +1219,13 @@ module Aws
1201
1219
  ?environment: {
1202
1220
  type: ("WINDOWS_CONTAINER" | "LINUX_CONTAINER" | "LINUX_GPU_CONTAINER" | "ARM_CONTAINER" | "WINDOWS_SERVER_2019_CONTAINER" | "LINUX_LAMBDA_CONTAINER" | "ARM_LAMBDA_CONTAINER" | "MAC_ARM"),
1203
1221
  image: ::String,
1204
- compute_type: ("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"),
1222
+ compute_type: ("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"),
1223
+ compute_configuration: {
1224
+ v_cpu: ::Integer?,
1225
+ memory: ::Integer?,
1226
+ disk: ::Integer?,
1227
+ machine_type: ("GENERAL" | "NVME")?
1228
+ }?,
1205
1229
  fleet: {
1206
1230
  fleet_arn: ::String?
1207
1231
  }?,