Skip to content

Commit eef2d1e

Browse files
authored
Update models from api-models-aws.git}
1 parent e0e8e0e commit eef2d1e

File tree

70 files changed

+20503
-1158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+20503
-1158
lines changed

.aws-model-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
896693ac2e1c0efd9d03488109601e0c66ba7d35
1+
5b85859b9ad5c8ae88015c93afaf102dc414ee84

Package.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ let package = Package(
7070
.library(name: "SotoBatch", targets: ["SotoBatch"]),
7171
.library(name: "SotoBedrock", targets: ["SotoBedrock"]),
7272
.library(name: "SotoBedrockAgent", targets: ["SotoBedrockAgent"]),
73+
.library(name: "SotoBedrockAgentCore", targets: ["SotoBedrockAgentCore"]),
74+
.library(name: "SotoBedrockAgentCoreControl", targets: ["SotoBedrockAgentCoreControl"]),
7375
.library(name: "SotoBedrockAgentRuntime", targets: ["SotoBedrockAgentRuntime"]),
7476
.library(name: "SotoBedrockDataAutomation", targets: ["SotoBedrockDataAutomation"]),
7577
.library(name: "SotoBedrockDataAutomationRuntime", targets: ["SotoBedrockDataAutomationRuntime"]),
@@ -364,6 +366,7 @@ let package = Package(
364366
.library(name: "SotoS3Control", targets: ["SotoS3Control"]),
365367
.library(name: "SotoS3Outposts", targets: ["SotoS3Outposts"]),
366368
.library(name: "SotoS3Tables", targets: ["SotoS3Tables"]),
369+
.library(name: "SotoS3Vectors", targets: ["SotoS3Vectors"]),
367370
.library(name: "SotoSES", targets: ["SotoSES"]),
368371
.library(name: "SotoSESv2", targets: ["SotoSESv2"]),
369372
.library(name: "SotoSFN", targets: ["SotoSFN"]),
@@ -695,6 +698,18 @@ let package = Package(
695698
path: "./Sources/Soto/Services/BedrockAgent",
696699
swiftSettings: swiftSettings
697700
),
701+
.target(
702+
name: "SotoBedrockAgentCore",
703+
dependencies: [.product(name: "SotoCore", package: "soto-core")],
704+
path: "./Sources/Soto/Services/BedrockAgentCore",
705+
swiftSettings: swiftSettings
706+
),
707+
.target(
708+
name: "SotoBedrockAgentCoreControl",
709+
dependencies: [.product(name: "SotoCore", package: "soto-core")],
710+
path: "./Sources/Soto/Services/BedrockAgentCoreControl",
711+
swiftSettings: swiftSettings
712+
),
698713
.target(
699714
name: "SotoBedrockAgentRuntime",
700715
dependencies: [.product(name: "SotoCore", package: "soto-core")],
@@ -2459,6 +2474,12 @@ let package = Package(
24592474
path: "./Sources/Soto/Services/S3Tables",
24602475
swiftSettings: swiftSettings
24612476
),
2477+
.target(
2478+
name: "SotoS3Vectors",
2479+
dependencies: [.product(name: "SotoCore", package: "soto-core")],
2480+
path: "./Sources/Soto/Services/S3Vectors",
2481+
swiftSettings: swiftSettings
2482+
),
24622483
.target(
24632484
name: "SotoSES",
24642485
dependencies: [.product(name: "SotoCore", package: "soto-core")],

Sources/Soto/Services/Bedrock/Bedrock_api.swift

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,47 @@ public struct Bedrock: AWSService {
213213
return try await self.createCustomModel(input, logger: logger)
214214
}
215215

216+
/// Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment's Amazon Resource Name (ARN) as the modelId parameter when you submit prompts and generate responses with model inference. For more information about setting up on-demand inference for custom models, see Set up inference for a custom model. The following actions are related to the CreateCustomModelDeployment operation: GetCustomModelDeployment ListCustomModelDeployments DeleteCustomModelDeployment
217+
@Sendable
218+
@inlinable
219+
public func createCustomModelDeployment(_ input: CreateCustomModelDeploymentRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> CreateCustomModelDeploymentResponse {
220+
try await self.client.execute(
221+
operation: "CreateCustomModelDeployment",
222+
path: "/model-customization/custom-model-deployments",
223+
httpMethod: .POST,
224+
serviceConfig: self.config,
225+
input: input,
226+
logger: logger
227+
)
228+
}
229+
/// Deploys a custom model for on-demand inference in Amazon Bedrock. After you deploy your custom model, you use the deployment's Amazon Resource Name (ARN) as the modelId parameter when you submit prompts and generate responses with model inference. For more information about setting up on-demand inference for custom models, see Set up inference for a custom model. The following actions are related to the CreateCustomModelDeployment operation: GetCustomModelDeployment ListCustomModelDeployments DeleteCustomModelDeployment
230+
///
231+
/// Parameters:
232+
/// - clientRequestToken: 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. For more information, see Ensuring idempotency.
233+
/// - description: A description for the custom model deployment to help you identify its purpose.
234+
/// - modelArn: The Amazon Resource Name (ARN) of the custom model to deploy for on-demand inference. The custom model must be in the Active state.
235+
/// - modelDeploymentName: The name for the custom model deployment. The name must be unique within your Amazon Web Services account and Region.
236+
/// - tags: Tags to assign to the custom model deployment. You can use tags to organize and track your Amazon Web Services resources for cost allocation and management purposes.
237+
/// - logger: Logger use during operation
238+
@inlinable
239+
public func createCustomModelDeployment(
240+
clientRequestToken: String? = CreateCustomModelDeploymentRequest.idempotencyToken(),
241+
description: String? = nil,
242+
modelArn: String,
243+
modelDeploymentName: String,
244+
tags: [Tag]? = nil,
245+
logger: Logger = AWSClient.loggingDisabled
246+
) async throws -> CreateCustomModelDeploymentResponse {
247+
let input = CreateCustomModelDeploymentRequest(
248+
clientRequestToken: clientRequestToken,
249+
description: description,
250+
modelArn: modelArn,
251+
modelDeploymentName: modelDeploymentName,
252+
tags: tags
253+
)
254+
return try await self.createCustomModelDeployment(input, logger: logger)
255+
}
256+
216257
/// Creates an evaluation job.
217258
@Sendable
218259
@inlinable
@@ -824,6 +865,35 @@ public struct Bedrock: AWSService {
824865
return try await self.deleteCustomModel(input, logger: logger)
825866
}
826867

868+
/// Deletes a custom model deployment. This operation stops the deployment and removes it from your account. After deletion, the deployment ARN can no longer be used for inference requests. The following actions are related to the DeleteCustomModelDeployment operation: CreateCustomModelDeployment GetCustomModelDeployment ListCustomModelDeployments
869+
@Sendable
870+
@inlinable
871+
public func deleteCustomModelDeployment(_ input: DeleteCustomModelDeploymentRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> DeleteCustomModelDeploymentResponse {
872+
try await self.client.execute(
873+
operation: "DeleteCustomModelDeployment",
874+
path: "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}",
875+
httpMethod: .DELETE,
876+
serviceConfig: self.config,
877+
input: input,
878+
logger: logger
879+
)
880+
}
881+
/// Deletes a custom model deployment. This operation stops the deployment and removes it from your account. After deletion, the deployment ARN can no longer be used for inference requests. The following actions are related to the DeleteCustomModelDeployment operation: CreateCustomModelDeployment GetCustomModelDeployment ListCustomModelDeployments
882+
///
883+
/// Parameters:
884+
/// - customModelDeploymentIdentifier: The Amazon Resource Name (ARN) or name of the custom model deployment to delete.
885+
/// - logger: Logger use during operation
886+
@inlinable
887+
public func deleteCustomModelDeployment(
888+
customModelDeploymentIdentifier: String,
889+
logger: Logger = AWSClient.loggingDisabled
890+
) async throws -> DeleteCustomModelDeploymentResponse {
891+
let input = DeleteCustomModelDeploymentRequest(
892+
customModelDeploymentIdentifier: customModelDeploymentIdentifier
893+
)
894+
return try await self.deleteCustomModelDeployment(input, logger: logger)
895+
}
896+
827897
/// Delete the model access agreement for the specified model.
828898
@Sendable
829899
@inlinable
@@ -1114,6 +1184,35 @@ public struct Bedrock: AWSService {
11141184
return try await self.getCustomModel(input, logger: logger)
11151185
}
11161186

1187+
/// Retrieves information about a custom model deployment, including its status, configuration, and metadata. Use this operation to monitor the deployment status and retrieve details needed for inference requests. The following actions are related to the GetCustomModelDeployment operation: CreateCustomModelDeployment ListCustomModelDeployments DeleteCustomModelDeployment
1188+
@Sendable
1189+
@inlinable
1190+
public func getCustomModelDeployment(_ input: GetCustomModelDeploymentRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> GetCustomModelDeploymentResponse {
1191+
try await self.client.execute(
1192+
operation: "GetCustomModelDeployment",
1193+
path: "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}",
1194+
httpMethod: .GET,
1195+
serviceConfig: self.config,
1196+
input: input,
1197+
logger: logger
1198+
)
1199+
}
1200+
/// Retrieves information about a custom model deployment, including its status, configuration, and metadata. Use this operation to monitor the deployment status and retrieve details needed for inference requests. The following actions are related to the GetCustomModelDeployment operation: CreateCustomModelDeployment ListCustomModelDeployments DeleteCustomModelDeployment
1201+
///
1202+
/// Parameters:
1203+
/// - customModelDeploymentIdentifier: The Amazon Resource Name (ARN) or name of the custom model deployment to retrieve information about.
1204+
/// - logger: Logger use during operation
1205+
@inlinable
1206+
public func getCustomModelDeployment(
1207+
customModelDeploymentIdentifier: String,
1208+
logger: Logger = AWSClient.loggingDisabled
1209+
) async throws -> GetCustomModelDeploymentResponse {
1210+
let input = GetCustomModelDeploymentRequest(
1211+
customModelDeploymentIdentifier: customModelDeploymentIdentifier
1212+
)
1213+
return try await self.getCustomModelDeployment(input, logger: logger)
1214+
}
1215+
11171216
/// Gets information about an evaluation job, such as the status of the job.
11181217
@Sendable
11191218
@inlinable
@@ -1546,6 +1645,59 @@ public struct Bedrock: AWSService {
15461645
return try await self.getUseCaseForModelAccess(input, logger: logger)
15471646
}
15481647

1648+
/// Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments. We recommend using pagination to ensure that the operation returns quickly and successfully. The following actions are related to the ListCustomModelDeployments operation: CreateCustomModelDeployment GetCustomModelDeployment DeleteCustomModelDeployment
1649+
@Sendable
1650+
@inlinable
1651+
public func listCustomModelDeployments(_ input: ListCustomModelDeploymentsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ListCustomModelDeploymentsResponse {
1652+
try await self.client.execute(
1653+
operation: "ListCustomModelDeployments",
1654+
path: "/model-customization/custom-model-deployments",
1655+
httpMethod: .GET,
1656+
serviceConfig: self.config,
1657+
input: input,
1658+
logger: logger
1659+
)
1660+
}
1661+
/// Lists custom model deployments in your account. You can filter the results by creation time, name, status, and associated model. Use this operation to manage and monitor your custom model deployments. We recommend using pagination to ensure that the operation returns quickly and successfully. The following actions are related to the ListCustomModelDeployments operation: CreateCustomModelDeployment GetCustomModelDeployment DeleteCustomModelDeployment
1662+
///
1663+
/// Parameters:
1664+
/// - createdAfter: Filters deployments created after the specified date and time.
1665+
/// - createdBefore: Filters deployments created before the specified date and time.
1666+
/// - maxResults: The maximum number of results to return in a single call.
1667+
/// - modelArnEquals: Filters deployments by the Amazon Resource Name (ARN) of the associated custom model.
1668+
/// - nameContains: Filters deployments whose names contain the specified string.
1669+
/// - nextToken: The token for the next set of results. Use this token to retrieve additional results when the response is truncated.
1670+
/// - sortBy: The field to sort the results by. The only supported value is CreationTime.
1671+
/// - sortOrder: The sort order for the results. Valid values are Ascending and Descending. Default is Descending.
1672+
/// - statusEquals: Filters deployments by status. Valid values are CREATING, ACTIVE, and FAILED.
1673+
/// - logger: Logger use during operation
1674+
@inlinable
1675+
public func listCustomModelDeployments(
1676+
createdAfter: Date? = nil,
1677+
createdBefore: Date? = nil,
1678+
maxResults: Int? = nil,
1679+
modelArnEquals: String? = nil,
1680+
nameContains: String? = nil,
1681+
nextToken: String? = nil,
1682+
sortBy: SortModelsBy? = nil,
1683+
sortOrder: SortOrder? = nil,
1684+
statusEquals: CustomModelDeploymentStatus? = nil,
1685+
logger: Logger = AWSClient.loggingDisabled
1686+
) async throws -> ListCustomModelDeploymentsResponse {
1687+
let input = ListCustomModelDeploymentsRequest(
1688+
createdAfter: createdAfter,
1689+
createdBefore: createdBefore,
1690+
maxResults: maxResults,
1691+
modelArnEquals: modelArnEquals,
1692+
nameContains: nameContains,
1693+
nextToken: nextToken,
1694+
sortBy: sortBy,
1695+
sortOrder: sortOrder,
1696+
statusEquals: statusEquals
1697+
)
1698+
return try await self.listCustomModelDeployments(input, logger: logger)
1699+
}
1700+
15491701
/// Returns a list of the custom models that you have created with the CreateModelCustomizationJob operation. For more information, see Custom models in the Amazon Bedrock User Guide.
15501702
@Sendable
15511703
@inlinable
@@ -2590,6 +2742,61 @@ extension Bedrock {
25902742

25912743
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
25922744
extension Bedrock {
2745+
/// Return PaginatorSequence for operation ``listCustomModelDeployments(_:logger:)``.
2746+
///
2747+
/// - Parameters:
2748+
/// - input: Input for operation
2749+
/// - logger: Logger used for logging
2750+
@inlinable
2751+
public func listCustomModelDeploymentsPaginator(
2752+
_ input: ListCustomModelDeploymentsRequest,
2753+
logger: Logger = AWSClient.loggingDisabled
2754+
) -> AWSClient.PaginatorSequence<ListCustomModelDeploymentsRequest, ListCustomModelDeploymentsResponse> {
2755+
return .init(
2756+
input: input,
2757+
command: self.listCustomModelDeployments,
2758+
inputKey: \ListCustomModelDeploymentsRequest.nextToken,
2759+
outputKey: \ListCustomModelDeploymentsResponse.nextToken,
2760+
logger: logger
2761+
)
2762+
}
2763+
/// Return PaginatorSequence for operation ``listCustomModelDeployments(_:logger:)``.
2764+
///
2765+
/// - Parameters:
2766+
/// - createdAfter: Filters deployments created after the specified date and time.
2767+
/// - createdBefore: Filters deployments created before the specified date and time.
2768+
/// - maxResults: The maximum number of results to return in a single call.
2769+
/// - modelArnEquals: Filters deployments by the Amazon Resource Name (ARN) of the associated custom model.
2770+
/// - nameContains: Filters deployments whose names contain the specified string.
2771+
/// - sortBy: The field to sort the results by. The only supported value is CreationTime.
2772+
/// - sortOrder: The sort order for the results. Valid values are Ascending and Descending. Default is Descending.
2773+
/// - statusEquals: Filters deployments by status. Valid values are CREATING, ACTIVE, and FAILED.
2774+
/// - logger: Logger used for logging
2775+
@inlinable
2776+
public func listCustomModelDeploymentsPaginator(
2777+
createdAfter: Date? = nil,
2778+
createdBefore: Date? = nil,
2779+
maxResults: Int? = nil,
2780+
modelArnEquals: String? = nil,
2781+
nameContains: String? = nil,
2782+
sortBy: SortModelsBy? = nil,
2783+
sortOrder: SortOrder? = nil,
2784+
statusEquals: CustomModelDeploymentStatus? = nil,
2785+
logger: Logger = AWSClient.loggingDisabled
2786+
) -> AWSClient.PaginatorSequence<ListCustomModelDeploymentsRequest, ListCustomModelDeploymentsResponse> {
2787+
let input = ListCustomModelDeploymentsRequest(
2788+
createdAfter: createdAfter,
2789+
createdBefore: createdBefore,
2790+
maxResults: maxResults,
2791+
modelArnEquals: modelArnEquals,
2792+
nameContains: nameContains,
2793+
sortBy: sortBy,
2794+
sortOrder: sortOrder,
2795+
statusEquals: statusEquals
2796+
)
2797+
return self.listCustomModelDeploymentsPaginator(input, logger: logger)
2798+
}
2799+
25932800
/// Return PaginatorSequence for operation ``listCustomModels(_:logger:)``.
25942801
///
25952802
/// - Parameters:
@@ -3173,6 +3380,23 @@ extension Bedrock {
31733380
}
31743381
}
31753382

3383+
extension Bedrock.ListCustomModelDeploymentsRequest: AWSPaginateToken {
3384+
@inlinable
3385+
public func usingPaginationToken(_ token: String) -> Bedrock.ListCustomModelDeploymentsRequest {
3386+
return .init(
3387+
createdAfter: self.createdAfter,
3388+
createdBefore: self.createdBefore,
3389+
maxResults: self.maxResults,
3390+
modelArnEquals: self.modelArnEquals,
3391+
nameContains: self.nameContains,
3392+
nextToken: token,
3393+
sortBy: self.sortBy,
3394+
sortOrder: self.sortOrder,
3395+
statusEquals: self.statusEquals
3396+
)
3397+
}
3398+
}
3399+
31763400
extension Bedrock.ListCustomModelsRequest: AWSPaginateToken {
31773401
@inlinable
31783402
public func usingPaginationToken(_ token: String) -> Bedrock.ListCustomModelsRequest {

0 commit comments

Comments
 (0)