create_browser
¶
create_browser(
name: SandboxName,
network_configuration: BrowserNetworkConfiguration,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
description: Optional[Description] = None,
execution_role_arn: Optional[RoleArn] = None,
recording: Optional[RecordingConfig] = None,
browser_signing: Optional[BrowserSigningConfigInput] = None,
enterprise_policies: Optional[BrowserEnterprisePolicies] = None,
certificates: Optional[Certificates] = None,
filesystem_configurations: Optional[ToolsFileSystemConfigurations] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagsMap] = None,
) -> CreateBrowserResponse
Creates a custom browser.
Parameters:
-
name(SandboxName) –The name of the browser. The name must be unique within your account.
-
description(Optional[Description], default:None) –The description of the browser.
-
execution_role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that provides permissions for the browser to access Amazon Web Services services.
-
network_configuration(BrowserNetworkConfiguration) –The network configuration for the browser. This configuration specifies the network mode for the browser.
-
recording(Optional[RecordingConfig], default:None) –The recording configuration for the browser. When enabled, browser sessions are recorded and stored in the specified Amazon S3 location.
-
browser_signing(Optional[BrowserSigningConfigInput], default:None) –The browser signing configuration that enables cryptographic agent identification using HTTP message signatures for web bot authentication.
-
enterprise_policies(Optional[BrowserEnterprisePolicies], default:None) –A list of enterprise policy files for the browser.
-
certificates(Optional[Certificates], default:None) –A list of certificates to install in the browser.
-
filesystem_configurations(Optional[ToolsFileSystemConfigurations], default:None) –The file system configurations to mount into the browser. Use these configurations to mount your own Amazon Simple Storage Service (Amazon S3) Files or Amazon Elastic File System (Amazon EFS) access points. Your sessions can then access your data. If you don't specify this field, no file systems are mounted.
-
client_token(Optional[ClientToken], default:None) –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 AgentCore ignores the request but does not return an error.
-
tags(Optional[TagsMap], default:None) –A map of tag keys and values to assign to the browser. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 | |