cdk-comprehend-s3olap 2.0.230 → 2.0.232

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.
Files changed (46) hide show
  1. package/.jsii +4 -4
  2. package/lib/cdk-comprehend-s3olap.js +2 -2
  3. package/lib/comprehend-lambdas.js +2 -2
  4. package/lib/iam-roles.js +4 -4
  5. package/node_modules/aws-sdk/CHANGELOG.md +23 -1
  6. package/node_modules/aws-sdk/README.md +1 -1
  7. package/node_modules/aws-sdk/apis/amplifyuibuilder-2021-08-11.min.json +40 -9
  8. package/node_modules/aws-sdk/apis/autoscaling-2011-01-01.examples.json +73 -10
  9. package/node_modules/aws-sdk/apis/autoscaling-2011-01-01.min.json +61 -52
  10. package/node_modules/aws-sdk/apis/cleanrooms-2022-02-17.min.json +601 -85
  11. package/node_modules/aws-sdk/apis/cleanrooms-2022-02-17.paginators.json +12 -0
  12. package/node_modules/aws-sdk/apis/dms-2016-01-01.min.json +60 -16
  13. package/node_modules/aws-sdk/apis/dms-2016-01-01.paginators.json +5 -0
  14. package/node_modules/aws-sdk/apis/inspector2-2020-06-08.min.json +291 -192
  15. package/node_modules/aws-sdk/apis/internetmonitor-2021-06-03.min.json +37 -19
  16. package/node_modules/aws-sdk/apis/lookoutequipment-2020-12-15.min.json +337 -23
  17. package/node_modules/aws-sdk/apis/lookoutequipment-2020-12-15.paginators.json +5 -0
  18. package/node_modules/aws-sdk/apis/medialive-2017-10-14.min.json +12 -0
  19. package/node_modules/aws-sdk/apis/omics-2022-11-28.min.json +32 -29
  20. package/node_modules/aws-sdk/apis/rds-2014-10-31.min.json +295 -177
  21. package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +571 -556
  22. package/node_modules/aws-sdk/apis/scheduler-2021-06-30.min.json +15 -12
  23. package/node_modules/aws-sdk/clients/amplifyuibuilder.d.ts +48 -4
  24. package/node_modules/aws-sdk/clients/autoscaling.d.ts +13 -2
  25. package/node_modules/aws-sdk/clients/batch.d.ts +9 -9
  26. package/node_modules/aws-sdk/clients/cleanrooms.d.ts +516 -9
  27. package/node_modules/aws-sdk/clients/codestarconnections.d.ts +10 -10
  28. package/node_modules/aws-sdk/clients/dms.d.ts +65 -1
  29. package/node_modules/aws-sdk/clients/drs.d.ts +1 -1
  30. package/node_modules/aws-sdk/clients/inspector2.d.ts +101 -2
  31. package/node_modules/aws-sdk/clients/internetmonitor.d.ts +49 -26
  32. package/node_modules/aws-sdk/clients/lookoutequipment.d.ts +522 -15
  33. package/node_modules/aws-sdk/clients/medialive.d.ts +16 -0
  34. package/node_modules/aws-sdk/clients/omics.d.ts +13 -0
  35. package/node_modules/aws-sdk/clients/polly.d.ts +2 -2
  36. package/node_modules/aws-sdk/clients/rds.d.ts +194 -8
  37. package/node_modules/aws-sdk/clients/route53.d.ts +9 -9
  38. package/node_modules/aws-sdk/clients/sagemaker.d.ts +33 -8
  39. package/node_modules/aws-sdk/clients/scheduler.d.ts +16 -3
  40. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +1 -1
  41. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +16 -16
  42. package/node_modules/aws-sdk/dist/aws-sdk.js +359 -232
  43. package/node_modules/aws-sdk/dist/aws-sdk.min.js +49 -49
  44. package/node_modules/aws-sdk/lib/core.js +1 -1
  45. package/node_modules/aws-sdk/package.json +1 -1
  46. package/package.json +5 -5
@@ -26,6 +26,7 @@
26
26
  "Target"
27
27
  ],
28
28
  "members": {
29
+ "ActionAfterCompletion": {},
29
30
  "ClientToken": {
30
31
  "idempotencyToken": true
31
32
  },
@@ -34,7 +35,7 @@
34
35
  "type": "timestamp"
35
36
  },
36
37
  "FlexibleTimeWindow": {
37
- "shape": "S5"
38
+ "shape": "S6"
38
39
  },
39
40
  "GroupName": {},
40
41
  "KmsKeyArn": {},
@@ -49,7 +50,7 @@
49
50
  },
50
51
  "State": {},
51
52
  "Target": {
52
- "shape": "Sf"
53
+ "shape": "Sg"
53
54
  }
54
55
  }
55
56
  },
@@ -83,7 +84,7 @@
83
84
  "locationName": "Name"
84
85
  },
85
86
  "Tags": {
86
- "shape": "S21"
87
+ "shape": "S22"
87
88
  }
88
89
  }
89
90
  },
@@ -185,6 +186,7 @@
185
186
  "output": {
186
187
  "type": "structure",
187
188
  "members": {
189
+ "ActionAfterCompletion": {},
188
190
  "Arn": {},
189
191
  "CreationDate": {
190
192
  "type": "timestamp"
@@ -194,7 +196,7 @@
194
196
  "type": "timestamp"
195
197
  },
196
198
  "FlexibleTimeWindow": {
197
- "shape": "S5"
199
+ "shape": "S6"
198
200
  },
199
201
  "GroupName": {},
200
202
  "KmsKeyArn": {},
@@ -209,7 +211,7 @@
209
211
  },
210
212
  "State": {},
211
213
  "Target": {
212
- "shape": "Sf"
214
+ "shape": "Sg"
213
215
  }
214
216
  }
215
217
  }
@@ -389,7 +391,7 @@
389
391
  "type": "structure",
390
392
  "members": {
391
393
  "Tags": {
392
- "shape": "S21"
394
+ "shape": "S22"
393
395
  }
394
396
  }
395
397
  }
@@ -411,7 +413,7 @@
411
413
  "locationName": "ResourceArn"
412
414
  },
413
415
  "Tags": {
414
- "shape": "S21"
416
+ "shape": "S22"
415
417
  }
416
418
  }
417
419
  },
@@ -466,6 +468,7 @@
466
468
  "Target"
467
469
  ],
468
470
  "members": {
471
+ "ActionAfterCompletion": {},
469
472
  "ClientToken": {
470
473
  "idempotencyToken": true
471
474
  },
@@ -474,7 +477,7 @@
474
477
  "type": "timestamp"
475
478
  },
476
479
  "FlexibleTimeWindow": {
477
- "shape": "S5"
480
+ "shape": "S6"
478
481
  },
479
482
  "GroupName": {},
480
483
  "KmsKeyArn": {},
@@ -489,7 +492,7 @@
489
492
  },
490
493
  "State": {},
491
494
  "Target": {
492
- "shape": "Sf"
495
+ "shape": "Sg"
493
496
  }
494
497
  }
495
498
  },
@@ -506,7 +509,7 @@
506
509
  }
507
510
  },
508
511
  "shapes": {
509
- "S5": {
512
+ "S6": {
510
513
  "type": "structure",
511
514
  "required": [
512
515
  "Mode"
@@ -518,7 +521,7 @@
518
521
  "Mode": {}
519
522
  }
520
523
  },
521
- "Sf": {
524
+ "Sg": {
522
525
  "type": "structure",
523
526
  "required": [
524
527
  "Arn",
@@ -683,7 +686,7 @@
683
686
  }
684
687
  }
685
688
  },
686
- "S21": {
689
+ "S22": {
687
690
  "type": "list",
688
691
  "member": {
689
692
  "type": "structure",
@@ -20,11 +20,11 @@ declare class AmplifyUIBuilder extends Service {
20
20
  */
21
21
  createComponent(callback?: (err: AWSError, data: AmplifyUIBuilder.Types.CreateComponentResponse) => void): Request<AmplifyUIBuilder.Types.CreateComponentResponse, AWSError>;
22
22
  /**
23
- * Creates a new form for an Amplify.
23
+ * Creates a new form for an Amplify app.
24
24
  */
25
25
  createForm(params: AmplifyUIBuilder.Types.CreateFormRequest, callback?: (err: AWSError, data: AmplifyUIBuilder.Types.CreateFormResponse) => void): Request<AmplifyUIBuilder.Types.CreateFormResponse, AWSError>;
26
26
  /**
27
- * Creates a new form for an Amplify.
27
+ * Creates a new form for an Amplify app.
28
28
  */
29
29
  createForm(callback?: (err: AWSError, data: AmplifyUIBuilder.Types.CreateFormResponse) => void): Request<AmplifyUIBuilder.Types.CreateFormResponse, AWSError>;
30
30
  /**
@@ -180,11 +180,11 @@ declare class AmplifyUIBuilder extends Service {
180
180
  */
181
181
  refreshToken(callback?: (err: AWSError, data: AmplifyUIBuilder.Types.RefreshTokenResponse) => void): Request<AmplifyUIBuilder.Types.RefreshTokenResponse, AWSError>;
182
182
  /**
183
- * Starts a code generation job for for a specified Amplify app and backend environment.
183
+ * Starts a code generation job for a specified Amplify app and backend environment.
184
184
  */
185
185
  startCodegenJob(params: AmplifyUIBuilder.Types.StartCodegenJobRequest, callback?: (err: AWSError, data: AmplifyUIBuilder.Types.StartCodegenJobResponse) => void): Request<AmplifyUIBuilder.Types.StartCodegenJobResponse, AWSError>;
186
186
  /**
187
- * Starts a code generation job for for a specified Amplify app and backend environment.
187
+ * Starts a code generation job for a specified Amplify app and backend environment.
188
188
  */
189
189
  startCodegenJob(callback?: (err: AWSError, data: AmplifyUIBuilder.Types.StartCodegenJobResponse) => void): Request<AmplifyUIBuilder.Types.StartCodegenJobResponse, AWSError>;
190
190
  /**
@@ -251,6 +251,20 @@ declare namespace AmplifyUIBuilder {
251
251
  */
252
252
  state?: MutationActionSetStateParameter;
253
253
  }
254
+ export interface ApiConfiguration {
255
+ /**
256
+ * The configuration for an application using GraphQL APIs.
257
+ */
258
+ graphQLConfig?: GraphQLRenderConfig;
259
+ /**
260
+ * The configuration for an application using DataStore APIs.
261
+ */
262
+ dataStoreConfig?: DataStoreRenderConfig;
263
+ /**
264
+ * The configuration for an application with no API being used.
265
+ */
266
+ noApiConfig?: NoApiRenderConfig;
267
+ }
254
268
  export type AppId = string;
255
269
  export type AssociatedFieldsList = String[];
256
270
  export type Boolean = boolean;
@@ -968,6 +982,8 @@ declare namespace AmplifyUIBuilder {
968
982
  */
969
983
  entity?: Theme;
970
984
  }
985
+ export interface DataStoreRenderConfig {
986
+ }
971
987
  export interface DeleteComponentRequest {
972
988
  /**
973
989
  * The unique ID of the Amplify app associated with the component to delete.
@@ -1572,6 +1588,28 @@ declare namespace AmplifyUIBuilder {
1572
1588
  */
1573
1589
  theme?: Theme;
1574
1590
  }
1591
+ export interface GraphQLRenderConfig {
1592
+ /**
1593
+ * The path to the GraphQL types file, relative to the component output directory.
1594
+ */
1595
+ typesFilePath: String;
1596
+ /**
1597
+ * The path to the GraphQL queries file, relative to the component output directory.
1598
+ */
1599
+ queriesFilePath: String;
1600
+ /**
1601
+ * The path to the GraphQL mutations file, relative to the component output directory.
1602
+ */
1603
+ mutationsFilePath: String;
1604
+ /**
1605
+ * The path to the GraphQL subscriptions file, relative to the component output directory.
1606
+ */
1607
+ subscriptionsFilePath: String;
1608
+ /**
1609
+ * The path to the GraphQL fragments file, relative to the component output directory.
1610
+ */
1611
+ fragmentsFilePath: String;
1612
+ }
1575
1613
  export type IdentifierList = String[];
1576
1614
  export type Integer = number;
1577
1615
  export type JSModule = "es2020"|"esnext"|string;
@@ -1708,6 +1746,8 @@ declare namespace AmplifyUIBuilder {
1708
1746
  */
1709
1747
  set: ComponentProperty;
1710
1748
  }
1749
+ export interface NoApiRenderConfig {
1750
+ }
1711
1751
  export type NumValues = Integer[];
1712
1752
  export type OperandType = string;
1713
1753
  export interface Predicate {
@@ -1782,6 +1822,10 @@ declare namespace AmplifyUIBuilder {
1782
1822
  * Specifies whether the code generation job should render inline source maps.
1783
1823
  */
1784
1824
  inlineSourceMap?: Boolean;
1825
+ /**
1826
+ * The API configuration for the code generation job.
1827
+ */
1828
+ apiConfiguration?: ApiConfiguration;
1785
1829
  }
1786
1830
  export interface RefreshTokenRequest {
1787
1831
  /**
@@ -616,6 +616,13 @@ declare namespace AutoScaling {
616
616
  */
617
617
  AlarmARN?: ResourceName;
618
618
  }
619
+ export type AlarmList = XmlStringMaxLen255[];
620
+ export interface AlarmSpecification {
621
+ /**
622
+ * The names of one or more CloudWatch alarms to monitor for the instance refresh.
623
+ */
624
+ Alarms?: AlarmList;
625
+ }
619
626
  export type Alarms = Alarm[];
620
627
  export type AllowedInstanceType = string;
621
628
  export type AllowedInstanceTypes = AllowedInstanceType[];
@@ -2987,7 +2994,7 @@ declare namespace AutoScaling {
2987
2994
  */
2988
2995
  SkipMatching?: SkipMatching;
2989
2996
  /**
2990
- * (Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance refresh fails. The default is false. A rollback is not supported in the following situations: There is no desired configuration specified for the instance refresh. The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead of an AMI ID for the ImageId property. The Auto Scaling group uses the launch template's $Latest or $Default version.
2997
+ * (Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration if the instance refresh fails or a CloudWatch alarm threshold is met. The default is false. A rollback is not supported in the following situations: There is no desired configuration specified for the instance refresh. The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead of an AMI ID for the ImageId property. The Auto Scaling group uses the launch template's $Latest or $Default version. For more information, see Undo changes with a rollback in the Amazon EC2 Auto Scaling User Guide.
2991
2998
  */
2992
2999
  AutoRollback?: AutoRollback;
2993
3000
  /**
@@ -2998,6 +3005,10 @@ declare namespace AutoScaling {
2998
3005
  * Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in Standby state are found. The following lists the valid values: Terminate Amazon EC2 Auto Scaling terminates instances that are in Standby. Ignore Amazon EC2 Auto Scaling ignores instances that are in Standby and continues to replace instances that are in the InService state. Wait (default) Amazon EC2 Auto Scaling waits one hour for you to return the instances to service. Otherwise, the instance refresh will fail.
2999
3006
  */
3000
3007
  StandbyInstances?: StandbyInstances;
3008
+ /**
3009
+ * (Optional) The CloudWatch alarm specification. CloudWatch alarms can be used to identify any issues and fail the operation if an alarm threshold is met.
3010
+ */
3011
+ AlarmSpecification?: AlarmSpecification;
3001
3012
  }
3002
3013
  export type RefreshStrategy = "Rolling"|string;
3003
3014
  export type ResourceName = string;
@@ -3281,7 +3292,7 @@ declare namespace AutoScaling {
3281
3292
  */
3282
3293
  DesiredConfiguration?: DesiredConfiguration;
3283
3294
  /**
3284
- * Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in Standby state or protected from scale in are found. You can also choose to enable additional features, such as the following: Auto rollback Checkpoints Skip matching
3295
+ * Sets your preferences for the instance refresh so that it performs as expected when you start it. Includes the instance warmup time, the minimum healthy percentage, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in Standby state or protected from scale in are found. You can also choose to enable additional features, such as the following: Auto rollback Checkpoints CloudWatch alarms Skip matching
3285
3296
  */
3286
3297
  Preferences?: RefreshPreferences;
3287
3298
  }
@@ -20,11 +20,11 @@ declare class Batch extends Service {
20
20
  */
21
21
  cancelJob(callback?: (err: AWSError, data: Batch.Types.CancelJobResponse) => void): Request<Batch.Types.CancelJobResponse, AWSError>;
22
22
  /**
23
- * Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute environments. MANAGED compute environments can use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use EC2 resources. In a managed compute environment, Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a specified percentage of the On-Demand price. Multi-node parallel jobs aren't supported on Spot Instances. In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the Amazon Elastic Container Service Developer Guide. To create a compute environment that uses EKS resources, the caller must have permissions to call eks:DescribeCluster. Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is available. You're responsible for the management of the guest operating system. This includes any updates and security patches. You're also responsible for any additional application software or utilities that you install on the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete these steps: Create a new compute environment with the new AMI. Add the compute environment to an existing job queue. Remove the earlier compute environment from your job queue. Delete the earlier compute environment. In April 2022, Batch added enhanced support for updating compute environments. For more information, see Updating compute environments. To use the enhanced updating of compute environments to update AMIs, follow these rules: Either don't set the service role (serviceRole) parameter or set it to the AWSBatchServiceRole service-linked role. Set the allocation strategy (allocationStrategy) parameter to BEST_FIT_PROGRESSIVE or SPOT_CAPACITY_OPTIMIZED. Set the update to latest image version (updateToLatestImageVersion) parameter to true. The updateToLatestImageVersion parameter is used when you update a compute environment. This parameter is ignored when you create a compute environment. Don't specify an AMI ID in imageId, imageIdOverride (in ec2Configuration ), or in the launch template (launchTemplate). In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID in the imageId or imageIdOverride parameters, or the launch template identified by the LaunchTemplate properties. Changing any of these properties starts an infrastructure update. If the AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the imageId or imageIdOverride parameters. It can only be replaced by specifying a different launch template, or if the launch template version is set to $Default or $Latest, by setting either a new default version for the launch template (if $Default) or by adding a new version to the launch template (if $Latest). If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be re-selected. If the version setting in the launch template (launchTemplate) is set to $Latest or $Default, the latest or default version of the launch template is evaluated up at the time of the infrastructure update, even if the launchTemplate wasn't updated.
23
+ * Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute environments. MANAGED compute environments can use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use EC2 resources. In a managed compute environment, Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a specified percentage of the On-Demand price. Multi-node parallel jobs aren't supported on Spot Instances. In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the Amazon Elastic Container Service Developer Guide. To create a compute environment that uses EKS resources, the caller must have permissions to call eks:DescribeCluster. Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is available. You're responsible for the management of the guest operating system. This includes any updates and security patches. You're also responsible for any additional application software or utilities that you install on the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete these steps: Create a new compute environment with the new AMI. Add the compute environment to an existing job queue. Remove the earlier compute environment from your job queue. Delete the earlier compute environment. In April 2022, Batch added enhanced support for updating compute environments. For more information, see Updating compute environments. To use the enhanced updating of compute environments to update AMIs, follow these rules: Either don't set the service role (serviceRole) parameter or set it to the AWSBatchServiceRole service-linked role. Set the allocation strategy (allocationStrategy) parameter to BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED, or SPOT_PRICE_CAPACITY_OPTIMIZED. Set the update to latest image version (updateToLatestImageVersion) parameter to true. The updateToLatestImageVersion parameter is used when you update a compute environment. This parameter is ignored when you create a compute environment. Don't specify an AMI ID in imageId, imageIdOverride (in ec2Configuration ), or in the launch template (launchTemplate). In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID in the imageId or imageIdOverride parameters, or the launch template identified by the LaunchTemplate properties. Changing any of these properties starts an infrastructure update. If the AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the imageId or imageIdOverride parameters. It can only be replaced by specifying a different launch template, or if the launch template version is set to $Default or $Latest, by setting either a new default version for the launch template (if $Default) or by adding a new version to the launch template (if $Latest). If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be re-selected. If the version setting in the launch template (launchTemplate) is set to $Latest or $Default, the latest or default version of the launch template is evaluated up at the time of the infrastructure update, even if the launchTemplate wasn't updated.
24
24
  */
25
25
  createComputeEnvironment(params: Batch.Types.CreateComputeEnvironmentRequest, callback?: (err: AWSError, data: Batch.Types.CreateComputeEnvironmentResponse) => void): Request<Batch.Types.CreateComputeEnvironmentResponse, AWSError>;
26
26
  /**
27
- * Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute environments. MANAGED compute environments can use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use EC2 resources. In a managed compute environment, Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a specified percentage of the On-Demand price. Multi-node parallel jobs aren't supported on Spot Instances. In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the Amazon Elastic Container Service Developer Guide. To create a compute environment that uses EKS resources, the caller must have permissions to call eks:DescribeCluster. Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is available. You're responsible for the management of the guest operating system. This includes any updates and security patches. You're also responsible for any additional application software or utilities that you install on the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete these steps: Create a new compute environment with the new AMI. Add the compute environment to an existing job queue. Remove the earlier compute environment from your job queue. Delete the earlier compute environment. In April 2022, Batch added enhanced support for updating compute environments. For more information, see Updating compute environments. To use the enhanced updating of compute environments to update AMIs, follow these rules: Either don't set the service role (serviceRole) parameter or set it to the AWSBatchServiceRole service-linked role. Set the allocation strategy (allocationStrategy) parameter to BEST_FIT_PROGRESSIVE or SPOT_CAPACITY_OPTIMIZED. Set the update to latest image version (updateToLatestImageVersion) parameter to true. The updateToLatestImageVersion parameter is used when you update a compute environment. This parameter is ignored when you create a compute environment. Don't specify an AMI ID in imageId, imageIdOverride (in ec2Configuration ), or in the launch template (launchTemplate). In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID in the imageId or imageIdOverride parameters, or the launch template identified by the LaunchTemplate properties. Changing any of these properties starts an infrastructure update. If the AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the imageId or imageIdOverride parameters. It can only be replaced by specifying a different launch template, or if the launch template version is set to $Default or $Latest, by setting either a new default version for the launch template (if $Default) or by adding a new version to the launch template (if $Latest). If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be re-selected. If the version setting in the launch template (launchTemplate) is set to $Latest or $Default, the latest or default version of the launch template is evaluated up at the time of the infrastructure update, even if the launchTemplate wasn't updated.
27
+ * Creates an Batch compute environment. You can create MANAGED or UNMANAGED compute environments. MANAGED compute environments can use Amazon EC2 or Fargate resources. UNMANAGED compute environments can only use EC2 resources. In a managed compute environment, Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a specified percentage of the On-Demand price. Multi-node parallel jobs aren't supported on Spot Instances. In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of your AMIs meet the Amazon ECS container instance AMI specification. For more information, see container instance AMIs in the Amazon Elastic Container Service Developer Guide. After you created your unmanaged compute environment, you can use the DescribeComputeEnvironments operation to find the Amazon ECS cluster that's associated with it. Then, launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS container instance in the Amazon Elastic Container Service Developer Guide. To create a compute environment that uses EKS resources, the caller must have permissions to call eks:DescribeCluster. Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is available. You're responsible for the management of the guest operating system. This includes any updates and security patches. You're also responsible for any additional application software or utilities that you install on the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete these steps: Create a new compute environment with the new AMI. Add the compute environment to an existing job queue. Remove the earlier compute environment from your job queue. Delete the earlier compute environment. In April 2022, Batch added enhanced support for updating compute environments. For more information, see Updating compute environments. To use the enhanced updating of compute environments to update AMIs, follow these rules: Either don't set the service role (serviceRole) parameter or set it to the AWSBatchServiceRole service-linked role. Set the allocation strategy (allocationStrategy) parameter to BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED, or SPOT_PRICE_CAPACITY_OPTIMIZED. Set the update to latest image version (updateToLatestImageVersion) parameter to true. The updateToLatestImageVersion parameter is used when you update a compute environment. This parameter is ignored when you create a compute environment. Don't specify an AMI ID in imageId, imageIdOverride (in ec2Configuration ), or in the launch template (launchTemplate). In that case, Batch selects the latest Amazon ECS optimized AMI that's supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID in the imageId or imageIdOverride parameters, or the launch template identified by the LaunchTemplate properties. Changing any of these properties starts an infrastructure update. If the AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the imageId or imageIdOverride parameters. It can only be replaced by specifying a different launch template, or if the launch template version is set to $Default or $Latest, by setting either a new default version for the launch template (if $Default) or by adding a new version to the launch template (if $Latest). If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be re-selected. If the version setting in the launch template (launchTemplate) is set to $Latest or $Default, the latest or default version of the launch template is evaluated up at the time of the infrastructure update, even if the launchTemplate wasn't updated.
28
28
  */
29
29
  createComputeEnvironment(callback?: (err: AWSError, data: Batch.Types.CreateComputeEnvironmentResponse) => void): Request<Batch.Types.CreateComputeEnvironmentResponse, AWSError>;
30
30
  /**
@@ -287,9 +287,9 @@ declare namespace Batch {
287
287
  export type CEState = "ENABLED"|"DISABLED"|string;
288
288
  export type CEStatus = "CREATING"|"UPDATING"|"DELETING"|"DELETED"|"VALID"|"INVALID"|string;
289
289
  export type CEType = "MANAGED"|"UNMANAGED"|string;
290
- export type CRAllocationStrategy = "BEST_FIT"|"BEST_FIT_PROGRESSIVE"|"SPOT_CAPACITY_OPTIMIZED"|string;
290
+ export type CRAllocationStrategy = "BEST_FIT"|"BEST_FIT_PROGRESSIVE"|"SPOT_CAPACITY_OPTIMIZED"|"SPOT_PRICE_CAPACITY_OPTIMIZED"|string;
291
291
  export type CRType = "EC2"|"SPOT"|"FARGATE"|"FARGATE_SPOT"|string;
292
- export type CRUpdateAllocationStrategy = "BEST_FIT_PROGRESSIVE"|"SPOT_CAPACITY_OPTIMIZED"|string;
292
+ export type CRUpdateAllocationStrategy = "BEST_FIT_PROGRESSIVE"|"SPOT_CAPACITY_OPTIMIZED"|"SPOT_PRICE_CAPACITY_OPTIMIZED"|string;
293
293
  export interface CancelJobRequest {
294
294
  /**
295
295
  * The Batch job ID of the job to cancel.
@@ -382,7 +382,7 @@ declare namespace Batch {
382
382
  */
383
383
  type: CRType;
384
384
  /**
385
- * The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more information, see Allocation strategies in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. BEST_FIT (default) Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, Batch waits for the additional instances to be available. If there aren't enough instances available or the user is reaching Amazon EC2 service limits, additional jobs aren't run until the currently running jobs are completed. This allocation strategy keeps costs lower but can limit scaling. If you're using Spot Fleets with BEST_FIT, the Spot Fleet IAM Role must be specified. Compute resources that use a BEST_FIT allocation strategy don't support infrastructure updates and can't update some parameters. For more information, see Updating compute environments in the Batch User Guide. BEST_FIT_PROGRESSIVE Batch selects additional instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If additional instances of the previously selected instance types aren't available, Batch selects new instance types. SPOT_CAPACITY_OPTIMIZED Batch selects one or more instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance.
385
+ * The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more information, see Allocation strategies in the Batch User Guide. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. BEST_FIT (default) Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, Batch waits for the additional instances to be available. If there aren't enough instances available or the user is reaching Amazon EC2 service limits, additional jobs aren't run until the currently running jobs are completed. This allocation strategy keeps costs lower but can limit scaling. If you're using Spot Fleets with BEST_FIT, the Spot Fleet IAM Role must be specified. Compute resources that use a BEST_FIT allocation strategy don't support infrastructure updates and can't update some parameters. For more information, see Updating compute environments in the Batch User Guide. BEST_FIT_PROGRESSIVE Batch selects additional instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If additional instances of the previously selected instance types aren't available, Batch selects new instance types. SPOT_CAPACITY_OPTIMIZED Batch selects one or more instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. SPOT_PRICE_CAPACITY_OPTIMIZED The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. This allocation strategy is only available for Spot Instance compute resources. With BEST_FIT_PROGRESSIVE,SPOT_CAPACITY_OPTIMIZED and SPOT_PRICE_CAPACITY_OPTIMIZED strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance.
386
386
  */
387
387
  allocationStrategy?: CRAllocationStrategy;
388
388
  /**
@@ -390,7 +390,7 @@ declare namespace Batch {
390
390
  */
391
391
  minvCpus?: Integer;
392
392
  /**
393
- * The maximum number of vCPUs that a compute environment can support. With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among those specified in your compute environment is allocated.
393
+ * The maximum number of vCPUs that a compute environment can support. With BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED and SPOT_PRICE_CAPACITY_OPTIMIZED allocation strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance. For example, no more than a single instance from among those specified in your compute environment is allocated.
394
394
  */
395
395
  maxvCpus: Integer;
396
396
  /**
@@ -452,7 +452,7 @@ declare namespace Batch {
452
452
  */
453
453
  minvCpus?: Integer;
454
454
  /**
455
- * The maximum number of Amazon EC2 vCPUs that an environment can reach. With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED allocation strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among those specified in your compute environment.
455
+ * The maximum number of Amazon EC2 vCPUs that an environment can reach. With BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED, and SPOT_PRICE_CAPACITY_OPTIMIZED allocation strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance. That is, no more than a single instance from among those specified in your compute environment.
456
456
  */
457
457
  maxvCpus?: Integer;
458
458
  /**
@@ -468,7 +468,7 @@ declare namespace Batch {
468
468
  */
469
469
  securityGroupIds?: StringList;
470
470
  /**
471
- * The allocation strategy to use for the compute resource if there's not enough instances of the best fitting instance type that can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more information, see Allocation strategies in the Batch User Guide. When updating a compute environment, changing the allocation strategy requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. BEST_FIT isn't supported when updating a compute environment. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. BEST_FIT_PROGRESSIVE Batch selects additional instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If additional instances of the previously selected instance types aren't available, Batch selects new instance types. SPOT_CAPACITY_OPTIMIZED Batch selects one or more instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. With both BEST_FIT_PROGRESSIVE and SPOT_CAPACITY_OPTIMIZED strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance.
471
+ * The allocation strategy to use for the compute resource if there's not enough instances of the best fitting instance type that can be allocated. This might be because of availability of the instance type in the Region or Amazon EC2 service limits. For more information, see Allocation strategies in the Batch User Guide. When updating a compute environment, changing the allocation strategy requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide. BEST_FIT isn't supported when updating a compute environment. This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. BEST_FIT_PROGRESSIVE Batch selects additional instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types with lower cost vCPUs. If additional instances of the previously selected instance types aren't available, Batch selects new instance types. SPOT_CAPACITY_OPTIMIZED Batch selects one or more instance types that are large enough to meet the requirements of the jobs in the queue. Its preference is for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. SPOT_PRICE_CAPACITY_OPTIMIZED The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. This allocation strategy is only available for Spot Instance compute resources. With both BEST_FIT_PROGRESSIVE, SPOT_CAPACITY_OPTIMIZED, and SPOT_PRICE_CAPACITY_OPTIMIZED strategies using On-Demand or Spot Instances, and the BEST_FIT strategy using Spot Instances, Batch might need to exceed maxvCpus to meet your capacity requirements. In this event, Batch never exceeds maxvCpus by more than a single instance.
472
472
  */
473
473
  allocationStrategy?: CRUpdateAllocationStrategy;
474
474
  /**
@@ -2115,7 +2115,7 @@ declare namespace Batch {
2115
2115
  */
2116
2116
  operatingSystemFamily?: String;
2117
2117
  /**
2118
- * The vCPU architecture. The default value is X86_64. Valid values are X86_64 and ARM64. This parameter must be set to X86_64 for Windows containers.
2118
+ * The vCPU architecture. The default value is X86_64. Valid values are X86_64 and ARM64. This parameter must be set to X86_64 for Windows containers.
2119
2119
  */
2120
2120
  cpuArchitecture?: String;
2121
2121
  }