Skip to content

Commit c6ac4d9

Browse files
chore: Updates version to 1.0.10
1 parent 945241d commit c6ac4d9

File tree

7 files changed

+339
-63
lines changed

7 files changed

+339
-63
lines changed

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.9
1+
1.0.10

Package.version.next

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.10
1+
1.0.11

Sources/Services/AWSBedrockAgent/Sources/AWSBedrockAgent/BedrockAgentClient.swift

Lines changed: 76 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ extension BedrockAgentClient {
821821

822822
/// Performs the `CreateKnowledgeBase` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
823823
///
824-
/// Creates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see [Set up your data for ingestion](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup.html). If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see [Create a knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-create).
824+
/// Creates a knowledge base. A knowledge base contains your data sources so that Large Language Models (LLMs) can use your data. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see [Set up a knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowlege-base-prereq.html). If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see [Create a knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-create).
825825
///
826826
/// * Provide the name and an optional description.
827827
///
@@ -2479,7 +2479,7 @@ extension BedrockAgentClient {
24792479

24802480
/// Performs the `GetIngestionJob` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
24812481
///
2482-
/// Gets information about a ingestion job, in which a data source is added to a knowledge base.
2482+
/// Gets information about a data ingestion job. Data sources are ingested into your knowledge base so that Large Lanaguage Models (LLMs) can use your data.
24832483
///
24842484
/// - Parameter GetIngestionJobInput : [no documentation found]
24852485
///
@@ -3339,7 +3339,7 @@ extension BedrockAgentClient {
33393339

33403340
/// Performs the `ListIngestionJobs` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
33413341
///
3342-
/// Lists the ingestion jobs for a data source and information about each of them.
3342+
/// Lists the data ingestion jobs for a data source. The list also includes information about each job.
33433343
///
33443344
/// - Parameter ListIngestionJobsInput : [no documentation found]
33453345
///
@@ -3412,7 +3412,7 @@ extension BedrockAgentClient {
34123412

34133413
/// Performs the `ListKnowledgeBases` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
34143414
///
3415-
/// Lists the knowledge bases in an account and information about each of them.
3415+
/// Lists the knowledge bases in an account. The list also includesinformation about each knowledge base.
34163416
///
34173417
/// - Parameter ListKnowledgeBasesInput : [no documentation found]
34183418
///
@@ -3769,7 +3769,7 @@ extension BedrockAgentClient {
37693769

37703770
/// Performs the `StartIngestionJob` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
37713771
///
3772-
/// Begins an ingestion job, in which a data source is added to a knowledge base.
3772+
/// Begins a data ingestion job. Data sources are ingested into your knowledge base so that Large Language Models (LLMs) can use your data.
37733773
///
37743774
/// - Parameter StartIngestionJobInput : [no documentation found]
37753775
///
@@ -3843,6 +3843,77 @@ extension BedrockAgentClient {
38433843
return try await op.execute(input: input)
38443844
}
38453845

3846+
/// Performs the `StopIngestionJob` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
3847+
///
3848+
/// Stops a currently running data ingestion job. You can send a StartIngestionJob request again to ingest the rest of your data when you are ready.
3849+
///
3850+
/// - Parameter StopIngestionJobInput : [no documentation found]
3851+
///
3852+
/// - Returns: `StopIngestionJobOutput` : [no documentation found]
3853+
///
3854+
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
3855+
///
3856+
/// __Possible Exceptions:__
3857+
/// - `AccessDeniedException` : The request is denied because of missing access permissions.
3858+
/// - `ConflictException` : There was a conflict performing an operation.
3859+
/// - `InternalServerException` : An internal server error occurred. Retry your request.
3860+
/// - `ResourceNotFoundException` : The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
3861+
/// - `ThrottlingException` : The number of requests exceeds the limit. Resubmit your request later.
3862+
/// - `ValidationException` : Input validation failed. Check your request parameters and retry the request.
3863+
public func stopIngestionJob(input: StopIngestionJobInput) async throws -> StopIngestionJobOutput {
3864+
let context = Smithy.ContextBuilder()
3865+
.withMethod(value: .post)
3866+
.withServiceName(value: serviceName)
3867+
.withOperation(value: "stopIngestionJob")
3868+
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
3869+
.withLogger(value: config.logger)
3870+
.withPartitionID(value: config.partitionID)
3871+
.withAuthSchemes(value: config.authSchemes ?? [])
3872+
.withAuthSchemeResolver(value: config.authSchemeResolver)
3873+
.withUnsignedPayloadTrait(value: false)
3874+
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
3875+
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
3876+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
3877+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
3878+
.withRegion(value: config.region)
3879+
.withSigningName(value: "bedrock")
3880+
.withSigningRegion(value: config.signingRegion)
3881+
.build()
3882+
let builder = ClientRuntime.OrchestratorBuilder<StopIngestionJobInput, StopIngestionJobOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
3883+
config.interceptorProviders.forEach { provider in
3884+
builder.interceptors.add(provider.create())
3885+
}
3886+
config.httpInterceptorProviders.forEach { provider in
3887+
builder.interceptors.add(provider.create())
3888+
}
3889+
builder.interceptors.add(ClientRuntime.URLPathMiddleware<StopIngestionJobInput, StopIngestionJobOutput>(StopIngestionJobInput.urlPathProvider(_:)))
3890+
builder.interceptors.add(ClientRuntime.URLHostMiddleware<StopIngestionJobInput, StopIngestionJobOutput>())
3891+
builder.deserialize(ClientRuntime.DeserializeMiddleware<StopIngestionJobOutput>(StopIngestionJobOutput.httpOutput(from:), StopIngestionJobOutputError.httpError(from:)))
3892+
builder.interceptors.add(ClientRuntime.LoggerMiddleware<StopIngestionJobInput, StopIngestionJobOutput>(clientLogMode: config.clientLogMode))
3893+
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
3894+
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
3895+
builder.applySigner(ClientRuntime.SignerMiddleware<StopIngestionJobOutput>())
3896+
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
3897+
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<StopIngestionJobOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
3898+
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<StopIngestionJobInput, StopIngestionJobOutput>(serviceID: serviceName, version: "1.0", config: config))
3899+
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<StopIngestionJobOutput>())
3900+
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<StopIngestionJobInput, StopIngestionJobOutput>())
3901+
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<StopIngestionJobInput, StopIngestionJobOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
3902+
var metricsAttributes = Smithy.Attributes()
3903+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "BedrockAgent")
3904+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "StopIngestionJob")
3905+
let op = builder.attributes(context)
3906+
.telemetry(ClientRuntime.OrchestratorTelemetry(
3907+
telemetryProvider: config.telemetryProvider,
3908+
metricsAttributes: metricsAttributes,
3909+
meterScope: serviceName,
3910+
tracerScope: serviceName
3911+
))
3912+
.executeRequest(client)
3913+
.build()
3914+
return try await op.execute(input: input)
3915+
}
3916+
38463917
/// Performs the `TagResource` operation on the `AmazonBedrockAgentBuildTimeLambda` service.
38473918
///
38483919
/// Associate tags with a resource. For more information, see [Tagging resources](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html) in the Amazon Bedrock User Guide.

0 commit comments

Comments
 (0)