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: Sources/BreezeLambdaAPI/BreezeAPIConfiguration.swift
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ public protocol APIConfiguring {
17
17
}
18
18
19
19
/// BreezeAPIConfiguration is a struct that conforms to APIConfiguring.
20
-
/// It provides the necessary configuration for the Breeze Lambda API, including the DynamoDB table name, key name, and AWS region.
20
+
/// Unsing the environment, It provides the necessary configuration for the Breeze Lambda API, including the DynamoDB table name, key name, and AWS region.
21
21
/// It also defines the operation handler for Breeze operations.
@@ -45,10 +45,15 @@ public struct BreezeAPIConfiguration: APIConfiguring {
45
45
46
46
/// Returns the configuration for the Breeze DynamoDB service.
47
47
/// - Throws:
48
-
/// - `BreezeLambdaAPIError.tableNameNotFound` if the DynamoDB table name is not found in the environment variables.
49
-
/// - `BreezeLambdaAPIError.keyNameNotFound` if the DynamoDB key name is not found in the environment variables.
50
-
///
51
-
/// This method retrieves the AWS region, DynamoDB table name, key name, and optional endpoint from the environment variables.
48
+
/// - `BreezeLambdaAPIError.tableNameNotFound` if the DynamoDB table name is not found in the environment variables.
49
+
/// - `BreezeLambdaAPIError.keyNameNotFound` if the DynamoDB key name is not found in the environment variables.
50
+
/// - Returns: A `BreezeDynamoDBConfig` instance containing the configuration for the Breeze DynamoDB service.
51
+
/// This method is used to retrieve the necessary configuration for the Breeze Lambda API to interact with DynamoDB.
52
+
/// It includes the AWS region, DynamoDB table name, key name, and an optional endpoint for LocalStack.
53
+
/// - Important: The configuration is essential for the Breeze Lambda API to function correctly with DynamoDB. This method retrieves the configuration from environment variables:
54
+
/// - `AWS_REGION`: The AWS region where the DynamoDB table is located.
55
+
/// - `DYNAMO_DB_TABLE_NAME`: The name of the DynamoDB table.
56
+
/// - `DYNAMO_DB_KEY`: The name of the primary key in the DynamoDB table.
0 commit comments