@aws-sdk/client-batch 3.194.0 → 3.196.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.
Files changed (136) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +5 -5
  3. package/dist-cjs/BatchClient.js +11 -8
  4. package/dist-cjs/commands/CancelJobCommand.js +10 -0
  5. package/dist-cjs/commands/CreateComputeEnvironmentCommand.js +10 -0
  6. package/dist-cjs/commands/CreateJobQueueCommand.js +10 -0
  7. package/dist-cjs/commands/CreateSchedulingPolicyCommand.js +10 -0
  8. package/dist-cjs/commands/DeleteComputeEnvironmentCommand.js +10 -0
  9. package/dist-cjs/commands/DeleteJobQueueCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteSchedulingPolicyCommand.js +10 -0
  11. package/dist-cjs/commands/DeregisterJobDefinitionCommand.js +10 -0
  12. package/dist-cjs/commands/DescribeComputeEnvironmentsCommand.js +10 -0
  13. package/dist-cjs/commands/DescribeJobDefinitionsCommand.js +10 -0
  14. package/dist-cjs/commands/DescribeJobQueuesCommand.js +10 -0
  15. package/dist-cjs/commands/DescribeJobsCommand.js +10 -0
  16. package/dist-cjs/commands/DescribeSchedulingPoliciesCommand.js +10 -0
  17. package/dist-cjs/commands/ListJobsCommand.js +10 -0
  18. package/dist-cjs/commands/ListSchedulingPoliciesCommand.js +10 -0
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  20. package/dist-cjs/commands/RegisterJobDefinitionCommand.js +10 -0
  21. package/dist-cjs/commands/SubmitJobCommand.js +10 -0
  22. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  23. package/dist-cjs/commands/TerminateJobCommand.js +10 -0
  24. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  25. package/dist-cjs/commands/UpdateComputeEnvironmentCommand.js +10 -0
  26. package/dist-cjs/commands/UpdateJobQueueCommand.js +10 -0
  27. package/dist-cjs/commands/UpdateSchedulingPolicyCommand.js +10 -0
  28. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  29. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  30. package/dist-cjs/endpoint/ruleset.js +368 -0
  31. package/dist-cjs/models/models_0.js +88 -3
  32. package/dist-cjs/protocols/Aws_restJson1.js +448 -0
  33. package/dist-cjs/runtimeConfig.shared.js +3 -3
  34. package/dist-es/BatchClient.js +12 -9
  35. package/dist-es/commands/CancelJobCommand.js +10 -0
  36. package/dist-es/commands/CreateComputeEnvironmentCommand.js +10 -0
  37. package/dist-es/commands/CreateJobQueueCommand.js +10 -0
  38. package/dist-es/commands/CreateSchedulingPolicyCommand.js +10 -0
  39. package/dist-es/commands/DeleteComputeEnvironmentCommand.js +10 -0
  40. package/dist-es/commands/DeleteJobQueueCommand.js +10 -0
  41. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +10 -0
  42. package/dist-es/commands/DeregisterJobDefinitionCommand.js +10 -0
  43. package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +10 -0
  44. package/dist-es/commands/DescribeJobDefinitionsCommand.js +10 -0
  45. package/dist-es/commands/DescribeJobQueuesCommand.js +10 -0
  46. package/dist-es/commands/DescribeJobsCommand.js +10 -0
  47. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +10 -0
  48. package/dist-es/commands/ListJobsCommand.js +10 -0
  49. package/dist-es/commands/ListSchedulingPoliciesCommand.js +10 -0
  50. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  51. package/dist-es/commands/RegisterJobDefinitionCommand.js +10 -0
  52. package/dist-es/commands/SubmitJobCommand.js +10 -0
  53. package/dist-es/commands/TagResourceCommand.js +10 -0
  54. package/dist-es/commands/TerminateJobCommand.js +10 -0
  55. package/dist-es/commands/UntagResourceCommand.js +10 -0
  56. package/dist-es/commands/UpdateComputeEnvironmentCommand.js +10 -0
  57. package/dist-es/commands/UpdateJobQueueCommand.js +10 -0
  58. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +10 -0
  59. package/dist-es/endpoint/EndpointParameters.js +8 -0
  60. package/dist-es/endpoint/endpointResolver.js +8 -0
  61. package/dist-es/endpoint/ruleset.js +365 -0
  62. package/dist-es/models/models_0.js +65 -0
  63. package/dist-es/protocols/Aws_restJson1.js +448 -0
  64. package/dist-es/runtimeConfig.shared.js +2 -2
  65. package/dist-types/Batch.d.ts +30 -30
  66. package/dist-types/BatchClient.d.ts +11 -14
  67. package/dist-types/commands/CancelJobCommand.d.ts +5 -3
  68. package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +22 -20
  69. package/dist-types/commands/CreateJobQueueCommand.d.ts +2 -0
  70. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +2 -0
  71. package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +2 -0
  72. package/dist-types/commands/DeleteJobQueueCommand.d.ts +2 -0
  73. package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +2 -0
  74. package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +2 -0
  75. package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +2 -0
  76. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +2 -0
  77. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +2 -0
  78. package/dist-types/commands/DescribeJobsCommand.d.ts +2 -0
  79. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +2 -0
  80. package/dist-types/commands/ListJobsCommand.d.ts +2 -0
  81. package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +2 -0
  82. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -1
  83. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +2 -0
  84. package/dist-types/commands/SubmitJobCommand.d.ts +2 -0
  85. package/dist-types/commands/TagResourceCommand.d.ts +3 -1
  86. package/dist-types/commands/TerminateJobCommand.d.ts +2 -0
  87. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  88. package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +2 -0
  89. package/dist-types/commands/UpdateJobQueueCommand.d.ts +2 -0
  90. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +2 -0
  91. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  92. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  93. package/dist-types/endpoint/ruleset.d.ts +2 -0
  94. package/dist-types/models/models_0.d.ts +1322 -552
  95. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  96. package/dist-types/runtimeConfig.d.ts +4 -2
  97. package/dist-types/runtimeConfig.native.d.ts +4 -2
  98. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  99. package/dist-types/ts3.4/BatchClient.d.ts +15 -8
  100. package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +2 -0
  101. package/dist-types/ts3.4/commands/CreateComputeEnvironmentCommand.d.ts +2 -0
  102. package/dist-types/ts3.4/commands/CreateJobQueueCommand.d.ts +2 -0
  103. package/dist-types/ts3.4/commands/CreateSchedulingPolicyCommand.d.ts +2 -0
  104. package/dist-types/ts3.4/commands/DeleteComputeEnvironmentCommand.d.ts +2 -0
  105. package/dist-types/ts3.4/commands/DeleteJobQueueCommand.d.ts +2 -0
  106. package/dist-types/ts3.4/commands/DeleteSchedulingPolicyCommand.d.ts +2 -0
  107. package/dist-types/ts3.4/commands/DeregisterJobDefinitionCommand.d.ts +2 -0
  108. package/dist-types/ts3.4/commands/DescribeComputeEnvironmentsCommand.d.ts +2 -0
  109. package/dist-types/ts3.4/commands/DescribeJobDefinitionsCommand.d.ts +2 -0
  110. package/dist-types/ts3.4/commands/DescribeJobQueuesCommand.d.ts +2 -0
  111. package/dist-types/ts3.4/commands/DescribeJobsCommand.d.ts +2 -0
  112. package/dist-types/ts3.4/commands/DescribeSchedulingPoliciesCommand.d.ts +2 -0
  113. package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +2 -0
  114. package/dist-types/ts3.4/commands/ListSchedulingPoliciesCommand.d.ts +2 -0
  115. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  116. package/dist-types/ts3.4/commands/RegisterJobDefinitionCommand.d.ts +2 -0
  117. package/dist-types/ts3.4/commands/SubmitJobCommand.d.ts +2 -0
  118. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  119. package/dist-types/ts3.4/commands/TerminateJobCommand.d.ts +2 -0
  120. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  121. package/dist-types/ts3.4/commands/UpdateComputeEnvironmentCommand.d.ts +2 -0
  122. package/dist-types/ts3.4/commands/UpdateJobQueueCommand.d.ts +2 -0
  123. package/dist-types/ts3.4/commands/UpdateSchedulingPolicyCommand.d.ts +2 -0
  124. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  125. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  126. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  127. package/dist-types/ts3.4/models/models_0.d.ts +177 -0
  128. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  129. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  130. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  131. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  132. package/package.json +5 -3
  133. package/dist-cjs/endpoints.js +0 -185
  134. package/dist-es/endpoints.js +0 -181
  135. package/dist-types/endpoints.d.ts +0 -2
  136. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -62,6 +62,7 @@ export declare enum CRAllocationStrategy {
62
62
  export interface Ec2Configuration {
63
63
  imageType: string | undefined;
64
64
  imageIdOverride?: string;
65
+ imageKubernetesVersion?: string;
65
66
  }
66
67
  export interface LaunchTemplateSpecification {
67
68
  launchTemplateId?: string;
@@ -93,6 +94,10 @@ export interface ComputeResource {
93
94
  launchTemplate?: LaunchTemplateSpecification;
94
95
  ec2Configuration?: Ec2Configuration[];
95
96
  }
97
+ export interface EksConfiguration {
98
+ eksClusterArn: string | undefined;
99
+ kubernetesNamespace: string | undefined;
100
+ }
96
101
  export declare enum CEState {
97
102
  DISABLED = "DISABLED",
98
103
  ENABLED = "ENABLED",
@@ -109,6 +114,7 @@ export interface CreateComputeEnvironmentRequest {
109
114
  computeResources?: ComputeResource;
110
115
  serviceRole?: string;
111
116
  tags?: Record<string, string>;
117
+ eksConfiguration?: EksConfiguration;
112
118
  }
113
119
  export interface CreateComputeEnvironmentResponse {
114
120
  computeEnvironmentName?: string;
@@ -173,6 +179,10 @@ export interface DescribeComputeEnvironmentsRequest {
173
179
  maxResults?: number;
174
180
  nextToken?: string;
175
181
  }
182
+ export declare enum OrchestrationType {
183
+ ECS = "ECS",
184
+ EKS = "EKS",
185
+ }
176
186
  export declare enum CEStatus {
177
187
  CREATING = "CREATING",
178
188
  DELETED = "DELETED",
@@ -198,6 +208,9 @@ export interface ComputeEnvironmentDetail {
198
208
  computeResources?: ComputeResource;
199
209
  serviceRole?: string;
200
210
  updatePolicy?: UpdatePolicy;
211
+ eksConfiguration?: EksConfiguration;
212
+ containerOrchestrationType?: OrchestrationType | string;
213
+ uuid?: string;
201
214
  }
202
215
  export interface DescribeComputeEnvironmentsResponse {
203
216
  computeEnvironments?: ComputeEnvironmentDetail[];
@@ -329,6 +342,64 @@ export interface ContainerProperties {
329
342
  networkConfiguration?: NetworkConfiguration;
330
343
  fargatePlatformConfiguration?: FargatePlatformConfiguration;
331
344
  }
345
+ export interface EksContainerEnvironmentVariable {
346
+ name: string | undefined;
347
+ value?: string;
348
+ }
349
+ export interface EksContainerResourceRequirements {
350
+ limits?: Record<string, string>;
351
+ requests?: Record<string, string>;
352
+ }
353
+ export interface EksContainerSecurityContext {
354
+ runAsUser?: number;
355
+ runAsGroup?: number;
356
+ privileged?: boolean;
357
+ readOnlyRootFilesystem?: boolean;
358
+ runAsNonRoot?: boolean;
359
+ }
360
+ export interface EksContainerVolumeMount {
361
+ name?: string;
362
+ mountPath?: string;
363
+ readOnly?: boolean;
364
+ }
365
+ export interface EksContainer {
366
+ name?: string;
367
+ image: string | undefined;
368
+ imagePullPolicy?: string;
369
+ command?: string[];
370
+ args?: string[];
371
+ env?: EksContainerEnvironmentVariable[];
372
+ resources?: EksContainerResourceRequirements;
373
+ volumeMounts?: EksContainerVolumeMount[];
374
+ securityContext?: EksContainerSecurityContext;
375
+ }
376
+ export interface EksEmptyDir {
377
+ medium?: string;
378
+ sizeLimit?: string;
379
+ }
380
+ export interface EksHostPath {
381
+ path?: string;
382
+ }
383
+ export interface EksSecret {
384
+ secretName: string | undefined;
385
+ optional?: boolean;
386
+ }
387
+ export interface EksVolume {
388
+ name: string | undefined;
389
+ hostPath?: EksHostPath;
390
+ emptyDir?: EksEmptyDir;
391
+ secret?: EksSecret;
392
+ }
393
+ export interface EksPodProperties {
394
+ serviceAccountName?: string;
395
+ hostNetwork?: boolean;
396
+ dnsPolicy?: string;
397
+ containers?: EksContainer[];
398
+ volumes?: EksVolume[];
399
+ }
400
+ export interface EksProperties {
401
+ podProperties?: EksPodProperties;
402
+ }
332
403
  export interface NodeRangeProperty {
333
404
  targetNodes: string | undefined;
334
405
  container?: ContainerProperties;
@@ -374,6 +445,8 @@ export interface JobDefinition {
374
445
  tags?: Record<string, string>;
375
446
  propagateTags?: boolean;
376
447
  platformCapabilities?: (PlatformCapability | string)[];
448
+ eksProperties?: EksProperties;
449
+ containerOrchestrationType?: OrchestrationType | string;
377
450
  }
378
451
  export interface DescribeJobDefinitionsResponse {
379
452
  jobDefinitions?: JobDefinition[];
@@ -442,6 +515,43 @@ export interface JobDependency {
442
515
  jobId?: string;
443
516
  type?: ArrayJobDependency | string;
444
517
  }
518
+ export interface EksAttemptContainerDetail {
519
+ exitCode?: number;
520
+ reason?: string;
521
+ }
522
+ export interface EksAttemptDetail {
523
+ containers?: EksAttemptContainerDetail[];
524
+ podName?: string;
525
+ nodeName?: string;
526
+ startedAt?: number;
527
+ stoppedAt?: number;
528
+ statusReason?: string;
529
+ }
530
+ export interface EksContainerDetail {
531
+ name?: string;
532
+ image?: string;
533
+ imagePullPolicy?: string;
534
+ command?: string[];
535
+ args?: string[];
536
+ env?: EksContainerEnvironmentVariable[];
537
+ resources?: EksContainerResourceRequirements;
538
+ exitCode?: number;
539
+ reason?: string;
540
+ volumeMounts?: EksContainerVolumeMount[];
541
+ securityContext?: EksContainerSecurityContext;
542
+ }
543
+ export interface EksPodPropertiesDetail {
544
+ serviceAccountName?: string;
545
+ hostNetwork?: boolean;
546
+ dnsPolicy?: string;
547
+ containers?: EksContainerDetail[];
548
+ volumes?: EksVolume[];
549
+ podName?: string;
550
+ nodeName?: string;
551
+ }
552
+ export interface EksPropertiesDetail {
553
+ podProperties?: EksPodPropertiesDetail;
554
+ }
445
555
  export interface NodeDetails {
446
556
  nodeIndex?: number;
447
557
  isMainNode?: boolean;
@@ -480,6 +590,8 @@ export interface JobDetail {
480
590
  tags?: Record<string, string>;
481
591
  propagateTags?: boolean;
482
592
  platformCapabilities?: (PlatformCapability | string)[];
593
+ eksProperties?: EksPropertiesDetail;
594
+ eksAttempts?: EksAttemptDetail[];
483
595
  }
484
596
  export interface DescribeJobsResponse {
485
597
  jobs?: JobDetail[];
@@ -569,6 +681,7 @@ export interface RegisterJobDefinitionRequest {
569
681
  timeout?: JobTimeout;
570
682
  tags?: Record<string, string>;
571
683
  platformCapabilities?: (PlatformCapability | string)[];
684
+ eksProperties?: EksProperties;
572
685
  }
573
686
  export interface RegisterJobDefinitionResponse {
574
687
  jobDefinitionName: string | undefined;
@@ -583,6 +696,19 @@ export interface ContainerOverrides {
583
696
  environment?: KeyValuePair[];
584
697
  resourceRequirements?: ResourceRequirement[];
585
698
  }
699
+ export interface EksContainerOverride {
700
+ image?: string;
701
+ command?: string[];
702
+ args?: string[];
703
+ env?: EksContainerEnvironmentVariable[];
704
+ resources?: EksContainerResourceRequirements;
705
+ }
706
+ export interface EksPodPropertiesOverride {
707
+ containers?: EksContainerOverride[];
708
+ }
709
+ export interface EksPropertiesOverride {
710
+ podProperties?: EksPodPropertiesOverride;
711
+ }
586
712
  export interface NodePropertyOverride {
587
713
  targetNodes: string | undefined;
588
714
  containerOverrides?: ContainerOverrides;
@@ -606,6 +732,7 @@ export interface SubmitJobRequest {
606
732
  propagateTags?: boolean;
607
733
  timeout?: JobTimeout;
608
734
  tags?: Record<string, string>;
735
+ eksPropertiesOverride?: EksPropertiesOverride;
609
736
  }
610
737
  export interface SubmitJobResponse {
611
738
  jobArn?: string;
@@ -711,6 +838,9 @@ export declare const LaunchTemplateSpecificationFilterSensitiveLog: (
711
838
  export declare const ComputeResourceFilterSensitiveLog: (
712
839
  obj: ComputeResource
713
840
  ) => any;
841
+ export declare const EksConfigurationFilterSensitiveLog: (
842
+ obj: EksConfiguration
843
+ ) => any;
714
844
  export declare const CreateComputeEnvironmentRequestFilterSensitiveLog: (
715
845
  obj: CreateComputeEnvironmentRequest
716
846
  ) => any;
@@ -807,6 +937,29 @@ export declare const VolumeFilterSensitiveLog: (obj: Volume) => any;
807
937
  export declare const ContainerPropertiesFilterSensitiveLog: (
808
938
  obj: ContainerProperties
809
939
  ) => any;
940
+ export declare const EksContainerEnvironmentVariableFilterSensitiveLog: (
941
+ obj: EksContainerEnvironmentVariable
942
+ ) => any;
943
+ export declare const EksContainerResourceRequirementsFilterSensitiveLog: (
944
+ obj: EksContainerResourceRequirements
945
+ ) => any;
946
+ export declare const EksContainerSecurityContextFilterSensitiveLog: (
947
+ obj: EksContainerSecurityContext
948
+ ) => any;
949
+ export declare const EksContainerVolumeMountFilterSensitiveLog: (
950
+ obj: EksContainerVolumeMount
951
+ ) => any;
952
+ export declare const EksContainerFilterSensitiveLog: (obj: EksContainer) => any;
953
+ export declare const EksEmptyDirFilterSensitiveLog: (obj: EksEmptyDir) => any;
954
+ export declare const EksHostPathFilterSensitiveLog: (obj: EksHostPath) => any;
955
+ export declare const EksSecretFilterSensitiveLog: (obj: EksSecret) => any;
956
+ export declare const EksVolumeFilterSensitiveLog: (obj: EksVolume) => any;
957
+ export declare const EksPodPropertiesFilterSensitiveLog: (
958
+ obj: EksPodProperties
959
+ ) => any;
960
+ export declare const EksPropertiesFilterSensitiveLog: (
961
+ obj: EksProperties
962
+ ) => any;
810
963
  export declare const NodeRangePropertyFilterSensitiveLog: (
811
964
  obj: NodeRangeProperty
812
965
  ) => any;
@@ -844,6 +997,21 @@ export declare const ContainerDetailFilterSensitiveLog: (
844
997
  export declare const JobDependencyFilterSensitiveLog: (
845
998
  obj: JobDependency
846
999
  ) => any;
1000
+ export declare const EksAttemptContainerDetailFilterSensitiveLog: (
1001
+ obj: EksAttemptContainerDetail
1002
+ ) => any;
1003
+ export declare const EksAttemptDetailFilterSensitiveLog: (
1004
+ obj: EksAttemptDetail
1005
+ ) => any;
1006
+ export declare const EksContainerDetailFilterSensitiveLog: (
1007
+ obj: EksContainerDetail
1008
+ ) => any;
1009
+ export declare const EksPodPropertiesDetailFilterSensitiveLog: (
1010
+ obj: EksPodPropertiesDetail
1011
+ ) => any;
1012
+ export declare const EksPropertiesDetailFilterSensitiveLog: (
1013
+ obj: EksPropertiesDetail
1014
+ ) => any;
847
1015
  export declare const NodeDetailsFilterSensitiveLog: (obj: NodeDetails) => any;
848
1016
  export declare const JobDetailFilterSensitiveLog: (obj: JobDetail) => any;
849
1017
  export declare const DescribeJobsResponseFilterSensitiveLog: (
@@ -898,6 +1066,15 @@ export declare const RegisterJobDefinitionResponseFilterSensitiveLog: (
898
1066
  export declare const ContainerOverridesFilterSensitiveLog: (
899
1067
  obj: ContainerOverrides
900
1068
  ) => any;
1069
+ export declare const EksContainerOverrideFilterSensitiveLog: (
1070
+ obj: EksContainerOverride
1071
+ ) => any;
1072
+ export declare const EksPodPropertiesOverrideFilterSensitiveLog: (
1073
+ obj: EksPodPropertiesOverride
1074
+ ) => any;
1075
+ export declare const EksPropertiesOverrideFilterSensitiveLog: (
1076
+ obj: EksPropertiesOverride
1077
+ ) => any;
901
1078
  export declare const NodePropertyOverrideFilterSensitiveLog: (
902
1079
  obj: NodePropertyOverride
903
1080
  ) => any;
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: BatchClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -36,12 +36,22 @@ export declare const getRuntimeConfig: (config: BatchClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  logger: import("@aws-sdk/types").Logger;
38
38
  serviceId: string;
39
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
40
39
  endpoint?:
41
- | string
42
- | import("@aws-sdk/types").Endpoint
43
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
40
+ | ((
41
+ | string
42
+ | import("@aws-sdk/types").Endpoint
43
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
44
+ | import("@aws-sdk/types").EndpointV2
45
+ | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
46
+ ) &
47
+ (string | import("@aws-sdk/types").Provider<string>))
44
48
  | undefined;
49
+ endpointProvider: (
50
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
51
+ context?: {
52
+ logger?: import("@aws-sdk/types").Logger | undefined;
53
+ }
54
+ ) => import("@aws-sdk/types").EndpointV2;
45
55
  tls?: boolean | undefined;
46
56
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
47
57
  credentials?:
@@ -29,7 +29,6 @@ export declare const getRuntimeConfig: (config: BatchClientConfig) => {
29
29
  credentialDefaultProvider: (
30
30
  input: any
31
31
  ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
32
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
33
32
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
34
33
  import("@aws-sdk/types").UserAgent
35
34
  >;
@@ -40,9 +39,21 @@ export declare const getRuntimeConfig: (config: BatchClientConfig) => {
40
39
  >;
41
40
  endpoint?:
42
41
  | string
43
- | import("@aws-sdk/types").Endpoint
44
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
42
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> &
43
+ import("@aws-sdk/types").Provider<string>)
44
+ | (import("@aws-sdk/types").Endpoint &
45
+ import("@aws-sdk/types").Provider<string>)
46
+ | (import("@aws-sdk/types").EndpointV2 &
47
+ import("@aws-sdk/types").Provider<string>)
48
+ | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
49
+ import("@aws-sdk/types").Provider<string>)
45
50
  | undefined;
51
+ endpointProvider: (
52
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
53
+ context?: {
54
+ logger?: import("@aws-sdk/types").Logger | undefined;
55
+ }
56
+ ) => import("@aws-sdk/types").EndpointV2;
46
57
  tls?: boolean | undefined;
47
58
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
48
59
  credentials?:
@@ -3,8 +3,13 @@ import { BatchClientConfig } from "./BatchClient";
3
3
  export declare const getRuntimeConfig: (config: BatchClientConfig) => {
4
4
  apiVersion: string;
5
5
  disableHostPrefix: boolean;
6
+ endpointProvider: (
7
+ endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
8
+ context?: {
9
+ logger?: __Logger | undefined;
10
+ }
11
+ ) => import("@aws-sdk/types").EndpointV2;
6
12
  logger: __Logger;
7
- regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
8
13
  serviceId: string;
9
14
  urlParser: import("@aws-sdk/types").UrlParser;
10
15
  };
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.194.0",
4
+ "version": "3.196.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,13 +19,14 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.194.0",
22
+ "@aws-sdk/client-sts": "3.196.0",
23
23
  "@aws-sdk/config-resolver": "3.193.0",
24
- "@aws-sdk/credential-provider-node": "3.193.0",
24
+ "@aws-sdk/credential-provider-node": "3.196.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.193.0",
26
26
  "@aws-sdk/hash-node": "3.193.0",
27
27
  "@aws-sdk/invalid-dependency": "3.193.0",
28
28
  "@aws-sdk/middleware-content-length": "3.193.0",
29
+ "@aws-sdk/middleware-endpoint": "3.193.0",
29
30
  "@aws-sdk/middleware-host-header": "3.193.0",
30
31
  "@aws-sdk/middleware-logger": "3.193.0",
31
32
  "@aws-sdk/middleware-recursion-detection": "3.193.0",
@@ -46,6 +47,7 @@
46
47
  "@aws-sdk/util-body-length-node": "3.188.0",
47
48
  "@aws-sdk/util-defaults-mode-browser": "3.193.0",
48
49
  "@aws-sdk/util-defaults-mode-node": "3.193.0",
50
+ "@aws-sdk/util-endpoints": "3.196.0",
49
51
  "@aws-sdk/util-user-agent-browser": "3.193.0",
50
52
  "@aws-sdk/util-user-agent-node": "3.193.0",
51
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
@@ -1,185 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultRegionInfoProvider = void 0;
4
- const config_resolver_1 = require("@aws-sdk/config-resolver");
5
- const regionHash = {
6
- "us-east-1": {
7
- variants: [
8
- {
9
- hostname: "fips.batch.us-east-1.amazonaws.com",
10
- tags: ["fips"],
11
- },
12
- ],
13
- },
14
- "us-east-2": {
15
- variants: [
16
- {
17
- hostname: "fips.batch.us-east-2.amazonaws.com",
18
- tags: ["fips"],
19
- },
20
- ],
21
- },
22
- "us-gov-east-1": {
23
- variants: [
24
- {
25
- hostname: "batch.us-gov-east-1.amazonaws.com",
26
- tags: ["fips"],
27
- },
28
- ],
29
- },
30
- "us-gov-west-1": {
31
- variants: [
32
- {
33
- hostname: "batch.us-gov-west-1.amazonaws.com",
34
- tags: ["fips"],
35
- },
36
- ],
37
- },
38
- "us-west-1": {
39
- variants: [
40
- {
41
- hostname: "fips.batch.us-west-1.amazonaws.com",
42
- tags: ["fips"],
43
- },
44
- ],
45
- },
46
- "us-west-2": {
47
- variants: [
48
- {
49
- hostname: "fips.batch.us-west-2.amazonaws.com",
50
- tags: ["fips"],
51
- },
52
- ],
53
- },
54
- };
55
- const partitionHash = {
56
- aws: {
57
- regions: [
58
- "af-south-1",
59
- "ap-east-1",
60
- "ap-northeast-1",
61
- "ap-northeast-2",
62
- "ap-northeast-3",
63
- "ap-south-1",
64
- "ap-southeast-1",
65
- "ap-southeast-2",
66
- "ap-southeast-3",
67
- "ca-central-1",
68
- "eu-central-1",
69
- "eu-north-1",
70
- "eu-south-1",
71
- "eu-west-1",
72
- "eu-west-2",
73
- "eu-west-3",
74
- "fips-us-east-1",
75
- "fips-us-east-2",
76
- "fips-us-west-1",
77
- "fips-us-west-2",
78
- "me-central-1",
79
- "me-south-1",
80
- "sa-east-1",
81
- "us-east-1",
82
- "us-east-2",
83
- "us-west-1",
84
- "us-west-2",
85
- ],
86
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
87
- variants: [
88
- {
89
- hostname: "batch.{region}.amazonaws.com",
90
- tags: [],
91
- },
92
- {
93
- hostname: "fips.batch.{region}.amazonaws.com",
94
- tags: ["fips"],
95
- },
96
- {
97
- hostname: "batch-fips.{region}.api.aws",
98
- tags: ["dualstack", "fips"],
99
- },
100
- {
101
- hostname: "batch.{region}.api.aws",
102
- tags: ["dualstack"],
103
- },
104
- ],
105
- },
106
- "aws-cn": {
107
- regions: ["cn-north-1", "cn-northwest-1"],
108
- regionRegex: "^cn\\-\\w+\\-\\d+$",
109
- variants: [
110
- {
111
- hostname: "batch.{region}.amazonaws.com.cn",
112
- tags: [],
113
- },
114
- {
115
- hostname: "batch-fips.{region}.amazonaws.com.cn",
116
- tags: ["fips"],
117
- },
118
- {
119
- hostname: "batch-fips.{region}.api.amazonwebservices.com.cn",
120
- tags: ["dualstack", "fips"],
121
- },
122
- {
123
- hostname: "batch.{region}.api.amazonwebservices.com.cn",
124
- tags: ["dualstack"],
125
- },
126
- ],
127
- },
128
- "aws-iso": {
129
- regions: ["us-iso-east-1", "us-iso-west-1"],
130
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
131
- variants: [
132
- {
133
- hostname: "batch.{region}.c2s.ic.gov",
134
- tags: [],
135
- },
136
- {
137
- hostname: "batch-fips.{region}.c2s.ic.gov",
138
- tags: ["fips"],
139
- },
140
- ],
141
- },
142
- "aws-iso-b": {
143
- regions: ["us-isob-east-1"],
144
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
145
- variants: [
146
- {
147
- hostname: "batch.{region}.sc2s.sgov.gov",
148
- tags: [],
149
- },
150
- {
151
- hostname: "batch-fips.{region}.sc2s.sgov.gov",
152
- tags: ["fips"],
153
- },
154
- ],
155
- },
156
- "aws-us-gov": {
157
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
158
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
159
- variants: [
160
- {
161
- hostname: "batch.{region}.amazonaws.com",
162
- tags: [],
163
- },
164
- {
165
- hostname: "batch.{region}.amazonaws.com",
166
- tags: ["fips"],
167
- },
168
- {
169
- hostname: "batch-fips.{region}.api.aws",
170
- tags: ["dualstack", "fips"],
171
- },
172
- {
173
- hostname: "batch.{region}.api.aws",
174
- tags: ["dualstack"],
175
- },
176
- ],
177
- },
178
- };
179
- const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
180
- ...options,
181
- signingService: "batch",
182
- regionHash,
183
- partitionHash,
184
- });
185
- exports.defaultRegionInfoProvider = defaultRegionInfoProvider;