@mrgrain/cdk-esbuild 3.5.0 → 3.6.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/API.md CHANGED
@@ -1,5 +1,112 @@
1
1
  # API Reference <a name="API Reference"></a>
2
2
 
3
+ ## Constructs <a name="Constructs"></a>
4
+
5
+ ### EsbuildAsset <a name="@mrgrain/cdk-esbuild.EsbuildAsset"></a>
6
+
7
+ Represents the a generic Esbuild Asset.
8
+
9
+ #### Initializers <a name="@mrgrain/cdk-esbuild.EsbuildAsset.Initializer"></a>
10
+
11
+ ```typescript
12
+ import { EsbuildAsset } from '@mrgrain/cdk-esbuild'
13
+
14
+ new EsbuildAsset(scope: Construct, id: string, props: AssetProps)
15
+ ```
16
+
17
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildAsset.parameter.scope"></a>
18
+
19
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
20
+
21
+ ---
22
+
23
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildAsset.parameter.id"></a>
24
+
25
+ - *Type:* `string`
26
+
27
+ ---
28
+
29
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildAsset.parameter.props"></a>
30
+
31
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
32
+
33
+ ---
34
+
35
+
36
+
37
+
38
+
39
+ ### JavaScriptAsset <a name="@mrgrain/cdk-esbuild.JavaScriptAsset"></a>
40
+
41
+ Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
42
+
43
+ The asset can be used by other constructs.
44
+
45
+ #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.Initializer"></a>
46
+
47
+ ```typescript
48
+ import { JavaScriptAsset } from '@mrgrain/cdk-esbuild'
49
+
50
+ new JavaScriptAsset(scope: Construct, id: string, props: AssetProps)
51
+ ```
52
+
53
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.scope"></a>
54
+
55
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
56
+
57
+ ---
58
+
59
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.id"></a>
60
+
61
+ - *Type:* `string`
62
+
63
+ ---
64
+
65
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.props"></a>
66
+
67
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
68
+
69
+ ---
70
+
71
+
72
+
73
+
74
+
75
+ ### TypeScriptAsset <a name="@mrgrain/cdk-esbuild.TypeScriptAsset"></a>
76
+
77
+ Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
78
+
79
+ The asset can be used by other constructs.
80
+
81
+ #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.Initializer"></a>
82
+
83
+ ```typescript
84
+ import { TypeScriptAsset } from '@mrgrain/cdk-esbuild'
85
+
86
+ new TypeScriptAsset(scope: Construct, id: string, props: AssetProps)
87
+ ```
88
+
89
+ ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.scope"></a>
90
+
91
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
92
+
93
+ ---
94
+
95
+ ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.id"></a>
96
+
97
+ - *Type:* `string`
98
+
99
+ ---
100
+
101
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.props"></a>
102
+
103
+ - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
104
+
105
+ ---
106
+
107
+
108
+
109
+
3
110
 
4
111
  ## Structs <a name="Structs"></a>
5
112
 
@@ -82,6 +189,20 @@ Instead use only relative paths and avoid `..`.
82
189
 
83
190
  ---
84
191
 
192
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.esbuildBinaryPath"></a>
193
+
194
+ ```typescript
195
+ public readonly esbuildBinaryPath: string;
196
+ ```
197
+
198
+ - *Type:* `string`
199
+
200
+ Path to the binary used by esbuild.
201
+
202
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
203
+
204
+ ---
205
+
85
206
  ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.AssetProps.property.entryPoints"></a>
86
207
 
87
208
  ```typescript
@@ -746,6 +867,18 @@ Documentation: https://esbuild.github.io/api/#splitting.
746
867
 
747
868
  ---
748
869
 
870
+ ##### `supported`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.supported"></a>
871
+
872
+ ```typescript
873
+ public readonly supported: {[ key: string ]: boolean};
874
+ ```
875
+
876
+ - *Type:* {[ key: string ]: `boolean`}
877
+
878
+ Documentation: https://esbuild.github.io/api/#supported.
879
+
880
+ ---
881
+
749
882
  ##### `target`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BuildOptions.property.target"></a>
750
883
 
751
884
  ```typescript
@@ -873,8 +1006,24 @@ Instead use only relative paths and avoid `..`.
873
1006
 
874
1007
  ---
875
1008
 
1009
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.BundlerProps.property.esbuildBinaryPath"></a>
1010
+
1011
+ ```typescript
1012
+ public readonly esbuildBinaryPath: string;
1013
+ ```
1014
+
1015
+ - *Type:* `string`
1016
+
1017
+ Path to the binary used by esbuild.
1018
+
1019
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1020
+
1021
+ ---
1022
+
876
1023
  ### CodeConfig <a name="@mrgrain/cdk-esbuild.CodeConfig"></a>
877
1024
 
1025
+ Result of binding `Code` into a `Function`.
1026
+
878
1027
  #### Initializer <a name="[object Object].Initializer"></a>
879
1028
 
880
1029
  ```typescript
@@ -883,15 +1032,42 @@ import { CodeConfig } from '@mrgrain/cdk-esbuild'
883
1032
  const codeConfig: CodeConfig = { ... }
884
1033
  ```
885
1034
 
886
- ##### `s3Location`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.s3Location"></a>
1035
+ ##### `image`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.image"></a>
1036
+
1037
+ ```typescript
1038
+ public readonly image: CodeImageConfig;
1039
+ ```
1040
+
1041
+ - *Type:* [`aws-cdk-lib.aws_lambda.CodeImageConfig`](#aws-cdk-lib.aws_lambda.CodeImageConfig)
1042
+ - *Default:* code is not an ECR container image
1043
+
1044
+ Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`).
1045
+
1046
+ ---
1047
+
1048
+ ##### `inlineCode`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.inlineCode"></a>
1049
+
1050
+ ```typescript
1051
+ public readonly inlineCode: string;
1052
+ ```
1053
+
1054
+ - *Type:* `string`
1055
+ - *Default:* code is not inline code
1056
+
1057
+ Inline code (mutually exclusive with `s3Location` and `image`).
1058
+
1059
+ ---
1060
+
1061
+ ##### `s3Location`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.CodeConfig.property.s3Location"></a>
887
1062
 
888
1063
  ```typescript
889
1064
  public readonly s3Location: Location;
890
1065
  ```
891
1066
 
892
1067
  - *Type:* [`aws-cdk-lib.aws_s3.Location`](#aws-cdk-lib.aws_s3.Location)
1068
+ - *Default:* code is not an s3 location
893
1069
 
894
- The location of the code in S3.
1070
+ The location of the code in S3 (mutually exclusive with `inlineCode` and `image`).
895
1071
 
896
1072
  ---
897
1073
 
@@ -974,6 +1150,20 @@ Instead use only relative paths and avoid `..`.
974
1150
 
975
1151
  ---
976
1152
 
1153
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.esbuildBinaryPath"></a>
1154
+
1155
+ ```typescript
1156
+ public readonly esbuildBinaryPath: string;
1157
+ ```
1158
+
1159
+ - *Type:* `string`
1160
+
1161
+ Path to the binary used by esbuild.
1162
+
1163
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1164
+
1165
+ ---
1166
+
977
1167
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCodeProps.property.assetHash"></a>
978
1168
 
979
1169
  ```typescript
@@ -1069,6 +1259,20 @@ Instead use only relative paths and avoid `..`.
1069
1259
 
1070
1260
  ---
1071
1261
 
1262
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.esbuildBinaryPath"></a>
1263
+
1264
+ ```typescript
1265
+ public readonly esbuildBinaryPath: string;
1266
+ ```
1267
+
1268
+ - *Type:* `string`
1269
+
1270
+ Path to the binary used by esbuild.
1271
+
1272
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1273
+
1274
+ ---
1275
+
1072
1276
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptSourceProps.property.assetHash"></a>
1073
1277
 
1074
1278
  ```typescript
@@ -1501,6 +1705,18 @@ Documentation: https://esbuild.github.io/api/#sources-content.
1501
1705
 
1502
1706
  ---
1503
1707
 
1708
+ ##### `supported`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.supported"></a>
1709
+
1710
+ ```typescript
1711
+ public readonly supported: {[ key: string ]: boolean};
1712
+ ```
1713
+
1714
+ - *Type:* {[ key: string ]: `boolean`}
1715
+
1716
+ Documentation: https://esbuild.github.io/api/#supported.
1717
+
1718
+ ---
1719
+
1504
1720
  ##### `target`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TransformOptions.property.target"></a>
1505
1721
 
1506
1722
  ```typescript
@@ -1614,6 +1830,20 @@ Instead use only relative paths and avoid `..`.
1614
1830
 
1615
1831
  ---
1616
1832
 
1833
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.esbuildBinaryPath"></a>
1834
+
1835
+ ```typescript
1836
+ public readonly esbuildBinaryPath: string;
1837
+ ```
1838
+
1839
+ - *Type:* `string`
1840
+
1841
+ Path to the binary used by esbuild.
1842
+
1843
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1844
+
1845
+ ---
1846
+
1617
1847
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCodeProps.property.assetHash"></a>
1618
1848
 
1619
1849
  ```typescript
@@ -1709,6 +1939,20 @@ Instead use only relative paths and avoid `..`.
1709
1939
 
1710
1940
  ---
1711
1941
 
1942
+ ##### `esbuildBinaryPath`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.esbuildBinaryPath"></a>
1943
+
1944
+ ```typescript
1945
+ public readonly esbuildBinaryPath: string;
1946
+ ```
1947
+
1948
+ - *Type:* `string`
1949
+
1950
+ Path to the binary used by esbuild.
1951
+
1952
+ This is the same as setting the ESBUILD_BINARY_PATH environment variable.
1953
+
1954
+ ---
1955
+
1712
1956
  ##### `assetHash`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptSourceProps.property.assetHash"></a>
1713
1957
 
1714
1958
  ```typescript
@@ -1814,6 +2058,105 @@ Props to change the behaviour of the bundler.
1814
2058
  ---
1815
2059
 
1816
2060
 
2061
+ ### EsbuildCode <a name="@mrgrain/cdk-esbuild.EsbuildCode"></a>
2062
+
2063
+ Represents the a generic Esbuild Code bundle.
2064
+
2065
+ #### Initializers <a name="@mrgrain/cdk-esbuild.EsbuildCode.Initializer"></a>
2066
+
2067
+ ```typescript
2068
+ import { EsbuildCode } from '@mrgrain/cdk-esbuild'
2069
+
2070
+ new EsbuildCode(entryPoints: string | string[] | {[ key: string ]: string}, props: JavaScriptCodeProps | TypeScriptCodeProps)
2071
+ ```
2072
+
2073
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.entryPoints"></a>
2074
+
2075
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
2076
+
2077
+ A relative path or list or map of relative paths to the entry points of your code from the root of the project.
2078
+
2079
+ E.g. `src/index.ts`.
2080
+
2081
+ ---
2082
+
2083
+ ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.props"></a>
2084
+
2085
+ - *Type:* [`@mrgrain/cdk-esbuild.JavaScriptCodeProps`](#@mrgrain/cdk-esbuild.JavaScriptCodeProps) | [`@mrgrain/cdk-esbuild.TypeScriptCodeProps`](#@mrgrain/cdk-esbuild.TypeScriptCodeProps)
2086
+
2087
+ Props to change the behavior of the bundler.
2088
+
2089
+ Default values for `props.buildOptions`:
2090
+ - `bundle=true`
2091
+ - `platform=node`
2092
+ - `target=nodeX` with X being the major node version running locally
2093
+
2094
+ ---
2095
+
2096
+ #### Methods <a name="Methods"></a>
2097
+
2098
+ ##### `bind` <a name="@mrgrain/cdk-esbuild.EsbuildCode.bind"></a>
2099
+
2100
+ ```typescript
2101
+ public bind(scope: Construct)
2102
+ ```
2103
+
2104
+ ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.scope"></a>
2105
+
2106
+ - *Type:* [`constructs.Construct`](#constructs.Construct)
2107
+
2108
+ ---
2109
+
2110
+ ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.EsbuildCode.bindToResource"></a>
2111
+
2112
+ ```typescript
2113
+ public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
2114
+ ```
2115
+
2116
+ ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.resource"></a>
2117
+
2118
+ - *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)
2119
+
2120
+ ---
2121
+
2122
+ ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.parameter.options"></a>
2123
+
2124
+ - *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)
2125
+
2126
+ ---
2127
+
2128
+
2129
+ #### Properties <a name="Properties"></a>
2130
+
2131
+ ##### `entryPoints`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.property.entryPoints"></a>
2132
+
2133
+ ```typescript
2134
+ public readonly entryPoints: string | string[] | {[ key: string ]: string};
2135
+ ```
2136
+
2137
+ - *Type:* `string` | `string`[] | {[ key: string ]: `string`}
2138
+
2139
+ A relative path or list or map of relative paths to the entry points of your code from the root of the project.
2140
+
2141
+ E.g. `src/index.ts`.
2142
+
2143
+ ---
2144
+
2145
+ ##### ~~`isInline`~~<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.EsbuildCode.property.isInline"></a>
2146
+
2147
+ - *Deprecated:* this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().
2148
+
2149
+ ```typescript
2150
+ public readonly isInline: boolean;
2151
+ ```
2152
+
2153
+ - *Type:* `boolean`
2154
+
2155
+ Determines whether this Code is inline code or not.
2156
+
2157
+ ---
2158
+
2159
+
1817
2160
  ### InlineJavaScriptCode <a name="@mrgrain/cdk-esbuild.InlineJavaScriptCode"></a>
1818
2161
 
1819
2162
  An implementation of `lambda.InlineCode` using the esbuild Transform API. Inline function code is limited to 4 KiB after transformation.
@@ -1970,42 +2313,6 @@ Default values for `transformOptions`:
1970
2313
 
1971
2314
 
1972
2315
 
1973
- ### JavaScriptAsset <a name="@mrgrain/cdk-esbuild.JavaScriptAsset"></a>
1974
-
1975
- Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
1976
-
1977
- The asset can be used by other constructs.
1978
-
1979
- #### Initializers <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.Initializer"></a>
1980
-
1981
- ```typescript
1982
- import { JavaScriptAsset } from '@mrgrain/cdk-esbuild'
1983
-
1984
- new JavaScriptAsset(scope: Construct, id: string, props: AssetProps)
1985
- ```
1986
-
1987
- ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.scope"></a>
1988
-
1989
- - *Type:* [`constructs.Construct`](#constructs.Construct)
1990
-
1991
- ---
1992
-
1993
- ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.id"></a>
1994
-
1995
- - *Type:* `string`
1996
-
1997
- ---
1998
-
1999
- ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptAsset.parameter.props"></a>
2000
-
2001
- - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
2002
-
2003
- ---
2004
-
2005
-
2006
-
2007
-
2008
-
2009
2316
  ### JavaScriptCode <a name="@mrgrain/cdk-esbuild.JavaScriptCode"></a>
2010
2317
 
2011
2318
  Represents the deployed JavaScript Code.
@@ -2041,54 +2348,8 @@ Default values for `props.buildOptions`:
2041
2348
 
2042
2349
  ---
2043
2350
 
2044
- #### Methods <a name="Methods"></a>
2045
-
2046
- ##### `bind` <a name="@mrgrain/cdk-esbuild.JavaScriptCode.bind"></a>
2047
-
2048
- ```typescript
2049
- public bind(scope: Construct)
2050
- ```
2051
-
2052
- ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.scope"></a>
2053
-
2054
- - *Type:* [`constructs.Construct`](#constructs.Construct)
2055
-
2056
- ---
2057
-
2058
- ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.JavaScriptCode.bindToResource"></a>
2059
-
2060
- ```typescript
2061
- public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
2062
- ```
2063
-
2064
- ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.resource"></a>
2065
-
2066
- - *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)
2067
-
2068
- ---
2069
-
2070
- ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.parameter.options"></a>
2071
-
2072
- - *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)
2073
-
2074
- ---
2075
-
2076
-
2077
- #### Properties <a name="Properties"></a>
2078
-
2079
- ##### ~~`isInline`~~<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.JavaScriptCode.property.isInline"></a>
2080
-
2081
- - *Deprecated:* this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().
2082
-
2083
- ```typescript
2084
- public readonly isInline: boolean;
2085
- ```
2086
-
2087
- - *Type:* `boolean`
2088
2351
 
2089
- Determines whether this Code is inline code or not.
2090
2352
 
2091
- ---
2092
2353
 
2093
2354
 
2094
2355
  ### JavaScriptSource <a name="@mrgrain/cdk-esbuild.JavaScriptSource"></a>
@@ -2149,42 +2410,6 @@ public readonly assetClass: JavaScriptAsset;
2149
2410
  ---
2150
2411
 
2151
2412
 
2152
- ### TypeScriptAsset <a name="@mrgrain/cdk-esbuild.TypeScriptAsset"></a>
2153
-
2154
- Bundles the entry points and creates a CDK asset which is uploaded to the bootstrapped CDK S3 bucket during deployment.
2155
-
2156
- The asset can be used by other constructs.
2157
-
2158
- #### Initializers <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.Initializer"></a>
2159
-
2160
- ```typescript
2161
- import { TypeScriptAsset } from '@mrgrain/cdk-esbuild'
2162
-
2163
- new TypeScriptAsset(scope: Construct, id: string, props: AssetProps)
2164
- ```
2165
-
2166
- ##### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.scope"></a>
2167
-
2168
- - *Type:* [`constructs.Construct`](#constructs.Construct)
2169
-
2170
- ---
2171
-
2172
- ##### `id`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.id"></a>
2173
-
2174
- - *Type:* `string`
2175
-
2176
- ---
2177
-
2178
- ##### `props`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptAsset.parameter.props"></a>
2179
-
2180
- - *Type:* [`@mrgrain/cdk-esbuild.AssetProps`](#@mrgrain/cdk-esbuild.AssetProps)
2181
-
2182
- ---
2183
-
2184
-
2185
-
2186
-
2187
-
2188
2413
  ### TypeScriptCode <a name="@mrgrain/cdk-esbuild.TypeScriptCode"></a>
2189
2414
 
2190
2415
  Represents the deployed TypeScript Code.
@@ -2220,54 +2445,8 @@ Default values for `props.buildOptions`:
2220
2445
 
2221
2446
  ---
2222
2447
 
2223
- #### Methods <a name="Methods"></a>
2224
2448
 
2225
- ##### `bind` <a name="@mrgrain/cdk-esbuild.TypeScriptCode.bind"></a>
2226
2449
 
2227
- ```typescript
2228
- public bind(scope: Construct)
2229
- ```
2230
-
2231
- ###### `scope`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.scope"></a>
2232
-
2233
- - *Type:* [`constructs.Construct`](#constructs.Construct)
2234
-
2235
- ---
2236
-
2237
- ##### `bindToResource` <a name="@mrgrain/cdk-esbuild.TypeScriptCode.bindToResource"></a>
2238
-
2239
- ```typescript
2240
- public bindToResource(resource: CfnResource, options?: ResourceBindOptions)
2241
- ```
2242
-
2243
- ###### `resource`<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.resource"></a>
2244
-
2245
- - *Type:* [`aws-cdk-lib.CfnResource`](#aws-cdk-lib.CfnResource)
2246
-
2247
- ---
2248
-
2249
- ###### `options`<sup>Optional</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.parameter.options"></a>
2250
-
2251
- - *Type:* [`aws-cdk-lib.aws_lambda.ResourceBindOptions`](#aws-cdk-lib.aws_lambda.ResourceBindOptions)
2252
-
2253
- ---
2254
-
2255
-
2256
- #### Properties <a name="Properties"></a>
2257
-
2258
- ##### ~~`isInline`~~<sup>Required</sup> <a name="@mrgrain/cdk-esbuild.TypeScriptCode.property.isInline"></a>
2259
-
2260
- - *Deprecated:* this value is ignored since inline is now determined based on the the inlineCode field of CodeConfig returned from bind().
2261
-
2262
- ```typescript
2263
- public readonly isInline: boolean;
2264
- ```
2265
-
2266
- - *Type:* `boolean`
2267
-
2268
- Determines whether this Code is inline code or not.
2269
-
2270
- ---
2271
2450
 
2272
2451
 
2273
2452
  ### TypeScriptSource <a name="@mrgrain/cdk-esbuild.TypeScriptSource"></a>