You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>An object that represents a launch template to use in place of the default launch template. You must specify either the launch template ID or launch template name in the request, but not
455
+
* both.</p>
456
+
* <p>If security groups are specified using both the <code>securityGroupIds</code> parameter of
457
+
* <code>CreateComputeEnvironment</code> and the launch template, the values in the
458
+
* <code>securityGroupIds</code> parameter of <code>CreateComputeEnvironment</code> will be
459
+
* used.</p>
460
+
* <p>You can define up to ten (10) overrides for each compute environment.</p>
461
+
* <note>
462
+
* <p>This object isn't applicable to jobs that are running on Fargate resources.</p>
463
+
* </note>
464
+
* <note>
465
+
* <p>To unset all override templates for a compute environment, you can pass an empty array to the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html">UpdateComputeEnvironment.overrides</a> parameter, or not include the <code>overrides</code> parameter when submitting the <code>UpdateComputeEnvironment</code> API operation.</p>
* <b>Note:</b> If you specify the <code>launchTemplateId</code> you can't specify the <code>launchTemplateName</code> as well.</p>
474
+
* @public
475
+
*/
476
+
launchTemplateId?: string;
477
+
478
+
/**
479
+
* <p>The name of the launch template.</p>
480
+
* <p>
481
+
* <b>Note:</b> If you specify the <code>launchTemplateName</code> you can't specify the <code>launchTemplateId</code> as well.</p>
482
+
* @public
483
+
*/
484
+
launchTemplateName?: string;
485
+
486
+
/**
487
+
* <p>The version number of the launch template,
488
+
* <code>$Default</code>, or <code>$Latest</code>.</p>
489
+
* <p>If the value is <code>$Default</code>, the default version of the launch template is used. If the value is <code>$Latest</code>, the latest version of the launch template is used. </p>
490
+
* <important>
491
+
* <p>If the AMI ID that's used in a compute environment is from the launch template, the AMI
492
+
* isn't changed when the compute environment is updated. It's only changed if the
493
+
* <code>updateToLatestImageVersion</code> parameter for the compute environment is set to
494
+
* <code>true</code>. During an infrastructure update, if either <code>$Default</code> or <code>$Latest</code> is specified, Batch re-evaluates the launch template version, and it
495
+
* might use a different version of the launch template. This is the case even if the launch
496
+
* template isn't specified in the update. When updating a compute environment, changing the launch
497
+
* template requires an infrastructure update of the compute environment. For more information, see
* environments</a> in the <i>Batch User Guide</i>.</p>
500
+
* </important>
501
+
* <p>Default: <code>$Default</code>
502
+
* </p>
503
+
* <p>Latest: <code>$Latest</code>
504
+
* </p>
505
+
* @public
506
+
*/
507
+
version?: string;
508
+
509
+
/**
510
+
* <p>The instance type or family that this this override launch template should be applied to.</p>
511
+
* <p>This parameter is required when defining a launch template override.</p>
512
+
* <p>Information included in this parameter must meet the following requirements:</p>
513
+
* <ul>
514
+
* <li>
515
+
* <p>Must be a valid Amazon EC2 instance type or family.</p>
516
+
* </li>
517
+
* <li>
518
+
* <p>
519
+
* <code>optimal</code> isn't allowed.</p>
520
+
* </li>
521
+
* <li>
522
+
* <p>
523
+
* <code>targetInstanceTypes</code> can target only instance types and families that are included within the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-instanceTypes">
524
+
* <code>ComputeResource.instanceTypes</code>
525
+
* </a> set. <code>targetInstanceTypes</code> doesn't need to include all of the instances from the <code>instanceType</code> set, but at least a subset. For example, if <code>ComputeResource.instanceTypes</code> includes <code>[m5, g5]</code>, <code>targetInstanceTypes</code> can include <code>[m5.2xlarge]</code> and <code>[m5.large]</code> but not <code>[c5.large]</code>.</p>
526
+
* </li>
527
+
* <li>
528
+
* <p>
529
+
* <code>targetInstanceTypes</code> included within the same launch template override or across launch template overrides can't overlap for the same compute environment. For example, you can't define one launch template override to target an instance family and another define an instance type within this same family.</p>
530
+
* </li>
531
+
* </ul>
532
+
* @public
533
+
*/
534
+
targetInstanceTypes?: string[];
535
+
}
536
+
453
537
/**
454
538
* <p>An object that represents a launch template that's associated with a compute resource. You
455
539
* must specify either the launch template ID or launch template name in the request, but not
* <p>The version number of the launch template, <code>$Latest</code>, or
481
-
* <code>$Default</code>.</p>
482
-
* <p>If the value is <code>$Latest</code>, the latest version of the launch template is used. If
483
-
* the value is <code>$Default</code>, the default version of the launch template is used.</p>
564
+
* <p>The version number of the launch template,
565
+
* <code>$Default</code>, or <code>$Latest</code>.</p>
566
+
* <p>If the value is <code>$Default</code>, the default version of the launch template is used. If the value is <code>$Latest</code>, the latest version of the launch template is used. </p>
484
567
* <important>
485
568
* <p>If the AMI ID that's used in a compute environment is from the launch template, the AMI
486
569
* isn't changed when the compute environment is updated. It's only changed if the
487
570
* <code>updateToLatestImageVersion</code> parameter for the compute environment is set to
488
-
* <code>true</code>. During an infrastructure update, if either <code>$Latest</code> or
489
-
* <code>$Default</code> is specified, Batch re-evaluates the launch template version, and it
571
+
* <code>true</code>. During an infrastructure update, if either <code>$Default</code> or
572
+
* <code>$Latest</code> is specified, Batch re-evaluates the launch template version, and it
490
573
* might use a different version of the launch template. This is the case even if the launch
491
574
* template isn't specified in the update. When updating a compute environment, changing the launch
492
575
* template requires an infrastructure update of the compute environment. For more information, see
* environments</a> in the <i>Batch User Guide</i>.</p>
495
578
* </important>
496
-
* <p>Default: <code>$Default</code>.</p>
579
+
* <p>Default: <code>$Default</code>
580
+
* </p>
581
+
* <p>Latest: <code>$Latest</code>
582
+
* </p>
497
583
* @public
498
584
*/
499
585
version?: string;
586
+
587
+
/**
588
+
* <p>A launch template to use in place of the default launch template. You must specify either the launch template ID or launch template name in the request, but not both.</p>
589
+
* <p>You can specify up to ten (10) launch template overrides that are associated to unique instance types or families for each compute environment.</p>
590
+
* <note>
591
+
* <p>To unset all override templates for a compute environment, you can pass an empty array to the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_UpdateComputeEnvironment.html">UpdateComputeEnvironment.overrides</a> parameter, or not include the <code>overrides</code> parameter when submitting the <code>UpdateComputeEnvironment</code> API operation.</p>
0 commit comments