@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
@@ -1,181 +0,0 @@
1
- import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
- "us-east-1": {
4
- variants: [
5
- {
6
- hostname: "fips.batch.us-east-1.amazonaws.com",
7
- tags: ["fips"],
8
- },
9
- ],
10
- },
11
- "us-east-2": {
12
- variants: [
13
- {
14
- hostname: "fips.batch.us-east-2.amazonaws.com",
15
- tags: ["fips"],
16
- },
17
- ],
18
- },
19
- "us-gov-east-1": {
20
- variants: [
21
- {
22
- hostname: "batch.us-gov-east-1.amazonaws.com",
23
- tags: ["fips"],
24
- },
25
- ],
26
- },
27
- "us-gov-west-1": {
28
- variants: [
29
- {
30
- hostname: "batch.us-gov-west-1.amazonaws.com",
31
- tags: ["fips"],
32
- },
33
- ],
34
- },
35
- "us-west-1": {
36
- variants: [
37
- {
38
- hostname: "fips.batch.us-west-1.amazonaws.com",
39
- tags: ["fips"],
40
- },
41
- ],
42
- },
43
- "us-west-2": {
44
- variants: [
45
- {
46
- hostname: "fips.batch.us-west-2.amazonaws.com",
47
- tags: ["fips"],
48
- },
49
- ],
50
- },
51
- };
52
- const partitionHash = {
53
- aws: {
54
- regions: [
55
- "af-south-1",
56
- "ap-east-1",
57
- "ap-northeast-1",
58
- "ap-northeast-2",
59
- "ap-northeast-3",
60
- "ap-south-1",
61
- "ap-southeast-1",
62
- "ap-southeast-2",
63
- "ap-southeast-3",
64
- "ca-central-1",
65
- "eu-central-1",
66
- "eu-north-1",
67
- "eu-south-1",
68
- "eu-west-1",
69
- "eu-west-2",
70
- "eu-west-3",
71
- "fips-us-east-1",
72
- "fips-us-east-2",
73
- "fips-us-west-1",
74
- "fips-us-west-2",
75
- "me-central-1",
76
- "me-south-1",
77
- "sa-east-1",
78
- "us-east-1",
79
- "us-east-2",
80
- "us-west-1",
81
- "us-west-2",
82
- ],
83
- regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
84
- variants: [
85
- {
86
- hostname: "batch.{region}.amazonaws.com",
87
- tags: [],
88
- },
89
- {
90
- hostname: "fips.batch.{region}.amazonaws.com",
91
- tags: ["fips"],
92
- },
93
- {
94
- hostname: "batch-fips.{region}.api.aws",
95
- tags: ["dualstack", "fips"],
96
- },
97
- {
98
- hostname: "batch.{region}.api.aws",
99
- tags: ["dualstack"],
100
- },
101
- ],
102
- },
103
- "aws-cn": {
104
- regions: ["cn-north-1", "cn-northwest-1"],
105
- regionRegex: "^cn\\-\\w+\\-\\d+$",
106
- variants: [
107
- {
108
- hostname: "batch.{region}.amazonaws.com.cn",
109
- tags: [],
110
- },
111
- {
112
- hostname: "batch-fips.{region}.amazonaws.com.cn",
113
- tags: ["fips"],
114
- },
115
- {
116
- hostname: "batch-fips.{region}.api.amazonwebservices.com.cn",
117
- tags: ["dualstack", "fips"],
118
- },
119
- {
120
- hostname: "batch.{region}.api.amazonwebservices.com.cn",
121
- tags: ["dualstack"],
122
- },
123
- ],
124
- },
125
- "aws-iso": {
126
- regions: ["us-iso-east-1", "us-iso-west-1"],
127
- regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
128
- variants: [
129
- {
130
- hostname: "batch.{region}.c2s.ic.gov",
131
- tags: [],
132
- },
133
- {
134
- hostname: "batch-fips.{region}.c2s.ic.gov",
135
- tags: ["fips"],
136
- },
137
- ],
138
- },
139
- "aws-iso-b": {
140
- regions: ["us-isob-east-1"],
141
- regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
142
- variants: [
143
- {
144
- hostname: "batch.{region}.sc2s.sgov.gov",
145
- tags: [],
146
- },
147
- {
148
- hostname: "batch-fips.{region}.sc2s.sgov.gov",
149
- tags: ["fips"],
150
- },
151
- ],
152
- },
153
- "aws-us-gov": {
154
- regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
155
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
156
- variants: [
157
- {
158
- hostname: "batch.{region}.amazonaws.com",
159
- tags: [],
160
- },
161
- {
162
- hostname: "batch.{region}.amazonaws.com",
163
- tags: ["fips"],
164
- },
165
- {
166
- hostname: "batch-fips.{region}.api.aws",
167
- tags: ["dualstack", "fips"],
168
- },
169
- {
170
- hostname: "batch.{region}.api.aws",
171
- tags: ["dualstack"],
172
- },
173
- ],
174
- },
175
- };
176
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
177
- ...options,
178
- signingService: "batch",
179
- regionHash,
180
- partitionHash,
181
- });
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -1,2 +0,0 @@
1
- import { RegionInfoProvider } from "@aws-sdk/types";
2
- export declare const defaultRegionInfoProvider: RegionInfoProvider;