Class BrowserCustomBase
- All Implemented Interfaces:
IBrowserCustomRef,IEnvironmentAware,IResource,IBrowserCustom,IConnectable,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
BrowserCustom
Contains methods and attributes valid for Browsers either created with CDK or imported.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IBrowserCustom
IBrowserCustom.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBrowserCustomBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBrowserCustomBase(software.amazon.jsii.JsiiObjectRef objRef) protectedBrowserCustomBase(software.constructs.Construct scope, String id) protectedBrowserCustomBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract StringThe ARN of the browser resource.A reference to a BrowserCustom resource.abstract StringThe id of the browser.An accessor for the Connections object that will fail if this Browser does not have a VPC configured.abstract StringTimestamp when the browser was created.abstract IRoleThe IAM role that provides permissions for the browser to access AWS services.abstract IPrincipalThe principal to grant permissions to.abstract StringTimestamp when the browser was last updated.abstract StringThe status of the browser.grant(IGrantable grantee, String... actions) Grants IAM actions to the IAM Principal.grantRead(IGrantable grantee) Grant read permissions on this browser to an IAM principal.grantUse(IGrantable grantee) Grant invoke permissions on this browser to an IAM principal.Return the given named metric for this browser.metric(String metricName, MetricOptions props) Return the given named metric for this browser.metricErrorsForApiOperation(String operation) Creates a CloudWatch metric for tracking browser errors.metricErrorsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser errors.metricForApiOperation(String metricName, String operation) Creates a CloudWatch metric for tracking browser api operations..metricForApiOperation(String metricName, String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser api operations..metricInvocationsForApiOperation(String operation) Creates a CloudWatch metric for tracking browser invocations.metricInvocationsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser invocations.metricLatencyForApiOperation(String operation) Creates a CloudWatch metric for tracking browser latencies.metricLatencyForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser latencies.Creates a CloudWatch metric for tracking browser session duration.Creates a CloudWatch metric for tracking browser session duration.metricSystemErrorsForApiOperation(String operation) Creates a CloudWatch metric for tracking browser system errors.metricSystemErrorsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser system errors.Creates a CloudWatch metric for tracking browser user takeovers.metricTakeOverCount(MetricOptions props) Creates a CloudWatch metric for tracking browser user takeovers.Creates a CloudWatch metric for tracking browser user takeovers duration.Creates a CloudWatch metric for tracking browser user takeovers duration.Creates a CloudWatch metric for tracking browser user takeovers released.Creates a CloudWatch metric for tracking browser user takeovers released.metricThrottlesForApiOperation(String operation) Creates a CloudWatch metric for tracking browser throttles.metricThrottlesForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser throttles.metricUserErrorsForApiOperation(String operation) Creates a CloudWatch metric for tracking browser user errors.metricUserErrorsForApiOperation(String operation, MetricOptions props) Creates a CloudWatch metric for tracking browser user errors.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BrowserCustomBase
protected BrowserCustomBase(software.amazon.jsii.JsiiObjectRef objRef) -
BrowserCustomBase
protected BrowserCustomBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BrowserCustomBase
@Stability(Stable) protected BrowserCustomBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
BrowserCustomBase
@Stability(Stable) protected BrowserCustomBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grants IAM actions to the IAM Principal.[disable-awslint:no-grants]
- Specified by:
grantin interfaceIBrowserCustom- Parameters:
grantee-- The IAM principal to grant permissions to.
actions-- The actions to grant.
- Returns:
- An IAM Grant object representing the granted permissions
-
grantRead
Grant read permissions on this browser to an IAM principal.This includes both read permissions on the specific browser and list permissions on all browsers.
[disable-awslint:no-grants]
Default: - Default grant configuration: - actions: ['bedrock-agentcore:GetBrowser', 'bedrock-agentcore:GetBrowserSession'] on this.browserArn - actions: ['bedrock-agentcore:ListBrowsers', 'bedrock-agentcore:ListBrowserSessions'] on all resources (*)
- Specified by:
grantReadin interfaceIBrowserCustom- Parameters:
grantee-- The IAM principal to grant read permissions to.
- Returns:
- An IAM Grant object representing the granted permissions
-
grantUse
Grant invoke permissions on this browser to an IAM principal.[disable-awslint:no-grants]
Default: - Default grant configuration: - actions: ['bedrock-agentcore:StartBrowserSession', 'bedrock-agentcore:UpdateBrowserStream', 'bedrock-agentcore:StopBrowserSession'] - resourceArns: [this.browserArn]
- Specified by:
grantUsein interfaceIBrowserCustom- Parameters:
grantee-- The IAM principal to grant invoke permissions to.
- Returns:
- An IAM Grant object representing the granted permissions
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this browser.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties.- Specified by:
metricin interfaceIBrowserCustom- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this browser.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties.- Specified by:
metricin interfaceIBrowserCustom- Parameters:
metricName- This parameter is required.
-
metricErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Errors
- Specified by:
metricErrorsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser errors
-
metricErrorsForApiOperation
Creates a CloudWatch metric for tracking browser errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Errors
- Specified by:
metricErrorsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser errors
-
metricForApiOperation
@Stability(Stable) @NotNull public Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser api operations..Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: metricName - dimensionsMap: { BrowserId: this.browserId }
- Specified by:
metricForApiOperationin interfaceIBrowserCustom- Parameters:
metricName- This parameter is required.operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser api operations
-
metricForApiOperation
@Stability(Stable) @NotNull public Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation) Creates a CloudWatch metric for tracking browser api operations..Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: metricName - dimensionsMap: { BrowserId: this.browserId }
- Specified by:
metricForApiOperationin interfaceIBrowserCustom- Parameters:
metricName- This parameter is required.operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser api operations
-
metricInvocationsForApiOperation
@Stability(Stable) @NotNull public Metric metricInvocationsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser invocations.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Invocations
- Specified by:
metricInvocationsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser latencies
-
metricInvocationsForApiOperation
@Stability(Stable) @NotNull public Metric metricInvocationsForApiOperation(@NotNull String operation) Creates a CloudWatch metric for tracking browser invocations.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Invocations
- Specified by:
metricInvocationsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser latencies
-
metricLatencyForApiOperation
@Stability(Stable) @NotNull public Metric metricLatencyForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser latencies.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Latency
- Specified by:
metricLatencyForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser latencies
-
metricLatencyForApiOperation
Creates a CloudWatch metric for tracking browser latencies.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Latency
- Specified by:
metricLatencyForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser latencies
-
metricSessionDuration
Creates a CloudWatch metric for tracking browser session duration.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Duration
- Specified by:
metricSessionDurationin interfaceIBrowserCustom- Parameters:
props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser session duration
-
metricSessionDuration
Creates a CloudWatch metric for tracking browser session duration.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Duration
- Specified by:
metricSessionDurationin interfaceIBrowserCustom- Returns:
- A CloudWatch Metric configured for browser session duration
-
metricSystemErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricSystemErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser system errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: SystemErrors
- Specified by:
metricSystemErrorsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser system errors
-
metricSystemErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricSystemErrorsForApiOperation(@NotNull String operation) Creates a CloudWatch metric for tracking browser system errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: SystemErrors
- Specified by:
metricSystemErrorsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser system errors
-
metricTakeOverCount
Creates a CloudWatch metric for tracking browser user takeovers.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: TakeOverCount
- Specified by:
metricTakeOverCountin interfaceIBrowserCustom- Parameters:
props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser user takeovers
-
metricTakeOverCount
Creates a CloudWatch metric for tracking browser user takeovers.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: TakeOverCount
- Specified by:
metricTakeOverCountin interfaceIBrowserCustom- Returns:
- A CloudWatch Metric configured for browser user takeovers
-
metricTakeOverDuration
Creates a CloudWatch metric for tracking browser user takeovers duration.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: TakeOverDuration
- Specified by:
metricTakeOverDurationin interfaceIBrowserCustom- Parameters:
props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser user takeovers duration
-
metricTakeOverDuration
Creates a CloudWatch metric for tracking browser user takeovers duration.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: TakeOverDuration
- Specified by:
metricTakeOverDurationin interfaceIBrowserCustom- Returns:
- A CloudWatch Metric configured for browser user takeovers duration
-
metricTakeOverReleaseCount
Creates a CloudWatch metric for tracking browser user takeovers released.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: TakeOverReleaseCount
- Specified by:
metricTakeOverReleaseCountin interfaceIBrowserCustom- Parameters:
props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser user takeovers released
-
metricTakeOverReleaseCount
Creates a CloudWatch metric for tracking browser user takeovers released.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: TakeOverReleaseCount
- Specified by:
metricTakeOverReleaseCountin interfaceIBrowserCustom- Returns:
- A CloudWatch Metric configured for browser user takeovers released
-
metricThrottlesForApiOperation
@Stability(Stable) @NotNull public Metric metricThrottlesForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser throttles.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Throttles
- Specified by:
metricThrottlesForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser throttles
-
metricThrottlesForApiOperation
Creates a CloudWatch metric for tracking browser throttles.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: Throttles
- Specified by:
metricThrottlesForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser throttles
-
metricUserErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricUserErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) Creates a CloudWatch metric for tracking browser user errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: UserErrors
- Specified by:
metricUserErrorsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.props-- Configuration options for the metric.
- Returns:
- A CloudWatch Metric configured for browser user errors
-
metricUserErrorsForApiOperation
@Stability(Stable) @NotNull public Metric metricUserErrorsForApiOperation(@NotNull String operation) Creates a CloudWatch metric for tracking browser user errors.Default: - Default metric configuration: - namespace: 'AWS/Bedrock-AgentCore' - metricName: UserErrors
- Specified by:
metricUserErrorsForApiOperationin interfaceIBrowserCustom- Parameters:
operation- This parameter is required.- Returns:
- A CloudWatch Metric configured for browser user errors
-
getBrowserArn
The ARN of the browser resource.- Specified by:
getBrowserArnin interfaceIBrowserCustom
-
getBrowserCustomRef
A reference to a BrowserCustom resource.- Specified by:
getBrowserCustomRefin interfaceIBrowserCustomRef
-
getBrowserId
The id of the browser.- Specified by:
getBrowserIdin interfaceIBrowserCustom
-
getConnections
An accessor for the Connections object that will fail if this Browser does not have a VPC configured.- Specified by:
getConnectionsin interfaceIConnectable
-
getExecutionRole
The IAM role that provides permissions for the browser to access AWS services.- Specified by:
getExecutionRolein interfaceIBrowserCustom
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getCreatedAt
Timestamp when the browser was created.- Specified by:
getCreatedAtin interfaceIBrowserCustom
-
getLastUpdatedAt
Timestamp when the browser was last updated.- Specified by:
getLastUpdatedAtin interfaceIBrowserCustom
-
getStatus
The status of the browser.- Specified by:
getStatusin interfaceIBrowserCustom
-