@aws/nx-plugin 0.14.2 → 0.15.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/package.json +2 -2
- package/src/open-api/ts-client/__snapshots__/generator.additional-properties.spec.ts.snap +2236 -0
- package/src/open-api/ts-client/__snapshots__/generator.complex-types.spec.ts.snap +2307 -0
- package/src/open-api/ts-client/__snapshots__/generator.composite-types.spec.ts.snap +1495 -0
- package/src/open-api/ts-client/__snapshots__/generator.primitive-types.spec.ts.snap +1470 -0
- package/src/open-api/ts-client/__snapshots__/generator.request.spec.ts.snap +1138 -0
- package/src/open-api/ts-client/__snapshots__/generator.response.spec.ts.snap +732 -0
- package/src/open-api/ts-client/__snapshots__/generator.tags.spec.ts.snap +743 -0
- package/src/open-api/ts-client/files/client.gen.ts.template +52 -15
- package/src/open-api/ts-client/files/types.gen.ts.template +5 -0
- package/src/open-api/ts-hooks/__snapshots__/generator.spec.tsx.snap +1092 -0
- package/src/open-api/ts-hooks/files/options-proxy.gen.ts.template +210 -0
- package/src/open-api/ts-hooks/generator.d.ts +5 -0
- package/src/open-api/ts-hooks/generator.js +15 -2
- package/src/open-api/ts-hooks/generator.js.map +1 -1
- package/src/open-api/ts-hooks/generator.spec.tsx +1787 -0
- package/src/open-api/utils/codegen-data/types.d.ts +25 -0
- package/src/open-api/utils/codegen-data/types.js +26 -1
- package/src/open-api/utils/codegen-data/types.js.map +1 -1
- package/src/open-api/utils/codegen-data.js +187 -79
- package/src/open-api/utils/codegen-data.js.map +1 -1
- package/src/open-api/utils/normalise.js +11 -1
- package/src/open-api/utils/normalise.js.map +1 -1
- package/src/py/fast-api/react/__snapshots__/generator.spec.ts.snap +120 -10
- package/src/py/fast-api/react/files/website/components/__apiNameClassName__Provider.tsx.template +40 -0
- package/src/py/fast-api/react/files/website/hooks/use__apiNameClassName__.tsx.template +13 -18
- package/src/py/fast-api/react/files/website/hooks/use__apiNameClassName__Client.tsx.template +13 -0
- package/src/py/fast-api/react/generator.js +35 -9
- package/src/py/fast-api/react/generator.js.map +1 -1
- package/src/py/project/generator.js +5 -0
- package/src/py/project/generator.js.map +1 -1
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +7 -9
- package/src/utils/files/http-api/common/constructs/src/core/http-api.ts.template +7 -9
- package/src/open-api/ts-client/__snapshots__/generator.spec.ts.snap +0 -7880
|
@@ -344,7 +344,7 @@ import {
|
|
|
344
344
|
} from 'aws-cdk-lib/aws-apigatewayv2';
|
|
345
345
|
import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
|
|
346
346
|
import { Code, Function, Runtime, Tracing } from 'aws-cdk-lib/aws-lambda';
|
|
347
|
-
import {
|
|
347
|
+
import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
|
|
348
348
|
import { RuntimeConfig } from './runtime-config.js';
|
|
349
349
|
|
|
350
350
|
export interface HttpApiProps {
|
|
@@ -413,14 +413,12 @@ export class HttpApi extends Construct {
|
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
public grantInvokeAccess(
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}),
|
|
423
|
-
);
|
|
416
|
+
public grantInvokeAccess(grantee: IGrantable) {
|
|
417
|
+
Grant.addToPrincipal({
|
|
418
|
+
grantee,
|
|
419
|
+
actions: ['execute-api:Invoke'],
|
|
420
|
+
resourceArns: [this.api.arnForExecuteApi('*', '/*', '*')],
|
|
421
|
+
});
|
|
424
422
|
}
|
|
425
423
|
}
|
|
426
424
|
"
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from 'aws-cdk-lib/aws-apigatewayv2';
|
|
9
9
|
import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
|
|
10
10
|
import { Code, Function, Runtime, Tracing } from 'aws-cdk-lib/aws-lambda';
|
|
11
|
-
import {
|
|
11
|
+
import { Grant, IGrantable } from 'aws-cdk-lib/aws-iam';
|
|
12
12
|
import { RuntimeConfig } from './runtime-config.js';
|
|
13
13
|
|
|
14
14
|
export interface HttpApiProps {
|
|
@@ -77,13 +77,11 @@ export class HttpApi extends Construct {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
public grantInvokeAccess(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}),
|
|
87
|
-
);
|
|
80
|
+
public grantInvokeAccess(grantee: IGrantable) {
|
|
81
|
+
Grant.addToPrincipal({
|
|
82
|
+
grantee,
|
|
83
|
+
actions: ['execute-api:Invoke'],
|
|
84
|
+
resourceArns: [this.api.arnForExecuteApi('*', '/*', '*')],
|
|
85
|
+
});
|
|
88
86
|
}
|
|
89
87
|
}
|