You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-guide/credential-providers.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,10 @@ Not all credential providers are supported yet by the experimental Amazon Bedroc
25
25
To use a specific credentials identity resolver, set the `aws_credentials_identity_resolver` property on the service client's `Config` object to an instance of the credentials identity resolver class you want to use. The following example specifically uses the `EnvironmentCredentialsResolver()`, which fetches credentials from the standard environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`.
Copy file name to clipboardExpand all lines: dev-guide/region.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Most resources reside in a specific AWS Region and you must supply the correct R
10
10
The Region is specified by setting the `region` property of the `Config` object to a string giving the name of the Region. For example, to specify the region `us-east-1` when creating an Amazon Bedrock Runtime client:
Copy file name to clipboardExpand all lines: dev-guide/service-clients.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
To make a request to an AWS service, you first instantiate a client for that service. You can configure common settings for service clients such as timeouts, the HTTP client, and retry configuration. To create a client for Amazon Bedrock Runtime:
@@ -22,4 +22,4 @@ The SDK has a series of places (or sources) that it checks in order to find a va
22
22
+ For details on setting environment variables, see [environment variables](https://docs.aws.amazon.com/sdkref/latest/guide/environment-variables.html) in the *AWS SDKs and Tools Reference Guide*.
23
23
24
24
1. Any default value provided by the SDK source code itself is used last.
25
-
+ Some properties, such as Region, don't have a default. You must specify them either explicitly in code or in an environment setting. If the SDK can't resolve required configuration, API requests can fail at runtime.
25
+
+ Some properties, such as Region, don't have a default. You must specify them either explicitly in code or in an environment setting. If the SDK can't resolve required configuration, API requests can fail at runtime.
Copy file name to clipboardExpand all lines: dev-guide/simple-app.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This chapter features a short example that asks the Amazon Titan Text Express ge
7
7
The first thing our program does is import the service and the types we need from it:
8
8
9
9
```
10
-
from aws_sdk_bedrock_runtime.client import BedrockRuntime, ConverseInput
10
+
from aws_sdk_bedrock_runtime.client import BedrockRuntimeClient, ConverseInput
11
11
from aws_sdk_bedrock_runtime.models import Message, ContentBlockText, StopReason
12
12
from aws_sdk_bedrock_runtime.config import Config
13
13
@@ -18,7 +18,7 @@ import asyncio
18
18
19
19
This imports the following from the Bedrock client:
20
20
21
-
1.`BedrockRuntime`, which is the class representing the Amazon Bedrock Runtime client.
21
+
1.`BedrockRuntimeClient`, which is the class representing the Amazon Bedrock Runtime client.
22
22
23
23
1. The `ConverseInput` class, which is used to specify the input values when calling the client's `converse()` function.
24
24
@@ -38,11 +38,11 @@ Also imported is the `asyncio` package, which is used to manage the asynchronous
38
38
39
39
## Creating the Amazon Bedrock Runtime client<aname="simple-app-create-client"></a>
40
40
41
-
To create the Amazon Bedrock Runtime client, create a `BedrockRuntime` instance using a `Config` object providing the AWS Region to use. In this example, a credentials identity resolver is provided that uses the standard AWS [access keys in environment variables](https://docs.aws.amazon.com/sdkref/latest/guide/access-users.html) are used to specify credentials.
41
+
To create the Amazon Bedrock Runtime client, create a `BedrockRuntimeClient` instance using a `Config` object providing the AWS Region to use. In this example, a credentials identity resolver is provided that uses the standard AWS [access keys in environment variables](https://docs.aws.amazon.com/sdkref/latest/guide/access-users.html) are used to specify credentials.
0 commit comments