aws.bedrock.AgentcoreBrowser
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.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.bedrock.AgentcoreBrowser("example", {
name: "example-browser",
description: "Browser for web data extraction",
networkConfiguration: {
networkMode: "PUBLIC",
},
});
import pulumi
import pulumi_aws as aws
example = aws.bedrock.AgentcoreBrowser("example",
name="example-browser",
description="Browser for web data extraction",
network_configuration={
"network_mode": "PUBLIC",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bedrock.NewAgentcoreBrowser(ctx, "example", &bedrock.AgentcoreBrowserArgs{
Name: pulumi.String("example-browser"),
Description: pulumi.String("Browser for web data extraction"),
NetworkConfiguration: &bedrock.AgentcoreBrowserNetworkConfigurationArgs{
NetworkMode: pulumi.String("PUBLIC"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Bedrock.AgentcoreBrowser("example", new()
{
Name = "example-browser",
Description = "Browser for web data extraction",
NetworkConfiguration = new Aws.Bedrock.Inputs.AgentcoreBrowserNetworkConfigurationArgs
{
NetworkMode = "PUBLIC",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.bedrock.AgentcoreBrowser;
import com.pulumi.aws.bedrock.AgentcoreBrowserArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreBrowserNetworkConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AgentcoreBrowser("example", AgentcoreBrowserArgs.builder()
.name("example-browser")
.description("Browser for web data extraction")
.networkConfiguration(AgentcoreBrowserNetworkConfigurationArgs.builder()
.networkMode("PUBLIC")
.build())
.build());
}
}
resources:
example:
type: aws:bedrock:AgentcoreBrowser
properties:
name: example-browser
description: Browser for web data extraction
networkConfiguration:
networkMode: PUBLIC
Browser with Execution Role and Recording
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const assumeRole = aws.iam.getPolicyDocument({
statements: [{
effect: "Allow",
actions: ["sts:AssumeRole"],
principals: [{
type: "Service",
identifiers: ["bedrock-agentcore.amazonaws.com"],
}],
}],
});
const example = new aws.iam.Role("example", {
name: "bedrock-agentcore-browser-role",
assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
});
const recording = new aws.s3.Bucket("recording", {bucket: "browser-recording-bucket"});
const exampleAgentcoreBrowser = new aws.bedrock.AgentcoreBrowser("example", {
name: "example-browser",
description: "Browser with recording enabled",
executionRoleArn: example.arn,
networkConfiguration: {
networkMode: "PUBLIC",
},
recording: {
enabled: true,
s3Location: {
bucket: recording.bucket,
prefix: "browser-sessions/",
},
},
});
import pulumi
import pulumi_aws as aws
assume_role = aws.iam.get_policy_document(statements=[{
"effect": "Allow",
"actions": ["sts:AssumeRole"],
"principals": [{
"type": "Service",
"identifiers": ["bedrock-agentcore.amazonaws.com"],
}],
}])
example = aws.iam.Role("example",
name="bedrock-agentcore-browser-role",
assume_role_policy=assume_role.json)
recording = aws.s3.Bucket("recording", bucket="browser-recording-bucket")
example_agentcore_browser = aws.bedrock.AgentcoreBrowser("example",
name="example-browser",
description="Browser with recording enabled",
execution_role_arn=example.arn,
network_configuration={
"network_mode": "PUBLIC",
},
recording={
"enabled": True,
"s3_location": {
"bucket": recording.bucket,
"prefix": "browser-sessions/",
},
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrock"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
Statements: []iam.GetPolicyDocumentStatement{
{
Effect: pulumi.StringRef("Allow"),
Actions: []string{
"sts:AssumeRole",
},
Principals: []iam.GetPolicyDocumentStatementPrincipal{
{
Type: "Service",
Identifiers: []string{
"bedrock-agentcore.amazonaws.com",
},
},
},
},
},
}, nil)
if err != nil {
return err
}
example, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
Name: pulumi.String("bedrock-agentcore-browser-role"),
AssumeRolePolicy: pulumi.String(assumeRole.Json),
})
if err != nil {
return err
}
recording, err := s3.NewBucket(ctx, "recording", &s3.BucketArgs{
Bucket: pulumi.String("browser-recording-bucket"),
})
if err != nil {
return err
}
_, err = bedrock.NewAgentcoreBrowser(ctx, "example", &bedrock.AgentcoreBrowserArgs{
Name: pulumi.String("example-browser"),
Description: pulumi.String("Browser with recording enabled"),
ExecutionRoleArn: example.Arn,
NetworkConfiguration: &bedrock.AgentcoreBrowserNetworkConfigurationArgs{
NetworkMode: pulumi.String("PUBLIC"),
},
Recording: &bedrock.AgentcoreBrowserRecordingArgs{
Enabled: pulumi.Bool(true),
S3Location: &bedrock.AgentcoreBrowserRecordingS3LocationArgs{
Bucket: recording.Bucket,
Prefix: pulumi.String("browser-sessions/"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
{
Statements = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
{
Effect = "Allow",
Actions = new[]
{
"sts:AssumeRole",
},
Principals = new[]
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
{
Type = "Service",
Identifiers = new[]
{
"bedrock-agentcore.amazonaws.com",
},
},
},
},
},
});
var example = new Aws.Iam.Role("example", new()
{
Name = "bedrock-agentcore-browser-role",
AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
});
var recording = new Aws.S3.Bucket("recording", new()
{
BucketName = "browser-recording-bucket",
});
var exampleAgentcoreBrowser = new Aws.Bedrock.AgentcoreBrowser("example", new()
{
Name = "example-browser",
Description = "Browser with recording enabled",
ExecutionRoleArn = example.Arn,
NetworkConfiguration = new Aws.Bedrock.Inputs.AgentcoreBrowserNetworkConfigurationArgs
{
NetworkMode = "PUBLIC",
},
Recording = new Aws.Bedrock.Inputs.AgentcoreBrowserRecordingArgs
{
Enabled = true,
S3Location = new Aws.Bedrock.Inputs.AgentcoreBrowserRecordingS3LocationArgs
{
Bucket = recording.BucketName,
Prefix = "browser-sessions/",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
import com.pulumi.aws.iam.Role;
import com.pulumi.aws.iam.RoleArgs;
import com.pulumi.aws.s3.Bucket;
import com.pulumi.aws.s3.BucketArgs;
import com.pulumi.aws.bedrock.AgentcoreBrowser;
import com.pulumi.aws.bedrock.AgentcoreBrowserArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreBrowserNetworkConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreBrowserRecordingArgs;
import com.pulumi.aws.bedrock.inputs.AgentcoreBrowserRecordingS3LocationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
.statements(GetPolicyDocumentStatementArgs.builder()
.effect("Allow")
.actions("sts:AssumeRole")
.principals(GetPolicyDocumentStatementPrincipalArgs.builder()
.type("Service")
.identifiers("bedrock-agentcore.amazonaws.com")
.build())
.build())
.build());
var example = new Role("example", RoleArgs.builder()
.name("bedrock-agentcore-browser-role")
.assumeRolePolicy(assumeRole.json())
.build());
var recording = new Bucket("recording", BucketArgs.builder()
.bucket("browser-recording-bucket")
.build());
var exampleAgentcoreBrowser = new AgentcoreBrowser("exampleAgentcoreBrowser", AgentcoreBrowserArgs.builder()
.name("example-browser")
.description("Browser with recording enabled")
.executionRoleArn(example.arn())
.networkConfiguration(AgentcoreBrowserNetworkConfigurationArgs.builder()
.networkMode("PUBLIC")
.build())
.recording(AgentcoreBrowserRecordingArgs.builder()
.enabled(true)
.s3Location(AgentcoreBrowserRecordingS3LocationArgs.builder()
.bucket(recording.bucket())
.prefix("browser-sessions/")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:iam:Role
properties:
name: bedrock-agentcore-browser-role
assumeRolePolicy: ${assumeRole.json}
recording:
type: aws:s3:Bucket
properties:
bucket: browser-recording-bucket
exampleAgentcoreBrowser:
type: aws:bedrock:AgentcoreBrowser
name: example
properties:
name: example-browser
description: Browser with recording enabled
executionRoleArn: ${example.arn}
networkConfiguration:
networkMode: PUBLIC
recording:
enabled: true
s3Location:
bucket: ${recording.bucket}
prefix: browser-sessions/
variables:
assumeRole:
fn::invoke:
function: aws:iam:getPolicyDocument
arguments:
statements:
- effect: Allow
actions:
- sts:AssumeRole
principals:
- type: Service
identifiers:
- bedrock-agentcore.amazonaws.com
Create AgentcoreBrowser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgentcoreBrowser(name: string, args?: AgentcoreBrowserArgs, opts?: CustomResourceOptions);@overload
def AgentcoreBrowser(resource_name: str,
args: Optional[AgentcoreBrowserArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AgentcoreBrowser(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
execution_role_arn: Optional[str] = None,
name: Optional[str] = None,
network_configuration: Optional[AgentcoreBrowserNetworkConfigurationArgs] = None,
recording: Optional[AgentcoreBrowserRecordingArgs] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[AgentcoreBrowserTimeoutsArgs] = None)func NewAgentcoreBrowser(ctx *Context, name string, args *AgentcoreBrowserArgs, opts ...ResourceOption) (*AgentcoreBrowser, error)public AgentcoreBrowser(string name, AgentcoreBrowserArgs? args = null, CustomResourceOptions? opts = null)
public AgentcoreBrowser(String name, AgentcoreBrowserArgs args)
public AgentcoreBrowser(String name, AgentcoreBrowserArgs args, CustomResourceOptions options)
type: aws:bedrock:AgentcoreBrowser
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AgentcoreBrowserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AgentcoreBrowserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AgentcoreBrowserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentcoreBrowserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentcoreBrowserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var agentcoreBrowserResource = new Aws.Bedrock.AgentcoreBrowser("agentcoreBrowserResource", new()
{
Description = "string",
ExecutionRoleArn = "string",
Name = "string",
NetworkConfiguration = new Aws.Bedrock.Inputs.AgentcoreBrowserNetworkConfigurationArgs
{
NetworkMode = "string",
NetworkModeConfig = new Aws.Bedrock.Inputs.AgentcoreBrowserNetworkConfigurationNetworkModeConfigArgs
{
SecurityGroups = new[]
{
"string",
},
Subnets = new[]
{
"string",
},
},
},
Recording = new Aws.Bedrock.Inputs.AgentcoreBrowserRecordingArgs
{
Enabled = false,
S3Location = new Aws.Bedrock.Inputs.AgentcoreBrowserRecordingS3LocationArgs
{
Bucket = "string",
Prefix = "string",
},
},
Region = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.Bedrock.Inputs.AgentcoreBrowserTimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := bedrock.NewAgentcoreBrowser(ctx, "agentcoreBrowserResource", &bedrock.AgentcoreBrowserArgs{
Description: pulumi.String("string"),
ExecutionRoleArn: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkConfiguration: &bedrock.AgentcoreBrowserNetworkConfigurationArgs{
NetworkMode: pulumi.String("string"),
NetworkModeConfig: &bedrock.AgentcoreBrowserNetworkConfigurationNetworkModeConfigArgs{
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
Subnets: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Recording: &bedrock.AgentcoreBrowserRecordingArgs{
Enabled: pulumi.Bool(false),
S3Location: &bedrock.AgentcoreBrowserRecordingS3LocationArgs{
Bucket: pulumi.String("string"),
Prefix: pulumi.String("string"),
},
},
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &bedrock.AgentcoreBrowserTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var agentcoreBrowserResource = new AgentcoreBrowser("agentcoreBrowserResource", AgentcoreBrowserArgs.builder()
.description("string")
.executionRoleArn("string")
.name("string")
.networkConfiguration(AgentcoreBrowserNetworkConfigurationArgs.builder()
.networkMode("string")
.networkModeConfig(AgentcoreBrowserNetworkConfigurationNetworkModeConfigArgs.builder()
.securityGroups("string")
.subnets("string")
.build())
.build())
.recording(AgentcoreBrowserRecordingArgs.builder()
.enabled(false)
.s3Location(AgentcoreBrowserRecordingS3LocationArgs.builder()
.bucket("string")
.prefix("string")
.build())
.build())
.region("string")
.tags(Map.of("string", "string"))
.timeouts(AgentcoreBrowserTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
agentcore_browser_resource = aws.bedrock.AgentcoreBrowser("agentcoreBrowserResource",
description="string",
execution_role_arn="string",
name="string",
network_configuration={
"network_mode": "string",
"network_mode_config": {
"security_groups": ["string"],
"subnets": ["string"],
},
},
recording={
"enabled": False,
"s3_location": {
"bucket": "string",
"prefix": "string",
},
},
region="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
})
const agentcoreBrowserResource = new aws.bedrock.AgentcoreBrowser("agentcoreBrowserResource", {
description: "string",
executionRoleArn: "string",
name: "string",
networkConfiguration: {
networkMode: "string",
networkModeConfig: {
securityGroups: ["string"],
subnets: ["string"],
},
},
recording: {
enabled: false,
s3Location: {
bucket: "string",
prefix: "string",
},
},
region: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
});
type: aws:bedrock:AgentcoreBrowser
properties:
description: string
executionRoleArn: string
name: string
networkConfiguration:
networkMode: string
networkModeConfig:
securityGroups:
- string
subnets:
- string
recording:
enabled: false
s3Location:
bucket: string
prefix: string
region: string
tags:
string: string
timeouts:
create: string
delete: string
AgentcoreBrowser Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AgentcoreBrowser resource accepts the following input properties:
- Description string
- Description of the browser.
- Execution
Role stringArn - ARN of the IAM role that the browser assumes for execution.
- Name string
- Name of the browser.
- Network
Configuration AgentcoreBrowser Network Configuration Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- Recording
Agentcore
Browser Recording - Recording configuration for browser sessions. See
recordingbelow. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agentcore
Browser Timeouts
- Description string
- Description of the browser.
- Execution
Role stringArn - ARN of the IAM role that the browser assumes for execution.
- Name string
- Name of the browser.
- Network
Configuration AgentcoreBrowser Network Configuration Args Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- Recording
Agentcore
Browser Recording Args - Recording configuration for browser sessions. See
recordingbelow. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Agentcore
Browser Timeouts Args
- description String
- Description of the browser.
- execution
Role StringArn - ARN of the IAM role that the browser assumes for execution.
- name String
- Name of the browser.
- network
Configuration AgentcoreBrowser Network Configuration Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording
Agentcore
Browser Recording - Recording configuration for browser sessions. See
recordingbelow. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Browser Timeouts
- description string
- Description of the browser.
- execution
Role stringArn - ARN of the IAM role that the browser assumes for execution.
- name string
- Name of the browser.
- network
Configuration AgentcoreBrowser Network Configuration Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording
Agentcore
Browser Recording - Recording configuration for browser sessions. See
recordingbelow. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Browser Timeouts
- description str
- Description of the browser.
- execution_
role_ strarn - ARN of the IAM role that the browser assumes for execution.
- name str
- Name of the browser.
- network_
configuration AgentcoreBrowser Network Configuration Args Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording
Agentcore
Browser Recording Args - Recording configuration for browser sessions. See
recordingbelow. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Agentcore
Browser Timeouts Args
- description String
- Description of the browser.
- execution
Role StringArn - ARN of the IAM role that the browser assumes for execution.
- name String
- Name of the browser.
- network
Configuration Property Map Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording Property Map
- Recording configuration for browser sessions. See
recordingbelow. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AgentcoreBrowser resource produces the following output properties:
- Browser
Arn string - ARN of the Browser.
- Browser
Id string - Unique identifier of the Browser.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- Browser
Arn string - ARN of the Browser.
- Browser
Id string - Unique identifier of the Browser.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- browser
Arn String - ARN of the Browser.
- browser
Id String - Unique identifier of the Browser.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- browser
Arn string - ARN of the Browser.
- browser
Id string - Unique identifier of the Browser.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- browser_
arn str - ARN of the Browser.
- browser_
id str - Unique identifier of the Browser.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- browser
Arn String - ARN of the Browser.
- browser
Id String - Unique identifier of the Browser.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
Look up Existing AgentcoreBrowser Resource
Get an existing AgentcoreBrowser resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AgentcoreBrowserState, opts?: CustomResourceOptions): AgentcoreBrowser@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
browser_arn: Optional[str] = None,
browser_id: Optional[str] = None,
description: Optional[str] = None,
execution_role_arn: Optional[str] = None,
name: Optional[str] = None,
network_configuration: Optional[AgentcoreBrowserNetworkConfigurationArgs] = None,
recording: Optional[AgentcoreBrowserRecordingArgs] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[AgentcoreBrowserTimeoutsArgs] = None) -> AgentcoreBrowserfunc GetAgentcoreBrowser(ctx *Context, name string, id IDInput, state *AgentcoreBrowserState, opts ...ResourceOption) (*AgentcoreBrowser, error)public static AgentcoreBrowser Get(string name, Input<string> id, AgentcoreBrowserState? state, CustomResourceOptions? opts = null)public static AgentcoreBrowser get(String name, Output<String> id, AgentcoreBrowserState state, CustomResourceOptions options)resources: _: type: aws:bedrock:AgentcoreBrowser get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Browser
Arn string - ARN of the Browser.
- Browser
Id string - Unique identifier of the Browser.
- Description string
- Description of the browser.
- Execution
Role stringArn - ARN of the IAM role that the browser assumes for execution.
- Name string
- Name of the browser.
- Network
Configuration AgentcoreBrowser Network Configuration Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- Recording
Agentcore
Browser Recording - Recording configuration for browser sessions. See
recordingbelow. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Agentcore
Browser Timeouts
- Browser
Arn string - ARN of the Browser.
- Browser
Id string - Unique identifier of the Browser.
- Description string
- Description of the browser.
- Execution
Role stringArn - ARN of the IAM role that the browser assumes for execution.
- Name string
- Name of the browser.
- Network
Configuration AgentcoreBrowser Network Configuration Args Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- Recording
Agentcore
Browser Recording Args - Recording configuration for browser sessions. See
recordingbelow. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Agentcore
Browser Timeouts Args
- browser
Arn String - ARN of the Browser.
- browser
Id String - Unique identifier of the Browser.
- description String
- Description of the browser.
- execution
Role StringArn - ARN of the IAM role that the browser assumes for execution.
- name String
- Name of the browser.
- network
Configuration AgentcoreBrowser Network Configuration Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording
Agentcore
Browser Recording - Recording configuration for browser sessions. See
recordingbelow. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Browser Timeouts
- browser
Arn string - ARN of the Browser.
- browser
Id string - Unique identifier of the Browser.
- description string
- Description of the browser.
- execution
Role stringArn - ARN of the IAM role that the browser assumes for execution.
- name string
- Name of the browser.
- network
Configuration AgentcoreBrowser Network Configuration Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording
Agentcore
Browser Recording - Recording configuration for browser sessions. See
recordingbelow. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Browser Timeouts
- browser_
arn str - ARN of the Browser.
- browser_
id str - Unique identifier of the Browser.
- description str
- Description of the browser.
- execution_
role_ strarn - ARN of the IAM role that the browser assumes for execution.
- name str
- Name of the browser.
- network_
configuration AgentcoreBrowser Network Configuration Args Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording
Agentcore
Browser Recording Args - Recording configuration for browser sessions. See
recordingbelow. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Agentcore
Browser Timeouts Args
- browser
Arn String - ARN of the Browser.
- browser
Id String - Unique identifier of the Browser.
- description String
- Description of the browser.
- execution
Role StringArn - ARN of the IAM role that the browser assumes for execution.
- name String
- Name of the browser.
- network
Configuration Property Map Network configuration for the browser. See
network_configurationbelow.The following arguments are optional:
- recording Property Map
- Recording configuration for browser sessions. See
recordingbelow. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Key-value map of resource tags. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts Property Map
Supporting Types
AgentcoreBrowserNetworkConfiguration, AgentcoreBrowserNetworkConfigurationArgs
- Network
Mode string - Network mode for the browser. Valid values:
PUBLIC,SANDBOX. - Network
Mode AgentcoreConfig Browser Network Configuration Network Mode Config
- Network
Mode string - Network mode for the browser. Valid values:
PUBLIC,SANDBOX. - Network
Mode AgentcoreConfig Browser Network Configuration Network Mode Config
- network
Mode String - Network mode for the browser. Valid values:
PUBLIC,SANDBOX. - network
Mode AgentcoreConfig Browser Network Configuration Network Mode Config
- network
Mode string - Network mode for the browser. Valid values:
PUBLIC,SANDBOX. - network
Mode AgentcoreConfig Browser Network Configuration Network Mode Config
- network_
mode str - Network mode for the browser. Valid values:
PUBLIC,SANDBOX. - network_
mode_ Agentcoreconfig Browser Network Configuration Network Mode Config
- network
Mode String - Network mode for the browser. Valid values:
PUBLIC,SANDBOX. - network
Mode Property MapConfig
AgentcoreBrowserNetworkConfigurationNetworkModeConfig, AgentcoreBrowserNetworkConfigurationNetworkModeConfigArgs
- Security
Groups List<string> - Subnets List<string>
- Security
Groups []string - Subnets []string
- security
Groups List<String> - subnets List<String>
- security
Groups string[] - subnets string[]
- security_
groups Sequence[str] - subnets Sequence[str]
- security
Groups List<String> - subnets List<String>
AgentcoreBrowserRecording, AgentcoreBrowserRecordingArgs
- Enabled bool
- Whether to enable recording for browser sessions. Defaults to
false. - S3Location
Agentcore
Browser Recording S3Location - S3 location where browser session recordings are stored. See
s3_locationbelow.
- Enabled bool
- Whether to enable recording for browser sessions. Defaults to
false. - S3Location
Agentcore
Browser Recording S3Location - S3 location where browser session recordings are stored. See
s3_locationbelow.
- enabled Boolean
- Whether to enable recording for browser sessions. Defaults to
false. - s3Location
Agentcore
Browser Recording S3Location - S3 location where browser session recordings are stored. See
s3_locationbelow.
- enabled boolean
- Whether to enable recording for browser sessions. Defaults to
false. - s3Location
Agentcore
Browser Recording S3Location - S3 location where browser session recordings are stored. See
s3_locationbelow.
- enabled bool
- Whether to enable recording for browser sessions. Defaults to
false. - s3_
location AgentcoreBrowser Recording S3Location - S3 location where browser session recordings are stored. See
s3_locationbelow.
- enabled Boolean
- Whether to enable recording for browser sessions. Defaults to
false. - s3Location Property Map
- S3 location where browser session recordings are stored. See
s3_locationbelow.
AgentcoreBrowserRecordingS3Location, AgentcoreBrowserRecordingS3LocationArgs
AgentcoreBrowserTimeouts, AgentcoreBrowserTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
Import
Using pulumi import, import Bedrock AgentCore Browser using the browser ID. For example:
$ pulumi import aws:bedrock/agentcoreBrowser:AgentcoreBrowser example BROWSER1234567890
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
