Repository navigation
Commit 641f9e8
authored
fix(events-targets): AwsApi fails when SDKv3 Command expects Uint8Array (#27034)
In #27002 we have migrated the AwsApi Construct to SDKv3.
However some SDKv3 Commands expect a `Uint8Array` in places where SDKv2 previously would accept a `string`.
This is a problem because handler input is passed directly into the SDK calls and the input can only contain JSON data types.
To solves this, we keep a list of SDK actions and parameters that should be coerced to `Uint8Array`.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent c0a46e6 commit 641f9e8
168 files changed
Lines changed: 55382 additions & 42397 deletions
File tree
- packages
- @aws-cdk-testing/framework-integ/test
- aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot
- asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot
- asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- aws-elasticsearch/test
- integ.elasticsearch.custom-kms-key.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- integ.elasticsearch.unsignedbasicauth.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- aws-events-targets/test
- aws-api
- integ.aws-api.js.snapshot
- asset.333b608679b1fd0bcebf74bb5053b8664245c5f7903d27c7f6604bdc3d5b88aa
- asset.582949af1835c40c50e00a38187ee273df77f397293349e1e55dca63f063f8e8
- asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle
- logs/integ.log-group.js.snapshot
- asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- aws-logs-destinations/test/integ.lambda.js.snapshot
- asset.607f3e7ab05e31100a3d8b37a7c8b7c265265ddd82d3625781b6c940b54b6e6a.bundle
- asset.92519e926ac4ba644c6184363d536269cb0557fe7acc3593ae702e5a8b8e81a2.bundle
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- aws-opensearchservice/test
- integ.opensearch.custom-kms-key.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- integ.opensearch.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- integ.opensearch.unsignedbasicauth.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- custom-resources/test/aws-custom-resource
- integ.aws-custom-resource-athena.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- integ.aws-custom-resource-vpc.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- integ.aws-custom-resource.js.snapshot
- asset.a7daad7bacb0e514491653ee581b9a6554d563c3c58935e94abf501b66781c2e
- asset.d64690b87ee4eb4d8bbabafe26f88d8cc557bb629a158ed5fb182b8e48da1bbf
- @aws-cdk
- aws-synthetics-alpha/test/integ.canary-auto-delete-lambda.js.snapshot
- custom-resource-handlers
- lib/aws-events-targets/aws-api-handler
- test/aws-events-targets/aws-api-handler
- sdk-v2-to-v3-adapter
- lib
- test
- aws-cdk-lib/custom-resources/lib/aws-custom-resource
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
| 830 | + | |
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments