@pulumi/aws 7.10.0-alpha.1761243490 → 7.10.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/appstream/directoryConfig.d.ts +16 -0
- package/appstream/directoryConfig.js +6 -0
- package/appstream/directoryConfig.js.map +1 -1
- package/bedrock/agentAgent.d.ts +4 -3
- package/bedrock/agentAgent.js +1 -0
- package/bedrock/agentAgent.js.map +1 -1
- package/bedrock/agentcoreApiKeyCredentialProvider.d.ts +26 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.js +14 -1
- package/bedrock/agentcoreApiKeyCredentialProvider.js.map +1 -1
- package/bedrock/agentcoreMemory.d.ts +202 -0
- package/bedrock/agentcoreMemory.js +115 -0
- package/bedrock/agentcoreMemory.js.map +1 -0
- package/bedrock/agentcoreMemoryStrategy.d.ts +275 -0
- package/bedrock/agentcoreMemoryStrategy.js +215 -0
- package/bedrock/agentcoreMemoryStrategy.js.map +1 -0
- package/bedrock/agentcoreOauth2CredentialProvider.d.ts +169 -0
- package/bedrock/agentcoreOauth2CredentialProvider.js +123 -0
- package/bedrock/agentcoreOauth2CredentialProvider.js.map +1 -0
- package/bedrock/agentcoreTokenVaultCmk.d.ts +99 -0
- package/bedrock/agentcoreTokenVaultCmk.js +78 -0
- package/bedrock/agentcoreTokenVaultCmk.js.map +1 -0
- package/bedrock/agentcoreWorkloadIdentity.d.ts +127 -0
- package/bedrock/agentcoreWorkloadIdentity.js +96 -0
- package/bedrock/agentcoreWorkloadIdentity.js.map +1 -0
- package/bedrock/index.d.ts +15 -0
- package/bedrock/index.js +26 -1
- package/bedrock/index.js.map +1 -1
- package/cloudtrail/trail.d.ts +3 -3
- package/docdb/cluster.d.ts +18 -0
- package/docdb/cluster.js +3 -1
- package/docdb/cluster.js.map +1 -1
- package/ecs/taskDefinition.d.ts +3 -3
- package/kms/keyPolicy.d.ts +3 -3
- package/odb/network.d.ts +12 -0
- package/odb/network.js +2 -0
- package/odb/network.js.map +1 -1
- package/organizations/account.d.ts +28 -4
- package/organizations/account.js +2 -0
- package/organizations/account.js.map +1 -1
- package/organizations/getOrganization.d.ts +7 -7
- package/organizations/getOrganization.js +6 -6
- package/organizations/organization.d.ts +13 -13
- package/package.json +2 -2
- package/rds/cluster.d.ts +15 -0
- package/rds/cluster.js +3 -1
- package/rds/cluster.js.map +1 -1
- package/rds/instance.d.ts +15 -0
- package/rds/instance.js +3 -1
- package/rds/instance.js.map +1 -1
- package/redshift/cluster.d.ts +27 -0
- package/redshift/cluster.js +3 -1
- package/redshift/cluster.js.map +1 -1
- package/redshiftserverless/namespace.d.ts +18 -0
- package/redshiftserverless/namespace.js +3 -1
- package/redshiftserverless/namespace.js.map +1 -1
- package/secretsmanager/secretVersion.d.ts +15 -0
- package/secretsmanager/secretVersion.js +3 -1
- package/secretsmanager/secretVersion.js.map +1 -1
- package/ssm/parameter.d.ts +15 -0
- package/ssm/parameter.js +3 -1
- package/ssm/parameter.js.map +1 -1
- package/transfer/hostKey.d.ts +26 -0
- package/transfer/hostKey.js +14 -1
- package/transfer/hostKey.js.map +1 -1
- package/types/input.d.ts +446 -15
- package/types/input.js.map +1 -1
- package/types/output.d.ts +519 -32
- package/types/output.js.map +1 -1
- package/workspaces/getWorkspace.d.ts +19 -0
- package/workspaces/getWorkspace.js.map +1 -1
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages an AWS Bedrock AgentCore Memory Strategy. Memory strategies define how the agent processes and organizes information within a memory, such as semantic understanding, summarization, or custom processing logic.
|
|
6
|
+
*
|
|
7
|
+
* **Important Limitations:**
|
|
8
|
+
*
|
|
9
|
+
* - Each memory can have a maximum of 6 strategies total
|
|
10
|
+
* - Only one strategy of each built-in type (`SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`) can exist per memory
|
|
11
|
+
* - Multiple `CUSTOM` strategies are allowed (subject to the total limit of 6)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ### Semantic Strategy
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as aws from "@pulumi/aws";
|
|
20
|
+
*
|
|
21
|
+
* const semantic = new aws.bedrock.AgentcoreMemoryStrategy("semantic", {
|
|
22
|
+
* name: "semantic-strategy",
|
|
23
|
+
* memoryId: example.id,
|
|
24
|
+
* type: "SEMANTIC",
|
|
25
|
+
* description: "Semantic understanding strategy",
|
|
26
|
+
* namespaces: ["default"],
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### Summarization Strategy
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as aws from "@pulumi/aws";
|
|
35
|
+
*
|
|
36
|
+
* const summary = new aws.bedrock.AgentcoreMemoryStrategy("summary", {
|
|
37
|
+
* name: "summary-strategy",
|
|
38
|
+
* memoryId: example.id,
|
|
39
|
+
* type: "SUMMARIZATION",
|
|
40
|
+
* description: "Text summarization strategy",
|
|
41
|
+
* namespaces: ["{sessionId}"],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ### User Preference Strategy
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as aws from "@pulumi/aws";
|
|
50
|
+
*
|
|
51
|
+
* const userPref = new aws.bedrock.AgentcoreMemoryStrategy("user_pref", {
|
|
52
|
+
* name: "user-preference-strategy",
|
|
53
|
+
* memoryId: example.id,
|
|
54
|
+
* type: "USER_PREFERENCE",
|
|
55
|
+
* description: "User preference tracking strategy",
|
|
56
|
+
* namespaces: ["preferences"],
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ### Custom Strategy with Semantic Override
|
|
61
|
+
*
|
|
62
|
+
* ```typescript
|
|
63
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
64
|
+
* import * as aws from "@pulumi/aws";
|
|
65
|
+
*
|
|
66
|
+
* const customSemantic = new aws.bedrock.AgentcoreMemoryStrategy("custom_semantic", {
|
|
67
|
+
* name: "custom-semantic-strategy",
|
|
68
|
+
* memoryId: example.id,
|
|
69
|
+
* memoryExecutionRoleArn: example.memoryExecutionRoleArn,
|
|
70
|
+
* type: "CUSTOM",
|
|
71
|
+
* description: "Custom semantic processing strategy",
|
|
72
|
+
* namespaces: ["{sessionId}"],
|
|
73
|
+
* configuration: {
|
|
74
|
+
* type: "SEMANTIC_OVERRIDE",
|
|
75
|
+
* consolidation: {
|
|
76
|
+
* appendToPrompt: "Focus on extracting key semantic relationships and concepts",
|
|
77
|
+
* modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
78
|
+
* },
|
|
79
|
+
* extraction: {
|
|
80
|
+
* appendToPrompt: "Extract and categorize semantic information",
|
|
81
|
+
* modelId: "anthropic.claude-3-haiku-20240307-v1:0",
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* ### Custom Strategy with Summary Override
|
|
88
|
+
*
|
|
89
|
+
* ```typescript
|
|
90
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
91
|
+
* import * as aws from "@pulumi/aws";
|
|
92
|
+
*
|
|
93
|
+
* const customSummary = new aws.bedrock.AgentcoreMemoryStrategy("custom_summary", {
|
|
94
|
+
* name: "custom-summary-strategy",
|
|
95
|
+
* memoryId: example.id,
|
|
96
|
+
* type: "CUSTOM",
|
|
97
|
+
* description: "Custom summarization strategy",
|
|
98
|
+
* namespaces: ["summaries"],
|
|
99
|
+
* configuration: {
|
|
100
|
+
* type: "SUMMARY_OVERRIDE",
|
|
101
|
+
* consolidation: {
|
|
102
|
+
* appendToPrompt: "Create concise summaries while preserving key details",
|
|
103
|
+
* modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
104
|
+
* },
|
|
105
|
+
* },
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* ### Custom Strategy with User Preference Override
|
|
110
|
+
*
|
|
111
|
+
* ```typescript
|
|
112
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
113
|
+
* import * as aws from "@pulumi/aws";
|
|
114
|
+
*
|
|
115
|
+
* const customUserPref = new aws.bedrock.AgentcoreMemoryStrategy("custom_user_pref", {
|
|
116
|
+
* name: "custom-user-preference-strategy",
|
|
117
|
+
* memoryId: example.id,
|
|
118
|
+
* type: "CUSTOM",
|
|
119
|
+
* description: "Custom user preference tracking strategy",
|
|
120
|
+
* namespaces: ["user_prefs"],
|
|
121
|
+
* configuration: {
|
|
122
|
+
* type: "USER_PREFERENCE_OVERRIDE",
|
|
123
|
+
* consolidation: {
|
|
124
|
+
* appendToPrompt: "Consolidate user preferences and behavioral patterns",
|
|
125
|
+
* modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
126
|
+
* },
|
|
127
|
+
* extraction: {
|
|
128
|
+
* appendToPrompt: "Extract user preferences and interaction patterns",
|
|
129
|
+
* modelId: "anthropic.claude-3-haiku-20240307-v1:0",
|
|
130
|
+
* },
|
|
131
|
+
* },
|
|
132
|
+
* });
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* ## Import
|
|
136
|
+
*
|
|
137
|
+
* Using `pulumi import`, import Bedrock AgentCore Memory Strategy using the `memory_id,strategy_id`. For example:
|
|
138
|
+
*
|
|
139
|
+
* ```sh
|
|
140
|
+
* $ pulumi import aws:bedrock/agentcoreMemoryStrategy:AgentcoreMemoryStrategy example MEMORY1234567890,STRATEGY0987654321
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
export declare class AgentcoreMemoryStrategy extends pulumi.CustomResource {
|
|
144
|
+
/**
|
|
145
|
+
* Get an existing AgentcoreMemoryStrategy resource's state with the given name, ID, and optional extra
|
|
146
|
+
* properties used to qualify the lookup.
|
|
147
|
+
*
|
|
148
|
+
* @param name The _unique_ name of the resulting resource.
|
|
149
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
150
|
+
* @param state Any extra arguments used during the lookup.
|
|
151
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
152
|
+
*/
|
|
153
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentcoreMemoryStrategyState, opts?: pulumi.CustomResourceOptions): AgentcoreMemoryStrategy;
|
|
154
|
+
/**
|
|
155
|
+
* Returns true if the given object is an instance of AgentcoreMemoryStrategy. This is designed to work even
|
|
156
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
157
|
+
*/
|
|
158
|
+
static isInstance(obj: any): obj is AgentcoreMemoryStrategy;
|
|
159
|
+
/**
|
|
160
|
+
* Custom configuration block. Required when `type` is `CUSTOM`, must be omitted for other types. See `configuration` below.
|
|
161
|
+
*/
|
|
162
|
+
readonly configuration: pulumi.Output<outputs.bedrock.AgentcoreMemoryStrategyConfiguration | undefined>;
|
|
163
|
+
/**
|
|
164
|
+
* Description of the memory strategy.
|
|
165
|
+
*/
|
|
166
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
167
|
+
readonly memoryExecutionRoleArn: pulumi.Output<string | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* ID of the memory to associate with this strategy. Changing this forces a new resource.
|
|
170
|
+
*/
|
|
171
|
+
readonly memoryId: pulumi.Output<string>;
|
|
172
|
+
readonly memoryStrategyId: pulumi.Output<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Name of the memory strategy.
|
|
175
|
+
*/
|
|
176
|
+
readonly name: pulumi.Output<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Set of namespace identifiers where this strategy applies. Namespaces help organize and scope memory content.
|
|
179
|
+
*
|
|
180
|
+
* The following arguments are optional:
|
|
181
|
+
*/
|
|
182
|
+
readonly namespaces: pulumi.Output<string[]>;
|
|
183
|
+
/**
|
|
184
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
185
|
+
*/
|
|
186
|
+
readonly region: pulumi.Output<string>;
|
|
187
|
+
readonly timeouts: pulumi.Output<outputs.bedrock.AgentcoreMemoryStrategyTimeouts | undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* Type of memory strategy. Valid values: `SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`, `CUSTOM`. Changing this forces a new resource. Note that only one strategy of each built-in type (`SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`) can exist per memory.
|
|
190
|
+
*/
|
|
191
|
+
readonly type: pulumi.Output<string>;
|
|
192
|
+
/**
|
|
193
|
+
* Create a AgentcoreMemoryStrategy resource with the given unique name, arguments, and options.
|
|
194
|
+
*
|
|
195
|
+
* @param name The _unique_ name of the resource.
|
|
196
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
197
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
198
|
+
*/
|
|
199
|
+
constructor(name: string, args: AgentcoreMemoryStrategyArgs, opts?: pulumi.CustomResourceOptions);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Input properties used for looking up and filtering AgentcoreMemoryStrategy resources.
|
|
203
|
+
*/
|
|
204
|
+
export interface AgentcoreMemoryStrategyState {
|
|
205
|
+
/**
|
|
206
|
+
* Custom configuration block. Required when `type` is `CUSTOM`, must be omitted for other types. See `configuration` below.
|
|
207
|
+
*/
|
|
208
|
+
configuration?: pulumi.Input<inputs.bedrock.AgentcoreMemoryStrategyConfiguration>;
|
|
209
|
+
/**
|
|
210
|
+
* Description of the memory strategy.
|
|
211
|
+
*/
|
|
212
|
+
description?: pulumi.Input<string>;
|
|
213
|
+
memoryExecutionRoleArn?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* ID of the memory to associate with this strategy. Changing this forces a new resource.
|
|
216
|
+
*/
|
|
217
|
+
memoryId?: pulumi.Input<string>;
|
|
218
|
+
memoryStrategyId?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* Name of the memory strategy.
|
|
221
|
+
*/
|
|
222
|
+
name?: pulumi.Input<string>;
|
|
223
|
+
/**
|
|
224
|
+
* Set of namespace identifiers where this strategy applies. Namespaces help organize and scope memory content.
|
|
225
|
+
*
|
|
226
|
+
* The following arguments are optional:
|
|
227
|
+
*/
|
|
228
|
+
namespaces?: pulumi.Input<pulumi.Input<string>[]>;
|
|
229
|
+
/**
|
|
230
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
231
|
+
*/
|
|
232
|
+
region?: pulumi.Input<string>;
|
|
233
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreMemoryStrategyTimeouts>;
|
|
234
|
+
/**
|
|
235
|
+
* Type of memory strategy. Valid values: `SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`, `CUSTOM`. Changing this forces a new resource. Note that only one strategy of each built-in type (`SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`) can exist per memory.
|
|
236
|
+
*/
|
|
237
|
+
type?: pulumi.Input<string>;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* The set of arguments for constructing a AgentcoreMemoryStrategy resource.
|
|
241
|
+
*/
|
|
242
|
+
export interface AgentcoreMemoryStrategyArgs {
|
|
243
|
+
/**
|
|
244
|
+
* Custom configuration block. Required when `type` is `CUSTOM`, must be omitted for other types. See `configuration` below.
|
|
245
|
+
*/
|
|
246
|
+
configuration?: pulumi.Input<inputs.bedrock.AgentcoreMemoryStrategyConfiguration>;
|
|
247
|
+
/**
|
|
248
|
+
* Description of the memory strategy.
|
|
249
|
+
*/
|
|
250
|
+
description?: pulumi.Input<string>;
|
|
251
|
+
memoryExecutionRoleArn?: pulumi.Input<string>;
|
|
252
|
+
/**
|
|
253
|
+
* ID of the memory to associate with this strategy. Changing this forces a new resource.
|
|
254
|
+
*/
|
|
255
|
+
memoryId: pulumi.Input<string>;
|
|
256
|
+
/**
|
|
257
|
+
* Name of the memory strategy.
|
|
258
|
+
*/
|
|
259
|
+
name?: pulumi.Input<string>;
|
|
260
|
+
/**
|
|
261
|
+
* Set of namespace identifiers where this strategy applies. Namespaces help organize and scope memory content.
|
|
262
|
+
*
|
|
263
|
+
* The following arguments are optional:
|
|
264
|
+
*/
|
|
265
|
+
namespaces: pulumi.Input<pulumi.Input<string>[]>;
|
|
266
|
+
/**
|
|
267
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
268
|
+
*/
|
|
269
|
+
region?: pulumi.Input<string>;
|
|
270
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreMemoryStrategyTimeouts>;
|
|
271
|
+
/**
|
|
272
|
+
* Type of memory strategy. Valid values: `SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`, `CUSTOM`. Changing this forces a new resource. Note that only one strategy of each built-in type (`SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`) can exist per memory.
|
|
273
|
+
*/
|
|
274
|
+
type: pulumi.Input<string>;
|
|
275
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.AgentcoreMemoryStrategy = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an AWS Bedrock AgentCore Memory Strategy. Memory strategies define how the agent processes and organizes information within a memory, such as semantic understanding, summarization, or custom processing logic.
|
|
10
|
+
*
|
|
11
|
+
* **Important Limitations:**
|
|
12
|
+
*
|
|
13
|
+
* - Each memory can have a maximum of 6 strategies total
|
|
14
|
+
* - Only one strategy of each built-in type (`SEMANTIC`, `SUMMARIZATION`, `USER_PREFERENCE`) can exist per memory
|
|
15
|
+
* - Multiple `CUSTOM` strategies are allowed (subject to the total limit of 6)
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ### Semantic Strategy
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as aws from "@pulumi/aws";
|
|
24
|
+
*
|
|
25
|
+
* const semantic = new aws.bedrock.AgentcoreMemoryStrategy("semantic", {
|
|
26
|
+
* name: "semantic-strategy",
|
|
27
|
+
* memoryId: example.id,
|
|
28
|
+
* type: "SEMANTIC",
|
|
29
|
+
* description: "Semantic understanding strategy",
|
|
30
|
+
* namespaces: ["default"],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### Summarization Strategy
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as aws from "@pulumi/aws";
|
|
39
|
+
*
|
|
40
|
+
* const summary = new aws.bedrock.AgentcoreMemoryStrategy("summary", {
|
|
41
|
+
* name: "summary-strategy",
|
|
42
|
+
* memoryId: example.id,
|
|
43
|
+
* type: "SUMMARIZATION",
|
|
44
|
+
* description: "Text summarization strategy",
|
|
45
|
+
* namespaces: ["{sessionId}"],
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* ### User Preference Strategy
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as aws from "@pulumi/aws";
|
|
54
|
+
*
|
|
55
|
+
* const userPref = new aws.bedrock.AgentcoreMemoryStrategy("user_pref", {
|
|
56
|
+
* name: "user-preference-strategy",
|
|
57
|
+
* memoryId: example.id,
|
|
58
|
+
* type: "USER_PREFERENCE",
|
|
59
|
+
* description: "User preference tracking strategy",
|
|
60
|
+
* namespaces: ["preferences"],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* ### Custom Strategy with Semantic Override
|
|
65
|
+
*
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
68
|
+
* import * as aws from "@pulumi/aws";
|
|
69
|
+
*
|
|
70
|
+
* const customSemantic = new aws.bedrock.AgentcoreMemoryStrategy("custom_semantic", {
|
|
71
|
+
* name: "custom-semantic-strategy",
|
|
72
|
+
* memoryId: example.id,
|
|
73
|
+
* memoryExecutionRoleArn: example.memoryExecutionRoleArn,
|
|
74
|
+
* type: "CUSTOM",
|
|
75
|
+
* description: "Custom semantic processing strategy",
|
|
76
|
+
* namespaces: ["{sessionId}"],
|
|
77
|
+
* configuration: {
|
|
78
|
+
* type: "SEMANTIC_OVERRIDE",
|
|
79
|
+
* consolidation: {
|
|
80
|
+
* appendToPrompt: "Focus on extracting key semantic relationships and concepts",
|
|
81
|
+
* modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
82
|
+
* },
|
|
83
|
+
* extraction: {
|
|
84
|
+
* appendToPrompt: "Extract and categorize semantic information",
|
|
85
|
+
* modelId: "anthropic.claude-3-haiku-20240307-v1:0",
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* ### Custom Strategy with Summary Override
|
|
92
|
+
*
|
|
93
|
+
* ```typescript
|
|
94
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
95
|
+
* import * as aws from "@pulumi/aws";
|
|
96
|
+
*
|
|
97
|
+
* const customSummary = new aws.bedrock.AgentcoreMemoryStrategy("custom_summary", {
|
|
98
|
+
* name: "custom-summary-strategy",
|
|
99
|
+
* memoryId: example.id,
|
|
100
|
+
* type: "CUSTOM",
|
|
101
|
+
* description: "Custom summarization strategy",
|
|
102
|
+
* namespaces: ["summaries"],
|
|
103
|
+
* configuration: {
|
|
104
|
+
* type: "SUMMARY_OVERRIDE",
|
|
105
|
+
* consolidation: {
|
|
106
|
+
* appendToPrompt: "Create concise summaries while preserving key details",
|
|
107
|
+
* modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
108
|
+
* },
|
|
109
|
+
* },
|
|
110
|
+
* });
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* ### Custom Strategy with User Preference Override
|
|
114
|
+
*
|
|
115
|
+
* ```typescript
|
|
116
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
117
|
+
* import * as aws from "@pulumi/aws";
|
|
118
|
+
*
|
|
119
|
+
* const customUserPref = new aws.bedrock.AgentcoreMemoryStrategy("custom_user_pref", {
|
|
120
|
+
* name: "custom-user-preference-strategy",
|
|
121
|
+
* memoryId: example.id,
|
|
122
|
+
* type: "CUSTOM",
|
|
123
|
+
* description: "Custom user preference tracking strategy",
|
|
124
|
+
* namespaces: ["user_prefs"],
|
|
125
|
+
* configuration: {
|
|
126
|
+
* type: "USER_PREFERENCE_OVERRIDE",
|
|
127
|
+
* consolidation: {
|
|
128
|
+
* appendToPrompt: "Consolidate user preferences and behavioral patterns",
|
|
129
|
+
* modelId: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
130
|
+
* },
|
|
131
|
+
* extraction: {
|
|
132
|
+
* appendToPrompt: "Extract user preferences and interaction patterns",
|
|
133
|
+
* modelId: "anthropic.claude-3-haiku-20240307-v1:0",
|
|
134
|
+
* },
|
|
135
|
+
* },
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* ## Import
|
|
140
|
+
*
|
|
141
|
+
* Using `pulumi import`, import Bedrock AgentCore Memory Strategy using the `memory_id,strategy_id`. For example:
|
|
142
|
+
*
|
|
143
|
+
* ```sh
|
|
144
|
+
* $ pulumi import aws:bedrock/agentcoreMemoryStrategy:AgentcoreMemoryStrategy example MEMORY1234567890,STRATEGY0987654321
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
class AgentcoreMemoryStrategy extends pulumi.CustomResource {
|
|
148
|
+
/**
|
|
149
|
+
* Get an existing AgentcoreMemoryStrategy resource's state with the given name, ID, and optional extra
|
|
150
|
+
* properties used to qualify the lookup.
|
|
151
|
+
*
|
|
152
|
+
* @param name The _unique_ name of the resulting resource.
|
|
153
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
154
|
+
* @param state Any extra arguments used during the lookup.
|
|
155
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
156
|
+
*/
|
|
157
|
+
static get(name, id, state, opts) {
|
|
158
|
+
return new AgentcoreMemoryStrategy(name, state, { ...opts, id: id });
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Returns true if the given object is an instance of AgentcoreMemoryStrategy. This is designed to work even
|
|
162
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
163
|
+
*/
|
|
164
|
+
static isInstance(obj) {
|
|
165
|
+
if (obj === undefined || obj === null) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
return obj['__pulumiType'] === AgentcoreMemoryStrategy.__pulumiType;
|
|
169
|
+
}
|
|
170
|
+
constructor(name, argsOrState, opts) {
|
|
171
|
+
let resourceInputs = {};
|
|
172
|
+
opts = opts || {};
|
|
173
|
+
if (opts.id) {
|
|
174
|
+
const state = argsOrState;
|
|
175
|
+
resourceInputs["configuration"] = state?.configuration;
|
|
176
|
+
resourceInputs["description"] = state?.description;
|
|
177
|
+
resourceInputs["memoryExecutionRoleArn"] = state?.memoryExecutionRoleArn;
|
|
178
|
+
resourceInputs["memoryId"] = state?.memoryId;
|
|
179
|
+
resourceInputs["memoryStrategyId"] = state?.memoryStrategyId;
|
|
180
|
+
resourceInputs["name"] = state?.name;
|
|
181
|
+
resourceInputs["namespaces"] = state?.namespaces;
|
|
182
|
+
resourceInputs["region"] = state?.region;
|
|
183
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
184
|
+
resourceInputs["type"] = state?.type;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
const args = argsOrState;
|
|
188
|
+
if (args?.memoryId === undefined && !opts.urn) {
|
|
189
|
+
throw new Error("Missing required property 'memoryId'");
|
|
190
|
+
}
|
|
191
|
+
if (args?.namespaces === undefined && !opts.urn) {
|
|
192
|
+
throw new Error("Missing required property 'namespaces'");
|
|
193
|
+
}
|
|
194
|
+
if (args?.type === undefined && !opts.urn) {
|
|
195
|
+
throw new Error("Missing required property 'type'");
|
|
196
|
+
}
|
|
197
|
+
resourceInputs["configuration"] = args?.configuration;
|
|
198
|
+
resourceInputs["description"] = args?.description;
|
|
199
|
+
resourceInputs["memoryExecutionRoleArn"] = args?.memoryExecutionRoleArn;
|
|
200
|
+
resourceInputs["memoryId"] = args?.memoryId;
|
|
201
|
+
resourceInputs["name"] = args?.name;
|
|
202
|
+
resourceInputs["namespaces"] = args?.namespaces;
|
|
203
|
+
resourceInputs["region"] = args?.region;
|
|
204
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
205
|
+
resourceInputs["type"] = args?.type;
|
|
206
|
+
resourceInputs["memoryStrategyId"] = undefined /*out*/;
|
|
207
|
+
}
|
|
208
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
209
|
+
super(AgentcoreMemoryStrategy.__pulumiType, name, resourceInputs, opts);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.AgentcoreMemoryStrategy = AgentcoreMemoryStrategy;
|
|
213
|
+
/** @internal */
|
|
214
|
+
AgentcoreMemoryStrategy.__pulumiType = 'aws:bedrock/agentcoreMemoryStrategy:AgentcoreMemoryStrategy';
|
|
215
|
+
//# sourceMappingURL=agentcoreMemoryStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentcoreMemoryStrategy.js","sourceRoot":"","sources":["../../bedrock/agentcoreMemoryStrategy.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ### GitHub OAuth Provider
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as aws from "@pulumi/aws";
|
|
12
|
+
*
|
|
13
|
+
* const github = new aws.bedrock.AgentcoreOauth2CredentialProvider("github", {
|
|
14
|
+
* name: "github-oauth-provider",
|
|
15
|
+
* credentialProviderVendor: "GithubOauth2",
|
|
16
|
+
* oauth2ProviderConfig: {
|
|
17
|
+
* githubOauth2ProviderConfig: {
|
|
18
|
+
* clientId: "your-github-client-id",
|
|
19
|
+
* clientSecret: "your-github-client-secret",
|
|
20
|
+
* },
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ### Custom OAuth Provider with Discovery URL
|
|
26
|
+
*
|
|
27
|
+
* ### Custom OAuth Provider with Authorization Server Metadata
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as aws from "@pulumi/aws";
|
|
32
|
+
*
|
|
33
|
+
* const keycloak = new aws.bedrock.AgentcoreOauth2CredentialProvider("keycloak", {
|
|
34
|
+
* name: "keycloak-oauth-provider",
|
|
35
|
+
* credentialProviderVendor: "CustomOauth2",
|
|
36
|
+
* oauth2ProviderConfig: {
|
|
37
|
+
* customOauth2ProviderConfig: {
|
|
38
|
+
* clientIdWo: "keycloak-client-id",
|
|
39
|
+
* clientSecretWo: "keycloak-client-secret",
|
|
40
|
+
* clientCredentialsWoVersion: 1,
|
|
41
|
+
* oauthDiscovery: {
|
|
42
|
+
* authorizationServerMetadata: {
|
|
43
|
+
* issuer: "https://auth.company.com/realms/production",
|
|
44
|
+
* authorizationEndpoint: "https://auth.company.com/realms/production/protocol/openid-connect/auth",
|
|
45
|
+
* tokenEndpoint: "https://auth.company.com/realms/production/protocol/openid-connect/token",
|
|
46
|
+
* responseTypes: [
|
|
47
|
+
* "code",
|
|
48
|
+
* "id_token",
|
|
49
|
+
* ],
|
|
50
|
+
* },
|
|
51
|
+
* },
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## Import
|
|
58
|
+
*
|
|
59
|
+
* Using `pulumi import`, import Bedrock AgentCore OAuth2 Credential Provider using the provider name. For example:
|
|
60
|
+
*
|
|
61
|
+
* ```sh
|
|
62
|
+
* $ pulumi import aws:bedrock/agentcoreOauth2CredentialProvider:AgentcoreOauth2CredentialProvider example oauth2-provider-name
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare class AgentcoreOauth2CredentialProvider extends pulumi.CustomResource {
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing AgentcoreOauth2CredentialProvider resource's state with the given name, ID, and optional extra
|
|
68
|
+
* properties used to qualify the lookup.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resulting resource.
|
|
71
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
72
|
+
* @param state Any extra arguments used during the lookup.
|
|
73
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
74
|
+
*/
|
|
75
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentcoreOauth2CredentialProviderState, opts?: pulumi.CustomResourceOptions): AgentcoreOauth2CredentialProvider;
|
|
76
|
+
/**
|
|
77
|
+
* Returns true if the given object is an instance of AgentcoreOauth2CredentialProvider. This is designed to work even
|
|
78
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
79
|
+
*/
|
|
80
|
+
static isInstance(obj: any): obj is AgentcoreOauth2CredentialProvider;
|
|
81
|
+
/**
|
|
82
|
+
* ARN of the AWS Secrets Manager secret containing the client secret.
|
|
83
|
+
*/
|
|
84
|
+
readonly clientSecretArns: pulumi.Output<outputs.bedrock.AgentcoreOauth2CredentialProviderClientSecretArn[]>;
|
|
85
|
+
/**
|
|
86
|
+
* ARN of the OAuth2 credential provider.
|
|
87
|
+
*/
|
|
88
|
+
readonly credentialProviderArn: pulumi.Output<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Vendor of the OAuth2 credential provider. Valid values: `CustomOauth2`, `GithubOauth2`, `GoogleOauth2`, `Microsoft`, `SalesforceOauth2`, `SlackOauth2`.
|
|
91
|
+
*/
|
|
92
|
+
readonly credentialProviderVendor: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the OAuth2 credential provider.
|
|
95
|
+
*/
|
|
96
|
+
readonly name: pulumi.Output<string>;
|
|
97
|
+
/**
|
|
98
|
+
* OAuth2 provider configuration. Must contain exactly one provider type. See `oauth2ProviderConfig` below.
|
|
99
|
+
*
|
|
100
|
+
* The following arguments are optional:
|
|
101
|
+
*/
|
|
102
|
+
readonly oauth2ProviderConfig: pulumi.Output<outputs.bedrock.AgentcoreOauth2CredentialProviderOauth2ProviderConfig | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
105
|
+
*/
|
|
106
|
+
readonly region: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Create a AgentcoreOauth2CredentialProvider resource with the given unique name, arguments, and options.
|
|
109
|
+
*
|
|
110
|
+
* @param name The _unique_ name of the resource.
|
|
111
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
112
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
113
|
+
*/
|
|
114
|
+
constructor(name: string, args: AgentcoreOauth2CredentialProviderArgs, opts?: pulumi.CustomResourceOptions);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Input properties used for looking up and filtering AgentcoreOauth2CredentialProvider resources.
|
|
118
|
+
*/
|
|
119
|
+
export interface AgentcoreOauth2CredentialProviderState {
|
|
120
|
+
/**
|
|
121
|
+
* ARN of the AWS Secrets Manager secret containing the client secret.
|
|
122
|
+
*/
|
|
123
|
+
clientSecretArns?: pulumi.Input<pulumi.Input<inputs.bedrock.AgentcoreOauth2CredentialProviderClientSecretArn>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* ARN of the OAuth2 credential provider.
|
|
126
|
+
*/
|
|
127
|
+
credentialProviderArn?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Vendor of the OAuth2 credential provider. Valid values: `CustomOauth2`, `GithubOauth2`, `GoogleOauth2`, `Microsoft`, `SalesforceOauth2`, `SlackOauth2`.
|
|
130
|
+
*/
|
|
131
|
+
credentialProviderVendor?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Name of the OAuth2 credential provider.
|
|
134
|
+
*/
|
|
135
|
+
name?: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* OAuth2 provider configuration. Must contain exactly one provider type. See `oauth2ProviderConfig` below.
|
|
138
|
+
*
|
|
139
|
+
* The following arguments are optional:
|
|
140
|
+
*/
|
|
141
|
+
oauth2ProviderConfig?: pulumi.Input<inputs.bedrock.AgentcoreOauth2CredentialProviderOauth2ProviderConfig>;
|
|
142
|
+
/**
|
|
143
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
144
|
+
*/
|
|
145
|
+
region?: pulumi.Input<string>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The set of arguments for constructing a AgentcoreOauth2CredentialProvider resource.
|
|
149
|
+
*/
|
|
150
|
+
export interface AgentcoreOauth2CredentialProviderArgs {
|
|
151
|
+
/**
|
|
152
|
+
* Vendor of the OAuth2 credential provider. Valid values: `CustomOauth2`, `GithubOauth2`, `GoogleOauth2`, `Microsoft`, `SalesforceOauth2`, `SlackOauth2`.
|
|
153
|
+
*/
|
|
154
|
+
credentialProviderVendor: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Name of the OAuth2 credential provider.
|
|
157
|
+
*/
|
|
158
|
+
name?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* OAuth2 provider configuration. Must contain exactly one provider type. See `oauth2ProviderConfig` below.
|
|
161
|
+
*
|
|
162
|
+
* The following arguments are optional:
|
|
163
|
+
*/
|
|
164
|
+
oauth2ProviderConfig?: pulumi.Input<inputs.bedrock.AgentcoreOauth2CredentialProviderOauth2ProviderConfig>;
|
|
165
|
+
/**
|
|
166
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
167
|
+
*/
|
|
168
|
+
region?: pulumi.Input<string>;
|
|
169
|
+
}
|