@aws-sdk/client-batch 3.1071.0 → 3.1073.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +4 -0
- package/dist-cjs/schemas/schemas_0.js +2 -2
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +2 -2
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +2 -2
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +2 -2
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +1 -1
- package/dist-types/models/enums.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +100 -22
- package/dist-types/ts3.4/models/enums.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -1
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -745,7 +745,9 @@ const AssignPublicIp = {
|
|
|
745
745
|
const CRAllocationStrategy = {
|
|
746
746
|
BEST_FIT: "BEST_FIT",
|
|
747
747
|
BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE",
|
|
748
|
+
BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED",
|
|
748
749
|
SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED",
|
|
750
|
+
SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
749
751
|
SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
750
752
|
};
|
|
751
753
|
const UserdataType = {
|
|
@@ -916,7 +918,9 @@ const JobDefinitionType = {
|
|
|
916
918
|
};
|
|
917
919
|
const CRUpdateAllocationStrategy = {
|
|
918
920
|
BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE",
|
|
921
|
+
BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED",
|
|
919
922
|
SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED",
|
|
923
|
+
SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
920
924
|
SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
921
925
|
};
|
|
922
926
|
|
|
@@ -753,8 +753,8 @@ const ComputeEnvironmentOrder$ = [3, n0, _CEO,
|
|
|
753
753
|
exports.ComputeEnvironmentOrder$ = ComputeEnvironmentOrder$;
|
|
754
754
|
const ComputeResource$ = [3, n0, _CR,
|
|
755
755
|
0,
|
|
756
|
-
[_ty, _mCa,
|
|
757
|
-
[0, 1,
|
|
756
|
+
[_ty, _mCa, _aS, _mCi, _dC, _iT, _iI, _su, _sGI, _eKP, _iR, _t, _pG, _bP, _sIFR, _lT, _eCc, _sP],
|
|
757
|
+
[0, 1, 0, 1, 1, 64 | 0, 0, 64 | 0, 64 | 0, 0, 0, 128 | 0, 0, 1, 0, () => LaunchTemplateSpecification$, () => Ec2ConfigurationList, () => ComputeScalingPolicy$], 2
|
|
758
758
|
];
|
|
759
759
|
exports.ComputeResource$ = ComputeResource$;
|
|
760
760
|
const ComputeResourceUpdate$ = [3, n0, _CRU,
|
package/dist-es/models/enums.js
CHANGED
|
@@ -9,7 +9,9 @@ export const AssignPublicIp = {
|
|
|
9
9
|
export const CRAllocationStrategy = {
|
|
10
10
|
BEST_FIT: "BEST_FIT",
|
|
11
11
|
BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE",
|
|
12
|
+
BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED",
|
|
12
13
|
SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED",
|
|
14
|
+
SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
13
15
|
SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
14
16
|
};
|
|
15
17
|
export const UserdataType = {
|
|
@@ -180,6 +182,8 @@ export const JobDefinitionType = {
|
|
|
180
182
|
};
|
|
181
183
|
export const CRUpdateAllocationStrategy = {
|
|
182
184
|
BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE",
|
|
185
|
+
BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED",
|
|
183
186
|
SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED",
|
|
187
|
+
SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
184
188
|
SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
185
189
|
};
|
|
@@ -738,8 +738,8 @@ export var ComputeEnvironmentOrder$ = [3, n0, _CEO,
|
|
|
738
738
|
];
|
|
739
739
|
export var ComputeResource$ = [3, n0, _CR,
|
|
740
740
|
0,
|
|
741
|
-
[_ty, _mCa,
|
|
742
|
-
[0, 1,
|
|
741
|
+
[_ty, _mCa, _aS, _mCi, _dC, _iT, _iI, _su, _sGI, _eKP, _iR, _t, _pG, _bP, _sIFR, _lT, _eCc, _sP],
|
|
742
|
+
[0, 1, 0, 1, 1, 64 | 0, 0, 64 | 0, 64 | 0, 0, 0, 128 | 0, 0, 1, 0, () => LaunchTemplateSpecification$, () => Ec2ConfigurationList, () => ComputeScalingPolicy$], 2
|
|
743
743
|
];
|
|
744
744
|
export var ComputeResourceUpdate$ = [3, n0, _CRU,
|
|
745
745
|
0,
|
|
@@ -69,7 +69,7 @@ declare const CreateComputeEnvironmentCommand_base: {
|
|
|
69
69
|
* unmanagedvCpus: Number("int"),
|
|
70
70
|
* computeResources: { // ComputeResource
|
|
71
71
|
* type: "EC2" || "SPOT" || "FARGATE" || "FARGATE_SPOT", // required
|
|
72
|
-
* allocationStrategy: "BEST_FIT" || "BEST_FIT_PROGRESSIVE" || "SPOT_CAPACITY_OPTIMIZED" || "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
72
|
+
* allocationStrategy: "BEST_FIT" || "BEST_FIT_PROGRESSIVE" || "BEST_FIT_PROGRESSIVE_ORDERED" || "SPOT_CAPACITY_OPTIMIZED" || "SPOT_PRICE_CAPACITY_OPTIMIZED" || "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
73
73
|
* minvCpus: Number("int"),
|
|
74
74
|
* maxvCpus: Number("int"), // required
|
|
75
75
|
* desiredvCpus: Number("int"),
|
|
@@ -77,7 +77,7 @@ declare const CreateComputeEnvironmentCommand_base: {
|
|
|
77
77
|
* "STRING_VALUE",
|
|
78
78
|
* ],
|
|
79
79
|
* imageId: "STRING_VALUE",
|
|
80
|
-
* subnets: [
|
|
80
|
+
* subnets: [
|
|
81
81
|
* "STRING_VALUE",
|
|
82
82
|
* ],
|
|
83
83
|
* securityGroupIds: [
|
|
@@ -66,7 +66,7 @@ declare const DescribeComputeEnvironmentsCommand_base: {
|
|
|
66
66
|
* // statusReason: "STRING_VALUE",
|
|
67
67
|
* // computeResources: { // ComputeResource
|
|
68
68
|
* // type: "EC2" || "SPOT" || "FARGATE" || "FARGATE_SPOT", // required
|
|
69
|
-
* // allocationStrategy: "BEST_FIT" || "BEST_FIT_PROGRESSIVE" || "SPOT_CAPACITY_OPTIMIZED" || "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
69
|
+
* // allocationStrategy: "BEST_FIT" || "BEST_FIT_PROGRESSIVE" || "BEST_FIT_PROGRESSIVE_ORDERED" || "SPOT_CAPACITY_OPTIMIZED" || "SPOT_PRICE_CAPACITY_OPTIMIZED" || "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
70
70
|
* // minvCpus: Number("int"),
|
|
71
71
|
* // maxvCpus: Number("int"), // required
|
|
72
72
|
* // desiredvCpus: Number("int"),
|
|
@@ -74,7 +74,7 @@ declare const DescribeComputeEnvironmentsCommand_base: {
|
|
|
74
74
|
* // "STRING_VALUE",
|
|
75
75
|
* // ],
|
|
76
76
|
* // imageId: "STRING_VALUE",
|
|
77
|
-
* // subnets: [
|
|
77
|
+
* // subnets: [
|
|
78
78
|
* // "STRING_VALUE",
|
|
79
79
|
* // ],
|
|
80
80
|
* // securityGroupIds: [
|
|
@@ -52,7 +52,7 @@ declare const UpdateComputeEnvironmentCommand_base: {
|
|
|
52
52
|
* securityGroupIds: [
|
|
53
53
|
* "STRING_VALUE",
|
|
54
54
|
* ],
|
|
55
|
-
* allocationStrategy: "BEST_FIT_PROGRESSIVE" || "SPOT_CAPACITY_OPTIMIZED" || "SPOT_PRICE_CAPACITY_OPTIMIZED",
|
|
55
|
+
* allocationStrategy: "BEST_FIT_PROGRESSIVE" || "BEST_FIT_PROGRESSIVE_ORDERED" || "SPOT_CAPACITY_OPTIMIZED" || "SPOT_PRICE_CAPACITY_OPTIMIZED" || "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED",
|
|
56
56
|
* instanceTypes: [
|
|
57
57
|
* "STRING_VALUE",
|
|
58
58
|
* ],
|
|
@@ -29,7 +29,9 @@ export type AssignPublicIp = (typeof AssignPublicIp)[keyof typeof AssignPublicIp
|
|
|
29
29
|
export declare const CRAllocationStrategy: {
|
|
30
30
|
readonly BEST_FIT: "BEST_FIT";
|
|
31
31
|
readonly BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE";
|
|
32
|
+
readonly BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED";
|
|
32
33
|
readonly SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED";
|
|
34
|
+
readonly SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED";
|
|
33
35
|
readonly SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED";
|
|
34
36
|
};
|
|
35
37
|
/**
|
|
@@ -472,7 +474,9 @@ export type JobDefinitionType = (typeof JobDefinitionType)[keyof typeof JobDefin
|
|
|
472
474
|
*/
|
|
473
475
|
export declare const CRUpdateAllocationStrategy: {
|
|
474
476
|
readonly BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE";
|
|
477
|
+
readonly BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED";
|
|
475
478
|
readonly SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED";
|
|
479
|
+
readonly SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED";
|
|
476
480
|
readonly SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED";
|
|
477
481
|
};
|
|
478
482
|
/**
|
|
@@ -654,6 +654,27 @@ export interface ComputeResource {
|
|
|
654
654
|
* additional instances of the previously selected instance types aren't available, Batch
|
|
655
655
|
* selects new instance types.</p>
|
|
656
656
|
* </dd>
|
|
657
|
+
* <dt>BEST_FIT_PROGRESSIVE_ORDERED</dt>
|
|
658
|
+
* <dd>
|
|
659
|
+
* <important>
|
|
660
|
+
* <p>This is an advanced allocation strategy only for customers who want to control which
|
|
661
|
+
* instance types are preferred during scaling.</p>
|
|
662
|
+
* <p>Placing large instance types at the top of the list may result in <b>over-provisioning</b> for
|
|
663
|
+
* small jobs. Placing small instance types at the top may cause the compute environment to
|
|
664
|
+
* reach Amazon EC2 instance count limits before reaching <code>maxvCpus</code>.</p>
|
|
665
|
+
* </important>
|
|
666
|
+
* <p>Batch selects instance types in the order they appear in the
|
|
667
|
+
* <code>instanceTypes</code> list. When an instance family is specified, sizes within that
|
|
668
|
+
* family are expanded using <code>BEST_FIT_PROGRESSIVE</code> logic—preferring sizes that
|
|
669
|
+
* best fit the jobs, with larger sizes as fallback. Instance types that cannot meet the resource
|
|
670
|
+
* requirements of the jobs are skipped. This strategy is only available for On-Demand Instance
|
|
671
|
+
* (<code>EC2</code>) compute resources.</p>
|
|
672
|
+
* <p>If an instance family and an explicit instance type from that family both appear in
|
|
673
|
+
* <code>instanceTypes</code>, the explicit type takes its listed position and is excluded from
|
|
674
|
+
* the family expansion. For example, in <code>["m7a.4xlarge", "m7a", "m6a"]</code>,
|
|
675
|
+
* <code>m7a.4xlarge</code> is always placed first and is excluded from the <code>m7a</code>
|
|
676
|
+
* family expansion.</p>
|
|
677
|
+
* </dd>
|
|
657
678
|
* <dt>SPOT_CAPACITY_OPTIMIZED</dt>
|
|
658
679
|
* <dd>
|
|
659
680
|
* <p>Batch selects one or more instance types that are large enough to meet the requirements
|
|
@@ -668,12 +689,30 @@ export interface ComputeResource {
|
|
|
668
689
|
* possible price. This allocation strategy is only available for Spot Instance compute
|
|
669
690
|
* resources.</p>
|
|
670
691
|
* </dd>
|
|
692
|
+
* <dt>SPOT_CAPACITY_OPTIMIZED_PRIORITIZED</dt>
|
|
693
|
+
* <dd>
|
|
694
|
+
* <important>
|
|
695
|
+
* <p>This is an advanced allocation strategy for customers who want to influence instance
|
|
696
|
+
* type selection during scaling. This strategy optimizes for <b>capacity
|
|
697
|
+
* first</b>, and honors instance type priorities on a best-effort basis (priorities are
|
|
698
|
+
* honored when they do not significantly reduce available Spot capacity).</p>
|
|
699
|
+
* <p>Placing large instance types at the top of the list may result in <b>over-provisioning</b> for
|
|
700
|
+
* small jobs. Placing small instance types at the top may cause the compute environment to
|
|
701
|
+
* reach Amazon EC2 instance count limits before reaching <code>maxvCpus</code>.</p>
|
|
702
|
+
* </important>
|
|
703
|
+
* <p>Batch selects instance types in the order they appear in the
|
|
704
|
+
* <code>instanceTypes</code> list, but <b>optimizes for capacity
|
|
705
|
+
* first</b>. The customer-defined priority is honored on a best-effort basis. When Spot
|
|
706
|
+
* Instance capacity pools are similarly available, priority order is respected. When capacity is
|
|
707
|
+
* constrained, Batch selects from the most available pools regardless of priority to minimize
|
|
708
|
+
* the likelihood of Spot Instance interruptions. This strategy is only available for Spot
|
|
709
|
+
* Instance compute resources.</p>
|
|
710
|
+
* </dd>
|
|
671
711
|
* </dl>
|
|
672
|
-
* <p>With <code>
|
|
673
|
-
* <code>
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
* exceeds <code>maxvCpus</code> by more than a single instance.</p>
|
|
712
|
+
* <p>With any allocation strategy except <code>BEST_FIT</code> using On-Demand
|
|
713
|
+
* (<code>EC2</code>) compute resources, Batch might need to exceed <code>maxvCpus</code> to meet your
|
|
714
|
+
* capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than
|
|
715
|
+
* a single instance.</p>
|
|
677
716
|
* @public
|
|
678
717
|
*/
|
|
679
718
|
allocationStrategy?: CRAllocationStrategy | undefined;
|
|
@@ -689,11 +728,10 @@ export interface ComputeResource {
|
|
|
689
728
|
/**
|
|
690
729
|
* <p>The maximum number of vCPUs that a compute environment can support.</p>
|
|
691
730
|
* <note>
|
|
692
|
-
* <p>With <code>
|
|
693
|
-
* <code>
|
|
694
|
-
*
|
|
695
|
-
*
|
|
696
|
-
* <code>maxvCpus</code> by more than a single instance.</p>
|
|
731
|
+
* <p>With any allocation strategy except <code>BEST_FIT</code> using On-Demand
|
|
732
|
+
* (<code>EC2</code>) compute resources, Batch might need to exceed <code>maxvCpus</code> to meet your
|
|
733
|
+
* capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than
|
|
734
|
+
* a single instance.</p>
|
|
697
735
|
* </note>
|
|
698
736
|
* @public
|
|
699
737
|
*/
|
|
@@ -781,7 +819,9 @@ export interface ComputeResource {
|
|
|
781
819
|
* <p>The VPC subnets where the compute resources are launched. These subnets must be within the
|
|
782
820
|
* same VPC. Fargate compute resources can contain up to 16 subnets. For more information, see
|
|
783
821
|
* <a href="https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html">VPCs and subnets</a>
|
|
784
|
-
* in the <i>Amazon VPC User Guide</i
|
|
822
|
+
* in the <i>Amazon VPC User Guide</i>. This parameter is required for compute
|
|
823
|
+
* environments using <code>EC2</code>, <code>SPOT</code>, <code>FARGATE</code>, or
|
|
824
|
+
* <code>FARGATE_SPOT</code> compute resources.</p>
|
|
785
825
|
* <note>
|
|
786
826
|
* <p>Batch on Amazon EC2 and Batch on Amazon EKS support Local Zones. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-local-zones"> Local
|
|
787
827
|
* Zones</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>, <a href="https://docs.aws.amazon.com/eks/latest/userguide/local-zones.html">Amazon EKS and Amazon Web Services Local
|
|
@@ -792,7 +832,7 @@ export interface ComputeResource {
|
|
|
792
832
|
* </note>
|
|
793
833
|
* @public
|
|
794
834
|
*/
|
|
795
|
-
subnets
|
|
835
|
+
subnets?: string[] | undefined;
|
|
796
836
|
/**
|
|
797
837
|
* <p>The Amazon EC2 security groups that are associated with instances launched in the compute
|
|
798
838
|
* environment. One or more security groups must be specified, either in
|
|
@@ -8310,11 +8350,10 @@ export interface ComputeResourceUpdate {
|
|
|
8310
8350
|
/**
|
|
8311
8351
|
* <p>The maximum number of Amazon EC2 vCPUs that an environment can reach.</p>
|
|
8312
8352
|
* <note>
|
|
8313
|
-
* <p>With <code>
|
|
8314
|
-
* <code>
|
|
8315
|
-
*
|
|
8316
|
-
*
|
|
8317
|
-
* exceeds <code>maxvCpus</code> by more than a single instance.</p>
|
|
8353
|
+
* <p>With any allocation strategy except <code>BEST_FIT</code> using On-Demand
|
|
8354
|
+
* (<code>EC2</code>) compute resources, Batch might need to exceed <code>maxvCpus</code> to meet your
|
|
8355
|
+
* capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than
|
|
8356
|
+
* a single instance.</p>
|
|
8318
8357
|
* </note>
|
|
8319
8358
|
* @public
|
|
8320
8359
|
*/
|
|
@@ -8392,6 +8431,27 @@ export interface ComputeResourceUpdate {
|
|
|
8392
8431
|
* additional instances of the previously selected instance types aren't available, Batch
|
|
8393
8432
|
* selects new instance types.</p>
|
|
8394
8433
|
* </dd>
|
|
8434
|
+
* <dt>BEST_FIT_PROGRESSIVE_ORDERED</dt>
|
|
8435
|
+
* <dd>
|
|
8436
|
+
* <important>
|
|
8437
|
+
* <p>This is an advanced allocation strategy only for customers who want to control which
|
|
8438
|
+
* instance types are preferred during scaling.</p>
|
|
8439
|
+
* <p>Placing large instance types at the top of the list may result in <b>over-provisioning</b> for
|
|
8440
|
+
* small jobs. Placing small instance types at the top may cause the compute environment to
|
|
8441
|
+
* reach Amazon EC2 instance count limits before reaching <code>maxvCpus</code>.</p>
|
|
8442
|
+
* </important>
|
|
8443
|
+
* <p>Batch selects instance types in the order they appear in the
|
|
8444
|
+
* <code>instanceTypes</code> list. When an instance family is specified, sizes within that
|
|
8445
|
+
* family are expanded using <code>BEST_FIT_PROGRESSIVE</code> logic—preferring sizes that
|
|
8446
|
+
* best fit the jobs, with larger sizes as fallback. Instance types that cannot meet the resource
|
|
8447
|
+
* requirements of the jobs are skipped. This strategy is only available for On-Demand Instance
|
|
8448
|
+
* (<code>EC2</code>) compute resources.</p>
|
|
8449
|
+
* <p>If an instance family and an explicit instance type from that family both appear in
|
|
8450
|
+
* <code>instanceTypes</code>, the explicit type takes its listed position and is excluded from
|
|
8451
|
+
* the family expansion. For example, in <code>["m7a.4xlarge", "m7a", "m6a"]</code>,
|
|
8452
|
+
* <code>m7a.4xlarge</code> is always placed first and is excluded from the <code>m7a</code>
|
|
8453
|
+
* family expansion.</p>
|
|
8454
|
+
* </dd>
|
|
8395
8455
|
* <dt>SPOT_CAPACITY_OPTIMIZED</dt>
|
|
8396
8456
|
* <dd>
|
|
8397
8457
|
* <p>Batch selects one or more instance types that are large enough to meet the requirements
|
|
@@ -8406,12 +8466,30 @@ export interface ComputeResourceUpdate {
|
|
|
8406
8466
|
* possible price. This allocation strategy is only available for Spot Instance compute
|
|
8407
8467
|
* resources.</p>
|
|
8408
8468
|
* </dd>
|
|
8469
|
+
* <dt>SPOT_CAPACITY_OPTIMIZED_PRIORITIZED</dt>
|
|
8470
|
+
* <dd>
|
|
8471
|
+
* <important>
|
|
8472
|
+
* <p>This is an advanced allocation strategy for customers who want to influence instance
|
|
8473
|
+
* type selection during scaling. This strategy optimizes for <b>capacity
|
|
8474
|
+
* first</b>, and honors instance type priorities on a best-effort basis (priorities are
|
|
8475
|
+
* honored when they do not significantly reduce available Spot capacity).</p>
|
|
8476
|
+
* <p>Placing large instance types at the top of the list may result in <b>over-provisioning</b> for
|
|
8477
|
+
* small jobs. Placing small instance types at the top may cause the compute environment to
|
|
8478
|
+
* reach Amazon EC2 instance count limits before reaching <code>maxvCpus</code>.</p>
|
|
8479
|
+
* </important>
|
|
8480
|
+
* <p>Batch selects instance types in the order they appear in the
|
|
8481
|
+
* <code>instanceTypes</code> list, but <b>optimizes for capacity
|
|
8482
|
+
* first</b>. The customer-defined priority is honored on a best-effort basis. When Spot
|
|
8483
|
+
* Instance capacity pools are similarly available, priority order is respected. When capacity is
|
|
8484
|
+
* constrained, Batch selects from the most available pools regardless of priority to minimize
|
|
8485
|
+
* the likelihood of Spot Instance interruptions. This strategy is only available for Spot
|
|
8486
|
+
* Instance compute resources.</p>
|
|
8487
|
+
* </dd>
|
|
8409
8488
|
* </dl>
|
|
8410
|
-
* <p>With <code>
|
|
8411
|
-
* <code>
|
|
8412
|
-
*
|
|
8413
|
-
*
|
|
8414
|
-
* <code>maxvCpus</code> by more than a single instance.</p>
|
|
8489
|
+
* <p>With any allocation strategy except <code>BEST_FIT</code> using On-Demand
|
|
8490
|
+
* (<code>EC2</code>) compute resources, Batch might need to exceed <code>maxvCpus</code> to meet your
|
|
8491
|
+
* capacity requirements. In this event, Batch never exceeds <code>maxvCpus</code> by more than
|
|
8492
|
+
* a single instance.</p>
|
|
8415
8493
|
* @public
|
|
8416
8494
|
*/
|
|
8417
8495
|
allocationStrategy?: CRUpdateAllocationStrategy | undefined;
|
|
@@ -13,7 +13,9 @@ export type AssignPublicIp =
|
|
|
13
13
|
export declare const CRAllocationStrategy: {
|
|
14
14
|
readonly BEST_FIT: "BEST_FIT";
|
|
15
15
|
readonly BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE";
|
|
16
|
+
readonly BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED";
|
|
16
17
|
readonly SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED";
|
|
18
|
+
readonly SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED";
|
|
17
19
|
readonly SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED";
|
|
18
20
|
};
|
|
19
21
|
export type CRAllocationStrategy =
|
|
@@ -240,7 +242,9 @@ export type JobDefinitionType =
|
|
|
240
242
|
(typeof JobDefinitionType)[keyof typeof JobDefinitionType];
|
|
241
243
|
export declare const CRUpdateAllocationStrategy: {
|
|
242
244
|
readonly BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE";
|
|
245
|
+
readonly BEST_FIT_PROGRESSIVE_ORDERED: "BEST_FIT_PROGRESSIVE_ORDERED";
|
|
243
246
|
readonly SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED";
|
|
247
|
+
readonly SPOT_CAPACITY_OPTIMIZED_PRIORITIZED: "SPOT_CAPACITY_OPTIMIZED_PRIORITIZED";
|
|
244
248
|
readonly SPOT_PRICE_CAPACITY_OPTIMIZED: "SPOT_PRICE_CAPACITY_OPTIMIZED";
|
|
245
249
|
};
|
|
246
250
|
export type CRUpdateAllocationStrategy =
|
|
@@ -120,7 +120,7 @@ export interface ComputeResource {
|
|
|
120
120
|
desiredvCpus?: number | undefined;
|
|
121
121
|
instanceTypes?: string[] | undefined;
|
|
122
122
|
imageId?: string | undefined;
|
|
123
|
-
subnets
|
|
123
|
+
subnets?: string[] | undefined;
|
|
124
124
|
securityGroupIds?: string[] | undefined;
|
|
125
125
|
ec2KeyPair?: string | undefined;
|
|
126
126
|
instanceRole?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-batch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1073.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|