@pulumi/aws 7.32.0-alpha.1780014499 → 7.32.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/acm/certificate.d.ts +44 -0
- package/acm/certificate.d.ts.map +1 -1
- package/acm/certificate.js +34 -1
- package/acm/certificate.js.map +1 -1
- package/arcregionswitch/plan.d.ts +18 -0
- package/arcregionswitch/plan.d.ts.map +1 -1
- package/arcregionswitch/plan.js +8 -0
- package/arcregionswitch/plan.js.map +1 -1
- package/bedrock/agentcoreOnlineEvaluationConfig.d.ts +320 -0
- package/bedrock/agentcoreOnlineEvaluationConfig.d.ts.map +1 -0
- package/bedrock/agentcoreOnlineEvaluationConfig.js +228 -0
- package/bedrock/agentcoreOnlineEvaluationConfig.js.map +1 -0
- package/bedrock/agentcorePolicyEngine.d.ts +204 -0
- package/bedrock/agentcorePolicyEngine.d.ts.map +1 -0
- package/bedrock/agentcorePolicyEngine.js +150 -0
- package/bedrock/agentcorePolicyEngine.js.map +1 -0
- package/bedrock/agentcoreResourcePolicy.d.ts +128 -0
- package/bedrock/agentcoreResourcePolicy.d.ts.map +1 -0
- package/bedrock/agentcoreResourcePolicy.js +131 -0
- package/bedrock/agentcoreResourcePolicy.js.map +1 -0
- package/bedrock/index.d.ts +9 -0
- package/bedrock/index.d.ts.map +1 -1
- package/bedrock/index.js +16 -1
- package/bedrock/index.js.map +1 -1
- package/cognito/getUserPoolClient.d.ts +1 -1
- package/cognito/managedUserPoolClient.d.ts +3 -3
- package/cognito/userPoolClient.d.ts +3 -3
- package/dms/s3endpoint.d.ts +3 -3
- package/ec2/getRoute.d.ts +9 -0
- package/ec2/getRoute.d.ts.map +1 -1
- package/ec2/getRoute.js +2 -0
- package/ec2/getRoute.js.map +1 -1
- package/ec2/route.d.ts +12 -0
- package/ec2/route.d.ts.map +1 -1
- package/ec2/route.js +2 -0
- package/ec2/route.js.map +1 -1
- package/eks/cluster.d.ts +4 -4
- package/eks/cluster.js +4 -4
- package/getArn.d.ts +13 -2
- package/getArn.d.ts.map +1 -1
- package/getArn.js.map +1 -1
- package/getDefaultTags.d.ts +9 -0
- package/getDefaultTags.d.ts.map +1 -1
- package/getDefaultTags.js.map +1 -1
- package/getIpRanges.d.ts +9 -0
- package/getIpRanges.d.ts.map +1 -1
- package/getIpRanges.js.map +1 -1
- package/getPartition.d.ts +12 -3
- package/getPartition.d.ts.map +1 -1
- package/getPartition.js.map +1 -1
- package/getRegion.d.ts +9 -3
- package/getRegion.d.ts.map +1 -1
- package/getRegion.js.map +1 -1
- package/getRegions.d.ts +9 -3
- package/getRegions.d.ts.map +1 -1
- package/getRegions.js.map +1 -1
- package/getService.d.ts +9 -0
- package/getService.d.ts.map +1 -1
- package/getService.js.map +1 -1
- package/msk/replicator.d.ts +12 -0
- package/msk/replicator.d.ts.map +1 -1
- package/msk/replicator.js +2 -0
- package/msk/replicator.js.map +1 -1
- package/package.json +2 -2
- package/pinpoint/admChannel.d.ts +8 -8
- package/pinpoint/admChannel.js +2 -2
- package/pinpoint/apnsChannel.d.ts +26 -53
- package/pinpoint/apnsChannel.d.ts.map +1 -1
- package/pinpoint/apnsChannel.js +2 -2
- package/pinpoint/apnsChannel.js.map +1 -1
- package/pinpoint/apnsSandboxChannel.d.ts +26 -53
- package/pinpoint/apnsSandboxChannel.d.ts.map +1 -1
- package/pinpoint/apnsSandboxChannel.js +2 -2
- package/pinpoint/apnsSandboxChannel.js.map +1 -1
- package/pinpoint/apnsVoipChannel.d.ts +26 -53
- package/pinpoint/apnsVoipChannel.d.ts.map +1 -1
- package/pinpoint/apnsVoipChannel.js +2 -2
- package/pinpoint/apnsVoipChannel.js.map +1 -1
- package/pinpoint/apnsVoipSandboxChannel.d.ts +26 -53
- package/pinpoint/apnsVoipSandboxChannel.d.ts.map +1 -1
- package/pinpoint/apnsVoipSandboxChannel.js +2 -2
- package/pinpoint/apnsVoipSandboxChannel.js.map +1 -1
- package/pinpoint/app.d.ts +51 -33
- package/pinpoint/app.d.ts.map +1 -1
- package/pinpoint/app.js +3 -3
- package/pinpoint/app.js.map +1 -1
- package/pinpoint/baiduChannel.d.ts +8 -8
- package/pinpoint/baiduChannel.js +2 -2
- package/pinpoint/emailChannel.d.ts +46 -46
- package/pinpoint/emailChannel.js +3 -3
- package/pinpoint/emailTemplate.d.ts +30 -15
- package/pinpoint/emailTemplate.d.ts.map +1 -1
- package/pinpoint/emailTemplate.js +3 -3
- package/pinpoint/emailTemplate.js.map +1 -1
- package/pinpoint/eventStream.d.ts +21 -21
- package/pinpoint/eventStream.js +3 -3
- package/pinpoint/gcmChannel.d.ts +26 -8
- package/pinpoint/gcmChannel.d.ts.map +1 -1
- package/pinpoint/gcmChannel.js +2 -2
- package/pinpoint/gcmChannel.js.map +1 -1
- package/pinpoint/smsChannel.d.ts +4 -2
- package/pinpoint/smsChannel.d.ts.map +1 -1
- package/pinpoint/smsChannel.js +4 -2
- package/pinpoint/smsChannel.js.map +1 -1
- package/pinpoint/smsvoicev2ConfigurationSet.d.ts +11 -11
- package/pinpoint/smsvoicev2OptOutList.d.ts +5 -5
- package/pinpoint/smsvoicev2PhoneNumber.d.ts +30 -21
- package/pinpoint/smsvoicev2PhoneNumber.d.ts.map +1 -1
- package/pinpoint/smsvoicev2PhoneNumber.js.map +1 -1
- package/s3control/index.d.ts +3 -0
- package/s3control/index.d.ts.map +1 -1
- package/s3control/index.js +6 -1
- package/s3control/index.js.map +1 -1
- package/s3control/multiRegionAccessPoint.d.ts +25 -6
- package/s3control/multiRegionAccessPoint.d.ts.map +1 -1
- package/s3control/multiRegionAccessPoint.js +13 -0
- package/s3control/multiRegionAccessPoint.js.map +1 -1
- package/s3control/multiRegionAccessPointRoutes.d.ts +172 -0
- package/s3control/multiRegionAccessPointRoutes.d.ts.map +1 -0
- package/s3control/multiRegionAccessPointRoutes.js +169 -0
- package/s3control/multiRegionAccessPointRoutes.js.map +1 -0
- package/secretsmanager/getSecretVersion.d.ts +8 -1
- package/secretsmanager/getSecretVersion.d.ts.map +1 -1
- package/secretsmanager/getSecretVersion.js.map +1 -1
- package/secretsmanager/getSecretVersions.d.ts +22 -3
- package/secretsmanager/getSecretVersions.d.ts.map +1 -1
- package/secretsmanager/getSecretVersions.js.map +1 -1
- package/secretsmanager/secretVersion.d.ts +16 -2
- package/secretsmanager/secretVersion.d.ts.map +1 -1
- package/secretsmanager/secretVersion.js +2 -0
- package/secretsmanager/secretVersion.js.map +1 -1
- package/sesv2/configurationSetEventDestination.d.ts +1 -1
- package/sesv2/configurationSetEventDestination.js +1 -1
- package/ssm/resourceDataSync.d.ts +21 -14
- package/ssm/resourceDataSync.d.ts.map +1 -1
- package/ssm/resourceDataSync.js +21 -14
- package/ssm/resourceDataSync.js.map +1 -1
- package/transfer/getServer.d.ts +4 -0
- package/transfer/getServer.d.ts.map +1 -1
- package/transfer/getServer.js.map +1 -1
- package/transfer/server.d.ts +12 -0
- package/transfer/server.d.ts.map +1 -1
- package/transfer/server.js +2 -0
- package/transfer/server.js.map +1 -1
- package/types/input.d.ts +384 -25
- package/types/input.d.ts.map +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +394 -31
- package/types/output.d.ts.map +1 -1
- package/types/output.js.map +1 -1
|
@@ -0,0 +1,228 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.AgentcoreOnlineEvaluationConfig = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manages an AWS Bedrock AgentCore Online Evaluation Configuration. Online evaluation configurations continuously monitor agent performance by sampling live traffic from CloudWatch logs and applying evaluators to assess agent quality in production.
|
|
33
|
+
*
|
|
34
|
+
* > **Note:** CloudWatch Transaction Serach must be [enabled](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Enable-TransactionSearch.html) before using this resource.
|
|
35
|
+
*
|
|
36
|
+
* ## Example Usage
|
|
37
|
+
*
|
|
38
|
+
* ### Basic Usage
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as aws from "@pulumi/aws";
|
|
43
|
+
*
|
|
44
|
+
* const example = new aws.iam.Role("example", {
|
|
45
|
+
* name: "agentcore-eval-role",
|
|
46
|
+
* assumeRolePolicy: JSON.stringify({
|
|
47
|
+
* Version: "2012-10-17",
|
|
48
|
+
* Statement: [{
|
|
49
|
+
* Effect: "Allow",
|
|
50
|
+
* Action: "sts:AssumeRole",
|
|
51
|
+
* Principal: {
|
|
52
|
+
* Service: "bedrock-agentcore.amazonaws.com",
|
|
53
|
+
* },
|
|
54
|
+
* }],
|
|
55
|
+
* }),
|
|
56
|
+
* });
|
|
57
|
+
* const exampleLogGroup = new aws.cloudwatch.LogGroup("example", {name: "/aws/agentcore/my-agent-traces"});
|
|
58
|
+
* const exampleAgentcoreOnlineEvaluationConfig = new aws.bedrock.AgentcoreOnlineEvaluationConfig("example", {
|
|
59
|
+
* onlineEvaluationConfigName: "my_evaluation_config",
|
|
60
|
+
* description: "Continuous evaluation of agent performance",
|
|
61
|
+
* enableOnCreate: true,
|
|
62
|
+
* evaluationExecutionRoleArn: example.arn,
|
|
63
|
+
* dataSourceConfig: {
|
|
64
|
+
* cloudwatchLogs: {
|
|
65
|
+
* logGroupNames: [exampleLogGroup.name],
|
|
66
|
+
* serviceNames: ["my_agent_service"],
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* evaluators: [
|
|
70
|
+
* {
|
|
71
|
+
* evaluatorId: "Builtin.Helpfulness",
|
|
72
|
+
* },
|
|
73
|
+
* {
|
|
74
|
+
* evaluatorId: "Builtin.GoalSuccessRate",
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* rule: {
|
|
78
|
+
* samplingConfig: {
|
|
79
|
+
* samplingPercentage: 10,
|
|
80
|
+
* },
|
|
81
|
+
* },
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* ### With Filters and Session Config
|
|
86
|
+
*
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
+
* import * as aws from "@pulumi/aws";
|
|
90
|
+
*
|
|
91
|
+
* const filtered = new aws.bedrock.AgentcoreOnlineEvaluationConfig("filtered", {
|
|
92
|
+
* onlineEvaluationConfigName: "filtered_evaluation",
|
|
93
|
+
* enableOnCreate: true,
|
|
94
|
+
* evaluationExecutionRoleArn: exampleAwsIamRole.arn,
|
|
95
|
+
* dataSourceConfig: {
|
|
96
|
+
* cloudwatchLogs: {
|
|
97
|
+
* logGroupNames: [example.name],
|
|
98
|
+
* serviceNames: ["my_agent_service"],
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* evaluators: [{
|
|
102
|
+
* evaluatorId: "Builtin.Helpfulness",
|
|
103
|
+
* }],
|
|
104
|
+
* rule: {
|
|
105
|
+
* samplingConfig: {
|
|
106
|
+
* samplingPercentage: 50,
|
|
107
|
+
* },
|
|
108
|
+
* filters: [{
|
|
109
|
+
* key: "environment",
|
|
110
|
+
* operator: "Equals",
|
|
111
|
+
* value: {
|
|
112
|
+
* stringValue: "production",
|
|
113
|
+
* },
|
|
114
|
+
* }],
|
|
115
|
+
* sessionConfig: {
|
|
116
|
+
* sessionTimeoutMinutes: 30,
|
|
117
|
+
* },
|
|
118
|
+
* },
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* ## Import
|
|
123
|
+
*
|
|
124
|
+
* ### Identity Schema
|
|
125
|
+
*
|
|
126
|
+
* #### Required
|
|
127
|
+
*
|
|
128
|
+
* - `onlineEvaluationConfigId` (String) ID of the online evaluation config.
|
|
129
|
+
*
|
|
130
|
+
* #### Optional
|
|
131
|
+
*
|
|
132
|
+
* * `accountId` (String) AWS Account where this resource is managed.
|
|
133
|
+
* * `region` (String) Region where this resource is managed.
|
|
134
|
+
*
|
|
135
|
+
* Using `pulumi import`, import Bedrock AgentCore Online Evaluation Configs using `onlineEvaluationConfigId`. For example:
|
|
136
|
+
*
|
|
137
|
+
* ```sh
|
|
138
|
+
* $ pulumi import aws:bedrock/agentcoreOnlineEvaluationConfig:AgentcoreOnlineEvaluationConfig example my_evaluation_config-aBcDeFgHiJ
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
class AgentcoreOnlineEvaluationConfig extends pulumi.CustomResource {
|
|
142
|
+
/**
|
|
143
|
+
* Get an existing AgentcoreOnlineEvaluationConfig resource's state with the given name, ID, and optional extra
|
|
144
|
+
* properties used to qualify the lookup.
|
|
145
|
+
*
|
|
146
|
+
* @param name The _unique_ name of the resulting resource.
|
|
147
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
148
|
+
* @param state Any extra arguments used during the lookup.
|
|
149
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
150
|
+
*/
|
|
151
|
+
static get(name, id, state, opts) {
|
|
152
|
+
return new AgentcoreOnlineEvaluationConfig(name, state, { ...opts, id: id });
|
|
153
|
+
}
|
|
154
|
+
/** @internal */
|
|
155
|
+
static __pulumiType = 'aws:bedrock/agentcoreOnlineEvaluationConfig:AgentcoreOnlineEvaluationConfig';
|
|
156
|
+
/**
|
|
157
|
+
* Returns true if the given object is an instance of AgentcoreOnlineEvaluationConfig. This is designed to work even
|
|
158
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
159
|
+
*/
|
|
160
|
+
static isInstance(obj) {
|
|
161
|
+
if (obj === undefined || obj === null) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
return obj['__pulumiType'] === AgentcoreOnlineEvaluationConfig.__pulumiType;
|
|
165
|
+
}
|
|
166
|
+
constructor(name, argsOrState, opts) {
|
|
167
|
+
let resourceInputs = {};
|
|
168
|
+
opts = opts || {};
|
|
169
|
+
if (opts.id) {
|
|
170
|
+
const state = argsOrState;
|
|
171
|
+
resourceInputs["dataSourceConfig"] = state?.dataSourceConfig;
|
|
172
|
+
resourceInputs["description"] = state?.description;
|
|
173
|
+
resourceInputs["enableOnCreate"] = state?.enableOnCreate;
|
|
174
|
+
resourceInputs["evaluationExecutionRoleArn"] = state?.evaluationExecutionRoleArn;
|
|
175
|
+
resourceInputs["evaluators"] = state?.evaluators;
|
|
176
|
+
resourceInputs["executionStatus"] = state?.executionStatus;
|
|
177
|
+
resourceInputs["onlineEvaluationConfigArn"] = state?.onlineEvaluationConfigArn;
|
|
178
|
+
resourceInputs["onlineEvaluationConfigId"] = state?.onlineEvaluationConfigId;
|
|
179
|
+
resourceInputs["onlineEvaluationConfigName"] = state?.onlineEvaluationConfigName;
|
|
180
|
+
resourceInputs["outputConfigs"] = state?.outputConfigs;
|
|
181
|
+
resourceInputs["region"] = state?.region;
|
|
182
|
+
resourceInputs["rule"] = state?.rule;
|
|
183
|
+
resourceInputs["tags"] = state?.tags;
|
|
184
|
+
resourceInputs["tagsAll"] = state?.tagsAll;
|
|
185
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
const args = argsOrState;
|
|
189
|
+
if (args?.dataSourceConfig === undefined && !opts.urn) {
|
|
190
|
+
throw new Error("Missing required property 'dataSourceConfig'");
|
|
191
|
+
}
|
|
192
|
+
if (args?.enableOnCreate === undefined && !opts.urn) {
|
|
193
|
+
throw new Error("Missing required property 'enableOnCreate'");
|
|
194
|
+
}
|
|
195
|
+
if (args?.evaluationExecutionRoleArn === undefined && !opts.urn) {
|
|
196
|
+
throw new Error("Missing required property 'evaluationExecutionRoleArn'");
|
|
197
|
+
}
|
|
198
|
+
if (args?.evaluators === undefined && !opts.urn) {
|
|
199
|
+
throw new Error("Missing required property 'evaluators'");
|
|
200
|
+
}
|
|
201
|
+
if (args?.onlineEvaluationConfigName === undefined && !opts.urn) {
|
|
202
|
+
throw new Error("Missing required property 'onlineEvaluationConfigName'");
|
|
203
|
+
}
|
|
204
|
+
if (args?.rule === undefined && !opts.urn) {
|
|
205
|
+
throw new Error("Missing required property 'rule'");
|
|
206
|
+
}
|
|
207
|
+
resourceInputs["dataSourceConfig"] = args?.dataSourceConfig;
|
|
208
|
+
resourceInputs["description"] = args?.description;
|
|
209
|
+
resourceInputs["enableOnCreate"] = args?.enableOnCreate;
|
|
210
|
+
resourceInputs["evaluationExecutionRoleArn"] = args?.evaluationExecutionRoleArn;
|
|
211
|
+
resourceInputs["evaluators"] = args?.evaluators;
|
|
212
|
+
resourceInputs["executionStatus"] = args?.executionStatus;
|
|
213
|
+
resourceInputs["onlineEvaluationConfigName"] = args?.onlineEvaluationConfigName;
|
|
214
|
+
resourceInputs["region"] = args?.region;
|
|
215
|
+
resourceInputs["rule"] = args?.rule;
|
|
216
|
+
resourceInputs["tags"] = args?.tags;
|
|
217
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
218
|
+
resourceInputs["onlineEvaluationConfigArn"] = undefined /*out*/;
|
|
219
|
+
resourceInputs["onlineEvaluationConfigId"] = undefined /*out*/;
|
|
220
|
+
resourceInputs["outputConfigs"] = undefined /*out*/;
|
|
221
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
222
|
+
}
|
|
223
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
224
|
+
super(AgentcoreOnlineEvaluationConfig.__pulumiType, name, resourceInputs, opts);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.AgentcoreOnlineEvaluationConfig = AgentcoreOnlineEvaluationConfig;
|
|
228
|
+
//# sourceMappingURL=agentcoreOnlineEvaluationConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentcoreOnlineEvaluationConfig.js","sourceRoot":"","sources":["../../bedrock/agentcoreOnlineEvaluationConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4C,EAAE,IAAmC;QAC1I,OAAO,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
5
|
+
* Manages an AWS Bedrock AgentCore Policy Engine. A Policy Engine controls what actions and resources an agent runtime can use.
|
|
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 example = new aws.bedrock.AgentcorePolicyEngine("example", {name: "example_policy_engine"});
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ### With Description
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as aws from "@pulumi/aws";
|
|
23
|
+
*
|
|
24
|
+
* const example = new aws.bedrock.AgentcorePolicyEngine("example", {
|
|
25
|
+
* name: "example_policy_engine",
|
|
26
|
+
* description: "Policy engine for customer service agent",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### With Custom Encryption
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as aws from "@pulumi/aws";
|
|
35
|
+
*
|
|
36
|
+
* const example = new aws.kms.Key("example", {
|
|
37
|
+
* description: "KMS key for Bedrock AgentCore Policy Engine",
|
|
38
|
+
* deletionWindowInDays: 7,
|
|
39
|
+
* });
|
|
40
|
+
* const exampleAgentcorePolicyEngine = new aws.bedrock.AgentcorePolicyEngine("example", {
|
|
41
|
+
* name: "example_policy_engine",
|
|
42
|
+
* description: "Policy engine for customer service agent",
|
|
43
|
+
* encryptionKeyArn: example.arn,
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ## Import
|
|
48
|
+
*
|
|
49
|
+
* ### Identity Schema
|
|
50
|
+
*
|
|
51
|
+
* #### Required
|
|
52
|
+
*
|
|
53
|
+
* - `policyEngineId` (String) Policy engine ID.
|
|
54
|
+
*
|
|
55
|
+
* #### Optional
|
|
56
|
+
*
|
|
57
|
+
* * `accountId` (String) AWS account ID for this resource.
|
|
58
|
+
* * `region` (String) AWS Region for this resource.
|
|
59
|
+
*
|
|
60
|
+
* Using `pulumi import`, import a Bedrock AgentCore Policy Engine by policy engine ID. For example:
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import aws:bedrock/agentcorePolicyEngine:AgentcorePolicyEngine example policy-engine-id-12345678
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare class AgentcorePolicyEngine extends pulumi.CustomResource {
|
|
67
|
+
/**
|
|
68
|
+
* Get an existing AgentcorePolicyEngine resource's state with the given name, ID, and optional extra
|
|
69
|
+
* properties used to qualify the lookup.
|
|
70
|
+
*
|
|
71
|
+
* @param name The _unique_ name of the resulting resource.
|
|
72
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
73
|
+
* @param state Any extra arguments used during the lookup.
|
|
74
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
75
|
+
*/
|
|
76
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentcorePolicyEngineState, opts?: pulumi.CustomResourceOptions): AgentcorePolicyEngine;
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of AgentcorePolicyEngine. This is designed to work even
|
|
79
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
+
*/
|
|
81
|
+
static isInstance(obj: any): obj is AgentcorePolicyEngine;
|
|
82
|
+
/**
|
|
83
|
+
* Description of the policy engine.
|
|
84
|
+
*/
|
|
85
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* ARN of the KMS key used to encrypt the policy engine. If not set, AWS uses an AWS managed key.
|
|
88
|
+
*/
|
|
89
|
+
readonly encryptionKeyArn: pulumi.Output<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* Name of the policy engine. Must start with a letter and contain only letters, numbers, and underscores. Maximum length of 48 characters.
|
|
92
|
+
*
|
|
93
|
+
* The following arguments are optional:
|
|
94
|
+
*/
|
|
95
|
+
readonly name: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* ARN of the Policy Engine.
|
|
98
|
+
*/
|
|
99
|
+
readonly policyEngineArn: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Unique identifier of the Policy Engine.
|
|
102
|
+
*/
|
|
103
|
+
readonly policyEngineId: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* 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.
|
|
106
|
+
*/
|
|
107
|
+
readonly region: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* 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.
|
|
110
|
+
*/
|
|
111
|
+
readonly tags: pulumi.Output<{
|
|
112
|
+
[key: string]: string;
|
|
113
|
+
} | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
116
|
+
*/
|
|
117
|
+
readonly tagsAll: pulumi.Output<{
|
|
118
|
+
[key: string]: string;
|
|
119
|
+
}>;
|
|
120
|
+
readonly timeouts: pulumi.Output<outputs.bedrock.AgentcorePolicyEngineTimeouts | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* Create a AgentcorePolicyEngine resource with the given unique name, arguments, and options.
|
|
123
|
+
*
|
|
124
|
+
* @param name The _unique_ name of the resource.
|
|
125
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
126
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
127
|
+
*/
|
|
128
|
+
constructor(name: string, args?: AgentcorePolicyEngineArgs, opts?: pulumi.CustomResourceOptions);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Input properties used for looking up and filtering AgentcorePolicyEngine resources.
|
|
132
|
+
*/
|
|
133
|
+
export interface AgentcorePolicyEngineState {
|
|
134
|
+
/**
|
|
135
|
+
* Description of the policy engine.
|
|
136
|
+
*/
|
|
137
|
+
description?: pulumi.Input<string | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* ARN of the KMS key used to encrypt the policy engine. If not set, AWS uses an AWS managed key.
|
|
140
|
+
*/
|
|
141
|
+
encryptionKeyArn?: pulumi.Input<string | undefined>;
|
|
142
|
+
/**
|
|
143
|
+
* Name of the policy engine. Must start with a letter and contain only letters, numbers, and underscores. Maximum length of 48 characters.
|
|
144
|
+
*
|
|
145
|
+
* The following arguments are optional:
|
|
146
|
+
*/
|
|
147
|
+
name?: pulumi.Input<string | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* ARN of the Policy Engine.
|
|
150
|
+
*/
|
|
151
|
+
policyEngineArn?: pulumi.Input<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* Unique identifier of the Policy Engine.
|
|
154
|
+
*/
|
|
155
|
+
policyEngineId?: pulumi.Input<string | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* 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.
|
|
158
|
+
*/
|
|
159
|
+
region?: pulumi.Input<string | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* 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.
|
|
162
|
+
*/
|
|
163
|
+
tags?: pulumi.Input<{
|
|
164
|
+
[key: string]: pulumi.Input<string>;
|
|
165
|
+
} | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
168
|
+
*/
|
|
169
|
+
tagsAll?: pulumi.Input<{
|
|
170
|
+
[key: string]: pulumi.Input<string>;
|
|
171
|
+
} | undefined>;
|
|
172
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcorePolicyEngineTimeouts | undefined>;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* The set of arguments for constructing a AgentcorePolicyEngine resource.
|
|
176
|
+
*/
|
|
177
|
+
export interface AgentcorePolicyEngineArgs {
|
|
178
|
+
/**
|
|
179
|
+
* Description of the policy engine.
|
|
180
|
+
*/
|
|
181
|
+
description?: pulumi.Input<string | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* ARN of the KMS key used to encrypt the policy engine. If not set, AWS uses an AWS managed key.
|
|
184
|
+
*/
|
|
185
|
+
encryptionKeyArn?: pulumi.Input<string | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* Name of the policy engine. Must start with a letter and contain only letters, numbers, and underscores. Maximum length of 48 characters.
|
|
188
|
+
*
|
|
189
|
+
* The following arguments are optional:
|
|
190
|
+
*/
|
|
191
|
+
name?: pulumi.Input<string | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* 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.
|
|
194
|
+
*/
|
|
195
|
+
region?: pulumi.Input<string | undefined>;
|
|
196
|
+
/**
|
|
197
|
+
* 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.
|
|
198
|
+
*/
|
|
199
|
+
tags?: pulumi.Input<{
|
|
200
|
+
[key: string]: pulumi.Input<string>;
|
|
201
|
+
} | undefined>;
|
|
202
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcorePolicyEngineTimeouts | undefined>;
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=agentcorePolicyEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentcorePolicyEngine.d.ts","sourceRoot":"","sources":["../../bedrock/agentcorePolicyEngine.ts"],"names":[],"mappings":"AAGA,OAAO,K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,CAAC,CAAC;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC;CACrF;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAAC;CACrF"}
|
|
@@ -0,0 +1,150 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.AgentcorePolicyEngine = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("../utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Manages an AWS Bedrock AgentCore Policy Engine. A Policy Engine controls what actions and resources an agent runtime can use.
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ### Basic Usage
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as aws from "@pulumi/aws";
|
|
41
|
+
*
|
|
42
|
+
* const example = new aws.bedrock.AgentcorePolicyEngine("example", {name: "example_policy_engine"});
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ### With Description
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as aws from "@pulumi/aws";
|
|
50
|
+
*
|
|
51
|
+
* const example = new aws.bedrock.AgentcorePolicyEngine("example", {
|
|
52
|
+
* name: "example_policy_engine",
|
|
53
|
+
* description: "Policy engine for customer service agent",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ### With Custom Encryption
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as aws from "@pulumi/aws";
|
|
62
|
+
*
|
|
63
|
+
* const example = new aws.kms.Key("example", {
|
|
64
|
+
* description: "KMS key for Bedrock AgentCore Policy Engine",
|
|
65
|
+
* deletionWindowInDays: 7,
|
|
66
|
+
* });
|
|
67
|
+
* const exampleAgentcorePolicyEngine = new aws.bedrock.AgentcorePolicyEngine("example", {
|
|
68
|
+
* name: "example_policy_engine",
|
|
69
|
+
* description: "Policy engine for customer service agent",
|
|
70
|
+
* encryptionKeyArn: example.arn,
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* ## Import
|
|
75
|
+
*
|
|
76
|
+
* ### Identity Schema
|
|
77
|
+
*
|
|
78
|
+
* #### Required
|
|
79
|
+
*
|
|
80
|
+
* - `policyEngineId` (String) Policy engine ID.
|
|
81
|
+
*
|
|
82
|
+
* #### Optional
|
|
83
|
+
*
|
|
84
|
+
* * `accountId` (String) AWS account ID for this resource.
|
|
85
|
+
* * `region` (String) AWS Region for this resource.
|
|
86
|
+
*
|
|
87
|
+
* Using `pulumi import`, import a Bedrock AgentCore Policy Engine by policy engine ID. For example:
|
|
88
|
+
*
|
|
89
|
+
* ```sh
|
|
90
|
+
* $ pulumi import aws:bedrock/agentcorePolicyEngine:AgentcorePolicyEngine example policy-engine-id-12345678
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
class AgentcorePolicyEngine extends pulumi.CustomResource {
|
|
94
|
+
/**
|
|
95
|
+
* Get an existing AgentcorePolicyEngine resource's state with the given name, ID, and optional extra
|
|
96
|
+
* properties used to qualify the lookup.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resulting resource.
|
|
99
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
100
|
+
* @param state Any extra arguments used during the lookup.
|
|
101
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
102
|
+
*/
|
|
103
|
+
static get(name, id, state, opts) {
|
|
104
|
+
return new AgentcorePolicyEngine(name, state, { ...opts, id: id });
|
|
105
|
+
}
|
|
106
|
+
/** @internal */
|
|
107
|
+
static __pulumiType = 'aws:bedrock/agentcorePolicyEngine:AgentcorePolicyEngine';
|
|
108
|
+
/**
|
|
109
|
+
* Returns true if the given object is an instance of AgentcorePolicyEngine. This is designed to work even
|
|
110
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
111
|
+
*/
|
|
112
|
+
static isInstance(obj) {
|
|
113
|
+
if (obj === undefined || obj === null) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
return obj['__pulumiType'] === AgentcorePolicyEngine.__pulumiType;
|
|
117
|
+
}
|
|
118
|
+
constructor(name, argsOrState, opts) {
|
|
119
|
+
let resourceInputs = {};
|
|
120
|
+
opts = opts || {};
|
|
121
|
+
if (opts.id) {
|
|
122
|
+
const state = argsOrState;
|
|
123
|
+
resourceInputs["description"] = state?.description;
|
|
124
|
+
resourceInputs["encryptionKeyArn"] = state?.encryptionKeyArn;
|
|
125
|
+
resourceInputs["name"] = state?.name;
|
|
126
|
+
resourceInputs["policyEngineArn"] = state?.policyEngineArn;
|
|
127
|
+
resourceInputs["policyEngineId"] = state?.policyEngineId;
|
|
128
|
+
resourceInputs["region"] = state?.region;
|
|
129
|
+
resourceInputs["tags"] = state?.tags;
|
|
130
|
+
resourceInputs["tagsAll"] = state?.tagsAll;
|
|
131
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
const args = argsOrState;
|
|
135
|
+
resourceInputs["description"] = args?.description;
|
|
136
|
+
resourceInputs["encryptionKeyArn"] = args?.encryptionKeyArn;
|
|
137
|
+
resourceInputs["name"] = args?.name;
|
|
138
|
+
resourceInputs["region"] = args?.region;
|
|
139
|
+
resourceInputs["tags"] = args?.tags;
|
|
140
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
141
|
+
resourceInputs["policyEngineArn"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["policyEngineId"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
144
|
+
}
|
|
145
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
146
|
+
super(AgentcorePolicyEngine.__pulumiType, name, resourceInputs, opts);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.AgentcorePolicyEngine = AgentcorePolicyEngine;
|
|
150
|
+
//# sourceMappingURL=agentcorePolicyEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentcorePolicyEngine.js","sourceRoot":"","sources":["../../bedrock/agentcorePolicyEngine.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,wDAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,yDAAyD,CAAC;IAEhG;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B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