BedrockAgentCoreControlPlaneFrontingLayer / Client / create_browser
create_browser¶
- BedrockAgentCoreControlPlaneFrontingLayer.Client.create_browser(**kwargs)¶
Creates a custom browser.
See also: AWS API Documentation
Request Syntax
response = client.create_browser( name='string', description='string', executionRoleArn='string', networkConfiguration={ 'networkMode': 'PUBLIC' }, recording={ 'enabled': True|False, 's3Location': { 'bucket': 'string', 'prefix': 'string' } }, clientToken='string' )
- Parameters:
name (string) –
[REQUIRED]
The name of the browser. The name must be unique within your account.
description (string) – The description of the browser.
executionRoleArn (string) – The Amazon Resource Name (ARN) of the IAM role that provides permissions for the browser to access Amazon Web Services services.
networkConfiguration (dict) –
[REQUIRED]
The network configuration for the browser. This configuration specifies the network mode for the browser.
networkMode (string) – [REQUIRED]
The network mode for the browser. This field specifies how the browser connects to the network.
recording (dict) –
The recording configuration for the browser. When enabled, browser sessions are recorded and stored in the specified Amazon S3 location.
enabled (boolean) –
Indicates whether recording is enabled for the browser. When set to true, browser sessions are recorded.
s3Location (dict) –
The Amazon S3 location where browser recordings are stored. This location contains the recorded browser sessions.
bucket (string) – [REQUIRED]
The name of the Amazon S3 bucket. This bucket contains the stored data.
prefix (string) – [REQUIRED]
The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.
clientToken (string) –
A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request but does not return an error.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'browserId': 'string', 'browserArn': 'string', 'createdAt': datetime(2015, 1, 1), 'status': 'CREATING'|'CREATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED'|'DELETED' }
Response Structure
(dict) –
browserId (string) –
The unique identifier of the created browser.
browserArn (string) –
The Amazon Resource Name (ARN) of the created browser.
createdAt (datetime) –
The timestamp when the browser was created.
status (string) –
The current status of the browser.
Exceptions
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ServiceQuotaExceededException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.AccessDeniedException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ConflictException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ValidationException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ThrottlingException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.InternalServerException