@aws-sdk/client-batch 3.194.0 → 3.195.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/CHANGELOG.md +11 -0
- package/README.md +5 -5
- package/dist-cjs/BatchClient.js +11 -8
- package/dist-cjs/commands/CancelJobCommand.js +10 -0
- package/dist-cjs/commands/CreateComputeEnvironmentCommand.js +10 -0
- package/dist-cjs/commands/CreateJobQueueCommand.js +10 -0
- package/dist-cjs/commands/CreateSchedulingPolicyCommand.js +10 -0
- package/dist-cjs/commands/DeleteComputeEnvironmentCommand.js +10 -0
- package/dist-cjs/commands/DeleteJobQueueCommand.js +10 -0
- package/dist-cjs/commands/DeleteSchedulingPolicyCommand.js +10 -0
- package/dist-cjs/commands/DeregisterJobDefinitionCommand.js +10 -0
- package/dist-cjs/commands/DescribeComputeEnvironmentsCommand.js +10 -0
- package/dist-cjs/commands/DescribeJobDefinitionsCommand.js +10 -0
- package/dist-cjs/commands/DescribeJobQueuesCommand.js +10 -0
- package/dist-cjs/commands/DescribeJobsCommand.js +10 -0
- package/dist-cjs/commands/DescribeSchedulingPoliciesCommand.js +10 -0
- package/dist-cjs/commands/ListJobsCommand.js +10 -0
- package/dist-cjs/commands/ListSchedulingPoliciesCommand.js +10 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/RegisterJobDefinitionCommand.js +10 -0
- package/dist-cjs/commands/SubmitJobCommand.js +10 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/TerminateJobCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateComputeEnvironmentCommand.js +10 -0
- package/dist-cjs/commands/UpdateJobQueueCommand.js +10 -0
- package/dist-cjs/commands/UpdateSchedulingPolicyCommand.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +368 -0
- package/dist-cjs/models/models_0.js +88 -3
- package/dist-cjs/protocols/Aws_restJson1.js +448 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/BatchClient.js +12 -9
- package/dist-es/commands/CancelJobCommand.js +10 -0
- package/dist-es/commands/CreateComputeEnvironmentCommand.js +10 -0
- package/dist-es/commands/CreateJobQueueCommand.js +10 -0
- package/dist-es/commands/CreateSchedulingPolicyCommand.js +10 -0
- package/dist-es/commands/DeleteComputeEnvironmentCommand.js +10 -0
- package/dist-es/commands/DeleteJobQueueCommand.js +10 -0
- package/dist-es/commands/DeleteSchedulingPolicyCommand.js +10 -0
- package/dist-es/commands/DeregisterJobDefinitionCommand.js +10 -0
- package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +10 -0
- package/dist-es/commands/DescribeJobDefinitionsCommand.js +10 -0
- package/dist-es/commands/DescribeJobQueuesCommand.js +10 -0
- package/dist-es/commands/DescribeJobsCommand.js +10 -0
- package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +10 -0
- package/dist-es/commands/ListJobsCommand.js +10 -0
- package/dist-es/commands/ListSchedulingPoliciesCommand.js +10 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/RegisterJobDefinitionCommand.js +10 -0
- package/dist-es/commands/SubmitJobCommand.js +10 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/TerminateJobCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateComputeEnvironmentCommand.js +10 -0
- package/dist-es/commands/UpdateJobQueueCommand.js +10 -0
- package/dist-es/commands/UpdateSchedulingPolicyCommand.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +365 -0
- package/dist-es/models/models_0.js +65 -0
- package/dist-es/protocols/Aws_restJson1.js +448 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/Batch.d.ts +30 -30
- package/dist-types/BatchClient.d.ts +11 -14
- package/dist-types/commands/CancelJobCommand.d.ts +5 -3
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +22 -20
- package/dist-types/commands/CreateJobQueueCommand.d.ts +2 -0
- package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +2 -0
- package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +2 -0
- package/dist-types/commands/DeleteJobQueueCommand.d.ts +2 -0
- package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +2 -0
- package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +2 -0
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeJobQueuesCommand.d.ts +2 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +2 -0
- package/dist-types/commands/ListJobsCommand.d.ts +2 -0
- package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -1
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +2 -0
- package/dist-types/commands/SubmitJobCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +3 -1
- package/dist-types/commands/TerminateJobCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateJobQueueCommand.d.ts +2 -0
- package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1322 -552
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/BatchClient.d.ts +15 -8
- package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateComputeEnvironmentCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateJobQueueCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateSchedulingPolicyCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteComputeEnvironmentCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteJobQueueCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteSchedulingPolicyCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeregisterJobDefinitionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeComputeEnvironmentsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeJobDefinitionsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeJobQueuesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeJobsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeSchedulingPoliciesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListJobsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListSchedulingPoliciesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RegisterJobDefinitionCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/SubmitJobCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TerminateJobCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateComputeEnvironmentCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateJobQueueCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateSchedulingPolicyCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +177 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +3 -1
- package/dist-cjs/endpoints.js +0 -185
- package/dist-es/endpoints.js +0 -181
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -39,6 +39,9 @@ const serializeAws_restJson1CreateComputeEnvironmentCommand = async (input, cont
|
|
|
39
39
|
...(input.computeResources != null && {
|
|
40
40
|
computeResources: serializeAws_restJson1ComputeResource(input.computeResources, context),
|
|
41
41
|
}),
|
|
42
|
+
...(input.eksConfiguration != null && {
|
|
43
|
+
eksConfiguration: serializeAws_restJson1EksConfiguration(input.eksConfiguration, context),
|
|
44
|
+
}),
|
|
42
45
|
...(input.serviceRole != null && { serviceRole: input.serviceRole }),
|
|
43
46
|
...(input.state != null && { state: input.state }),
|
|
44
47
|
...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
|
|
@@ -387,6 +390,9 @@ const serializeAws_restJson1RegisterJobDefinitionCommand = async (input, context
|
|
|
387
390
|
...(input.containerProperties != null && {
|
|
388
391
|
containerProperties: serializeAws_restJson1ContainerProperties(input.containerProperties, context),
|
|
389
392
|
}),
|
|
393
|
+
...(input.eksProperties != null && {
|
|
394
|
+
eksProperties: serializeAws_restJson1EksProperties(input.eksProperties, context),
|
|
395
|
+
}),
|
|
390
396
|
...(input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName }),
|
|
391
397
|
...(input.nodeProperties != null && {
|
|
392
398
|
nodeProperties: serializeAws_restJson1NodeProperties(input.nodeProperties, context),
|
|
@@ -430,6 +436,9 @@ const serializeAws_restJson1SubmitJobCommand = async (input, context) => {
|
|
|
430
436
|
containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
|
|
431
437
|
}),
|
|
432
438
|
...(input.dependsOn != null && { dependsOn: serializeAws_restJson1JobDependencyList(input.dependsOn, context) }),
|
|
439
|
+
...(input.eksPropertiesOverride != null && {
|
|
440
|
+
eksPropertiesOverride: serializeAws_restJson1EksPropertiesOverride(input.eksPropertiesOverride, context),
|
|
441
|
+
}),
|
|
433
442
|
...(input.jobDefinition != null && { jobDefinition: input.jobDefinition }),
|
|
434
443
|
...(input.jobName != null && { jobName: input.jobName }),
|
|
435
444
|
...(input.jobQueue != null && { jobQueue: input.jobQueue }),
|
|
@@ -1683,6 +1692,7 @@ const serializeAws_restJson1DevicesList = (input, context) => {
|
|
|
1683
1692
|
const serializeAws_restJson1Ec2Configuration = (input, context) => {
|
|
1684
1693
|
return {
|
|
1685
1694
|
...(input.imageIdOverride != null && { imageIdOverride: input.imageIdOverride }),
|
|
1695
|
+
...(input.imageKubernetesVersion != null && { imageKubernetesVersion: input.imageKubernetesVersion }),
|
|
1686
1696
|
...(input.imageType != null && { imageType: input.imageType }),
|
|
1687
1697
|
};
|
|
1688
1698
|
};
|
|
@@ -1710,6 +1720,182 @@ const serializeAws_restJson1EFSVolumeConfiguration = (input, context) => {
|
|
|
1710
1720
|
...(input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }),
|
|
1711
1721
|
};
|
|
1712
1722
|
};
|
|
1723
|
+
const serializeAws_restJson1EksConfiguration = (input, context) => {
|
|
1724
|
+
return {
|
|
1725
|
+
...(input.eksClusterArn != null && { eksClusterArn: input.eksClusterArn }),
|
|
1726
|
+
...(input.kubernetesNamespace != null && { kubernetesNamespace: input.kubernetesNamespace }),
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
const serializeAws_restJson1EksContainer = (input, context) => {
|
|
1730
|
+
return {
|
|
1731
|
+
...(input.args != null && { args: serializeAws_restJson1StringList(input.args, context) }),
|
|
1732
|
+
...(input.command != null && { command: serializeAws_restJson1StringList(input.command, context) }),
|
|
1733
|
+
...(input.env != null && { env: serializeAws_restJson1EksContainerEnvironmentVariables(input.env, context) }),
|
|
1734
|
+
...(input.image != null && { image: input.image }),
|
|
1735
|
+
...(input.imagePullPolicy != null && { imagePullPolicy: input.imagePullPolicy }),
|
|
1736
|
+
...(input.name != null && { name: input.name }),
|
|
1737
|
+
...(input.resources != null && {
|
|
1738
|
+
resources: serializeAws_restJson1EksContainerResourceRequirements(input.resources, context),
|
|
1739
|
+
}),
|
|
1740
|
+
...(input.securityContext != null && {
|
|
1741
|
+
securityContext: serializeAws_restJson1EksContainerSecurityContext(input.securityContext, context),
|
|
1742
|
+
}),
|
|
1743
|
+
...(input.volumeMounts != null && {
|
|
1744
|
+
volumeMounts: serializeAws_restJson1EksContainerVolumeMounts(input.volumeMounts, context),
|
|
1745
|
+
}),
|
|
1746
|
+
};
|
|
1747
|
+
};
|
|
1748
|
+
const serializeAws_restJson1EksContainerEnvironmentVariable = (input, context) => {
|
|
1749
|
+
return {
|
|
1750
|
+
...(input.name != null && { name: input.name }),
|
|
1751
|
+
...(input.value != null && { value: input.value }),
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
const serializeAws_restJson1EksContainerEnvironmentVariables = (input, context) => {
|
|
1755
|
+
return input
|
|
1756
|
+
.filter((e) => e != null)
|
|
1757
|
+
.map((entry) => {
|
|
1758
|
+
return serializeAws_restJson1EksContainerEnvironmentVariable(entry, context);
|
|
1759
|
+
});
|
|
1760
|
+
};
|
|
1761
|
+
const serializeAws_restJson1EksContainerOverride = (input, context) => {
|
|
1762
|
+
return {
|
|
1763
|
+
...(input.args != null && { args: serializeAws_restJson1StringList(input.args, context) }),
|
|
1764
|
+
...(input.command != null && { command: serializeAws_restJson1StringList(input.command, context) }),
|
|
1765
|
+
...(input.env != null && { env: serializeAws_restJson1EksContainerEnvironmentVariables(input.env, context) }),
|
|
1766
|
+
...(input.image != null && { image: input.image }),
|
|
1767
|
+
...(input.resources != null && {
|
|
1768
|
+
resources: serializeAws_restJson1EksContainerResourceRequirements(input.resources, context),
|
|
1769
|
+
}),
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1772
|
+
const serializeAws_restJson1EksContainerOverrideList = (input, context) => {
|
|
1773
|
+
return input
|
|
1774
|
+
.filter((e) => e != null)
|
|
1775
|
+
.map((entry) => {
|
|
1776
|
+
return serializeAws_restJson1EksContainerOverride(entry, context);
|
|
1777
|
+
});
|
|
1778
|
+
};
|
|
1779
|
+
const serializeAws_restJson1EksContainerResourceRequirements = (input, context) => {
|
|
1780
|
+
return {
|
|
1781
|
+
...(input.limits != null && { limits: serializeAws_restJson1EksLimits(input.limits, context) }),
|
|
1782
|
+
...(input.requests != null && { requests: serializeAws_restJson1EksRequests(input.requests, context) }),
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
const serializeAws_restJson1EksContainers = (input, context) => {
|
|
1786
|
+
return input
|
|
1787
|
+
.filter((e) => e != null)
|
|
1788
|
+
.map((entry) => {
|
|
1789
|
+
return serializeAws_restJson1EksContainer(entry, context);
|
|
1790
|
+
});
|
|
1791
|
+
};
|
|
1792
|
+
const serializeAws_restJson1EksContainerSecurityContext = (input, context) => {
|
|
1793
|
+
return {
|
|
1794
|
+
...(input.privileged != null && { privileged: input.privileged }),
|
|
1795
|
+
...(input.readOnlyRootFilesystem != null && { readOnlyRootFilesystem: input.readOnlyRootFilesystem }),
|
|
1796
|
+
...(input.runAsGroup != null && { runAsGroup: input.runAsGroup }),
|
|
1797
|
+
...(input.runAsNonRoot != null && { runAsNonRoot: input.runAsNonRoot }),
|
|
1798
|
+
...(input.runAsUser != null && { runAsUser: input.runAsUser }),
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1801
|
+
const serializeAws_restJson1EksContainerVolumeMount = (input, context) => {
|
|
1802
|
+
return {
|
|
1803
|
+
...(input.mountPath != null && { mountPath: input.mountPath }),
|
|
1804
|
+
...(input.name != null && { name: input.name }),
|
|
1805
|
+
...(input.readOnly != null && { readOnly: input.readOnly }),
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1808
|
+
const serializeAws_restJson1EksContainerVolumeMounts = (input, context) => {
|
|
1809
|
+
return input
|
|
1810
|
+
.filter((e) => e != null)
|
|
1811
|
+
.map((entry) => {
|
|
1812
|
+
return serializeAws_restJson1EksContainerVolumeMount(entry, context);
|
|
1813
|
+
});
|
|
1814
|
+
};
|
|
1815
|
+
const serializeAws_restJson1EksEmptyDir = (input, context) => {
|
|
1816
|
+
return {
|
|
1817
|
+
...(input.medium != null && { medium: input.medium }),
|
|
1818
|
+
...(input.sizeLimit != null && { sizeLimit: input.sizeLimit }),
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
const serializeAws_restJson1EksHostPath = (input, context) => {
|
|
1822
|
+
return {
|
|
1823
|
+
...(input.path != null && { path: input.path }),
|
|
1824
|
+
};
|
|
1825
|
+
};
|
|
1826
|
+
const serializeAws_restJson1EksLimits = (input, context) => {
|
|
1827
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1828
|
+
if (value === null) {
|
|
1829
|
+
return acc;
|
|
1830
|
+
}
|
|
1831
|
+
return {
|
|
1832
|
+
...acc,
|
|
1833
|
+
[key]: value,
|
|
1834
|
+
};
|
|
1835
|
+
}, {});
|
|
1836
|
+
};
|
|
1837
|
+
const serializeAws_restJson1EksPodProperties = (input, context) => {
|
|
1838
|
+
return {
|
|
1839
|
+
...(input.containers != null && { containers: serializeAws_restJson1EksContainers(input.containers, context) }),
|
|
1840
|
+
...(input.dnsPolicy != null && { dnsPolicy: input.dnsPolicy }),
|
|
1841
|
+
...(input.hostNetwork != null && { hostNetwork: input.hostNetwork }),
|
|
1842
|
+
...(input.serviceAccountName != null && { serviceAccountName: input.serviceAccountName }),
|
|
1843
|
+
...(input.volumes != null && { volumes: serializeAws_restJson1EksVolumes(input.volumes, context) }),
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
const serializeAws_restJson1EksPodPropertiesOverride = (input, context) => {
|
|
1847
|
+
return {
|
|
1848
|
+
...(input.containers != null && {
|
|
1849
|
+
containers: serializeAws_restJson1EksContainerOverrideList(input.containers, context),
|
|
1850
|
+
}),
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
const serializeAws_restJson1EksProperties = (input, context) => {
|
|
1854
|
+
return {
|
|
1855
|
+
...(input.podProperties != null && {
|
|
1856
|
+
podProperties: serializeAws_restJson1EksPodProperties(input.podProperties, context),
|
|
1857
|
+
}),
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
const serializeAws_restJson1EksPropertiesOverride = (input, context) => {
|
|
1861
|
+
return {
|
|
1862
|
+
...(input.podProperties != null && {
|
|
1863
|
+
podProperties: serializeAws_restJson1EksPodPropertiesOverride(input.podProperties, context),
|
|
1864
|
+
}),
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
const serializeAws_restJson1EksRequests = (input, context) => {
|
|
1868
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1869
|
+
if (value === null) {
|
|
1870
|
+
return acc;
|
|
1871
|
+
}
|
|
1872
|
+
return {
|
|
1873
|
+
...acc,
|
|
1874
|
+
[key]: value,
|
|
1875
|
+
};
|
|
1876
|
+
}, {});
|
|
1877
|
+
};
|
|
1878
|
+
const serializeAws_restJson1EksSecret = (input, context) => {
|
|
1879
|
+
return {
|
|
1880
|
+
...(input.optional != null && { optional: input.optional }),
|
|
1881
|
+
...(input.secretName != null && { secretName: input.secretName }),
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
const serializeAws_restJson1EksVolume = (input, context) => {
|
|
1885
|
+
return {
|
|
1886
|
+
...(input.emptyDir != null && { emptyDir: serializeAws_restJson1EksEmptyDir(input.emptyDir, context) }),
|
|
1887
|
+
...(input.hostPath != null && { hostPath: serializeAws_restJson1EksHostPath(input.hostPath, context) }),
|
|
1888
|
+
...(input.name != null && { name: input.name }),
|
|
1889
|
+
...(input.secret != null && { secret: serializeAws_restJson1EksSecret(input.secret, context) }),
|
|
1890
|
+
};
|
|
1891
|
+
};
|
|
1892
|
+
const serializeAws_restJson1EksVolumes = (input, context) => {
|
|
1893
|
+
return input
|
|
1894
|
+
.filter((e) => e != null)
|
|
1895
|
+
.map((entry) => {
|
|
1896
|
+
return serializeAws_restJson1EksVolume(entry, context);
|
|
1897
|
+
});
|
|
1898
|
+
};
|
|
1713
1899
|
const serializeAws_restJson1EnvironmentVariables = (input, context) => {
|
|
1714
1900
|
return input
|
|
1715
1901
|
.filter((e) => e != null)
|
|
@@ -2097,7 +2283,11 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
|
|
|
2097
2283
|
computeResources: output.computeResources != null
|
|
2098
2284
|
? deserializeAws_restJson1ComputeResource(output.computeResources, context)
|
|
2099
2285
|
: undefined,
|
|
2286
|
+
containerOrchestrationType: (0, smithy_client_1.expectString)(output.containerOrchestrationType),
|
|
2100
2287
|
ecsClusterArn: (0, smithy_client_1.expectString)(output.ecsClusterArn),
|
|
2288
|
+
eksConfiguration: output.eksConfiguration != null
|
|
2289
|
+
? deserializeAws_restJson1EksConfiguration(output.eksConfiguration, context)
|
|
2290
|
+
: undefined,
|
|
2101
2291
|
serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
2102
2292
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2103
2293
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -2106,6 +2296,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
|
|
|
2106
2296
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2107
2297
|
unmanagedvCpus: (0, smithy_client_1.expectInt32)(output.unmanagedvCpus),
|
|
2108
2298
|
updatePolicy: output.updatePolicy != null ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context) : undefined,
|
|
2299
|
+
uuid: (0, smithy_client_1.expectString)(output.uuid),
|
|
2109
2300
|
};
|
|
2110
2301
|
};
|
|
2111
2302
|
const deserializeAws_restJson1ComputeEnvironmentDetailList = (output, context) => {
|
|
@@ -2283,6 +2474,7 @@ const deserializeAws_restJson1DevicesList = (output, context) => {
|
|
|
2283
2474
|
const deserializeAws_restJson1Ec2Configuration = (output, context) => {
|
|
2284
2475
|
return {
|
|
2285
2476
|
imageIdOverride: (0, smithy_client_1.expectString)(output.imageIdOverride),
|
|
2477
|
+
imageKubernetesVersion: (0, smithy_client_1.expectString)(output.imageKubernetesVersion),
|
|
2286
2478
|
imageType: (0, smithy_client_1.expectString)(output.imageType),
|
|
2287
2479
|
};
|
|
2288
2480
|
};
|
|
@@ -2314,6 +2506,256 @@ const deserializeAws_restJson1EFSVolumeConfiguration = (output, context) => {
|
|
|
2314
2506
|
transitEncryptionPort: (0, smithy_client_1.expectInt32)(output.transitEncryptionPort),
|
|
2315
2507
|
};
|
|
2316
2508
|
};
|
|
2509
|
+
const deserializeAws_restJson1EksAttemptContainerDetail = (output, context) => {
|
|
2510
|
+
return {
|
|
2511
|
+
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2512
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2513
|
+
};
|
|
2514
|
+
};
|
|
2515
|
+
const deserializeAws_restJson1EksAttemptContainerDetails = (output, context) => {
|
|
2516
|
+
const retVal = (output || [])
|
|
2517
|
+
.filter((e) => e != null)
|
|
2518
|
+
.map((entry) => {
|
|
2519
|
+
if (entry === null) {
|
|
2520
|
+
return null;
|
|
2521
|
+
}
|
|
2522
|
+
return deserializeAws_restJson1EksAttemptContainerDetail(entry, context);
|
|
2523
|
+
});
|
|
2524
|
+
return retVal;
|
|
2525
|
+
};
|
|
2526
|
+
const deserializeAws_restJson1EksAttemptDetail = (output, context) => {
|
|
2527
|
+
return {
|
|
2528
|
+
containers: output.containers != null
|
|
2529
|
+
? deserializeAws_restJson1EksAttemptContainerDetails(output.containers, context)
|
|
2530
|
+
: undefined,
|
|
2531
|
+
nodeName: (0, smithy_client_1.expectString)(output.nodeName),
|
|
2532
|
+
podName: (0, smithy_client_1.expectString)(output.podName),
|
|
2533
|
+
startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
|
|
2534
|
+
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2535
|
+
stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
const deserializeAws_restJson1EksAttemptDetails = (output, context) => {
|
|
2539
|
+
const retVal = (output || [])
|
|
2540
|
+
.filter((e) => e != null)
|
|
2541
|
+
.map((entry) => {
|
|
2542
|
+
if (entry === null) {
|
|
2543
|
+
return null;
|
|
2544
|
+
}
|
|
2545
|
+
return deserializeAws_restJson1EksAttemptDetail(entry, context);
|
|
2546
|
+
});
|
|
2547
|
+
return retVal;
|
|
2548
|
+
};
|
|
2549
|
+
const deserializeAws_restJson1EksConfiguration = (output, context) => {
|
|
2550
|
+
return {
|
|
2551
|
+
eksClusterArn: (0, smithy_client_1.expectString)(output.eksClusterArn),
|
|
2552
|
+
kubernetesNamespace: (0, smithy_client_1.expectString)(output.kubernetesNamespace),
|
|
2553
|
+
};
|
|
2554
|
+
};
|
|
2555
|
+
const deserializeAws_restJson1EksContainer = (output, context) => {
|
|
2556
|
+
return {
|
|
2557
|
+
args: output.args != null ? deserializeAws_restJson1StringList(output.args, context) : undefined,
|
|
2558
|
+
command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
|
|
2559
|
+
env: output.env != null ? deserializeAws_restJson1EksContainerEnvironmentVariables(output.env, context) : undefined,
|
|
2560
|
+
image: (0, smithy_client_1.expectString)(output.image),
|
|
2561
|
+
imagePullPolicy: (0, smithy_client_1.expectString)(output.imagePullPolicy),
|
|
2562
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2563
|
+
resources: output.resources != null
|
|
2564
|
+
? deserializeAws_restJson1EksContainerResourceRequirements(output.resources, context)
|
|
2565
|
+
: undefined,
|
|
2566
|
+
securityContext: output.securityContext != null
|
|
2567
|
+
? deserializeAws_restJson1EksContainerSecurityContext(output.securityContext, context)
|
|
2568
|
+
: undefined,
|
|
2569
|
+
volumeMounts: output.volumeMounts != null
|
|
2570
|
+
? deserializeAws_restJson1EksContainerVolumeMounts(output.volumeMounts, context)
|
|
2571
|
+
: undefined,
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
const deserializeAws_restJson1EksContainerDetail = (output, context) => {
|
|
2575
|
+
return {
|
|
2576
|
+
args: output.args != null ? deserializeAws_restJson1StringList(output.args, context) : undefined,
|
|
2577
|
+
command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
|
|
2578
|
+
env: output.env != null ? deserializeAws_restJson1EksContainerEnvironmentVariables(output.env, context) : undefined,
|
|
2579
|
+
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2580
|
+
image: (0, smithy_client_1.expectString)(output.image),
|
|
2581
|
+
imagePullPolicy: (0, smithy_client_1.expectString)(output.imagePullPolicy),
|
|
2582
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2583
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2584
|
+
resources: output.resources != null
|
|
2585
|
+
? deserializeAws_restJson1EksContainerResourceRequirements(output.resources, context)
|
|
2586
|
+
: undefined,
|
|
2587
|
+
securityContext: output.securityContext != null
|
|
2588
|
+
? deserializeAws_restJson1EksContainerSecurityContext(output.securityContext, context)
|
|
2589
|
+
: undefined,
|
|
2590
|
+
volumeMounts: output.volumeMounts != null
|
|
2591
|
+
? deserializeAws_restJson1EksContainerVolumeMounts(output.volumeMounts, context)
|
|
2592
|
+
: undefined,
|
|
2593
|
+
};
|
|
2594
|
+
};
|
|
2595
|
+
const deserializeAws_restJson1EksContainerDetails = (output, context) => {
|
|
2596
|
+
const retVal = (output || [])
|
|
2597
|
+
.filter((e) => e != null)
|
|
2598
|
+
.map((entry) => {
|
|
2599
|
+
if (entry === null) {
|
|
2600
|
+
return null;
|
|
2601
|
+
}
|
|
2602
|
+
return deserializeAws_restJson1EksContainerDetail(entry, context);
|
|
2603
|
+
});
|
|
2604
|
+
return retVal;
|
|
2605
|
+
};
|
|
2606
|
+
const deserializeAws_restJson1EksContainerEnvironmentVariable = (output, context) => {
|
|
2607
|
+
return {
|
|
2608
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2609
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
2610
|
+
};
|
|
2611
|
+
};
|
|
2612
|
+
const deserializeAws_restJson1EksContainerEnvironmentVariables = (output, context) => {
|
|
2613
|
+
const retVal = (output || [])
|
|
2614
|
+
.filter((e) => e != null)
|
|
2615
|
+
.map((entry) => {
|
|
2616
|
+
if (entry === null) {
|
|
2617
|
+
return null;
|
|
2618
|
+
}
|
|
2619
|
+
return deserializeAws_restJson1EksContainerEnvironmentVariable(entry, context);
|
|
2620
|
+
});
|
|
2621
|
+
return retVal;
|
|
2622
|
+
};
|
|
2623
|
+
const deserializeAws_restJson1EksContainerResourceRequirements = (output, context) => {
|
|
2624
|
+
return {
|
|
2625
|
+
limits: output.limits != null ? deserializeAws_restJson1EksLimits(output.limits, context) : undefined,
|
|
2626
|
+
requests: output.requests != null ? deserializeAws_restJson1EksRequests(output.requests, context) : undefined,
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
const deserializeAws_restJson1EksContainers = (output, context) => {
|
|
2630
|
+
const retVal = (output || [])
|
|
2631
|
+
.filter((e) => e != null)
|
|
2632
|
+
.map((entry) => {
|
|
2633
|
+
if (entry === null) {
|
|
2634
|
+
return null;
|
|
2635
|
+
}
|
|
2636
|
+
return deserializeAws_restJson1EksContainer(entry, context);
|
|
2637
|
+
});
|
|
2638
|
+
return retVal;
|
|
2639
|
+
};
|
|
2640
|
+
const deserializeAws_restJson1EksContainerSecurityContext = (output, context) => {
|
|
2641
|
+
return {
|
|
2642
|
+
privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
|
|
2643
|
+
readOnlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readOnlyRootFilesystem),
|
|
2644
|
+
runAsGroup: (0, smithy_client_1.expectLong)(output.runAsGroup),
|
|
2645
|
+
runAsNonRoot: (0, smithy_client_1.expectBoolean)(output.runAsNonRoot),
|
|
2646
|
+
runAsUser: (0, smithy_client_1.expectLong)(output.runAsUser),
|
|
2647
|
+
};
|
|
2648
|
+
};
|
|
2649
|
+
const deserializeAws_restJson1EksContainerVolumeMount = (output, context) => {
|
|
2650
|
+
return {
|
|
2651
|
+
mountPath: (0, smithy_client_1.expectString)(output.mountPath),
|
|
2652
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2653
|
+
readOnly: (0, smithy_client_1.expectBoolean)(output.readOnly),
|
|
2654
|
+
};
|
|
2655
|
+
};
|
|
2656
|
+
const deserializeAws_restJson1EksContainerVolumeMounts = (output, context) => {
|
|
2657
|
+
const retVal = (output || [])
|
|
2658
|
+
.filter((e) => e != null)
|
|
2659
|
+
.map((entry) => {
|
|
2660
|
+
if (entry === null) {
|
|
2661
|
+
return null;
|
|
2662
|
+
}
|
|
2663
|
+
return deserializeAws_restJson1EksContainerVolumeMount(entry, context);
|
|
2664
|
+
});
|
|
2665
|
+
return retVal;
|
|
2666
|
+
};
|
|
2667
|
+
const deserializeAws_restJson1EksEmptyDir = (output, context) => {
|
|
2668
|
+
return {
|
|
2669
|
+
medium: (0, smithy_client_1.expectString)(output.medium),
|
|
2670
|
+
sizeLimit: (0, smithy_client_1.expectString)(output.sizeLimit),
|
|
2671
|
+
};
|
|
2672
|
+
};
|
|
2673
|
+
const deserializeAws_restJson1EksHostPath = (output, context) => {
|
|
2674
|
+
return {
|
|
2675
|
+
path: (0, smithy_client_1.expectString)(output.path),
|
|
2676
|
+
};
|
|
2677
|
+
};
|
|
2678
|
+
const deserializeAws_restJson1EksLimits = (output, context) => {
|
|
2679
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2680
|
+
if (value === null) {
|
|
2681
|
+
return acc;
|
|
2682
|
+
}
|
|
2683
|
+
return {
|
|
2684
|
+
...acc,
|
|
2685
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
2686
|
+
};
|
|
2687
|
+
}, {});
|
|
2688
|
+
};
|
|
2689
|
+
const deserializeAws_restJson1EksPodProperties = (output, context) => {
|
|
2690
|
+
return {
|
|
2691
|
+
containers: output.containers != null ? deserializeAws_restJson1EksContainers(output.containers, context) : undefined,
|
|
2692
|
+
dnsPolicy: (0, smithy_client_1.expectString)(output.dnsPolicy),
|
|
2693
|
+
hostNetwork: (0, smithy_client_1.expectBoolean)(output.hostNetwork),
|
|
2694
|
+
serviceAccountName: (0, smithy_client_1.expectString)(output.serviceAccountName),
|
|
2695
|
+
volumes: output.volumes != null ? deserializeAws_restJson1EksVolumes(output.volumes, context) : undefined,
|
|
2696
|
+
};
|
|
2697
|
+
};
|
|
2698
|
+
const deserializeAws_restJson1EksPodPropertiesDetail = (output, context) => {
|
|
2699
|
+
return {
|
|
2700
|
+
containers: output.containers != null ? deserializeAws_restJson1EksContainerDetails(output.containers, context) : undefined,
|
|
2701
|
+
dnsPolicy: (0, smithy_client_1.expectString)(output.dnsPolicy),
|
|
2702
|
+
hostNetwork: (0, smithy_client_1.expectBoolean)(output.hostNetwork),
|
|
2703
|
+
nodeName: (0, smithy_client_1.expectString)(output.nodeName),
|
|
2704
|
+
podName: (0, smithy_client_1.expectString)(output.podName),
|
|
2705
|
+
serviceAccountName: (0, smithy_client_1.expectString)(output.serviceAccountName),
|
|
2706
|
+
volumes: output.volumes != null ? deserializeAws_restJson1EksVolumes(output.volumes, context) : undefined,
|
|
2707
|
+
};
|
|
2708
|
+
};
|
|
2709
|
+
const deserializeAws_restJson1EksProperties = (output, context) => {
|
|
2710
|
+
return {
|
|
2711
|
+
podProperties: output.podProperties != null
|
|
2712
|
+
? deserializeAws_restJson1EksPodProperties(output.podProperties, context)
|
|
2713
|
+
: undefined,
|
|
2714
|
+
};
|
|
2715
|
+
};
|
|
2716
|
+
const deserializeAws_restJson1EksPropertiesDetail = (output, context) => {
|
|
2717
|
+
return {
|
|
2718
|
+
podProperties: output.podProperties != null
|
|
2719
|
+
? deserializeAws_restJson1EksPodPropertiesDetail(output.podProperties, context)
|
|
2720
|
+
: undefined,
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
const deserializeAws_restJson1EksRequests = (output, context) => {
|
|
2724
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2725
|
+
if (value === null) {
|
|
2726
|
+
return acc;
|
|
2727
|
+
}
|
|
2728
|
+
return {
|
|
2729
|
+
...acc,
|
|
2730
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
2731
|
+
};
|
|
2732
|
+
}, {});
|
|
2733
|
+
};
|
|
2734
|
+
const deserializeAws_restJson1EksSecret = (output, context) => {
|
|
2735
|
+
return {
|
|
2736
|
+
optional: (0, smithy_client_1.expectBoolean)(output.optional),
|
|
2737
|
+
secretName: (0, smithy_client_1.expectString)(output.secretName),
|
|
2738
|
+
};
|
|
2739
|
+
};
|
|
2740
|
+
const deserializeAws_restJson1EksVolume = (output, context) => {
|
|
2741
|
+
return {
|
|
2742
|
+
emptyDir: output.emptyDir != null ? deserializeAws_restJson1EksEmptyDir(output.emptyDir, context) : undefined,
|
|
2743
|
+
hostPath: output.hostPath != null ? deserializeAws_restJson1EksHostPath(output.hostPath, context) : undefined,
|
|
2744
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2745
|
+
secret: output.secret != null ? deserializeAws_restJson1EksSecret(output.secret, context) : undefined,
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2748
|
+
const deserializeAws_restJson1EksVolumes = (output, context) => {
|
|
2749
|
+
const retVal = (output || [])
|
|
2750
|
+
.filter((e) => e != null)
|
|
2751
|
+
.map((entry) => {
|
|
2752
|
+
if (entry === null) {
|
|
2753
|
+
return null;
|
|
2754
|
+
}
|
|
2755
|
+
return deserializeAws_restJson1EksVolume(entry, context);
|
|
2756
|
+
});
|
|
2757
|
+
return retVal;
|
|
2758
|
+
};
|
|
2317
2759
|
const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
|
|
2318
2760
|
const retVal = (output || [])
|
|
2319
2761
|
.filter((e) => e != null)
|
|
@@ -2365,9 +2807,11 @@ const deserializeAws_restJson1Host = (output, context) => {
|
|
|
2365
2807
|
};
|
|
2366
2808
|
const deserializeAws_restJson1JobDefinition = (output, context) => {
|
|
2367
2809
|
return {
|
|
2810
|
+
containerOrchestrationType: (0, smithy_client_1.expectString)(output.containerOrchestrationType),
|
|
2368
2811
|
containerProperties: output.containerProperties != null
|
|
2369
2812
|
? deserializeAws_restJson1ContainerProperties(output.containerProperties, context)
|
|
2370
2813
|
: undefined,
|
|
2814
|
+
eksProperties: output.eksProperties != null ? deserializeAws_restJson1EksProperties(output.eksProperties, context) : undefined,
|
|
2371
2815
|
jobDefinitionArn: (0, smithy_client_1.expectString)(output.jobDefinitionArn),
|
|
2372
2816
|
jobDefinitionName: (0, smithy_client_1.expectString)(output.jobDefinitionName),
|
|
2373
2817
|
nodeProperties: output.nodeProperties != null
|
|
@@ -2424,6 +2868,10 @@ const deserializeAws_restJson1JobDetail = (output, context) => {
|
|
|
2424
2868
|
container: output.container != null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined,
|
|
2425
2869
|
createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
|
|
2426
2870
|
dependsOn: output.dependsOn != null ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context) : undefined,
|
|
2871
|
+
eksAttempts: output.eksAttempts != null ? deserializeAws_restJson1EksAttemptDetails(output.eksAttempts, context) : undefined,
|
|
2872
|
+
eksProperties: output.eksProperties != null
|
|
2873
|
+
? deserializeAws_restJson1EksPropertiesDetail(output.eksProperties, context)
|
|
2874
|
+
: undefined,
|
|
2427
2875
|
jobArn: (0, smithy_client_1.expectString)(output.jobArn),
|
|
2428
2876
|
jobDefinition: (0, smithy_client_1.expectString)(output.jobDefinition),
|
|
2429
2877
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
8
8
|
return ({
|
|
9
9
|
apiVersion: "2016-08-10",
|
|
10
10
|
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
|
|
12
|
+
logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
|
|
13
13
|
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Batch",
|
|
14
14
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
15
|
});
|
package/dist-es/BatchClient.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
6
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
13
|
export class BatchClient extends __Client {
|
|
12
14
|
constructor(configuration) {
|
|
13
15
|
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
-
const _config_1 =
|
|
15
|
-
const _config_2 =
|
|
16
|
-
const _config_3 =
|
|
17
|
-
const _config_4 =
|
|
18
|
-
const _config_5 =
|
|
19
|
-
const _config_6 =
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
22
25
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
26
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
27
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CancelJobRequestFilterSensitiveLog, CancelJobResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CancelJobCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CancelJobCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "BatchClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateComputeEnvironmentRequestFilterSensitiveLog, CreateComputeEnvironmentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateComputeEnvironmentCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateComputeEnvironmentCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "BatchClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateJobQueueRequestFilterSensitiveLog, CreateJobQueueResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateJobQueueCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateJobQueueCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "BatchClient";
|