@distilled.cloud/aws 0.30.0 → 0.30.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/aws",
3
- "version": "0.30.0",
3
+ "version": "0.30.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -91,7 +91,7 @@
91
91
  "@aws-crypto/util": "^5.2.0",
92
92
  "@aws-sdk/credential-providers": "^3.994.0",
93
93
  "@aws-sdk/types": "^3.973.1",
94
- "@distilled.cloud/core": "0.30.0",
94
+ "@distilled.cloud/core": "0.30.2",
95
95
  "@smithy/shared-ini-file-loader": "^4.4.3",
96
96
  "@smithy/types": "^4.12.0",
97
97
  "@smithy/util-base64": "^4.3.0",
@@ -99,9 +99,9 @@
99
99
  "fast-xml-parser": "^5.3.2"
100
100
  },
101
101
  "devDependencies": {
102
- "@effect/platform-bun": ">=4.0.0-beta.97 || >=4.0.0",
103
- "@effect/platform-node": ">=4.0.0-beta.97 || >=4.0.0",
104
- "@effect/vitest": ">=4.0.0-beta.97 || >=4.0.0",
102
+ "@effect/platform-bun": ">=4.0.0-beta.100 || >=4.0.0",
103
+ "@effect/platform-node": ">=4.0.0-beta.100 || >=4.0.0",
104
+ "@effect/vitest": ">=4.0.0-beta.100 || >=4.0.0",
105
105
  "@types/bun": "^1.3.0",
106
106
  "@types/node": "^25.3.5",
107
107
  "archiver": "^7.0.1",
@@ -112,6 +112,6 @@
112
112
  "vitest": "^3.2.3"
113
113
  },
114
114
  "peerDependencies": {
115
- "effect": ">=4.0.0-beta.97 || >=4.0.0"
115
+ "effect": ">=4.0.0-beta.100 || >=4.0.0"
116
116
  }
117
117
  }
@@ -1332,7 +1332,7 @@ export interface Step {
1332
1332
  stepName: string;
1333
1333
  startTime: Date;
1334
1334
  status: JobStatus;
1335
- endTime: Date;
1335
+ endTime?: Date;
1336
1336
  logUrl?: string;
1337
1337
  artifactsUrl?: string;
1338
1338
  testArtifactsUrl?: string;
@@ -1346,7 +1346,7 @@ export const Step = /*@__PURE__*/ S.suspend(() =>
1346
1346
  stepName: S.String,
1347
1347
  startTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")),
1348
1348
  status: JobStatus,
1349
- endTime: S.Date.pipe(T.TimestampFormat("epoch-seconds")),
1349
+ endTime: S.optional(S.Date.pipe(T.TimestampFormat("epoch-seconds"))),
1350
1350
  logUrl: S.optional(S.String),
1351
1351
  artifactsUrl: S.optional(S.String),
1352
1352
  testArtifactsUrl: S.optional(S.String),
@@ -1626,6 +1626,10 @@ export class ValidationException extends S.TaggedErrorClass<ValidationException>
1626
1626
  { message: S.optional(S.String) },
1627
1627
  T.HttpError(400),
1628
1628
  ).pipe(C.withBadRequestError) {}
1629
+ export class TooManyRequestsException extends S.TaggedErrorClass<TooManyRequestsException>()(
1630
+ "TooManyRequestsException",
1631
+ {},
1632
+ ).pipe(C.withThrottlingError, C.withRetryableError) {}
1629
1633
  export class ResourceNotFoundException extends S.TaggedErrorClass<ResourceNotFoundException>()(
1630
1634
  "ResourceNotFoundException",
1631
1635
  { message: S.optional(S.String) },
@@ -1654,6 +1658,7 @@ export class InvalidResourceArn extends S.TaggedErrorClass<InvalidResourceArn>()
1654
1658
  export type CancelJobRunError =
1655
1659
  | InternalServerException
1656
1660
  | ValidationException
1661
+ | TooManyRequestsException
1657
1662
  | CommonErrors;
1658
1663
  /**
1659
1664
  * Cancels a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or
@@ -1667,13 +1672,18 @@ export const cancelJobRun: API.OperationMethod<
1667
1672
  > = /*@__PURE__*/ API.make(() => ({
1668
1673
  input: CancelJobRunRequest,
1669
1674
  output: CancelJobRunResponse,
1670
- errors: [InternalServerException, ValidationException],
1675
+ errors: [
1676
+ InternalServerException,
1677
+ ValidationException,
1678
+ TooManyRequestsException,
1679
+ ],
1671
1680
  operationName: "CancelJobRun",
1672
1681
  }));
1673
1682
  export type CreateJobTemplateError =
1674
1683
  | InternalServerException
1675
1684
  | ResourceNotFoundException
1676
1685
  | ValidationException
1686
+ | TooManyRequestsException
1677
1687
  | CommonErrors;
1678
1688
  /**
1679
1689
  * Creates a job template. Job template stores values of StartJobRun API request in a
@@ -1693,6 +1703,7 @@ export const createJobTemplate: API.OperationMethod<
1693
1703
  InternalServerException,
1694
1704
  ResourceNotFoundException,
1695
1705
  ValidationException,
1706
+ TooManyRequestsException,
1696
1707
  ],
1697
1708
  operationName: "CreateJobTemplate",
1698
1709
  }));
@@ -1700,6 +1711,7 @@ export type CreateManagedEndpointError =
1700
1711
  | InternalServerException
1701
1712
  | ResourceNotFoundException
1702
1713
  | ValidationException
1714
+ | TooManyRequestsException
1703
1715
  | CommonErrors;
1704
1716
  /**
1705
1717
  * Creates a managed endpoint. A managed endpoint is a gateway that connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR Studio can
@@ -1717,12 +1729,14 @@ export const createManagedEndpoint: API.OperationMethod<
1717
1729
  InternalServerException,
1718
1730
  ResourceNotFoundException,
1719
1731
  ValidationException,
1732
+ TooManyRequestsException,
1720
1733
  ],
1721
1734
  operationName: "CreateManagedEndpoint",
1722
1735
  }));
1723
1736
  export type CreateSecurityConfigurationError =
1724
1737
  | InternalServerException
1725
1738
  | ValidationException
1739
+ | TooManyRequestsException
1726
1740
  | CommonErrors;
1727
1741
  /**
1728
1742
  * Creates a security configuration. Security configurations in Amazon EMR on EKS are
@@ -1738,7 +1752,11 @@ export const createSecurityConfiguration: API.OperationMethod<
1738
1752
  > = /*@__PURE__*/ API.make(() => ({
1739
1753
  input: CreateSecurityConfigurationRequest,
1740
1754
  output: CreateSecurityConfigurationResponse,
1741
- errors: [InternalServerException, ValidationException],
1755
+ errors: [
1756
+ InternalServerException,
1757
+ ValidationException,
1758
+ TooManyRequestsException,
1759
+ ],
1742
1760
  operationName: "CreateSecurityConfiguration",
1743
1761
  }));
1744
1762
  export type CreateVirtualClusterError =
@@ -1746,6 +1764,7 @@ export type CreateVirtualClusterError =
1746
1764
  | InternalServerException
1747
1765
  | ResourceNotFoundException
1748
1766
  | ValidationException
1767
+ | TooManyRequestsException
1749
1768
  | CommonErrors;
1750
1769
  /**
1751
1770
  * Creates a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, describe, list and delete virtual clusters. They do not consume any
@@ -1766,12 +1785,14 @@ export const createVirtualCluster: API.OperationMethod<
1766
1785
  InternalServerException,
1767
1786
  ResourceNotFoundException,
1768
1787
  ValidationException,
1788
+ TooManyRequestsException,
1769
1789
  ],
1770
1790
  operationName: "CreateVirtualCluster",
1771
1791
  }));
1772
1792
  export type DeleteJobTemplateError =
1773
1793
  | InternalServerException
1774
1794
  | ValidationException
1795
+ | TooManyRequestsException
1775
1796
  | CommonErrors;
1776
1797
  /**
1777
1798
  * Deletes a job template. Job template stores values of StartJobRun API request in a
@@ -1787,12 +1808,17 @@ export const deleteJobTemplate: API.OperationMethod<
1787
1808
  > = /*@__PURE__*/ API.make(() => ({
1788
1809
  input: DeleteJobTemplateRequest,
1789
1810
  output: DeleteJobTemplateResponse,
1790
- errors: [InternalServerException, ValidationException],
1811
+ errors: [
1812
+ InternalServerException,
1813
+ ValidationException,
1814
+ TooManyRequestsException,
1815
+ ],
1791
1816
  operationName: "DeleteJobTemplate",
1792
1817
  }));
1793
1818
  export type DeleteManagedEndpointError =
1794
1819
  | InternalServerException
1795
1820
  | ValidationException
1821
+ | TooManyRequestsException
1796
1822
  | CommonErrors;
1797
1823
  /**
1798
1824
  * Deletes a managed endpoint. A managed endpoint is a gateway that connects Amazon EMR Studio to Amazon EMR on EKS so that Amazon EMR Studio can
@@ -1806,12 +1832,17 @@ export const deleteManagedEndpoint: API.OperationMethod<
1806
1832
  > = /*@__PURE__*/ API.make(() => ({
1807
1833
  input: DeleteManagedEndpointRequest,
1808
1834
  output: DeleteManagedEndpointResponse,
1809
- errors: [InternalServerException, ValidationException],
1835
+ errors: [
1836
+ InternalServerException,
1837
+ ValidationException,
1838
+ TooManyRequestsException,
1839
+ ],
1810
1840
  operationName: "DeleteManagedEndpoint",
1811
1841
  }));
1812
1842
  export type DeleteVirtualClusterError =
1813
1843
  | InternalServerException
1814
1844
  | ValidationException
1845
+ | TooManyRequestsException
1815
1846
  | CommonErrors;
1816
1847
  /**
1817
1848
  * Deletes a virtual cluster. Virtual cluster is a managed entity on Amazon EMR on EKS. You can create, describe, list and delete virtual clusters. They do not consume any
@@ -1827,13 +1858,18 @@ export const deleteVirtualCluster: API.OperationMethod<
1827
1858
  > = /*@__PURE__*/ API.make(() => ({
1828
1859
  input: DeleteVirtualClusterRequest,
1829
1860
  output: DeleteVirtualClusterResponse,
1830
- errors: [InternalServerException, ValidationException],
1861
+ errors: [
1862
+ InternalServerException,
1863
+ ValidationException,
1864
+ TooManyRequestsException,
1865
+ ],
1831
1866
  operationName: "DeleteVirtualCluster",
1832
1867
  }));
1833
1868
  export type DescribeJobRunError =
1834
1869
  | InternalServerException
1835
1870
  | ResourceNotFoundException
1836
1871
  | ValidationException
1872
+ | TooManyRequestsException
1837
1873
  | CommonErrors;
1838
1874
  /**
1839
1875
  * Displays detailed information about a job run. A job run is a unit of work, such as a
@@ -1851,6 +1887,7 @@ export const describeJobRun: API.OperationMethod<
1851
1887
  InternalServerException,
1852
1888
  ResourceNotFoundException,
1853
1889
  ValidationException,
1890
+ TooManyRequestsException,
1854
1891
  ],
1855
1892
  operationName: "DescribeJobRun",
1856
1893
  }));
@@ -1858,6 +1895,7 @@ export type DescribeJobTemplateError =
1858
1895
  | InternalServerException
1859
1896
  | ResourceNotFoundException
1860
1897
  | ValidationException
1898
+ | TooManyRequestsException
1861
1899
  | CommonErrors;
1862
1900
  /**
1863
1901
  * Displays detailed information about a specified job template. Job template stores values
@@ -1877,6 +1915,7 @@ export const describeJobTemplate: API.OperationMethod<
1877
1915
  InternalServerException,
1878
1916
  ResourceNotFoundException,
1879
1917
  ValidationException,
1918
+ TooManyRequestsException,
1880
1919
  ],
1881
1920
  operationName: "DescribeJobTemplate",
1882
1921
  }));
@@ -1884,6 +1923,7 @@ export type DescribeManagedEndpointError =
1884
1923
  | InternalServerException
1885
1924
  | ResourceNotFoundException
1886
1925
  | ValidationException
1926
+ | TooManyRequestsException
1887
1927
  | CommonErrors;
1888
1928
  /**
1889
1929
  * Displays detailed information about a managed endpoint. A managed endpoint is a gateway
@@ -1901,6 +1941,7 @@ export const describeManagedEndpoint: API.OperationMethod<
1901
1941
  InternalServerException,
1902
1942
  ResourceNotFoundException,
1903
1943
  ValidationException,
1944
+ TooManyRequestsException,
1904
1945
  ],
1905
1946
  operationName: "DescribeManagedEndpoint",
1906
1947
  }));
@@ -1908,6 +1949,7 @@ export type DescribeSecurityConfigurationError =
1908
1949
  | InternalServerException
1909
1950
  | ResourceNotFoundException
1910
1951
  | ValidationException
1952
+ | TooManyRequestsException
1911
1953
  | CommonErrors;
1912
1954
  /**
1913
1955
  * Displays detailed information about a specified security configuration. Security
@@ -1928,6 +1970,7 @@ export const describeSecurityConfiguration: API.OperationMethod<
1928
1970
  InternalServerException,
1929
1971
  ResourceNotFoundException,
1930
1972
  ValidationException,
1973
+ TooManyRequestsException,
1931
1974
  ],
1932
1975
  operationName: "DescribeSecurityConfiguration",
1933
1976
  }));
@@ -1935,6 +1978,7 @@ export type DescribeVirtualClusterError =
1935
1978
  | InternalServerException
1936
1979
  | ResourceNotFoundException
1937
1980
  | ValidationException
1981
+ | TooManyRequestsException
1938
1982
  | CommonErrors;
1939
1983
  /**
1940
1984
  * Displays detailed information about a specified virtual cluster. Virtual cluster is a
@@ -1956,6 +2000,7 @@ export const describeVirtualCluster: API.OperationMethod<
1956
2000
  InternalServerException,
1957
2001
  ResourceNotFoundException,
1958
2002
  ValidationException,
2003
+ TooManyRequestsException,
1959
2004
  ],
1960
2005
  operationName: "DescribeVirtualCluster",
1961
2006
  }));
@@ -1964,6 +2009,7 @@ export type GetManagedEndpointSessionCredentialsError =
1964
2009
  | RequestThrottledException
1965
2010
  | ResourceNotFoundException
1966
2011
  | ValidationException
2012
+ | TooManyRequestsException
1967
2013
  | CommonErrors;
1968
2014
  /**
1969
2015
  * Generate a session token to connect to a managed endpoint.
@@ -1981,12 +2027,14 @@ export const getManagedEndpointSessionCredentials: API.OperationMethod<
1981
2027
  RequestThrottledException,
1982
2028
  ResourceNotFoundException,
1983
2029
  ValidationException,
2030
+ TooManyRequestsException,
1984
2031
  ],
1985
2032
  operationName: "GetManagedEndpointSessionCredentials",
1986
2033
  }));
1987
2034
  export type ListJobRunsError =
1988
2035
  | InternalServerException
1989
2036
  | ValidationException
2037
+ | TooManyRequestsException
1990
2038
  | CommonErrors;
1991
2039
  /**
1992
2040
  * Lists job runs based on a set of parameters. A job run is a unit of work, such as a
@@ -2015,7 +2063,11 @@ export const listJobRuns: API.OperationMethod<
2015
2063
  } = /*@__PURE__*/ API.makePaginated(() => ({
2016
2064
  input: ListJobRunsRequest,
2017
2065
  output: ListJobRunsResponse,
2018
- errors: [InternalServerException, ValidationException],
2066
+ errors: [
2067
+ InternalServerException,
2068
+ ValidationException,
2069
+ TooManyRequestsException,
2070
+ ],
2019
2071
  operationName: "ListJobRuns",
2020
2072
  pagination: {
2021
2073
  inputToken: "nextToken",
@@ -2027,6 +2079,7 @@ export const listJobRuns: API.OperationMethod<
2027
2079
  export type ListJobTemplatesError =
2028
2080
  | InternalServerException
2029
2081
  | ValidationException
2082
+ | TooManyRequestsException
2030
2083
  | CommonErrors;
2031
2084
  /**
2032
2085
  * Lists job templates based on a set of parameters. Job template stores values of
@@ -2057,7 +2110,11 @@ export const listJobTemplates: API.OperationMethod<
2057
2110
  } = /*@__PURE__*/ API.makePaginated(() => ({
2058
2111
  input: ListJobTemplatesRequest,
2059
2112
  output: ListJobTemplatesResponse,
2060
- errors: [InternalServerException, ValidationException],
2113
+ errors: [
2114
+ InternalServerException,
2115
+ ValidationException,
2116
+ TooManyRequestsException,
2117
+ ],
2061
2118
  operationName: "ListJobTemplates",
2062
2119
  pagination: {
2063
2120
  inputToken: "nextToken",
@@ -2069,6 +2126,7 @@ export const listJobTemplates: API.OperationMethod<
2069
2126
  export type ListManagedEndpointsError =
2070
2127
  | InternalServerException
2071
2128
  | ValidationException
2129
+ | TooManyRequestsException
2072
2130
  | CommonErrors;
2073
2131
  /**
2074
2132
  * Lists managed endpoints based on a set of parameters. A managed endpoint is a gateway
@@ -2097,7 +2155,11 @@ export const listManagedEndpoints: API.OperationMethod<
2097
2155
  } = /*@__PURE__*/ API.makePaginated(() => ({
2098
2156
  input: ListManagedEndpointsRequest,
2099
2157
  output: ListManagedEndpointsResponse,
2100
- errors: [InternalServerException, ValidationException],
2158
+ errors: [
2159
+ InternalServerException,
2160
+ ValidationException,
2161
+ TooManyRequestsException,
2162
+ ],
2101
2163
  operationName: "ListManagedEndpoints",
2102
2164
  pagination: {
2103
2165
  inputToken: "nextToken",
@@ -2109,6 +2171,7 @@ export const listManagedEndpoints: API.OperationMethod<
2109
2171
  export type ListSecurityConfigurationsError =
2110
2172
  | InternalServerException
2111
2173
  | ValidationException
2174
+ | TooManyRequestsException
2112
2175
  | CommonErrors;
2113
2176
  /**
2114
2177
  * Lists security configurations based on a set of parameters. Security configurations in
@@ -2140,7 +2203,11 @@ export const listSecurityConfigurations: API.OperationMethod<
2140
2203
  } = /*@__PURE__*/ API.makePaginated(() => ({
2141
2204
  input: ListSecurityConfigurationsRequest,
2142
2205
  output: ListSecurityConfigurationsResponse,
2143
- errors: [InternalServerException, ValidationException],
2206
+ errors: [
2207
+ InternalServerException,
2208
+ ValidationException,
2209
+ TooManyRequestsException,
2210
+ ],
2144
2211
  operationName: "ListSecurityConfigurations",
2145
2212
  pagination: {
2146
2213
  inputToken: "nextToken",
@@ -2153,6 +2220,7 @@ export type ListTagsForResourceError =
2153
2220
  | InternalServerException
2154
2221
  | ResourceNotFoundException
2155
2222
  | ValidationException
2223
+ | TooManyRequestsException
2156
2224
  | CommonErrors;
2157
2225
  /**
2158
2226
  * Lists the tags assigned to the resources.
@@ -2169,12 +2237,14 @@ export const listTagsForResource: API.OperationMethod<
2169
2237
  InternalServerException,
2170
2238
  ResourceNotFoundException,
2171
2239
  ValidationException,
2240
+ TooManyRequestsException,
2172
2241
  ],
2173
2242
  operationName: "ListTagsForResource",
2174
2243
  }));
2175
2244
  export type ListVirtualClustersError =
2176
2245
  | InternalServerException
2177
2246
  | ValidationException
2247
+ | TooManyRequestsException
2178
2248
  | CommonErrors;
2179
2249
  /**
2180
2250
  * Lists information about the specified virtual cluster. Virtual cluster is a managed
@@ -2207,7 +2277,11 @@ export const listVirtualClusters: API.OperationMethod<
2207
2277
  } = /*@__PURE__*/ API.makePaginated(() => ({
2208
2278
  input: ListVirtualClustersRequest,
2209
2279
  output: ListVirtualClustersResponse,
2210
- errors: [InternalServerException, ValidationException],
2280
+ errors: [
2281
+ InternalServerException,
2282
+ ValidationException,
2283
+ TooManyRequestsException,
2284
+ ],
2211
2285
  operationName: "ListVirtualClusters",
2212
2286
  pagination: {
2213
2287
  inputToken: "nextToken",
@@ -2220,6 +2294,7 @@ export type StartJobRunError =
2220
2294
  | InternalServerException
2221
2295
  | ResourceNotFoundException
2222
2296
  | ValidationException
2297
+ | TooManyRequestsException
2223
2298
  | CommonErrors;
2224
2299
  /**
2225
2300
  * Starts a job run. A job run is a unit of work, such as a Spark jar, PySpark script, or
@@ -2237,6 +2312,7 @@ export const startJobRun: API.OperationMethod<
2237
2312
  InternalServerException,
2238
2313
  ResourceNotFoundException,
2239
2314
  ValidationException,
2315
+ TooManyRequestsException,
2240
2316
  ],
2241
2317
  operationName: "StartJobRun",
2242
2318
  }));
@@ -2244,6 +2320,7 @@ export type TagResourceError =
2244
2320
  | InternalServerException
2245
2321
  | ResourceNotFoundException
2246
2322
  | ValidationException
2323
+ | TooManyRequestsException
2247
2324
  | InvalidResourceArn
2248
2325
  | CommonErrors;
2249
2326
  /**
@@ -2269,6 +2346,7 @@ export const tagResource: API.OperationMethod<
2269
2346
  InternalServerException,
2270
2347
  ResourceNotFoundException,
2271
2348
  ValidationException,
2349
+ TooManyRequestsException,
2272
2350
  InvalidResourceArn,
2273
2351
  ],
2274
2352
  operationName: "TagResource",
@@ -2277,6 +2355,7 @@ export type UntagResourceError =
2277
2355
  | InternalServerException
2278
2356
  | ResourceNotFoundException
2279
2357
  | ValidationException
2358
+ | TooManyRequestsException
2280
2359
  | InvalidResourceArn
2281
2360
  | CommonErrors;
2282
2361
  /**
@@ -2294,6 +2373,7 @@ export const untagResource: API.OperationMethod<
2294
2373
  InternalServerException,
2295
2374
  ResourceNotFoundException,
2296
2375
  ValidationException,
2376
+ TooManyRequestsException,
2297
2377
  InvalidResourceArn,
2298
2378
  ],
2299
2379
  operationName: "UntagResource",