11
11
#include < aws/codebuild/model/ComputeType.h>
12
12
#include < aws/codebuild/model/ScalingConfigurationInput.h>
13
13
#include < aws/codebuild/model/FleetOverflowBehavior.h>
14
+ #include < aws/codebuild/model/VpcConfig.h>
14
15
#include < aws/core/utils/memory/stl/AWSVector.h>
15
16
#include < aws/codebuild/model/Tag.h>
16
17
#include < utility>
@@ -486,7 +487,12 @@ namespace Model
486
487
* <code>QUEUE</code>, your overflow builds need to wait on the existing fleet
487
488
* instance to become available.</p> </li> <li> <p>For overflow behavior
488
489
* <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
489
- * </li> </ul>
490
+ * <p>If you choose to set your overflow behavior to on-demand while
491
+ * creating a VPC-connected fleet, make sure that you add the required VPC
492
+ * permissions to your project service role. For more information, see <a
493
+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example
494
+ * policy statement to allow CodeBuild access to Amazon Web Services services
495
+ * required to create a VPC network interface</a>.</p> </li> </ul>
490
496
*/
491
497
inline const FleetOverflowBehavior& GetOverflowBehavior () const { return m_overflowBehavior; }
492
498
@@ -495,7 +501,12 @@ namespace Model
495
501
* <code>QUEUE</code>, your overflow builds need to wait on the existing fleet
496
502
* instance to become available.</p> </li> <li> <p>For overflow behavior
497
503
* <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
498
- * </li> </ul>
504
+ * <p>If you choose to set your overflow behavior to on-demand while
505
+ * creating a VPC-connected fleet, make sure that you add the required VPC
506
+ * permissions to your project service role. For more information, see <a
507
+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example
508
+ * policy statement to allow CodeBuild access to Amazon Web Services services
509
+ * required to create a VPC network interface</a>.</p> </li> </ul>
499
510
*/
500
511
inline bool OverflowBehaviorHasBeenSet () const { return m_overflowBehaviorHasBeenSet; }
501
512
@@ -504,7 +515,12 @@ namespace Model
504
515
* <code>QUEUE</code>, your overflow builds need to wait on the existing fleet
505
516
* instance to become available.</p> </li> <li> <p>For overflow behavior
506
517
* <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
507
- * </li> </ul>
518
+ * <p>If you choose to set your overflow behavior to on-demand while
519
+ * creating a VPC-connected fleet, make sure that you add the required VPC
520
+ * permissions to your project service role. For more information, see <a
521
+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example
522
+ * policy statement to allow CodeBuild access to Amazon Web Services services
523
+ * required to create a VPC network interface</a>.</p> </li> </ul>
508
524
*/
509
525
inline void SetOverflowBehavior (const FleetOverflowBehavior& value) { m_overflowBehaviorHasBeenSet = true ; m_overflowBehavior = value; }
510
526
@@ -513,7 +529,12 @@ namespace Model
513
529
* <code>QUEUE</code>, your overflow builds need to wait on the existing fleet
514
530
* instance to become available.</p> </li> <li> <p>For overflow behavior
515
531
* <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
516
- * </li> </ul>
532
+ * <p>If you choose to set your overflow behavior to on-demand while
533
+ * creating a VPC-connected fleet, make sure that you add the required VPC
534
+ * permissions to your project service role. For more information, see <a
535
+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example
536
+ * policy statement to allow CodeBuild access to Amazon Web Services services
537
+ * required to create a VPC network interface</a>.</p> </li> </ul>
517
538
*/
518
539
inline void SetOverflowBehavior (FleetOverflowBehavior&& value) { m_overflowBehaviorHasBeenSet = true ; m_overflowBehavior = std::move (value); }
519
540
@@ -522,7 +543,12 @@ namespace Model
522
543
* <code>QUEUE</code>, your overflow builds need to wait on the existing fleet
523
544
* instance to become available.</p> </li> <li> <p>For overflow behavior
524
545
* <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
525
- * </li> </ul>
546
+ * <p>If you choose to set your overflow behavior to on-demand while
547
+ * creating a VPC-connected fleet, make sure that you add the required VPC
548
+ * permissions to your project service role. For more information, see <a
549
+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example
550
+ * policy statement to allow CodeBuild access to Amazon Web Services services
551
+ * required to create a VPC network interface</a>.</p> </li> </ul>
526
552
*/
527
553
inline CreateFleetRequest& WithOverflowBehavior (const FleetOverflowBehavior& value) { SetOverflowBehavior (value); return *this ;}
528
554
@@ -531,11 +557,76 @@ namespace Model
531
557
* <code>QUEUE</code>, your overflow builds need to wait on the existing fleet
532
558
* instance to become available.</p> </li> <li> <p>For overflow behavior
533
559
* <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p>
534
- * </li> </ul>
560
+ * <p>If you choose to set your overflow behavior to on-demand while
561
+ * creating a VPC-connected fleet, make sure that you add the required VPC
562
+ * permissions to your project service role. For more information, see <a
563
+ * href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example
564
+ * policy statement to allow CodeBuild access to Amazon Web Services services
565
+ * required to create a VPC network interface</a>.</p> </li> </ul>
535
566
*/
536
567
inline CreateFleetRequest& WithOverflowBehavior (FleetOverflowBehavior&& value) { SetOverflowBehavior (std::move (value)); return *this ;}
537
568
538
569
570
+
571
+ inline const VpcConfig& GetVpcConfig () const { return m_vpcConfig; }
572
+
573
+
574
+ inline bool VpcConfigHasBeenSet () const { return m_vpcConfigHasBeenSet; }
575
+
576
+
577
+ inline void SetVpcConfig (const VpcConfig& value) { m_vpcConfigHasBeenSet = true ; m_vpcConfig = value; }
578
+
579
+
580
+ inline void SetVpcConfig (VpcConfig&& value) { m_vpcConfigHasBeenSet = true ; m_vpcConfig = std::move (value); }
581
+
582
+
583
+ inline CreateFleetRequest& WithVpcConfig (const VpcConfig& value) { SetVpcConfig (value); return *this ;}
584
+
585
+
586
+ inline CreateFleetRequest& WithVpcConfig (VpcConfig&& value) { SetVpcConfig (std::move (value)); return *this ;}
587
+
588
+
589
+ /* *
590
+ * <p>The service role associated with the compute fleet.</p>
591
+ */
592
+ inline const Aws::String& GetFleetServiceRole () const { return m_fleetServiceRole; }
593
+
594
+ /* *
595
+ * <p>The service role associated with the compute fleet.</p>
596
+ */
597
+ inline bool FleetServiceRoleHasBeenSet () const { return m_fleetServiceRoleHasBeenSet; }
598
+
599
+ /* *
600
+ * <p>The service role associated with the compute fleet.</p>
601
+ */
602
+ inline void SetFleetServiceRole (const Aws::String& value) { m_fleetServiceRoleHasBeenSet = true ; m_fleetServiceRole = value; }
603
+
604
+ /* *
605
+ * <p>The service role associated with the compute fleet.</p>
606
+ */
607
+ inline void SetFleetServiceRole (Aws::String&& value) { m_fleetServiceRoleHasBeenSet = true ; m_fleetServiceRole = std::move (value); }
608
+
609
+ /* *
610
+ * <p>The service role associated with the compute fleet.</p>
611
+ */
612
+ inline void SetFleetServiceRole (const char * value) { m_fleetServiceRoleHasBeenSet = true ; m_fleetServiceRole.assign (value); }
613
+
614
+ /* *
615
+ * <p>The service role associated with the compute fleet.</p>
616
+ */
617
+ inline CreateFleetRequest& WithFleetServiceRole (const Aws::String& value) { SetFleetServiceRole (value); return *this ;}
618
+
619
+ /* *
620
+ * <p>The service role associated with the compute fleet.</p>
621
+ */
622
+ inline CreateFleetRequest& WithFleetServiceRole (Aws::String&& value) { SetFleetServiceRole (std::move (value)); return *this ;}
623
+
624
+ /* *
625
+ * <p>The service role associated with the compute fleet.</p>
626
+ */
627
+ inline CreateFleetRequest& WithFleetServiceRole (const char * value) { SetFleetServiceRole (value); return *this ;}
628
+
629
+
539
630
/* *
540
631
* <p>A list of tag key and value pairs associated with this compute fleet.</p>
541
632
* <p>These tags are available for use by Amazon Web Services services that support
@@ -612,6 +703,12 @@ namespace Model
612
703
FleetOverflowBehavior m_overflowBehavior;
613
704
bool m_overflowBehaviorHasBeenSet = false ;
614
705
706
+ VpcConfig m_vpcConfig;
707
+ bool m_vpcConfigHasBeenSet = false ;
708
+
709
+ Aws::String m_fleetServiceRole;
710
+ bool m_fleetServiceRoleHasBeenSet = false ;
711
+
615
712
Aws::Vector<Tag> m_tags;
616
713
bool m_tagsHasBeenSet = false ;
617
714
};
0 commit comments