@aws/nx-plugin 0.92.0 → 0.93.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.
@@ -960,6 +960,31 @@ THE SOFTWARE.
960
960
 
961
961
  ---
962
962
 
963
+ The following software may be included in this product: @babel/parser (7.29.2)
964
+ This software contains the following license and notice below:
965
+
966
+ Copyright (C) 2012-2014 by various contributors (see AUTHORS)
967
+
968
+ Permission is hereby granted, free of charge, to any person obtaining a copy
969
+ of this software and associated documentation files (the "Software"), to deal
970
+ in the Software without restriction, including without limitation the rights
971
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
972
+ copies of the Software, and to permit persons to whom the Software is
973
+ furnished to do so, subject to the following conditions:
974
+
975
+ The above copyright notice and this permission notice shall be included in
976
+ all copies or substantial portions of the Software.
977
+
978
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
979
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
980
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
981
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
982
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
983
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
984
+ THE SOFTWARE.
985
+
986
+ ---
987
+
963
988
  The following software may be included in this product: @babel/plugin-bugfix-firefox-class-in-computed-class-key (7.27.1)
964
989
  This software contains the following license and notice below:
965
990
 
@@ -14968,7 +14993,7 @@ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR I
14968
14993
 
14969
14994
  ---
14970
14995
 
14971
- The following software may be included in this product: immutable (4.3.7)
14996
+ The following software may be included in this product: immutable (4.3.8)
14972
14997
  This software contains the following license and notice below:
14973
14998
 
14974
14999
  MIT License
@@ -18430,7 +18455,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
18430
18455
 
18431
18456
  ---
18432
18457
 
18433
- The following software may be included in this product: needle (3.3.1)
18458
+ The following software may be included in this product: needle (3.5.0)
18434
18459
  This software contains the following license and notice below:
18435
18460
 
18436
18461
  Copyright (c) Fork, Ltd.
@@ -20019,6 +20044,33 @@ THE SOFTWARE.
20019
20044
 
20020
20045
  ---
20021
20046
 
20047
+ The following software may be included in this product: picomatch (4.0.4)
20048
+ This software contains the following license and notice below:
20049
+
20050
+ The MIT License (MIT)
20051
+
20052
+ Copyright (c) 2017-present, Jon Schlinkert.
20053
+
20054
+ Permission is hereby granted, free of charge, to any person obtaining a copy
20055
+ of this software and associated documentation files (the "Software"), to deal
20056
+ in the Software without restriction, including without limitation the rights
20057
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20058
+ copies of the Software, and to permit persons to whom the Software is
20059
+ furnished to do so, subject to the following conditions:
20060
+
20061
+ The above copyright notice and this permission notice shall be included in
20062
+ all copies or substantial portions of the Software.
20063
+
20064
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20065
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20066
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20067
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20068
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20069
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20070
+ THE SOFTWARE.
20071
+
20072
+ ---
20073
+
20022
20074
  The following software may be included in this product: pify (3.0.0)
20023
20075
  This software contains the following license and notice below:
20024
20076
 
@@ -40626,6 +40678,67 @@ software or this license, under any kind of legal claim.***
40626
40678
 
40627
40679
  ---
40628
40680
 
40681
+ The following software may be included in this product: sax (1.6.0)
40682
+ This software contains the following license and notice below:
40683
+
40684
+ # Blue Oak Model License
40685
+
40686
+ Version 1.0.0
40687
+
40688
+ ## Purpose
40689
+
40690
+ This license gives everyone as much permission to work with
40691
+ this software as possible, while protecting contributors
40692
+ from liability.
40693
+
40694
+ ## Acceptance
40695
+
40696
+ In order to receive this license, you must agree to its
40697
+ rules. The rules of this license are both obligations
40698
+ under that agreement and conditions to your license.
40699
+ You must not do anything with this software that triggers
40700
+ a rule that you cannot or will not follow.
40701
+
40702
+ ## Copyright
40703
+
40704
+ Each contributor licenses you to do everything with this
40705
+ software that would otherwise infringe that contributor's
40706
+ copyright in it.
40707
+
40708
+ ## Notices
40709
+
40710
+ You must ensure that everyone who gets a copy of
40711
+ any part of this software from you, with or without
40712
+ changes, also gets the text of this license or a link to
40713
+ <https://blueoakcouncil.org/license/1.0.0>.
40714
+
40715
+ ## Excuse
40716
+
40717
+ If anyone notifies you in writing that you have not
40718
+ complied with [Notices](#notices), you can keep your
40719
+ license by taking all practical steps to comply within 30
40720
+ days after the notice. If you do not do so, your license
40721
+ ends immediately.
40722
+
40723
+ ## Patent
40724
+
40725
+ Each contributor licenses you to do everything with this
40726
+ software that would otherwise infringe any patent claims
40727
+ they can license or become able to license.
40728
+
40729
+ ## Reliability
40730
+
40731
+ No contributor can revoke this license.
40732
+
40733
+ ## No Liability
40734
+
40735
+ ***As far as the law allows, this software comes as is,
40736
+ without any warranty or condition, and no contributor
40737
+ will be liable to anyone for any damages related to this
40738
+ software or this license, under any kind of legal claim.***
40739
+
40740
+ ---
40741
+
40629
40742
  The following software may be included in this product: json-schema (0.4.0)
40630
40743
  This software contains the following license and notice below:
40631
40744
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/nx-plugin",
3
- "version": "0.92.0",
3
+ "version": "0.93.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/awslabs/nx-plugin-for-aws.git",
@@ -25,7 +25,7 @@ import {
25
25
  Runtime,
26
26
  RuntimeProps,
27
27
  } from '@aws-cdk/aws-bedrock-agentcore-alpha';
28
- import { IGrantable } from 'aws-cdk-lib/aws-iam';
28
+ import { IGrantable, IPrincipal, Grant } from 'aws-cdk-lib/aws-iam';
29
29
  import { RuntimeConfig } from '../../../core/runtime-config.js';
30
30
 
31
31
  export type SnapshotBedrockServerProps = Omit<
@@ -36,7 +36,7 @@ export type SnapshotBedrockServerProps = Omit<
36
36
  | 'authorizerConfiguration'
37
37
  >;
38
38
 
39
- export class SnapshotBedrockServer extends Construct {
39
+ export class SnapshotBedrockServer extends Construct implements IGrantable {
40
40
  public readonly dockerImage: AgentRuntimeArtifact;
41
41
  public readonly agentCoreRuntime: Runtime;
42
42
 
@@ -82,6 +82,13 @@ export class SnapshotBedrockServer extends Construct {
82
82
  });
83
83
  }
84
84
 
85
+ /**
86
+ * The principal to grant permissions to.
87
+ */
88
+ public get grantPrincipal(): IPrincipal {
89
+ return this.agentCoreRuntime.grantPrincipal;
90
+ }
91
+
85
92
  /**
86
93
  * Grants IAM permissions to invoke this agent runtime.
87
94
  *
@@ -89,6 +96,15 @@ export class SnapshotBedrockServer extends Construct {
89
96
  */
90
97
  public grantInvokeAccess(grantee: IGrantable) {
91
98
  this.agentCoreRuntime.grantInvoke(grantee);
99
+
100
+ Grant.addToPrincipal({
101
+ grantee,
102
+ actions: ['bedrock-agentcore:InvokeAgentRuntimeWithWebSocketStream'],
103
+ resourceArns: [
104
+ this.agentCoreRuntime.agentRuntimeArn,
105
+ \`\${this.agentCoreRuntime.agentRuntimeArn}/*\`,
106
+ ],
107
+ });
92
108
  }
93
109
  }
94
110
  "
@@ -31,7 +31,7 @@ import {
31
31
  Runtime,
32
32
  RuntimeProps,
33
33
  } from '@aws-cdk/aws-bedrock-agentcore-alpha';
34
- import { IGrantable } from 'aws-cdk-lib/aws-iam';
34
+ import { IGrantable, IPrincipal, Grant } from 'aws-cdk-lib/aws-iam';
35
35
  import { RuntimeConfig } from '../../../core/runtime-config.js';
36
36
 
37
37
  export type SnapshotBedrockAgentProps = Omit<
@@ -42,7 +42,7 @@ export type SnapshotBedrockAgentProps = Omit<
42
42
  | 'authorizerConfiguration'
43
43
  >;
44
44
 
45
- export class SnapshotBedrockAgent extends Construct {
45
+ export class SnapshotBedrockAgent extends Construct implements IGrantable {
46
46
  public readonly dockerImage: AgentRuntimeArtifact;
47
47
  public readonly agentCoreRuntime: Runtime;
48
48
 
@@ -84,6 +84,13 @@ export class SnapshotBedrockAgent extends Construct {
84
84
  });
85
85
  }
86
86
 
87
+ /**
88
+ * The principal to grant permissions to.
89
+ */
90
+ public get grantPrincipal(): IPrincipal {
91
+ return this.agentCoreRuntime.grantPrincipal;
92
+ }
93
+
87
94
  /**
88
95
  * Grants IAM permissions to invoke this agent runtime.
89
96
  *
@@ -91,6 +98,15 @@ export class SnapshotBedrockAgent extends Construct {
91
98
  */
92
99
  public grantInvokeAccess(grantee: IGrantable) {
93
100
  this.agentCoreRuntime.grantInvoke(grantee);
101
+
102
+ Grant.addToPrincipal({
103
+ grantee,
104
+ actions: ['bedrock-agentcore:InvokeAgentRuntimeWithWebSocketStream'],
105
+ resourceArns: [
106
+ this.agentCoreRuntime.agentRuntimeArn,
107
+ \`\${this.agentCoreRuntime.agentRuntimeArn}/*\`,
108
+ ],
109
+ });
94
110
  }
95
111
  }
96
112
  "
@@ -25,7 +25,7 @@ import {
25
25
  Runtime,
26
26
  RuntimeProps,
27
27
  } from '@aws-cdk/aws-bedrock-agentcore-alpha';
28
- import { IGrantable } from 'aws-cdk-lib/aws-iam';
28
+ import { IGrantable, IPrincipal, Grant } from 'aws-cdk-lib/aws-iam';
29
29
  import { RuntimeConfig } from '../../../core/runtime-config.js';
30
30
 
31
31
  export type SnapshotBedrockServerProps = Omit<
@@ -36,7 +36,7 @@ export type SnapshotBedrockServerProps = Omit<
36
36
  | 'authorizerConfiguration'
37
37
  >;
38
38
 
39
- export class SnapshotBedrockServer extends Construct {
39
+ export class SnapshotBedrockServer extends Construct implements IGrantable {
40
40
  public readonly dockerImage: AgentRuntimeArtifact;
41
41
  public readonly agentCoreRuntime: Runtime;
42
42
 
@@ -82,6 +82,13 @@ export class SnapshotBedrockServer extends Construct {
82
82
  });
83
83
  }
84
84
 
85
+ /**
86
+ * The principal to grant permissions to.
87
+ */
88
+ public get grantPrincipal(): IPrincipal {
89
+ return this.agentCoreRuntime.grantPrincipal;
90
+ }
91
+
85
92
  /**
86
93
  * Grants IAM permissions to invoke this agent runtime.
87
94
  *
@@ -89,6 +96,15 @@ export class SnapshotBedrockServer extends Construct {
89
96
  */
90
97
  public grantInvokeAccess(grantee: IGrantable) {
91
98
  this.agentCoreRuntime.grantInvoke(grantee);
99
+
100
+ Grant.addToPrincipal({
101
+ grantee,
102
+ actions: ['bedrock-agentcore:InvokeAgentRuntimeWithWebSocketStream'],
103
+ resourceArns: [
104
+ this.agentCoreRuntime.agentRuntimeArn,
105
+ \`\${this.agentCoreRuntime.agentRuntimeArn}/*\`,
106
+ ],
107
+ });
92
108
  }
93
109
  }
94
110
  "
@@ -33,7 +33,7 @@ import {
33
33
  Runtime,
34
34
  RuntimeProps,
35
35
  } from '@aws-cdk/aws-bedrock-agentcore-alpha';
36
- import { IGrantable } from 'aws-cdk-lib/aws-iam';
36
+ import { IGrantable, IPrincipal, Grant } from 'aws-cdk-lib/aws-iam';
37
37
  import { RuntimeConfig } from '../../../core/runtime-config.js';
38
38
 
39
39
  export type SnapshotBedrockAgentProps = Omit<
@@ -44,7 +44,7 @@ export type SnapshotBedrockAgentProps = Omit<
44
44
  | 'authorizerConfiguration'
45
45
  >;
46
46
 
47
- export class SnapshotBedrockAgent extends Construct {
47
+ export class SnapshotBedrockAgent extends Construct implements IGrantable {
48
48
  public readonly dockerImage: AgentRuntimeArtifact;
49
49
  public readonly agentCoreRuntime: Runtime;
50
50
 
@@ -86,6 +86,13 @@ export class SnapshotBedrockAgent extends Construct {
86
86
  });
87
87
  }
88
88
 
89
+ /**
90
+ * The principal to grant permissions to.
91
+ */
92
+ public get grantPrincipal(): IPrincipal {
93
+ return this.agentCoreRuntime.grantPrincipal;
94
+ }
95
+
89
96
  /**
90
97
  * Grants IAM permissions to invoke this agent runtime.
91
98
  *
@@ -93,6 +100,15 @@ export class SnapshotBedrockAgent extends Construct {
93
100
  */
94
101
  public grantInvokeAccess(grantee: IGrantable) {
95
102
  this.agentCoreRuntime.grantInvoke(grantee);
103
+
104
+ Grant.addToPrincipal({
105
+ grantee,
106
+ actions: ['bedrock-agentcore:InvokeAgentRuntimeWithWebSocketStream'],
107
+ resourceArns: [
108
+ this.agentCoreRuntime.agentRuntimeArn,
109
+ \`\${this.agentCoreRuntime.agentRuntimeArn}/*\`,
110
+ ],
111
+ });
96
112
  }
97
113
  }
98
114
  "
@@ -13,9 +13,7 @@ import {
13
13
  RuntimeAuthorizerConfiguration,
14
14
  <%_ } _%>
15
15
  } from '@aws-cdk/aws-bedrock-agentcore-alpha';
16
- <%_ if (auth === 'IAM') { _%>
17
- import { IGrantable } from 'aws-cdk-lib/aws-iam';
18
- <%_ } _%>
16
+ import { IGrantable, IPrincipal<%_ if (auth === 'IAM') { _%>, Grant<%_ } _%> } from 'aws-cdk-lib/aws-iam';
19
17
  <%_ if (auth === 'Cognito') { _%>
20
18
  import { IUserPool, IUserPoolClient } from 'aws-cdk-lib/aws-cognito';
21
19
  <%_ } _%>
@@ -47,7 +45,7 @@ export type <%- nameClassName %>Props = Omit<
47
45
  };
48
46
  <%_ } _%>
49
47
 
50
- export class <%- nameClassName %> extends Construct {
48
+ export class <%- nameClassName %> extends Construct implements IGrantable {
51
49
  public readonly dockerImage: AgentRuntimeArtifact;
52
50
  public readonly agentCoreRuntime: Runtime;
53
51
 
@@ -104,6 +102,13 @@ export class <%- nameClassName %> extends Construct {
104
102
  <%- nameClassName %>: this.agentCoreRuntime.agentRuntimeArn,
105
103
  });
106
104
  }
105
+
106
+ /**
107
+ * The principal to grant permissions to.
108
+ */
109
+ public get grantPrincipal(): IPrincipal {
110
+ return this.agentCoreRuntime.grantPrincipal;
111
+ }
107
112
  <%_ if (auth === 'IAM') { _%>
108
113
 
109
114
  /**
@@ -113,6 +118,15 @@ export class <%- nameClassName %> extends Construct {
113
118
  */
114
119
  public grantInvokeAccess(grantee: IGrantable) {
115
120
  this.agentCoreRuntime.grantInvoke(grantee);
121
+
122
+ Grant.addToPrincipal({
123
+ grantee,
124
+ actions: ['bedrock-agentcore:InvokeAgentRuntimeWithWebSocketStream'],
125
+ resourceArns: [
126
+ this.agentCoreRuntime.agentRuntimeArn,
127
+ `${this.agentCoreRuntime.agentRuntimeArn}/*`,
128
+ ],
129
+ });
116
130
  }
117
131
  <%_ } _%>
118
132
  }