Skip to content
v2.274.0

Experimental

@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

BrowserCustom L2 construct ​

Browser resource for AWS Bedrock Agent Core.

Provides a browser environment for web automation and interaction.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const browserNetworkConfiguration: bedrock_agentcore_alpha.BrowserNetworkConfiguration;
declare const role: iam.Role;
const browserCustom = new bedrock_agentcore_alpha.BrowserCustom(this, 'MyBrowserCustom', /* all optional props */ {
  browserCustomName: 'browserCustomName',
  browserSigning: bedrock_agentcore_alpha.BrowserSigning.ENABLED,
  description: 'description',
  executionRole: role,
  networkConfiguration: browserNetworkConfiguration,
  recordingConfig: {
    enabled: false,
    s3Location: {
      bucketName: 'bucketName',
      objectKey: 'objectKey',

      // the properties below are optional
      objectVersion: 'objectVersion',
    },
  },
  tags: {
    tagsKey: 'tags',
  },
});
python
from aws_cdk.aws_s3 import Location
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
from aws_cdk import aws_iam as iam

# browser_network_configuration: bedrock_agentcore_alpha.BrowserNetworkConfiguration
# role: iam.Role

browser_custom = bedrock_agentcore_alpha.BrowserCustom(self, "MyBrowserCustom",
    browser_custom_name="browserCustomName",
    browser_signing=bedrock_agentcore_alpha.BrowserSigning.ENABLED,
    description="description",
    execution_role=role,
    network_configuration=browser_network_configuration,
    recording_config=bedrock_agentcore_alpha.RecordingConfig(
        enabled=False,
        s3_location=Location(
            bucket_name="bucketName",
            object_key="objectKey",

            # the properties below are optional
            object_version="objectVersion"
        )
    ),
    tags={
        "tags_key": "tags"
    }
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
import software.amazon.awscdk.services.iam.*;

BrowserNetworkConfiguration browserNetworkConfiguration;
Role role;

BrowserCustom browserCustom = BrowserCustom.Builder.create(this, "MyBrowserCustom")
        .browserCustomName("browserCustomName")
        .browserSigning(BrowserSigning.ENABLED)
        .description("description")
        .executionRole(role)
        .networkConfiguration(browserNetworkConfiguration)
        .recordingConfig(RecordingConfig.builder()
                .enabled(false)
                .s3Location(Location.builder()
                        .bucketName("bucketName")
                        .objectKey("objectKey")

                        // the properties below are optional
                        .objectVersion("objectVersion")
                        .build())
                .build())
        .tags(Map.of(
                "tagsKey", "tags"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
using Amazon.CDK.AWS.IAM;

BrowserNetworkConfiguration browserNetworkConfiguration;
Role role;

var browserCustom = new BrowserCustom(this, "MyBrowserCustom", new BrowserCustomProps {
    BrowserCustomName = "browserCustomName",
    BrowserSigning = BrowserSigning.ENABLED,
    Description = "description",
    ExecutionRole = role,
    NetworkConfiguration = browserNetworkConfiguration,
    RecordingConfig = new RecordingConfig {
        Enabled = false,
        S3Location = new Location {
            BucketName = "bucketName",
            ObjectKey = "objectKey",

            // the properties below are optional
            ObjectVersion = "objectVersion"
        }
    },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
import "github.com/aws/aws-cdk-go/awscdk"

var browserNetworkConfiguration BrowserNetworkConfiguration
var role Role

browserCustom := bedrock_agentcore_alpha.NewBrowserCustom(this, jsii.String("MyBrowserCustom"), &BrowserCustomProps{
	BrowserCustomName: jsii.String("browserCustomName"),
	BrowserSigning: bedrock_agentcore_alpha.BrowserSigning_ENABLED,
	Description: jsii.String("description"),
	ExecutionRole: role,
	NetworkConfiguration: browserNetworkConfiguration,
	RecordingConfig: &RecordingConfig{
		Enabled: jsii.Boolean(false),
		S3Location: &Location{
			BucketName: jsii.String("bucketName"),
			ObjectKey: jsii.String("objectKey"),

			// the properties below are optional
			ObjectVersion: jsii.String("objectVersion"),
		},
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
})

Initializer ​

ts
new BrowserCustom(scope: Construct, id: string, props?: BrowserCustomProps)
python
BrowserCustom(scope: Construct, id: str, props: typing.Optional[BrowserCustomProps] = None)
java
new BrowserCustom(Construct scope, String id, BrowserCustomProps props)
csharp
new BrowserCustom(Construct scope, string id, BrowserCustomProps? props = null)
go
NewBrowserCustom(Scope Construct, Id *string, Props BrowserCustomProps)

Construct Props ​

browserCustomNameoptionalstringbrowser_custom_nameoptionalstrbrowserCustomNameoptionalStringBrowserCustomNameoptionalstringBrowserCustomNameoptional*string#
The name of the browser Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}.

Default: auto generate

browserSigningoptionalBrowserSigningbrowser_signingoptionalBrowserSigningbrowserSigningoptionalBrowserSigningBrowserSigningoptionalBrowserSigningBrowserSigningoptionalBrowserSigning= BrowserSigning.DISABLED#
Specifies whether browser signing is enabled.

When enabled, the browser will cryptographically sign HTTP requests to identify itself as an AI agent to bot control vendors.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
Optional description for the browser Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.

Default: No description

executionRoleoptionalIRoleexecution_roleoptionalIRoleexecutionRoleoptionalIRoleExecutionRoleoptionalIRoleExecutionRoleoptionalIRole#
The IAM role that provides permissions for the browser to access AWS services.

Default: A new role will be created

networkConfigurationoptionalBrowserNetworkConfigurationnetwork_configurationoptionalBrowserNetworkConfigurationnetworkConfigurationoptionalBrowserNetworkConfigurationNetworkConfigurationoptionalBrowserNetworkConfigurationNetworkConfigurationoptionalBrowserNetworkConfiguration#
Network configuration for browser.

Default: PUBLIC network mode

recordingConfigoptionalRecordingConfigrecording_configoptionalRecordingConfigrecordingConfigoptionalRecordingConfigRecordingConfigoptionalRecordingConfigRecordingConfigoptionalRecordingConfig#
Recording configuration for browser.

Default: No recording configuration

tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
Tags (optional) A list of key:value pairs of tags to apply to this Browser resource.

Default: {} - no tags

Properties ​

browserArnstringbrowser_arnstrbrowserArnStringBrowserArnstringBrowserArn*stringrequired#
The ARN of the browser resource.
browserCustomRefBrowserCustomReferencebrowser_custom_refBrowserCustomReferencebrowserCustomRefBrowserCustomReferenceBrowserCustomRefBrowserCustomReferenceBrowserCustomRefBrowserCustomReferencerequired#
A reference to a BrowserCustom resource.
browserIdstringbrowser_idstrbrowserIdStringBrowserIdstringBrowserId*stringrequired#
The id of the browser.
browserSigningmay be undefinedBrowserSigningbrowser_signingmay be undefinedBrowserSigningbrowserSigningmay be undefinedBrowserSigningBrowserSigningmay be undefinedBrowserSigningBrowserSigningmay be undefinedBrowserSigning#
The browser signing configuration of the browser.
connectionsConnectionsconnectionsConnectionsconnectionsConnectionsConnectionsConnectionsConnectionsConnectionsrequired#
An accessor for the Connections object that will fail if this Browser does not have a VPC configured.
createdAtmay be undefinedstringcreated_atmay be undefinedstrcreatedAtmay be undefinedStringCreatedAtmay be undefinedstringCreatedAtmay be undefined*string#
The created timestamp of the browser.
descriptionmay be undefinedstringdescriptionmay be undefinedstrdescriptionmay be undefinedStringDescriptionmay be undefinedstringDescriptionmay be undefined*string#
The description of the browser.
The environment this resource belongs to.
notes

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.

executionRoleIRoleexecution_roleIRoleexecutionRoleIRoleExecutionRoleIRoleExecutionRoleIRolerequired#
The IAM role associated to the browser.
failureReasonmay be undefinedstringfailure_reasonmay be undefinedstrfailureReasonmay be undefinedStringFailureReasonmay be undefinedstringFailureReasonmay be undefined*string#
The failure reason of the browser.
grantPrincipalIPrincipalgrant_principalIPrincipalgrantPrincipalIPrincipalGrantPrincipalIPrincipalGrantPrincipalIPrincipalrequired#
The principal to grant permissions to.
lastUpdatedAtmay be undefinedstringlast_updated_atmay be undefinedstrlastUpdatedAtmay be undefinedStringLastUpdatedAtmay be undefinedstringLastUpdatedAtmay be undefined*string#
The last updated timestamp of the browser.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the browser.
networkConfigurationBrowserNetworkConfigurationnetwork_configurationBrowserNetworkConfigurationnetworkConfigurationBrowserNetworkConfigurationNetworkConfigurationBrowserNetworkConfigurationNetworkConfigurationBrowserNetworkConfigurationrequired#
The network configuration of the browser.
nodeNodenodeNodenodeNodeNodeNodeNodeNoderequired#
The tree node.
PROPERTY_INJECTION_IDstringproperty_injection_idstrPROPERTY_INJECTION_IDStringPROPERTY_INJECTION_IDstringPROPERTY_INJECTION_ID*stringrequiredstatic#
Uniquely identifies this class.
recordingConfigmay be undefinedRecordingConfigrecording_configmay be undefinedRecordingConfigrecordingConfigmay be undefinedRecordingConfigRecordingConfigmay be undefinedRecordingConfigRecordingConfigmay be undefinedRecordingConfig#
The recording configuration of the browser.
stackStackstackStackstackStackStackStackStackStackrequired#
The stack in which this resource is defined.
statusmay be undefinedstringstatusmay be undefinedstrstatusmay be undefinedStringStatusmay be undefinedstringStatusmay be undefined*string#
The status of the browser.
tagsmay be undefined{ [key: string]: string }tagsmay be undefinedtyping.Mapping[str, str]tagsmay be undefinedMap<String, String>Tagsmay be undefinedIDictionary<string, string>Tagsmay be undefined*map[string]*string#
Tags applied to this browser resource A map of key-value pairs for resource tagging.

Default: No tags applied

Methods ​

applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#
Override the cross-stack reference strength for this resource.
notes · 1 parameter

When set, any cross-stack reference to this resource will use the specified mechanism instead of the global default determined by the @aws-cdk/core:defaultCrossStackReferences context key. This is useful for selectively weakening specific references to avoid the "deadly embrace" problem without changing the app-wide default.

Parameters

  • strengthstrengthstrengthstrengthStrength — - The reference strength to use for this resource.
applyRemovalPolicy(policy: RemovalPolicy): voiddef apply_removal_policy(self, policy: RemovalPolicy) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy)public void ApplyRemovalPolicy(RemovalPolicy policy)func ApplyRemovalPolicy(Policy RemovalPolicy)#
Apply the given removal policy to this resource.
notes

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).

fromBrowserCustomAttributes(scope: Construct, id: string, attrs: BrowserCustomAttributes): IBrowserCustom@staticmethod def from_browser_custom_attributes(scope: Construct, id: str, attrs: BrowserCustomAttributes) -> IBrowserCustompublic static IBrowserCustom fromBrowserCustomAttributes(Construct scope, String id, BrowserCustomAttributes attrs)public static IBrowserCustom FromBrowserCustomAttributes(Construct scope, string id, BrowserCustomAttributes attrs)func FromBrowserCustomAttributes(Scope Construct, Id *string, Attrs BrowserCustomAttributes) IBrowserCustomstatic#
Creates an Browser Custom reference from an existing browser's attributes.
3 parameters · returns

Parameters

  • scopescopescopescopeScope — - The construct scope.
  • ididididId — - Identifier of the construct.
  • attrsattrsattrsattrsAttrs — - Attributes of the existing browser custom.

Returns: An IBrowserCustom reference to the existing browser

grant(grantee: IGrantable, ...actions: string[]): Grantdef grant(self, grantee: IGrantable, actions: str) -> Grantpublic Grant grant(IGrantable grantee, String actions)public Grant Grant(IGrantable grantee, string actions)func Grant(Grantee IGrantable, Actions *string) Grant#
Grants IAM actions to the IAM Principal.

[disable-awslint:no-grants]

2 parameters · returns

Parameters

  • granteegranteegranteegranteeGrantee — - The IAM principal to grant permissions to.
  • actionsactionsactionsactionsActions — - The actions to grant.

Returns: An IAM Grant object representing the granted permissions

grantRead(grantee: IGrantable): Grantdef grant_read(self, grantee: IGrantable) -> Grantpublic Grant grantRead(IGrantable grantee)public Grant GrantRead(IGrantable grantee)func GrantRead(Grantee IGrantable) Grant#
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]

1 parameter · returns

Parameters

  • granteegranteegranteegranteeGrantee — - The IAM principal to grant read permissions to.

Returns: An IAM Grant object representing the granted permissions

grantUse(grantee: IGrantable): Grantdef grant_use(self, grantee: IGrantable) -> Grantpublic Grant grantUse(IGrantable grantee)public Grant GrantUse(IGrantable grantee)func GrantUse(Grantee IGrantable) Grant#
Grant invoke permissions on this browser to an IAM principal.

[disable-awslint:no-grants]

1 parameter · returns

Parameters

  • granteegranteegranteegranteeGrantee — - The IAM principal to grant invoke permissions to.

Returns: An IAM Grant object representing the granted permissions

isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#
Checks if `x` is a construct.
notes · 1 parameter · returns

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Construct.

isOwnedResource(construct: IConstruct): boolean@staticmethod def is_owned_resource(construct: IConstruct) -> boolpublic static Boolean isOwnedResource(IConstruct construct)public static bool IsOwnedResource(IConstruct construct)func IsOwnedResource(Construct IConstruct) *boolstatic#
Returns true if the construct was created by CDK, and false otherwise.
isResource(construct: IConstruct): boolean@staticmethod def is_resource(construct: IConstruct) -> boolpublic static Boolean isResource(IConstruct construct)public static bool IsResource(IConstruct construct)func IsResource(Construct IConstruct) *boolstatic#
Check whether the given construct is a Resource.
metric(metricName: string, dimensions: { [key: string]: string }, props?: MetricOptions): Metricdef metric(self, metric_name: str, dimensions: typing.Mapping[str, str], props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metric(String metricName, Map<String, String> dimensions, MetricOptions props)public Metric Metric(string metricName, IDictionary<string, string> dimensions, MetricOptions? props = null)func Metric(MetricName *string, Dimensions *map[string]*string, Props MetricOptions) 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 statistic and period properties.

metricErrorsForApiOperation(operation: string, props?: MetricOptions): Metricdef metric_errors_for_api_operation(self, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricErrorsForApiOperation(String operation, MetricOptions props)public Metric MetricErrorsForApiOperation(string operation, MetricOptions? props = null)func MetricErrorsForApiOperation(Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser errors.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser errors

metricForApiOperation(metricName: string, operation: string, props?: MetricOptions): Metricdef metric_for_api_operation(self, metric_name: str, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricForApiOperation(String metricName, String operation, MetricOptions props)public Metric MetricForApiOperation(string metricName, string operation, MetricOptions? props = null)func MetricForApiOperation(MetricName *string, Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser api operations..
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser api operations

metricInvocationsForApiOperation(operation: string, props?: MetricOptions): Metricdef metric_invocations_for_api_operation(self, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricInvocationsForApiOperation(String operation, MetricOptions props)public Metric MetricInvocationsForApiOperation(string operation, MetricOptions? props = null)func MetricInvocationsForApiOperation(Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser invocations.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser latencies

metricLatencyForApiOperation(operation: string, props?: MetricOptions): Metricdef metric_latency_for_api_operation(self, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricLatencyForApiOperation(String operation, MetricOptions props)public Metric MetricLatencyForApiOperation(string operation, MetricOptions? props = null)func MetricLatencyForApiOperation(Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser latencies.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser latencies

metricSessionDuration(props?: MetricOptions): Metricdef metric_session_duration(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricSessionDuration(MetricOptions props)public Metric MetricSessionDuration(MetricOptions? props = null)func MetricSessionDuration(Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser session duration.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser session duration

metricSystemErrorsForApiOperation(operation: string, props?: MetricOptions): Metricdef metric_system_errors_for_api_operation(self, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricSystemErrorsForApiOperation(String operation, MetricOptions props)public Metric MetricSystemErrorsForApiOperation(string operation, MetricOptions? props = null)func MetricSystemErrorsForApiOperation(Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser system errors.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser system errors

metricTakeOverCount(props?: MetricOptions): Metricdef metric_take_over_count(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricTakeOverCount(MetricOptions props)public Metric MetricTakeOverCount(MetricOptions? props = null)func MetricTakeOverCount(Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser user takeovers.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser user takeovers

metricTakeOverDuration(props?: MetricOptions): Metricdef metric_take_over_duration(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricTakeOverDuration(MetricOptions props)public Metric MetricTakeOverDuration(MetricOptions? props = null)func MetricTakeOverDuration(Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser user takeovers duration.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser user takeovers duration

metricTakeOverReleaseCount(props?: MetricOptions): Metricdef metric_take_over_release_count(self, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricTakeOverReleaseCount(MetricOptions props)public Metric MetricTakeOverReleaseCount(MetricOptions? props = null)func MetricTakeOverReleaseCount(Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser user takeovers released.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser user takeovers released

metricThrottlesForApiOperation(operation: string, props?: MetricOptions): Metricdef metric_throttles_for_api_operation(self, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricThrottlesForApiOperation(String operation, MetricOptions props)public Metric MetricThrottlesForApiOperation(string operation, MetricOptions? props = null)func MetricThrottlesForApiOperation(Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser throttles.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser throttles

metricUserErrorsForApiOperation(operation: string, props?: MetricOptions): Metricdef metric_user_errors_for_api_operation(self, operation: str, props: typing.Optional[MetricOptions] = None) -> Metricpublic Metric metricUserErrorsForApiOperation(String operation, MetricOptions props)public Metric MetricUserErrorsForApiOperation(string operation, MetricOptions? props = null)func MetricUserErrorsForApiOperation(Operation *string, Props MetricOptions) Metric#
Creates a CloudWatch metric for tracking browser user errors.
1 parameter · returns

Parameters

  • propspropspropspropsProps — - Configuration options for the metric.

Returns: A CloudWatch Metric configured for browser user errors

toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Returns a string representation of this construct.
with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func 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. Use multiple with() calls if subsequent mixins should apply to added constructs.