Class BrowserCustomBase
- All Implemented Interfaces:
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.bedrock.agentcore.alpha.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 String(experimental) The ARN of the browser resource.abstract String(experimental) The id of the browser.(experimental) An accessor for the Connections object that will fail if this Browser does not have a VPC configured.abstract String(experimental) Timestamp when the browser was created.abstract IRole(experimental) The IAM role that provides permissions for the browser to access AWS services.abstract IPrincipal(experimental) The principal to grant permissions to.abstract String(experimental) Timestamp when the browser was last updated.abstract String(experimental) The status of the browser.grant(IGrantable grantee, String... actions) (experimental) Grants IAM actions to the IAM Principal.grantRead(IGrantable grantee) (experimental) Grant read permissions on this browser to an IAM principal.grantUse(IGrantable grantee) (experimental) Grant invoke permissions on this browser to an IAM principal.(experimental) Return the given named metric for this browser.(experimental) Return the given named metric for this browser.metricErrorsForApiOperation(String operation) (experimental) Creates a CloudWatch metric for tracking browser errors.metricErrorsForApiOperation(String operation, MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser errors.metricForApiOperation(String metricName, String operation) (experimental) Creates a CloudWatch metric for tracking browser api operations..metricForApiOperation(String metricName, String operation, MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser api operations..metricInvocationsForApiOperation(String operation) (experimental) Creates a CloudWatch metric for tracking browser invocations.metricInvocationsForApiOperation(String operation, MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser invocations.metricLatencyForApiOperation(String operation) (experimental) Creates a CloudWatch metric for tracking browser latencies.metricLatencyForApiOperation(String operation, MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser latencies.(experimental) Creates a CloudWatch metric for tracking browser session duration.(experimental) Creates a CloudWatch metric for tracking browser session duration.metricSystemErrorsForApiOperation(String operation) (experimental) Creates a CloudWatch metric for tracking browser system errors.metricSystemErrorsForApiOperation(String operation, MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser system errors.(experimental) Creates a CloudWatch metric for tracking browser user takeovers.metricTakeOverCount(MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser user takeovers.(experimental) Creates a CloudWatch metric for tracking browser user takeovers duration.(experimental) Creates a CloudWatch metric for tracking browser user takeovers duration.(experimental) Creates a CloudWatch metric for tracking browser user takeovers released.(experimental) Creates a CloudWatch metric for tracking browser user takeovers released.metricThrottlesForApiOperation(String operation) (experimental) Creates a CloudWatch metric for tracking browser throttles.metricThrottlesForApiOperation(String operation, MetricOptions props) (experimental) Creates a CloudWatch metric for tracking browser throttles.metricUserErrorsForApiOperation(String operation) (experimental) Creates a CloudWatch metric for tracking browser user errors.metricUserErrorsForApiOperation(String operation, MetricOptions props) (experimental) 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, isResourceMethods 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
getNodeMethods 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(Experimental) 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(Experimental) 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(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) 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
(experimental) 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
(experimental) 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(Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull Map<String, String> dimensions, @Nullable MetricOptions props) (experimental) 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.dimensions- This parameter is required.props-
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @NotNull Map<String, String> dimensions) (experimental) 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.dimensions- This parameter is required.
-
metricErrorsForApiOperation
@Stability(Experimental) @NotNull public Metric metricErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) (experimental) 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
@Stability(Experimental) @NotNull public Metric metricErrorsForApiOperation(@NotNull String operation) (experimental) 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(Experimental) @NotNull public Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation, @Nullable MetricOptions props) (experimental) 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(Experimental) @NotNull public Metric metricForApiOperation(@NotNull String metricName, @NotNull String operation) (experimental) 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(Experimental) @NotNull public Metric metricInvocationsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) (experimental) 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(Experimental) @NotNull public Metric metricInvocationsForApiOperation(@NotNull String operation) (experimental) 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(Experimental) @NotNull public Metric metricLatencyForApiOperation(@NotNull String operation, @Nullable MetricOptions props) (experimental) 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
@Stability(Experimental) @NotNull public Metric metricLatencyForApiOperation(@NotNull String operation) (experimental) 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
@Stability(Experimental) @NotNull public Metric metricSessionDuration(@Nullable MetricOptions props) (experimental) 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
(experimental) 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(Experimental) @NotNull public Metric metricSystemErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) (experimental) 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(Experimental) @NotNull public Metric metricSystemErrorsForApiOperation(@NotNull String operation) (experimental) 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
(experimental) 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
(experimental) 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
@Stability(Experimental) @NotNull public Metric metricTakeOverDuration(@Nullable MetricOptions props) (experimental) 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
(experimental) 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
@Stability(Experimental) @NotNull public Metric metricTakeOverReleaseCount(@Nullable MetricOptions props) (experimental) 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
(experimental) 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(Experimental) @NotNull public Metric metricThrottlesForApiOperation(@NotNull String operation, @Nullable MetricOptions props) (experimental) 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
@Stability(Experimental) @NotNull public Metric metricThrottlesForApiOperation(@NotNull String operation) (experimental) 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(Experimental) @NotNull public Metric metricUserErrorsForApiOperation(@NotNull String operation, @Nullable MetricOptions props) (experimental) 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(Experimental) @NotNull public Metric metricUserErrorsForApiOperation(@NotNull String operation) (experimental) 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
(experimental) The ARN of the browser resource.- Specified by:
getBrowserArnin interfaceIBrowserCustom
-
getBrowserId
(experimental) The id of the browser.- Specified by:
getBrowserIdin interfaceIBrowserCustom
-
getConnections
(experimental) An accessor for the Connections object that will fail if this Browser does not have a VPC configured.- Specified by:
getConnectionsin interfaceIConnectable
-
getExecutionRole
(experimental) The IAM role that provides permissions for the browser to access AWS services.- Specified by:
getExecutionRolein interfaceIBrowserCustom
-
getGrantPrincipal
(experimental) The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-
getCreatedAt
(experimental) Timestamp when the browser was created.- Specified by:
getCreatedAtin interfaceIBrowserCustom
-
getLastUpdatedAt
(experimental) Timestamp when the browser was last updated.- Specified by:
getLastUpdatedAtin interfaceIBrowserCustom
-
getStatus
(experimental) The status of the browser.- Specified by:
getStatusin interfaceIBrowserCustom
-