@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
|
@@ -17,6 +17,10 @@ import * as outputs from "../types/output";
|
|
|
17
17
|
* accountName: "NAME OF ACCOUNT",
|
|
18
18
|
* accountPassword: "PASSWORD OF ACCOUNT",
|
|
19
19
|
* },
|
|
20
|
+
* certificateBasedAuthProperties: {
|
|
21
|
+
* certificateAuthorityArn: "ARN OF CERTIFICATE AUTHORITY",
|
|
22
|
+
* status: "STATUS OF CERTIFICATE BASED AUTHENTICATION",
|
|
23
|
+
* },
|
|
20
24
|
* });
|
|
21
25
|
* ```
|
|
22
26
|
*
|
|
@@ -44,6 +48,10 @@ export declare class DirectoryConfig extends pulumi.CustomResource {
|
|
|
44
48
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
49
|
*/
|
|
46
50
|
static isInstance(obj: any): obj is DirectoryConfig;
|
|
51
|
+
/**
|
|
52
|
+
* Configuration block for the certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances. See `certificateBasedAuthProperties` below.
|
|
53
|
+
*/
|
|
54
|
+
readonly certificateBasedAuthProperties: pulumi.Output<outputs.appstream.DirectoryConfigCertificateBasedAuthProperties | undefined>;
|
|
47
55
|
/**
|
|
48
56
|
* Date and time, in UTC and extended RFC 3339 format, when the directory config was created.
|
|
49
57
|
*/
|
|
@@ -77,6 +85,10 @@ export declare class DirectoryConfig extends pulumi.CustomResource {
|
|
|
77
85
|
* Input properties used for looking up and filtering DirectoryConfig resources.
|
|
78
86
|
*/
|
|
79
87
|
export interface DirectoryConfigState {
|
|
88
|
+
/**
|
|
89
|
+
* Configuration block for the certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances. See `certificateBasedAuthProperties` below.
|
|
90
|
+
*/
|
|
91
|
+
certificateBasedAuthProperties?: pulumi.Input<inputs.appstream.DirectoryConfigCertificateBasedAuthProperties>;
|
|
80
92
|
/**
|
|
81
93
|
* Date and time, in UTC and extended RFC 3339 format, when the directory config was created.
|
|
82
94
|
*/
|
|
@@ -102,6 +114,10 @@ export interface DirectoryConfigState {
|
|
|
102
114
|
* The set of arguments for constructing a DirectoryConfig resource.
|
|
103
115
|
*/
|
|
104
116
|
export interface DirectoryConfigArgs {
|
|
117
|
+
/**
|
|
118
|
+
* Configuration block for the certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances. See `certificateBasedAuthProperties` below.
|
|
119
|
+
*/
|
|
120
|
+
certificateBasedAuthProperties?: pulumi.Input<inputs.appstream.DirectoryConfigCertificateBasedAuthProperties>;
|
|
105
121
|
/**
|
|
106
122
|
* Fully qualified name of the directory.
|
|
107
123
|
*/
|
|
@@ -21,6 +21,10 @@ const utilities = require("../utilities");
|
|
|
21
21
|
* accountName: "NAME OF ACCOUNT",
|
|
22
22
|
* accountPassword: "PASSWORD OF ACCOUNT",
|
|
23
23
|
* },
|
|
24
|
+
* certificateBasedAuthProperties: {
|
|
25
|
+
* certificateAuthorityArn: "ARN OF CERTIFICATE AUTHORITY",
|
|
26
|
+
* status: "STATUS OF CERTIFICATE BASED AUTHENTICATION",
|
|
27
|
+
* },
|
|
24
28
|
* });
|
|
25
29
|
* ```
|
|
26
30
|
*
|
|
@@ -60,6 +64,7 @@ class DirectoryConfig extends pulumi.CustomResource {
|
|
|
60
64
|
opts = opts || {};
|
|
61
65
|
if (opts.id) {
|
|
62
66
|
const state = argsOrState;
|
|
67
|
+
resourceInputs["certificateBasedAuthProperties"] = state?.certificateBasedAuthProperties;
|
|
63
68
|
resourceInputs["createdTime"] = state?.createdTime;
|
|
64
69
|
resourceInputs["directoryName"] = state?.directoryName;
|
|
65
70
|
resourceInputs["organizationalUnitDistinguishedNames"] = state?.organizationalUnitDistinguishedNames;
|
|
@@ -77,6 +82,7 @@ class DirectoryConfig extends pulumi.CustomResource {
|
|
|
77
82
|
if (args?.serviceAccountCredentials === undefined && !opts.urn) {
|
|
78
83
|
throw new Error("Missing required property 'serviceAccountCredentials'");
|
|
79
84
|
}
|
|
85
|
+
resourceInputs["certificateBasedAuthProperties"] = args?.certificateBasedAuthProperties;
|
|
80
86
|
resourceInputs["directoryName"] = args?.directoryName;
|
|
81
87
|
resourceInputs["organizationalUnitDistinguishedNames"] = args?.organizationalUnitDistinguishedNames;
|
|
82
88
|
resourceInputs["region"] = args?.region;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directoryConfig.js","sourceRoot":"","sources":["../../appstream/directoryConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"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AC;SAClF;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,IAAI,IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,IAAI,IAAI,EAAE,oCAAoC,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvE,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;aACvF;YACD,IAAI,IAAI,EAAE,yBAAyB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5D,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;aAC5E;YACD,cAAc,CAAC,gCAAgC,CAAC,GAAG,IAAI,EAAE,8BAA8B,CAAC;YACxF,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,sCAAsC,CAAC,GAAG,IAAI,EAAE,oCAAoC,CAAC;YACpG,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,EAAE,yBAAyB,CAAC;YAC9E,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA5FL,0CA6FC;AA/EG,gBAAgB;AACO,4BAAY,GAAG,+CAA+C,CAAC"}
|
package/bedrock/agentAgent.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ import * as outputs from "../types/output";
|
|
|
54
54
|
* agentName: "my-agent-name",
|
|
55
55
|
* agentResourceRoleArn: example.arn,
|
|
56
56
|
* idleSessionTtlInSeconds: 500,
|
|
57
|
+
* instruction: "You are a friendly assistant who helps answer questions.",
|
|
57
58
|
* foundationModel: "anthropic.claude-v2",
|
|
58
59
|
* });
|
|
59
60
|
* ```
|
|
@@ -129,7 +130,7 @@ export declare class AgentAgent extends pulumi.CustomResource {
|
|
|
129
130
|
*/
|
|
130
131
|
readonly idleSessionTtlInSeconds: pulumi.Output<number>;
|
|
131
132
|
/**
|
|
132
|
-
* Instructions that tell the agent what it should do and how it should interact with users. The valid range is 40 - 20000 characters.
|
|
133
|
+
* Instructions that tell the agent what it should do and how it should interact with users. If `prepareAgent` is `true` this argument is required. The valid range is 40 - 20000 characters.
|
|
133
134
|
*/
|
|
134
135
|
readonly instruction: pulumi.Output<string>;
|
|
135
136
|
/**
|
|
@@ -229,7 +230,7 @@ export interface AgentAgentState {
|
|
|
229
230
|
*/
|
|
230
231
|
idleSessionTtlInSeconds?: pulumi.Input<number>;
|
|
231
232
|
/**
|
|
232
|
-
* Instructions that tell the agent what it should do and how it should interact with users. The valid range is 40 - 20000 characters.
|
|
233
|
+
* Instructions that tell the agent what it should do and how it should interact with users. If `prepareAgent` is `true` this argument is required. The valid range is 40 - 20000 characters.
|
|
233
234
|
*/
|
|
234
235
|
instruction?: pulumi.Input<string>;
|
|
235
236
|
/**
|
|
@@ -309,7 +310,7 @@ export interface AgentAgentArgs {
|
|
|
309
310
|
*/
|
|
310
311
|
idleSessionTtlInSeconds?: pulumi.Input<number>;
|
|
311
312
|
/**
|
|
312
|
-
* Instructions that tell the agent what it should do and how it should interact with users. The valid range is 40 - 20000 characters.
|
|
313
|
+
* Instructions that tell the agent what it should do and how it should interact with users. If `prepareAgent` is `true` this argument is required. The valid range is 40 - 20000 characters.
|
|
313
314
|
*/
|
|
314
315
|
instruction?: pulumi.Input<string>;
|
|
315
316
|
/**
|
package/bedrock/agentAgent.js
CHANGED
|
@@ -58,6 +58,7 @@ const utilities = require("../utilities");
|
|
|
58
58
|
* agentName: "my-agent-name",
|
|
59
59
|
* agentResourceRoleArn: example.arn,
|
|
60
60
|
* idleSessionTtlInSeconds: 500,
|
|
61
|
+
* instruction: "You are a friendly assistant who helps answer questions.",
|
|
61
62
|
* foundationModel: "anthropic.claude-v2",
|
|
62
63
|
* });
|
|
63
64
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentAgent.js","sourceRoot":"","sources":["../../bedrock/agentAgent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"agentAgent.js","sourceRoot":"","sources":["../../bedrock/agentAgent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA8FD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI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AAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,8BAA8B,CAAC,GAAG,IAAI,EAAE,4BAA4B,CAAC;YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC;YACxE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AArLL,gCAsLC;AAxKG,gBAAgB;AACO,uBAAY,GAAG,mCAAmC,CAAC"}
|
|
@@ -18,6 +18,17 @@ import * as outputs from "../types/output";
|
|
|
18
18
|
*
|
|
19
19
|
* ### Write-Only API Key (Recommended for Production)
|
|
20
20
|
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as aws from "@pulumi/aws";
|
|
24
|
+
*
|
|
25
|
+
* const example = new aws.bedrock.AgentcoreApiKeyCredentialProvider("example", {
|
|
26
|
+
* name: "example-api-key-provider",
|
|
27
|
+
* apiKeyWo: "your-api-key-here",
|
|
28
|
+
* apiKeyWoVersion: 1,
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
21
32
|
* ## Import
|
|
22
33
|
*
|
|
23
34
|
* Using `pulumi import`, import Bedrock AgentCore API Key Credential Provider using the provider name. For example:
|
|
@@ -52,6 +63,11 @@ export declare class AgentcoreApiKeyCredentialProvider extends pulumi.CustomReso
|
|
|
52
63
|
* ARN of the AWS Secrets Manager secret containing the API key.
|
|
53
64
|
*/
|
|
54
65
|
readonly apiKeySecretArns: pulumi.Output<outputs.bedrock.AgentcoreApiKeyCredentialProviderApiKeySecretArn[]>;
|
|
66
|
+
/**
|
|
67
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
68
|
+
* Write-only API key value. Cannot be used with `apiKey`. Must be used together with `apiKeyWoVersion`.
|
|
69
|
+
*/
|
|
70
|
+
readonly apiKeyWo: pulumi.Output<string | undefined>;
|
|
55
71
|
/**
|
|
56
72
|
* Used together with `apiKeyWo` to trigger an update. Increment this value when an update to `apiKeyWo` is required.
|
|
57
73
|
*/
|
|
@@ -95,6 +111,11 @@ export interface AgentcoreApiKeyCredentialProviderState {
|
|
|
95
111
|
* ARN of the AWS Secrets Manager secret containing the API key.
|
|
96
112
|
*/
|
|
97
113
|
apiKeySecretArns?: pulumi.Input<pulumi.Input<inputs.bedrock.AgentcoreApiKeyCredentialProviderApiKeySecretArn>[]>;
|
|
114
|
+
/**
|
|
115
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
116
|
+
* Write-only API key value. Cannot be used with `apiKey`. Must be used together with `apiKeyWoVersion`.
|
|
117
|
+
*/
|
|
118
|
+
apiKeyWo?: pulumi.Input<string>;
|
|
98
119
|
/**
|
|
99
120
|
* Used together with `apiKeyWo` to trigger an update. Increment this value when an update to `apiKeyWo` is required.
|
|
100
121
|
*/
|
|
@@ -126,6 +147,11 @@ export interface AgentcoreApiKeyCredentialProviderArgs {
|
|
|
126
147
|
* **Write-Only API Key (choose one approach):**
|
|
127
148
|
*/
|
|
128
149
|
apiKey?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
|
|
152
|
+
* Write-only API key value. Cannot be used with `apiKey`. Must be used together with `apiKeyWoVersion`.
|
|
153
|
+
*/
|
|
154
|
+
apiKeyWo?: pulumi.Input<string>;
|
|
129
155
|
/**
|
|
130
156
|
* Used together with `apiKeyWo` to trigger an update. Increment this value when an update to `apiKeyWo` is required.
|
|
131
157
|
*/
|
|
@@ -22,6 +22,17 @@ const utilities = require("../utilities");
|
|
|
22
22
|
*
|
|
23
23
|
* ### Write-Only API Key (Recommended for Production)
|
|
24
24
|
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as aws from "@pulumi/aws";
|
|
28
|
+
*
|
|
29
|
+
* const example = new aws.bedrock.AgentcoreApiKeyCredentialProvider("example", {
|
|
30
|
+
* name: "example-api-key-provider",
|
|
31
|
+
* apiKeyWo: "your-api-key-here",
|
|
32
|
+
* apiKeyWoVersion: 1,
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
25
36
|
* ## Import
|
|
26
37
|
*
|
|
27
38
|
* Using `pulumi import`, import Bedrock AgentCore API Key Credential Provider using the provider name. For example:
|
|
@@ -60,6 +71,7 @@ class AgentcoreApiKeyCredentialProvider extends pulumi.CustomResource {
|
|
|
60
71
|
const state = argsOrState;
|
|
61
72
|
resourceInputs["apiKey"] = state?.apiKey;
|
|
62
73
|
resourceInputs["apiKeySecretArns"] = state?.apiKeySecretArns;
|
|
74
|
+
resourceInputs["apiKeyWo"] = state?.apiKeyWo;
|
|
63
75
|
resourceInputs["apiKeyWoVersion"] = state?.apiKeyWoVersion;
|
|
64
76
|
resourceInputs["credentialProviderArn"] = state?.credentialProviderArn;
|
|
65
77
|
resourceInputs["name"] = state?.name;
|
|
@@ -68,6 +80,7 @@ class AgentcoreApiKeyCredentialProvider extends pulumi.CustomResource {
|
|
|
68
80
|
else {
|
|
69
81
|
const args = argsOrState;
|
|
70
82
|
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
83
|
+
resourceInputs["apiKeyWo"] = args?.apiKeyWo ? pulumi.secret(args.apiKeyWo) : undefined;
|
|
71
84
|
resourceInputs["apiKeyWoVersion"] = args?.apiKeyWoVersion;
|
|
72
85
|
resourceInputs["name"] = args?.name;
|
|
73
86
|
resourceInputs["region"] = args?.region;
|
|
@@ -75,7 +88,7 @@ class AgentcoreApiKeyCredentialProvider extends pulumi.CustomResource {
|
|
|
75
88
|
resourceInputs["credentialProviderArn"] = undefined /*out*/;
|
|
76
89
|
}
|
|
77
90
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
78
|
-
const secretOpts = { additionalSecretOutputs: ["apiKey"] };
|
|
91
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey", "apiKeyWo"] };
|
|
79
92
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
80
93
|
super(AgentcoreApiKeyCredentialProvider.__pulumiType, name, resourceInputs, opts);
|
|
81
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcoreApiKeyCredentialProvider.js","sourceRoot":"","sources":["../../bedrock/agentcoreApiKeyCredentialProvider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"agentcoreApiKeyCredentialProvider.js","sourceRoot":"","sources":["../../bedrock/agentcoreApiKeyCredentialProvider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmC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MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,CAAC;QACvE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,iCAAiC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;;AAlGL,8EAmGC;AArFG,gBAAgB;AACO,8CAAY,GAAG,iFAAiF,CAAC"}
|
|
@@ -0,0 +1,202 @@
|
|
|
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. Memory provides persistent storage for AI agent interactions, allowing agents to retain context across conversations and sessions.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### Basic Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as aws from "@pulumi/aws";
|
|
14
|
+
*
|
|
15
|
+
* const assumeRole = aws.iam.getPolicyDocument({
|
|
16
|
+
* statements: [{
|
|
17
|
+
* effect: "Allow",
|
|
18
|
+
* actions: ["sts:AssumeRole"],
|
|
19
|
+
* principals: [{
|
|
20
|
+
* type: "Service",
|
|
21
|
+
* identifiers: ["bedrock-agentcore.amazonaws.com"],
|
|
22
|
+
* }],
|
|
23
|
+
* }],
|
|
24
|
+
* });
|
|
25
|
+
* const example = new aws.iam.Role("example", {
|
|
26
|
+
* name: "bedrock-agentcore-memory-role",
|
|
27
|
+
* assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
|
|
28
|
+
* });
|
|
29
|
+
* const exampleRolePolicyAttachment = new aws.iam.RolePolicyAttachment("example", {
|
|
30
|
+
* role: example.name,
|
|
31
|
+
* policyArn: "arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy",
|
|
32
|
+
* });
|
|
33
|
+
* const exampleAgentcoreMemory = new aws.bedrock.AgentcoreMemory("example", {
|
|
34
|
+
* name: "example-memory",
|
|
35
|
+
* eventExpiryDuration: 30,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ### Memory with Custom Encryption and Role
|
|
40
|
+
*
|
|
41
|
+
* ## Import
|
|
42
|
+
*
|
|
43
|
+
* Using `pulumi import`, import Bedrock AgentCore Memory using the memory ID. For example:
|
|
44
|
+
*
|
|
45
|
+
* ```sh
|
|
46
|
+
* $ pulumi import aws:bedrock/agentcoreMemory:AgentcoreMemory example MEMORY1234567890
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class AgentcoreMemory extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing AgentcoreMemory resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentcoreMemoryState, opts?: pulumi.CustomResourceOptions): AgentcoreMemory;
|
|
60
|
+
/**
|
|
61
|
+
* Returns true if the given object is an instance of AgentcoreMemory. This is designed to work even
|
|
62
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
+
*/
|
|
64
|
+
static isInstance(obj: any): obj is AgentcoreMemory;
|
|
65
|
+
/**
|
|
66
|
+
* ARN of the Memory.
|
|
67
|
+
*/
|
|
68
|
+
readonly arn: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Description of the memory.
|
|
71
|
+
*/
|
|
72
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
|
|
75
|
+
*/
|
|
76
|
+
readonly encryptionKeyArn: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* Number of minutes after which memory events expire. Must be a positive integer.
|
|
79
|
+
*
|
|
80
|
+
* The following arguments are optional:
|
|
81
|
+
*/
|
|
82
|
+
readonly eventExpiryDuration: pulumi.Output<number>;
|
|
83
|
+
/**
|
|
84
|
+
* ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
|
|
85
|
+
*/
|
|
86
|
+
readonly memoryExecutionRoleArn: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Name of the memory.
|
|
89
|
+
*/
|
|
90
|
+
readonly name: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
94
|
+
readonly region: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
97
|
+
*/
|
|
98
|
+
readonly tags: pulumi.Output<{
|
|
99
|
+
[key: string]: string;
|
|
100
|
+
} | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
103
|
+
*/
|
|
104
|
+
readonly tagsAll: pulumi.Output<{
|
|
105
|
+
[key: string]: string;
|
|
106
|
+
}>;
|
|
107
|
+
readonly timeouts: pulumi.Output<outputs.bedrock.AgentcoreMemoryTimeouts | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Create a AgentcoreMemory resource with the given unique name, arguments, and options.
|
|
110
|
+
*
|
|
111
|
+
* @param name The _unique_ name of the resource.
|
|
112
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
113
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
114
|
+
*/
|
|
115
|
+
constructor(name: string, args: AgentcoreMemoryArgs, opts?: pulumi.CustomResourceOptions);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Input properties used for looking up and filtering AgentcoreMemory resources.
|
|
119
|
+
*/
|
|
120
|
+
export interface AgentcoreMemoryState {
|
|
121
|
+
/**
|
|
122
|
+
* ARN of the Memory.
|
|
123
|
+
*/
|
|
124
|
+
arn?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Description of the memory.
|
|
127
|
+
*/
|
|
128
|
+
description?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
|
|
131
|
+
*/
|
|
132
|
+
encryptionKeyArn?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Number of minutes after which memory events expire. Must be a positive integer.
|
|
135
|
+
*
|
|
136
|
+
* The following arguments are optional:
|
|
137
|
+
*/
|
|
138
|
+
eventExpiryDuration?: pulumi.Input<number>;
|
|
139
|
+
/**
|
|
140
|
+
* ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
|
|
141
|
+
*/
|
|
142
|
+
memoryExecutionRoleArn?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Name of the memory.
|
|
145
|
+
*/
|
|
146
|
+
name?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* 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.
|
|
149
|
+
*/
|
|
150
|
+
region?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
153
|
+
*/
|
|
154
|
+
tags?: pulumi.Input<{
|
|
155
|
+
[key: string]: pulumi.Input<string>;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
159
|
+
*/
|
|
160
|
+
tagsAll?: pulumi.Input<{
|
|
161
|
+
[key: string]: pulumi.Input<string>;
|
|
162
|
+
}>;
|
|
163
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreMemoryTimeouts>;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* The set of arguments for constructing a AgentcoreMemory resource.
|
|
167
|
+
*/
|
|
168
|
+
export interface AgentcoreMemoryArgs {
|
|
169
|
+
/**
|
|
170
|
+
* Description of the memory.
|
|
171
|
+
*/
|
|
172
|
+
description?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* ARN of the KMS key used to encrypt the memory. If not provided, AWS managed encryption is used.
|
|
175
|
+
*/
|
|
176
|
+
encryptionKeyArn?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Number of minutes after which memory events expire. Must be a positive integer.
|
|
179
|
+
*
|
|
180
|
+
* The following arguments are optional:
|
|
181
|
+
*/
|
|
182
|
+
eventExpiryDuration: pulumi.Input<number>;
|
|
183
|
+
/**
|
|
184
|
+
* ARN of the IAM role that the memory service assumes to perform operations. Required when using custom memory strategies with model processing.
|
|
185
|
+
*/
|
|
186
|
+
memoryExecutionRoleArn?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Name of the memory.
|
|
189
|
+
*/
|
|
190
|
+
name?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* 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.
|
|
193
|
+
*/
|
|
194
|
+
region?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
|
|
197
|
+
*/
|
|
198
|
+
tags?: pulumi.Input<{
|
|
199
|
+
[key: string]: pulumi.Input<string>;
|
|
200
|
+
}>;
|
|
201
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreMemoryTimeouts>;
|
|
202
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.AgentcoreMemory = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an AWS Bedrock AgentCore Memory. Memory provides persistent storage for AI agent interactions, allowing agents to retain context across conversations and sessions.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as aws from "@pulumi/aws";
|
|
18
|
+
*
|
|
19
|
+
* const assumeRole = aws.iam.getPolicyDocument({
|
|
20
|
+
* statements: [{
|
|
21
|
+
* effect: "Allow",
|
|
22
|
+
* actions: ["sts:AssumeRole"],
|
|
23
|
+
* principals: [{
|
|
24
|
+
* type: "Service",
|
|
25
|
+
* identifiers: ["bedrock-agentcore.amazonaws.com"],
|
|
26
|
+
* }],
|
|
27
|
+
* }],
|
|
28
|
+
* });
|
|
29
|
+
* const example = new aws.iam.Role("example", {
|
|
30
|
+
* name: "bedrock-agentcore-memory-role",
|
|
31
|
+
* assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
|
|
32
|
+
* });
|
|
33
|
+
* const exampleRolePolicyAttachment = new aws.iam.RolePolicyAttachment("example", {
|
|
34
|
+
* role: example.name,
|
|
35
|
+
* policyArn: "arn:aws:iam::aws:policy/AmazonBedrockAgentCoreMemoryBedrockModelInferenceExecutionRolePolicy",
|
|
36
|
+
* });
|
|
37
|
+
* const exampleAgentcoreMemory = new aws.bedrock.AgentcoreMemory("example", {
|
|
38
|
+
* name: "example-memory",
|
|
39
|
+
* eventExpiryDuration: 30,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ### Memory with Custom Encryption and Role
|
|
44
|
+
*
|
|
45
|
+
* ## Import
|
|
46
|
+
*
|
|
47
|
+
* Using `pulumi import`, import Bedrock AgentCore Memory using the memory ID. For example:
|
|
48
|
+
*
|
|
49
|
+
* ```sh
|
|
50
|
+
* $ pulumi import aws:bedrock/agentcoreMemory:AgentcoreMemory example MEMORY1234567890
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
class AgentcoreMemory extends pulumi.CustomResource {
|
|
54
|
+
/**
|
|
55
|
+
* Get an existing AgentcoreMemory resource's state with the given name, ID, and optional extra
|
|
56
|
+
* properties used to qualify the lookup.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resulting resource.
|
|
59
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
+
* @param state Any extra arguments used during the lookup.
|
|
61
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
+
*/
|
|
63
|
+
static get(name, id, state, opts) {
|
|
64
|
+
return new AgentcoreMemory(name, state, { ...opts, id: id });
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of AgentcoreMemory. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj) {
|
|
71
|
+
if (obj === undefined || obj === null) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return obj['__pulumiType'] === AgentcoreMemory.__pulumiType;
|
|
75
|
+
}
|
|
76
|
+
constructor(name, argsOrState, opts) {
|
|
77
|
+
let resourceInputs = {};
|
|
78
|
+
opts = opts || {};
|
|
79
|
+
if (opts.id) {
|
|
80
|
+
const state = argsOrState;
|
|
81
|
+
resourceInputs["arn"] = state?.arn;
|
|
82
|
+
resourceInputs["description"] = state?.description;
|
|
83
|
+
resourceInputs["encryptionKeyArn"] = state?.encryptionKeyArn;
|
|
84
|
+
resourceInputs["eventExpiryDuration"] = state?.eventExpiryDuration;
|
|
85
|
+
resourceInputs["memoryExecutionRoleArn"] = state?.memoryExecutionRoleArn;
|
|
86
|
+
resourceInputs["name"] = state?.name;
|
|
87
|
+
resourceInputs["region"] = state?.region;
|
|
88
|
+
resourceInputs["tags"] = state?.tags;
|
|
89
|
+
resourceInputs["tagsAll"] = state?.tagsAll;
|
|
90
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
const args = argsOrState;
|
|
94
|
+
if (args?.eventExpiryDuration === undefined && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'eventExpiryDuration'");
|
|
96
|
+
}
|
|
97
|
+
resourceInputs["description"] = args?.description;
|
|
98
|
+
resourceInputs["encryptionKeyArn"] = args?.encryptionKeyArn;
|
|
99
|
+
resourceInputs["eventExpiryDuration"] = args?.eventExpiryDuration;
|
|
100
|
+
resourceInputs["memoryExecutionRoleArn"] = args?.memoryExecutionRoleArn;
|
|
101
|
+
resourceInputs["name"] = args?.name;
|
|
102
|
+
resourceInputs["region"] = args?.region;
|
|
103
|
+
resourceInputs["tags"] = args?.tags;
|
|
104
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
105
|
+
resourceInputs["arn"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
super(AgentcoreMemory.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.AgentcoreMemory = AgentcoreMemory;
|
|
113
|
+
/** @internal */
|
|
114
|
+
AgentcoreMemory.__pulumiType = 'aws:bedrock/agentcoreMemory:AgentcoreMemory';
|
|
115
|
+
//# sourceMappingURL=agentcoreMemory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentcoreMemory.js","sourceRoot":"","sources":["../../bedrock/agentcoreMemory.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE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