> **Experimental**
>
> `@aws-cdk/aws-bedrock-agentcore-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# IBrowserCustom

Interface for Browser resources.

Extends: IBrowserCustom
Extends: IResource, IGrantable, IConnectable, IBrowserCustomRef
Implemented by: BrowserCustom, BrowserCustomBase

- Source: [`lib/tools/browser.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/tools/browser.ts#L94)

## Properties

- `browserArn`: string — The ARN of the browser resource.

- `browserCustomRef`: [BrowserCustomReference](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_bedrockagentcore.BrowserCustomReference.html) — A reference to a BrowserCustom resource.

- `browserId`: string — The id of the browser.

- `connections`: [Connections](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Connections.html) — The network connections associated with this resource.

- `createdAt`: string — Timestamp when the browser was created.

- `env`: [ResourceEnvironment](/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `executionRole`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM role that provides permissions for the browser to access AWS services.

- `grantPrincipal`: [IPrincipal](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IPrincipal.html) — The principal to grant permissions to.

- `lastUpdatedAt`: string — Timestamp when the browser was last updated.

- `node`: [Node](/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `stack`: [Stack](/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

- `status`: string — The status of the browser.

## Methods

- `applyRemovalPolicy(policy: RemovalPolicy): void` — Apply the given removal policy to this resource.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).

- `grant(grantee: IGrantable, ...actions: string[]): Grant` — Grants IAM actions to the IAM Principal.

- `grantRead(grantee: IGrantable): Grant` — Grants `Get` and `List` actions on the Browser.

- `grantUse(grantee: IGrantable): Grant` — Grants `Invoke`, `Start`, and `Update` actions on the Browser.

- `metric(metricName: string, dimensions: { [key: string]: string }, props?: MetricOptions): Metric` — Return the given named metric for this browser.

- `metricErrorsForApiOperation(operation: string, props?: MetricOptions): Metric` — Return a metric containing the number of errors for a specific API operation performed on this browser.

- `metricForApiOperation(metricName: string, operation: string, props?: MetricOptions): Metric` — Return the given named metric related to the API operation performed on this browser.

- `metricInvocationsForApiOperation(operation: string, props?: MetricOptions): Metric` — Return a metric containing the total number of API requests made for a specific browser operation.

- `metricLatencyForApiOperation(operation: string, props?: MetricOptions): Metric` — Return a metric measuring the latency of a specific API operation performed on this browser.

- `metricSessionDuration(props?: MetricOptions): Metric` — Return a metric measuring the duration of browser sessions.

- `metricSystemErrorsForApiOperation(operation: string, props?: MetricOptions): Metric` — Return a metric containing the number of system errors for a specific API operation performed on this browser.

- `metricTakeOverCount(props?: MetricOptions): Metric` — Return a metric containing the number of user takeovers.

- `metricTakeOverDuration(props?: MetricOptions): Metric` — Return a metric measuring the duration of user takeovers.

- `metricTakeOverReleaseCount(props?: MetricOptions): Metric` — Return a metric containing the number of user takeovers released.

- `metricThrottlesForApiOperation(operation: string, props?: MetricOptions): Metric` — Return a metric containing the number of throttled requests for a specific API operation performed on this browser.

- `metricUserErrorsForApiOperation(operation: string, props?: MetricOptions): Metric` — Return a metric containing the number of user errors for a specific API operation performed on this browser.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
