@aws/nx-plugin 0.101.0 → 0.102.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 +1 -1
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +12 -1
- package/src/py/strands-agent/__snapshots__/generator.spec.ts.snap +12 -1
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +12 -1
- package/src/ts/strands-agent/__snapshots__/generator.spec.ts.snap +12 -1
- package/src/utils/agent-core-constructs/files/cdk/app/agent-core/__nameKebabCase__/__nameKebabCase__.ts.template +9 -1
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ export * from './workspace.js';
|
|
|
16
16
|
exports[`py#mcp-server generator > should match snapshot for BedrockAgentCoreRuntime generated constructs files > mcp-server-construct.ts 1`] = `
|
|
17
17
|
"import { Lazy, Names } from 'aws-cdk-lib';
|
|
18
18
|
import { Platform } from 'aws-cdk-lib/aws-ecr-assets';
|
|
19
|
+
import { Connections, IConnectable } from 'aws-cdk-lib/aws-ec2';
|
|
19
20
|
import { Construct } from 'constructs';
|
|
20
21
|
import * as path from 'path';
|
|
21
22
|
import * as url from 'url';
|
|
@@ -37,7 +38,10 @@ export type SnapshotBedrockServerProps = Omit<
|
|
|
37
38
|
| 'authorizerConfiguration'
|
|
38
39
|
>;
|
|
39
40
|
|
|
40
|
-
export class SnapshotBedrockServer
|
|
41
|
+
export class SnapshotBedrockServer
|
|
42
|
+
extends Construct
|
|
43
|
+
implements IGrantable, IConnectable
|
|
44
|
+
{
|
|
41
45
|
public readonly dockerImage: AgentRuntimeArtifact;
|
|
42
46
|
public readonly agentCoreRuntime: Runtime;
|
|
43
47
|
|
|
@@ -89,6 +93,13 @@ export class SnapshotBedrockServer extends Construct implements IGrantable {
|
|
|
89
93
|
return this.agentCoreRuntime.grantPrincipal;
|
|
90
94
|
}
|
|
91
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Network connections for this agent runtime.
|
|
98
|
+
*/
|
|
99
|
+
public get connections(): Connections {
|
|
100
|
+
return this.agentCoreRuntime.connections;
|
|
101
|
+
}
|
|
102
|
+
|
|
92
103
|
/**
|
|
93
104
|
* Grants IAM permissions to invoke this agent runtime.
|
|
94
105
|
*
|
|
@@ -22,6 +22,7 @@ CMD ["python", "bin/opentelemetry-instrument", "python", "-m", "proj_test_projec
|
|
|
22
22
|
exports[`py#strands-agent generator > should match snapshot for BedrockAgentCoreRuntime generated constructs files > agent-construct.ts 1`] = `
|
|
23
23
|
"import { Lazy, Names } from 'aws-cdk-lib';
|
|
24
24
|
import { Platform } from 'aws-cdk-lib/aws-ecr-assets';
|
|
25
|
+
import { Connections, IConnectable } from 'aws-cdk-lib/aws-ec2';
|
|
25
26
|
import { Construct } from 'constructs';
|
|
26
27
|
import * as path from 'path';
|
|
27
28
|
import * as url from 'url';
|
|
@@ -48,7 +49,10 @@ export type SnapshotBedrockAgentProps = Omit<
|
|
|
48
49
|
| 'authorizerConfiguration'
|
|
49
50
|
>;
|
|
50
51
|
|
|
51
|
-
export class SnapshotBedrockAgent
|
|
52
|
+
export class SnapshotBedrockAgent
|
|
53
|
+
extends Construct
|
|
54
|
+
implements IGrantable, IConnectable
|
|
55
|
+
{
|
|
52
56
|
public readonly dockerImage: AgentRuntimeArtifact;
|
|
53
57
|
public readonly agentCoreRuntime: Runtime;
|
|
54
58
|
|
|
@@ -110,6 +114,13 @@ export class SnapshotBedrockAgent extends Construct implements IGrantable {
|
|
|
110
114
|
return this.agentCoreRuntime.grantPrincipal;
|
|
111
115
|
}
|
|
112
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Network connections for this agent runtime.
|
|
119
|
+
*/
|
|
120
|
+
public get connections(): Connections {
|
|
121
|
+
return this.agentCoreRuntime.connections;
|
|
122
|
+
}
|
|
123
|
+
|
|
113
124
|
/**
|
|
114
125
|
* Grants IAM permissions to invoke this agent runtime.
|
|
115
126
|
*
|
|
@@ -16,6 +16,7 @@ export * from './workspace.js';
|
|
|
16
16
|
exports[`ts#mcp-server generator > should match snapshot for BedrockAgentCoreRuntime generated constructs files > mcp-server-construct.ts 1`] = `
|
|
17
17
|
"import { Lazy, Names } from 'aws-cdk-lib';
|
|
18
18
|
import { Platform } from 'aws-cdk-lib/aws-ecr-assets';
|
|
19
|
+
import { Connections, IConnectable } from 'aws-cdk-lib/aws-ec2';
|
|
19
20
|
import { Construct } from 'constructs';
|
|
20
21
|
import * as path from 'path';
|
|
21
22
|
import * as url from 'url';
|
|
@@ -37,7 +38,10 @@ export type SnapshotBedrockServerProps = Omit<
|
|
|
37
38
|
| 'authorizerConfiguration'
|
|
38
39
|
>;
|
|
39
40
|
|
|
40
|
-
export class SnapshotBedrockServer
|
|
41
|
+
export class SnapshotBedrockServer
|
|
42
|
+
extends Construct
|
|
43
|
+
implements IGrantable, IConnectable
|
|
44
|
+
{
|
|
41
45
|
public readonly dockerImage: AgentRuntimeArtifact;
|
|
42
46
|
public readonly agentCoreRuntime: Runtime;
|
|
43
47
|
|
|
@@ -89,6 +93,13 @@ export class SnapshotBedrockServer extends Construct implements IGrantable {
|
|
|
89
93
|
return this.agentCoreRuntime.grantPrincipal;
|
|
90
94
|
}
|
|
91
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Network connections for this agent runtime.
|
|
98
|
+
*/
|
|
99
|
+
public get connections(): Connections {
|
|
100
|
+
return this.agentCoreRuntime.connections;
|
|
101
|
+
}
|
|
102
|
+
|
|
92
103
|
/**
|
|
93
104
|
* Grants IAM permissions to invoke this agent runtime.
|
|
94
105
|
*
|
|
@@ -23,6 +23,7 @@ CMD [ "node", "--require", "@aws/aws-distro-opentelemetry-node-autoinstrumentati
|
|
|
23
23
|
exports[`ts#strands-agent generator > should match snapshot for BedrockAgentCoreRuntime generated constructs files > agent-construct.ts 1`] = `
|
|
24
24
|
"import { Lazy, Names } from 'aws-cdk-lib';
|
|
25
25
|
import { Platform } from 'aws-cdk-lib/aws-ecr-assets';
|
|
26
|
+
import { Connections, IConnectable } from 'aws-cdk-lib/aws-ec2';
|
|
26
27
|
import { Construct } from 'constructs';
|
|
27
28
|
import * as path from 'path';
|
|
28
29
|
import * as url from 'url';
|
|
@@ -49,7 +50,10 @@ export type SnapshotBedrockAgentProps = Omit<
|
|
|
49
50
|
| 'authorizerConfiguration'
|
|
50
51
|
>;
|
|
51
52
|
|
|
52
|
-
export class SnapshotBedrockAgent
|
|
53
|
+
export class SnapshotBedrockAgent
|
|
54
|
+
extends Construct
|
|
55
|
+
implements IGrantable, IConnectable
|
|
56
|
+
{
|
|
53
57
|
public readonly dockerImage: AgentRuntimeArtifact;
|
|
54
58
|
public readonly agentCoreRuntime: Runtime;
|
|
55
59
|
|
|
@@ -111,6 +115,13 @@ export class SnapshotBedrockAgent extends Construct implements IGrantable {
|
|
|
111
115
|
return this.agentCoreRuntime.grantPrincipal;
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
/**
|
|
119
|
+
* Network connections for this agent runtime.
|
|
120
|
+
*/
|
|
121
|
+
public get connections(): Connections {
|
|
122
|
+
return this.agentCoreRuntime.connections;
|
|
123
|
+
}
|
|
124
|
+
|
|
114
125
|
/**
|
|
115
126
|
* Grants IAM permissions to invoke this agent runtime.
|
|
116
127
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Lazy, Names } from 'aws-cdk-lib';
|
|
2
2
|
import { Platform } from 'aws-cdk-lib/aws-ecr-assets';
|
|
3
|
+
import { Connections, IConnectable } from 'aws-cdk-lib/aws-ec2';
|
|
3
4
|
import { Construct } from 'constructs';
|
|
4
5
|
import * as path from 'path';
|
|
5
6
|
import * as url from 'url';
|
|
@@ -45,7 +46,7 @@ export type <%- nameClassName %>Props = Omit<
|
|
|
45
46
|
};
|
|
46
47
|
<%_ } _%>
|
|
47
48
|
|
|
48
|
-
export class <%- nameClassName %> extends Construct implements IGrantable {
|
|
49
|
+
export class <%- nameClassName %> extends Construct implements IGrantable, IConnectable {
|
|
49
50
|
public readonly dockerImage: AgentRuntimeArtifact;
|
|
50
51
|
public readonly agentCoreRuntime: Runtime;
|
|
51
52
|
|
|
@@ -124,6 +125,13 @@ export class <%- nameClassName %> extends Construct implements IGrantable {
|
|
|
124
125
|
public get grantPrincipal(): IPrincipal {
|
|
125
126
|
return this.agentCoreRuntime.grantPrincipal;
|
|
126
127
|
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Network connections for this agent runtime.
|
|
131
|
+
*/
|
|
132
|
+
public get connections(): Connections {
|
|
133
|
+
return this.agentCoreRuntime.connections;
|
|
134
|
+
}
|
|
127
135
|
<%_ if (auth === 'IAM') { _%>
|
|
128
136
|
|
|
129
137
|
/**
|