@pulumi/aws 7.9.0-alpha.1760444549 → 7.9.0-alpha.1761090036
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/amp/index.d.ts +3 -0
- package/amp/index.js +6 -1
- package/amp/index.js.map +1 -1
- package/amp/resourcePolicy.d.ts +214 -0
- package/amp/resourcePolicy.js +182 -0
- package/amp/resourcePolicy.js.map +1 -0
- package/bedrock/agentcoreAgentRuntime.d.ts +356 -0
- package/bedrock/agentcoreAgentRuntime.js +198 -0
- package/bedrock/agentcoreAgentRuntime.js.map +1 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.d.ts +173 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.js +96 -0
- package/bedrock/agentcoreAgentRuntimeEndpoint.js.map +1 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.d.ts +133 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.js +84 -0
- package/bedrock/agentcoreApiKeyCredentialProvider.js.map +1 -0
- package/bedrock/agentcoreBrowser.d.ts +231 -0
- package/bedrock/agentcoreBrowser.js +135 -0
- package/bedrock/agentcoreBrowser.js.map +1 -0
- package/bedrock/agentcoreCodeInterpreter.d.ts +211 -0
- package/bedrock/agentcoreCodeInterpreter.js +125 -0
- package/bedrock/agentcoreCodeInterpreter.js.map +1 -0
- package/bedrock/agentcoreGateway.d.ts +317 -0
- package/bedrock/agentcoreGateway.js +178 -0
- package/bedrock/agentcoreGateway.js.map +1 -0
- package/bedrock/agentcoreGatewayTarget.d.ts +294 -0
- package/bedrock/agentcoreGatewayTarget.js +233 -0
- package/bedrock/agentcoreGatewayTarget.js.map +1 -0
- package/bedrock/index.d.ts +21 -0
- package/bedrock/index.js +36 -1
- package/bedrock/index.js.map +1 -1
- package/cloudwatch/metricAlarm.d.ts +39 -7
- package/cloudwatch/metricAlarm.js +36 -4
- package/cloudwatch/metricAlarm.js.map +1 -1
- package/codebuild/project.d.ts +15 -0
- package/codebuild/project.js +2 -0
- package/codebuild/project.js.map +1 -1
- package/datazone/environment.d.ts +10 -6
- package/datazone/environment.js +1 -3
- package/datazone/environment.js.map +1 -1
- package/dms/endpoint.d.ts +3 -3
- package/ec2/getVpnConnection.d.ts +173 -0
- package/ec2/getVpnConnection.js +92 -0
- package/ec2/getVpnConnection.js.map +1 -0
- package/ec2/index.d.ts +3 -0
- package/ec2/index.js +6 -3
- package/ec2/index.js.map +1 -1
- package/ec2/route.d.ts +0 -8
- package/ec2/route.js +0 -8
- package/ec2/route.js.map +1 -1
- package/ec2/routeTable.d.ts +6 -6
- package/ec2/routeTable.js +0 -6
- package/ec2/routeTable.js.map +1 -1
- package/ec2transitgateway/getDirectConnectGatewayAttachment.d.ts +4 -0
- package/ec2transitgateway/getDirectConnectGatewayAttachment.js +4 -0
- package/ec2transitgateway/getDirectConnectGatewayAttachment.js.map +1 -1
- package/ec2transitgateway/getVpcAttachment.d.ts +4 -0
- package/ec2transitgateway/getVpcAttachment.js +4 -0
- package/ec2transitgateway/getVpcAttachment.js.map +1 -1
- package/ec2transitgateway/routeTableAssociation.d.ts +57 -0
- package/ec2transitgateway/routeTableAssociation.js +57 -0
- package/ec2transitgateway/routeTableAssociation.js.map +1 -1
- package/ec2transitgateway/routeTablePropagation.d.ts +57 -0
- package/ec2transitgateway/routeTablePropagation.js +57 -0
- package/ec2transitgateway/routeTablePropagation.js.map +1 -1
- package/emrserverless/application.d.ts +12 -0
- package/emrserverless/application.js +2 -0
- package/emrserverless/application.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/lakeformation/permissions.d.ts +14 -10
- package/lakeformation/permissions.js +14 -10
- package/lakeformation/permissions.js.map +1 -1
- package/odb/cloudAutonomousVmCluster.d.ts +6 -6
- package/odb/cloudAutonomousVmCluster.js +6 -6
- package/odb/cloudExadataInfrastructure.d.ts +2 -2
- package/odb/cloudVmCluster.d.ts +6 -6
- package/odb/cloudVmCluster.js +6 -6
- package/odb/getCloudAutonomousVmClusters.d.ts +68 -0
- package/odb/getCloudAutonomousVmClusters.js +56 -0
- package/odb/getCloudAutonomousVmClusters.js.map +1 -0
- package/odb/getCloudExadataInfrastructures.d.ts +68 -0
- package/odb/getCloudExadataInfrastructures.js +56 -0
- package/odb/getCloudExadataInfrastructures.js.map +1 -0
- package/odb/getCloudVmClusters.d.ts +68 -0
- package/odb/getCloudVmClusters.js +56 -0
- package/odb/getCloudVmClusters.js.map +1 -0
- package/odb/getDbSystemShapes.d.ts +1 -1
- package/odb/getNetworkPeeringConnection.d.ts +3 -3
- package/odb/getNetworkPeeringConnections.d.ts +77 -0
- package/odb/getNetworkPeeringConnections.js +58 -0
- package/odb/getNetworkPeeringConnections.js.map +1 -0
- package/odb/getNetworks.d.ts +64 -0
- package/odb/getNetworks.js +52 -0
- package/odb/getNetworks.js.map +1 -0
- package/odb/index.d.ts +15 -0
- package/odb/index.js +16 -1
- package/odb/index.js.map +1 -1
- package/package.json +2 -2
- package/quicksight/accountSubscription.d.ts +37 -1
- package/quicksight/accountSubscription.js +7 -1
- package/quicksight/accountSubscription.js.map +1 -1
- package/rds/getGlobalCluster.d.ts +123 -0
- package/rds/getGlobalCluster.js +56 -0
- package/rds/getGlobalCluster.js.map +1 -0
- package/rds/index.d.ts +3 -0
- package/rds/index.js +5 -2
- package/rds/index.js.map +1 -1
- package/servicediscovery/service.d.ts +4 -4
- package/servicediscovery/service.js +1 -1
- package/ssm/defaultPatchBaseline.d.ts +3 -0
- package/ssm/defaultPatchBaseline.js.map +1 -1
- package/ssmcontacts/contact.d.ts +9 -3
- package/ssmcontacts/contact.js +9 -3
- package/ssmcontacts/contact.js.map +1 -1
- package/transfer/hostKey.d.ts +151 -0
- package/transfer/hostKey.js +83 -0
- package/transfer/hostKey.js.map +1 -0
- package/transfer/index.d.ts +9 -0
- package/transfer/index.js +16 -1
- package/transfer/index.js.map +1 -1
- package/transfer/webApp.d.ts +239 -0
- package/transfer/webApp.js +157 -0
- package/transfer/webApp.js.map +1 -0
- package/transfer/webAppCustomization.d.ts +97 -0
- package/transfer/webAppCustomization.js +73 -0
- package/transfer/webAppCustomization.js.map +1 -0
- package/types/input.d.ts +997 -2
- package/types/input.js.map +1 -1
- package/types/output.d.ts +1342 -160
- package/types/output.js.map +1 -1
- package/vpclattice/resourceGateway.d.ts +12 -0
- package/vpclattice/resourceGateway.js +2 -0
- package/vpclattice/resourceGateway.js.map +1 -1
- package/vpn/getConnection.d.ts +175 -0
- package/vpn/getConnection.js +96 -0
- package/vpn/getConnection.js.map +1 -0
- package/vpn/index.d.ts +3 -0
- package/vpn/index.js +10 -0
- package/vpn/index.js.map +1 -0
|
@@ -0,0 +1,231 @@
|
|
|
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 Browser. Browser provides AI agents with web browsing capabilities, allowing them to navigate websites, extract information, and interact with web content in a controlled environment.
|
|
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.AgentcoreBrowser("example", {
|
|
16
|
+
* name: "example-browser",
|
|
17
|
+
* description: "Browser for web data extraction",
|
|
18
|
+
* networkConfiguration: {
|
|
19
|
+
* networkMode: "PUBLIC",
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ### Browser with Execution Role and Recording
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as aws from "@pulumi/aws";
|
|
29
|
+
*
|
|
30
|
+
* const assumeRole = aws.iam.getPolicyDocument({
|
|
31
|
+
* statements: [{
|
|
32
|
+
* effect: "Allow",
|
|
33
|
+
* actions: ["sts:AssumeRole"],
|
|
34
|
+
* principals: [{
|
|
35
|
+
* type: "Service",
|
|
36
|
+
* identifiers: ["bedrock-agentcore.amazonaws.com"],
|
|
37
|
+
* }],
|
|
38
|
+
* }],
|
|
39
|
+
* });
|
|
40
|
+
* const example = new aws.iam.Role("example", {
|
|
41
|
+
* name: "bedrock-agentcore-browser-role",
|
|
42
|
+
* assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
|
|
43
|
+
* });
|
|
44
|
+
* const recording = new aws.s3.Bucket("recording", {bucket: "browser-recording-bucket"});
|
|
45
|
+
* const exampleAgentcoreBrowser = new aws.bedrock.AgentcoreBrowser("example", {
|
|
46
|
+
* name: "example-browser",
|
|
47
|
+
* description: "Browser with recording enabled",
|
|
48
|
+
* executionRoleArn: example.arn,
|
|
49
|
+
* networkConfiguration: {
|
|
50
|
+
* networkMode: "PUBLIC",
|
|
51
|
+
* },
|
|
52
|
+
* recording: {
|
|
53
|
+
* enabled: true,
|
|
54
|
+
* s3Location: {
|
|
55
|
+
* bucket: recording.bucket,
|
|
56
|
+
* prefix: "browser-sessions/",
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ## Import
|
|
63
|
+
*
|
|
64
|
+
* Using `pulumi import`, import Bedrock AgentCore Browser using the browser ID. For example:
|
|
65
|
+
*
|
|
66
|
+
* ```sh
|
|
67
|
+
* $ pulumi import aws:bedrock/agentcoreBrowser:AgentcoreBrowser example BROWSER1234567890
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare class AgentcoreBrowser extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing AgentcoreBrowser resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param state Any extra arguments used during the lookup.
|
|
78
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
79
|
+
*/
|
|
80
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentcoreBrowserState, opts?: pulumi.CustomResourceOptions): AgentcoreBrowser;
|
|
81
|
+
/**
|
|
82
|
+
* Returns true if the given object is an instance of AgentcoreBrowser. This is designed to work even
|
|
83
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
84
|
+
*/
|
|
85
|
+
static isInstance(obj: any): obj is AgentcoreBrowser;
|
|
86
|
+
/**
|
|
87
|
+
* ARN of the Browser.
|
|
88
|
+
*/
|
|
89
|
+
readonly browserArn: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Unique identifier of the Browser.
|
|
92
|
+
*/
|
|
93
|
+
readonly browserId: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Description of the browser.
|
|
96
|
+
*/
|
|
97
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* ARN of the IAM role that the browser assumes for execution.
|
|
100
|
+
*/
|
|
101
|
+
readonly executionRoleArn: pulumi.Output<string | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Name of the browser.
|
|
104
|
+
*/
|
|
105
|
+
readonly name: pulumi.Output<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Network configuration for the browser. See `networkConfiguration` below.
|
|
108
|
+
*
|
|
109
|
+
* The following arguments are optional:
|
|
110
|
+
*/
|
|
111
|
+
readonly networkConfiguration: pulumi.Output<outputs.bedrock.AgentcoreBrowserNetworkConfiguration | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Recording configuration for browser sessions. See `recording` below.
|
|
114
|
+
*/
|
|
115
|
+
readonly recording: pulumi.Output<outputs.bedrock.AgentcoreBrowserRecording | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* 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.
|
|
118
|
+
*/
|
|
119
|
+
readonly region: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* 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.
|
|
122
|
+
*/
|
|
123
|
+
readonly tags: pulumi.Output<{
|
|
124
|
+
[key: string]: string;
|
|
125
|
+
} | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
128
|
+
*/
|
|
129
|
+
readonly tagsAll: pulumi.Output<{
|
|
130
|
+
[key: string]: string;
|
|
131
|
+
}>;
|
|
132
|
+
readonly timeouts: pulumi.Output<outputs.bedrock.AgentcoreBrowserTimeouts | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* Create a AgentcoreBrowser resource with the given unique name, arguments, and options.
|
|
135
|
+
*
|
|
136
|
+
* @param name The _unique_ name of the resource.
|
|
137
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
138
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
139
|
+
*/
|
|
140
|
+
constructor(name: string, args?: AgentcoreBrowserArgs, opts?: pulumi.CustomResourceOptions);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Input properties used for looking up and filtering AgentcoreBrowser resources.
|
|
144
|
+
*/
|
|
145
|
+
export interface AgentcoreBrowserState {
|
|
146
|
+
/**
|
|
147
|
+
* ARN of the Browser.
|
|
148
|
+
*/
|
|
149
|
+
browserArn?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Unique identifier of the Browser.
|
|
152
|
+
*/
|
|
153
|
+
browserId?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Description of the browser.
|
|
156
|
+
*/
|
|
157
|
+
description?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* ARN of the IAM role that the browser assumes for execution.
|
|
160
|
+
*/
|
|
161
|
+
executionRoleArn?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Name of the browser.
|
|
164
|
+
*/
|
|
165
|
+
name?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Network configuration for the browser. See `networkConfiguration` below.
|
|
168
|
+
*
|
|
169
|
+
* The following arguments are optional:
|
|
170
|
+
*/
|
|
171
|
+
networkConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreBrowserNetworkConfiguration>;
|
|
172
|
+
/**
|
|
173
|
+
* Recording configuration for browser sessions. See `recording` below.
|
|
174
|
+
*/
|
|
175
|
+
recording?: pulumi.Input<inputs.bedrock.AgentcoreBrowserRecording>;
|
|
176
|
+
/**
|
|
177
|
+
* 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.
|
|
178
|
+
*/
|
|
179
|
+
region?: pulumi.Input<string>;
|
|
180
|
+
/**
|
|
181
|
+
* 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.
|
|
182
|
+
*/
|
|
183
|
+
tags?: pulumi.Input<{
|
|
184
|
+
[key: string]: pulumi.Input<string>;
|
|
185
|
+
}>;
|
|
186
|
+
/**
|
|
187
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
188
|
+
*/
|
|
189
|
+
tagsAll?: pulumi.Input<{
|
|
190
|
+
[key: string]: pulumi.Input<string>;
|
|
191
|
+
}>;
|
|
192
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreBrowserTimeouts>;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* The set of arguments for constructing a AgentcoreBrowser resource.
|
|
196
|
+
*/
|
|
197
|
+
export interface AgentcoreBrowserArgs {
|
|
198
|
+
/**
|
|
199
|
+
* Description of the browser.
|
|
200
|
+
*/
|
|
201
|
+
description?: pulumi.Input<string>;
|
|
202
|
+
/**
|
|
203
|
+
* ARN of the IAM role that the browser assumes for execution.
|
|
204
|
+
*/
|
|
205
|
+
executionRoleArn?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Name of the browser.
|
|
208
|
+
*/
|
|
209
|
+
name?: pulumi.Input<string>;
|
|
210
|
+
/**
|
|
211
|
+
* Network configuration for the browser. See `networkConfiguration` below.
|
|
212
|
+
*
|
|
213
|
+
* The following arguments are optional:
|
|
214
|
+
*/
|
|
215
|
+
networkConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreBrowserNetworkConfiguration>;
|
|
216
|
+
/**
|
|
217
|
+
* Recording configuration for browser sessions. See `recording` below.
|
|
218
|
+
*/
|
|
219
|
+
recording?: pulumi.Input<inputs.bedrock.AgentcoreBrowserRecording>;
|
|
220
|
+
/**
|
|
221
|
+
* 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.
|
|
222
|
+
*/
|
|
223
|
+
region?: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* 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.
|
|
226
|
+
*/
|
|
227
|
+
tags?: pulumi.Input<{
|
|
228
|
+
[key: string]: pulumi.Input<string>;
|
|
229
|
+
}>;
|
|
230
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreBrowserTimeouts>;
|
|
231
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
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.AgentcoreBrowser = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an AWS Bedrock AgentCore Browser. Browser provides AI agents with web browsing capabilities, allowing them to navigate websites, extract information, and interact with web content in a controlled environment.
|
|
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 example = new aws.bedrock.AgentcoreBrowser("example", {
|
|
20
|
+
* name: "example-browser",
|
|
21
|
+
* description: "Browser for web data extraction",
|
|
22
|
+
* networkConfiguration: {
|
|
23
|
+
* networkMode: "PUBLIC",
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* ### Browser with Execution Role and Recording
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as aws from "@pulumi/aws";
|
|
33
|
+
*
|
|
34
|
+
* const assumeRole = aws.iam.getPolicyDocument({
|
|
35
|
+
* statements: [{
|
|
36
|
+
* effect: "Allow",
|
|
37
|
+
* actions: ["sts:AssumeRole"],
|
|
38
|
+
* principals: [{
|
|
39
|
+
* type: "Service",
|
|
40
|
+
* identifiers: ["bedrock-agentcore.amazonaws.com"],
|
|
41
|
+
* }],
|
|
42
|
+
* }],
|
|
43
|
+
* });
|
|
44
|
+
* const example = new aws.iam.Role("example", {
|
|
45
|
+
* name: "bedrock-agentcore-browser-role",
|
|
46
|
+
* assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
|
|
47
|
+
* });
|
|
48
|
+
* const recording = new aws.s3.Bucket("recording", {bucket: "browser-recording-bucket"});
|
|
49
|
+
* const exampleAgentcoreBrowser = new aws.bedrock.AgentcoreBrowser("example", {
|
|
50
|
+
* name: "example-browser",
|
|
51
|
+
* description: "Browser with recording enabled",
|
|
52
|
+
* executionRoleArn: example.arn,
|
|
53
|
+
* networkConfiguration: {
|
|
54
|
+
* networkMode: "PUBLIC",
|
|
55
|
+
* },
|
|
56
|
+
* recording: {
|
|
57
|
+
* enabled: true,
|
|
58
|
+
* s3Location: {
|
|
59
|
+
* bucket: recording.bucket,
|
|
60
|
+
* prefix: "browser-sessions/",
|
|
61
|
+
* },
|
|
62
|
+
* },
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## Import
|
|
67
|
+
*
|
|
68
|
+
* Using `pulumi import`, import Bedrock AgentCore Browser using the browser ID. For example:
|
|
69
|
+
*
|
|
70
|
+
* ```sh
|
|
71
|
+
* $ pulumi import aws:bedrock/agentcoreBrowser:AgentcoreBrowser example BROWSER1234567890
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
class AgentcoreBrowser extends pulumi.CustomResource {
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing AgentcoreBrowser resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name, id, state, opts) {
|
|
85
|
+
return new AgentcoreBrowser(name, state, { ...opts, id: id });
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns true if the given object is an instance of AgentcoreBrowser. This is designed to work even
|
|
89
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
+
*/
|
|
91
|
+
static isInstance(obj) {
|
|
92
|
+
if (obj === undefined || obj === null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return obj['__pulumiType'] === AgentcoreBrowser.__pulumiType;
|
|
96
|
+
}
|
|
97
|
+
constructor(name, argsOrState, opts) {
|
|
98
|
+
let resourceInputs = {};
|
|
99
|
+
opts = opts || {};
|
|
100
|
+
if (opts.id) {
|
|
101
|
+
const state = argsOrState;
|
|
102
|
+
resourceInputs["browserArn"] = state?.browserArn;
|
|
103
|
+
resourceInputs["browserId"] = state?.browserId;
|
|
104
|
+
resourceInputs["description"] = state?.description;
|
|
105
|
+
resourceInputs["executionRoleArn"] = state?.executionRoleArn;
|
|
106
|
+
resourceInputs["name"] = state?.name;
|
|
107
|
+
resourceInputs["networkConfiguration"] = state?.networkConfiguration;
|
|
108
|
+
resourceInputs["recording"] = state?.recording;
|
|
109
|
+
resourceInputs["region"] = state?.region;
|
|
110
|
+
resourceInputs["tags"] = state?.tags;
|
|
111
|
+
resourceInputs["tagsAll"] = state?.tagsAll;
|
|
112
|
+
resourceInputs["timeouts"] = state?.timeouts;
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const args = argsOrState;
|
|
116
|
+
resourceInputs["description"] = args?.description;
|
|
117
|
+
resourceInputs["executionRoleArn"] = args?.executionRoleArn;
|
|
118
|
+
resourceInputs["name"] = args?.name;
|
|
119
|
+
resourceInputs["networkConfiguration"] = args?.networkConfiguration;
|
|
120
|
+
resourceInputs["recording"] = args?.recording;
|
|
121
|
+
resourceInputs["region"] = args?.region;
|
|
122
|
+
resourceInputs["tags"] = args?.tags;
|
|
123
|
+
resourceInputs["timeouts"] = args?.timeouts;
|
|
124
|
+
resourceInputs["browserArn"] = undefined /*out*/;
|
|
125
|
+
resourceInputs["browserId"] = undefined /*out*/;
|
|
126
|
+
resourceInputs["tagsAll"] = undefined /*out*/;
|
|
127
|
+
}
|
|
128
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
129
|
+
super(AgentcoreBrowser.__pulumiType, name, resourceInputs, opts);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.AgentcoreBrowser = AgentcoreBrowser;
|
|
133
|
+
/** @internal */
|
|
134
|
+
AgentcoreBrowser.__pulumiType = 'aws:bedrock/agentcoreBrowser:AgentcoreBrowser';
|
|
135
|
+
//# sourceMappingURL=agentcoreBrowser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentcoreBrowser.js","sourceRoot":"","sources":["../../bedrock/agentcoreBrowser.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,211 @@
|
|
|
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 Code Interpreter. Code Interpreter provides a secure environment for AI agents to execute Python code, enabling data analysis, calculations, and file processing capabilities.
|
|
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.AgentcoreCodeInterpreter("example", {
|
|
16
|
+
* name: "example-code-interpreter",
|
|
17
|
+
* description: "Code interpreter for data analysis",
|
|
18
|
+
* networkConfiguration: {
|
|
19
|
+
* networkMode: "PUBLIC",
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ### Code Interpreter with Execution Role
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
28
|
+
* import * as aws from "@pulumi/aws";
|
|
29
|
+
*
|
|
30
|
+
* const assumeRole = aws.iam.getPolicyDocument({
|
|
31
|
+
* statements: [{
|
|
32
|
+
* effect: "Allow",
|
|
33
|
+
* actions: ["sts:AssumeRole"],
|
|
34
|
+
* principals: [{
|
|
35
|
+
* type: "Service",
|
|
36
|
+
* identifiers: ["bedrock-agentcore.amazonaws.com"],
|
|
37
|
+
* }],
|
|
38
|
+
* }],
|
|
39
|
+
* });
|
|
40
|
+
* const example = new aws.iam.Role("example", {
|
|
41
|
+
* name: "bedrock-agentcore-code-interpreter-role",
|
|
42
|
+
* assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
|
|
43
|
+
* });
|
|
44
|
+
* const exampleAgentcoreCodeInterpreter = new aws.bedrock.AgentcoreCodeInterpreter("example", {
|
|
45
|
+
* name: "example-code-interpreter",
|
|
46
|
+
* description: "Code interpreter with custom execution role",
|
|
47
|
+
* executionRoleArn: example.arn,
|
|
48
|
+
* networkConfiguration: {
|
|
49
|
+
* networkMode: "SANDBOX",
|
|
50
|
+
* },
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## Import
|
|
55
|
+
*
|
|
56
|
+
* Using `pulumi import`, import Bedrock AgentCore Code Interpreter using the code interpreter ID. For example:
|
|
57
|
+
*
|
|
58
|
+
* ```sh
|
|
59
|
+
* $ pulumi import aws:bedrock/agentcoreCodeInterpreter:AgentcoreCodeInterpreter example CODEINTERPRETER1234567890
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare class AgentcoreCodeInterpreter extends pulumi.CustomResource {
|
|
63
|
+
/**
|
|
64
|
+
* Get an existing AgentcoreCodeInterpreter resource's state with the given name, ID, and optional extra
|
|
65
|
+
* properties used to qualify the lookup.
|
|
66
|
+
*
|
|
67
|
+
* @param name The _unique_ name of the resulting resource.
|
|
68
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
69
|
+
* @param state Any extra arguments used during the lookup.
|
|
70
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
71
|
+
*/
|
|
72
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AgentcoreCodeInterpreterState, opts?: pulumi.CustomResourceOptions): AgentcoreCodeInterpreter;
|
|
73
|
+
/**
|
|
74
|
+
* Returns true if the given object is an instance of AgentcoreCodeInterpreter. This is designed to work even
|
|
75
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
76
|
+
*/
|
|
77
|
+
static isInstance(obj: any): obj is AgentcoreCodeInterpreter;
|
|
78
|
+
/**
|
|
79
|
+
* ARN of the Code Interpreter.
|
|
80
|
+
*/
|
|
81
|
+
readonly codeInterpreterArn: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Unique identifier of the Code Interpreter.
|
|
84
|
+
*/
|
|
85
|
+
readonly codeInterpreterId: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Description of the code interpreter.
|
|
88
|
+
*/
|
|
89
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* ARN of the IAM role that the code interpreter assumes for execution. Required when using `SANDBOX` network mode.
|
|
92
|
+
*/
|
|
93
|
+
readonly executionRoleArn: pulumi.Output<string | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Name of the code interpreter.
|
|
96
|
+
*/
|
|
97
|
+
readonly name: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Network configuration for the code interpreter. See `networkConfiguration` below.
|
|
100
|
+
*
|
|
101
|
+
* The following arguments are optional:
|
|
102
|
+
*/
|
|
103
|
+
readonly networkConfiguration: pulumi.Output<outputs.bedrock.AgentcoreCodeInterpreterNetworkConfiguration | undefined>;
|
|
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
|
+
* A 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.AgentcoreCodeInterpreterTimeouts | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* Create a AgentcoreCodeInterpreter 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?: AgentcoreCodeInterpreterArgs, opts?: pulumi.CustomResourceOptions);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Input properties used for looking up and filtering AgentcoreCodeInterpreter resources.
|
|
132
|
+
*/
|
|
133
|
+
export interface AgentcoreCodeInterpreterState {
|
|
134
|
+
/**
|
|
135
|
+
* ARN of the Code Interpreter.
|
|
136
|
+
*/
|
|
137
|
+
codeInterpreterArn?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Unique identifier of the Code Interpreter.
|
|
140
|
+
*/
|
|
141
|
+
codeInterpreterId?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Description of the code interpreter.
|
|
144
|
+
*/
|
|
145
|
+
description?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* ARN of the IAM role that the code interpreter assumes for execution. Required when using `SANDBOX` network mode.
|
|
148
|
+
*/
|
|
149
|
+
executionRoleArn?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Name of the code interpreter.
|
|
152
|
+
*/
|
|
153
|
+
name?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Network configuration for the code interpreter. See `networkConfiguration` below.
|
|
156
|
+
*
|
|
157
|
+
* The following arguments are optional:
|
|
158
|
+
*/
|
|
159
|
+
networkConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreCodeInterpreterNetworkConfiguration>;
|
|
160
|
+
/**
|
|
161
|
+
* 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.
|
|
162
|
+
*/
|
|
163
|
+
region?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* 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.
|
|
166
|
+
*/
|
|
167
|
+
tags?: pulumi.Input<{
|
|
168
|
+
[key: string]: pulumi.Input<string>;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
|
|
172
|
+
*/
|
|
173
|
+
tagsAll?: pulumi.Input<{
|
|
174
|
+
[key: string]: pulumi.Input<string>;
|
|
175
|
+
}>;
|
|
176
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreCodeInterpreterTimeouts>;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* The set of arguments for constructing a AgentcoreCodeInterpreter resource.
|
|
180
|
+
*/
|
|
181
|
+
export interface AgentcoreCodeInterpreterArgs {
|
|
182
|
+
/**
|
|
183
|
+
* Description of the code interpreter.
|
|
184
|
+
*/
|
|
185
|
+
description?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* ARN of the IAM role that the code interpreter assumes for execution. Required when using `SANDBOX` network mode.
|
|
188
|
+
*/
|
|
189
|
+
executionRoleArn?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Name of the code interpreter.
|
|
192
|
+
*/
|
|
193
|
+
name?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Network configuration for the code interpreter. See `networkConfiguration` below.
|
|
196
|
+
*
|
|
197
|
+
* The following arguments are optional:
|
|
198
|
+
*/
|
|
199
|
+
networkConfiguration?: pulumi.Input<inputs.bedrock.AgentcoreCodeInterpreterNetworkConfiguration>;
|
|
200
|
+
/**
|
|
201
|
+
* 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.
|
|
202
|
+
*/
|
|
203
|
+
region?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* 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.
|
|
206
|
+
*/
|
|
207
|
+
tags?: pulumi.Input<{
|
|
208
|
+
[key: string]: pulumi.Input<string>;
|
|
209
|
+
}>;
|
|
210
|
+
timeouts?: pulumi.Input<inputs.bedrock.AgentcoreCodeInterpreterTimeouts>;
|
|
211
|
+
}
|