Skip to content

Commit 4c96b83

Browse files
chore: Updates version to 1.5.76
1 parent 359f87a commit 4c96b83

File tree

12 files changed

+865
-94
lines changed

12 files changed

+865
-94
lines changed

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.75
1+
1.5.76

Package.version.next

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.76
1+
1.5.77

Sources/Core/AWSSDKDynamic/Sources/AWSSDKDynamic/PackageVersion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
// Code is auto-generated. DO NOT EDIT!
99

10-
public let packageVersion = "1.5.75"
10+
public let packageVersion = "1.5.76"

Sources/Services/AWSBedrockAgentCoreControl/Sources/AWSBedrockAgentCoreControl/BedrockAgentCoreControlClient.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,10 @@ extension BedrockAgentCoreControlClient {
11571157
config.httpInterceptorProviders.forEach { provider in
11581158
builder.interceptors.add(provider.create())
11591159
}
1160+
builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware<DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput>(keyPath: \.clientToken))
11601161
builder.interceptors.add(ClientRuntime.URLPathMiddleware<DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput>(DeleteAgentRuntimeInput.urlPathProvider(_:)))
11611162
builder.interceptors.add(ClientRuntime.URLHostMiddleware<DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput>())
1163+
builder.serialize(ClientRuntime.QueryItemMiddleware<DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput>(DeleteAgentRuntimeInput.queryItemProvider(_:)))
11621164
builder.deserialize(ClientRuntime.DeserializeMiddleware<DeleteAgentRuntimeOutput>(DeleteAgentRuntimeOutput.httpOutput(from:), DeleteAgentRuntimeOutputError.httpError(from:)))
11631165
builder.interceptors.add(ClientRuntime.LoggerMiddleware<DeleteAgentRuntimeInput, DeleteAgentRuntimeOutput>(clientLogMode: config.clientLogMode))
11641166
builder.clockSkewProvider(AWSClientRuntime.AWSClockSkewProvider.provider())

Sources/Services/AWSBedrockAgentCoreControl/Sources/AWSBedrockAgentCoreControl/Models.swift

Lines changed: 181 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,102 @@ public struct UpdateAgentRuntimeEndpointOutput: Swift.Sendable {
690690
}
691691
}
692692

693+
extension BedrockAgentCoreControlClientTypes {
694+
695+
public enum AgentManagedRuntimeType: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
696+
case python310
697+
case python311
698+
case python312
699+
case python313
700+
case sdkUnknown(Swift.String)
701+
702+
public static var allCases: [AgentManagedRuntimeType] {
703+
return [
704+
.python310,
705+
.python311,
706+
.python312,
707+
.python313
708+
]
709+
}
710+
711+
public init?(rawValue: Swift.String) {
712+
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
713+
self = value ?? Self.sdkUnknown(rawValue)
714+
}
715+
716+
public var rawValue: Swift.String {
717+
switch self {
718+
case .python310: return "PYTHON_3_10"
719+
case .python311: return "PYTHON_3_11"
720+
case .python312: return "PYTHON_3_12"
721+
case .python313: return "PYTHON_3_13"
722+
case let .sdkUnknown(s): return s
723+
}
724+
}
725+
}
726+
}
727+
728+
extension BedrockAgentCoreControlClientTypes {
729+
730+
/// The Amazon S3 location for storing data. This structure defines where in Amazon S3 data is stored.
731+
public struct S3Location: Swift.Sendable {
732+
/// The name of the Amazon S3 bucket. This bucket contains the stored data.
733+
/// This member is required.
734+
public var bucket: Swift.String?
735+
/// The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.
736+
/// This member is required.
737+
public var `prefix`: Swift.String?
738+
/// The version ID of the Amazon Amazon S3 object. If not specified, the latest version of the object is used.
739+
public var versionId: Swift.String?
740+
741+
public init(
742+
bucket: Swift.String? = nil,
743+
`prefix`: Swift.String? = nil,
744+
versionId: Swift.String? = nil
745+
) {
746+
self.bucket = bucket
747+
self.`prefix` = `prefix`
748+
self.versionId = versionId
749+
}
750+
}
751+
}
752+
753+
extension BedrockAgentCoreControlClientTypes {
754+
755+
/// The source code configuration that specifies the location and details of the code to be executed.
756+
public enum Code: Swift.Sendable {
757+
/// The Amazon Amazon S3 object that contains the source code for the agent runtime.
758+
case s3(BedrockAgentCoreControlClientTypes.S3Location)
759+
case sdkUnknown(Swift.String)
760+
}
761+
}
762+
763+
extension BedrockAgentCoreControlClientTypes {
764+
765+
/// The configuration for the source code that defines how the agent runtime code should be executed, including the code location, runtime environment, and entry point.
766+
public struct CodeConfiguration: Swift.Sendable {
767+
/// The source code location and configuration details.
768+
/// This member is required.
769+
public var code: BedrockAgentCoreControlClientTypes.Code?
770+
/// The entry point for the code execution, specifying the function or method that should be invoked when the code runs.
771+
/// This member is required.
772+
public var entryPoint: [Swift.String]?
773+
/// The runtime environment for executing the code (for example, Python 3.9 or Node.js 18).
774+
/// This member is required.
775+
public var runtime: BedrockAgentCoreControlClientTypes.AgentManagedRuntimeType?
776+
777+
public init(
778+
code: BedrockAgentCoreControlClientTypes.Code? = nil,
779+
entryPoint: [Swift.String]? = nil,
780+
runtime: BedrockAgentCoreControlClientTypes.AgentManagedRuntimeType? = nil
781+
) {
782+
self.code = code
783+
self.entryPoint = entryPoint
784+
self.runtime = runtime
785+
}
786+
}
787+
}
788+
693789
extension BedrockAgentCoreControlClientTypes {
694790

695791
/// Representation of a container configuration.
@@ -712,6 +808,8 @@ extension BedrockAgentCoreControlClientTypes {
712808
public enum AgentRuntimeArtifact: Swift.Sendable {
713809
/// The container configuration for the agent artifact.
714810
case containerconfiguration(BedrockAgentCoreControlClientTypes.ContainerConfiguration)
811+
/// The code configuration for the agent runtime artifact, including the source code location and execution settings.
812+
case codeconfiguration(BedrockAgentCoreControlClientTypes.CodeConfiguration)
715813
case sdkUnknown(Swift.String)
716814
}
717815
}
@@ -1058,11 +1156,15 @@ public struct DeleteAgentRuntimeInput: Swift.Sendable {
10581156
/// The unique identifier of the AgentCore Runtime to delete.
10591157
/// This member is required.
10601158
public var agentRuntimeId: Swift.String?
1159+
/// A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, the service ignores the request but does not return an error.
1160+
public var clientToken: Swift.String?
10611161

10621162
public init(
1063-
agentRuntimeId: Swift.String? = nil
1163+
agentRuntimeId: Swift.String? = nil,
1164+
clientToken: Swift.String? = nil
10641165
) {
10651166
self.agentRuntimeId = agentRuntimeId
1167+
self.clientToken = clientToken
10661168
}
10671169
}
10681170

@@ -1807,27 +1909,6 @@ extension BedrockAgentCoreControlClientTypes {
18071909
}
18081910
}
18091911

1810-
extension BedrockAgentCoreControlClientTypes {
1811-
1812-
/// The Amazon S3 location for storing data. This structure defines where in Amazon S3 data is stored.
1813-
public struct S3Location: Swift.Sendable {
1814-
/// The name of the Amazon S3 bucket. This bucket contains the stored data.
1815-
/// This member is required.
1816-
public var bucket: Swift.String?
1817-
/// The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.
1818-
/// This member is required.
1819-
public var `prefix`: Swift.String?
1820-
1821-
public init(
1822-
bucket: Swift.String? = nil,
1823-
`prefix`: Swift.String? = nil
1824-
) {
1825-
self.bucket = bucket
1826-
self.`prefix` = `prefix`
1827-
}
1828-
}
1829-
}
1830-
18311912
extension BedrockAgentCoreControlClientTypes {
18321913

18331914
/// The recording configuration for a browser. This structure defines how browser sessions are recorded.
@@ -7051,6 +7132,18 @@ extension DeleteAgentRuntimeInput {
70517132
}
70527133
}
70537134

7135+
extension DeleteAgentRuntimeInput {
7136+
7137+
static func queryItemProvider(_ value: DeleteAgentRuntimeInput) throws -> [Smithy.URIQueryItem] {
7138+
var items = [Smithy.URIQueryItem]()
7139+
if let clientToken = value.clientToken {
7140+
let clientTokenQueryItem = Smithy.URIQueryItem(name: "clientToken".urlPercentEncoding(), value: Swift.String(clientToken).urlPercentEncoding())
7141+
items.append(clientTokenQueryItem)
7142+
}
7143+
return items
7144+
}
7145+
}
7146+
70547147
extension DeleteAgentRuntimeEndpointInput {
70557148

70567149
static func urlPathProvider(_ value: DeleteAgentRuntimeEndpointInput) -> Swift.String? {
@@ -10959,6 +11052,8 @@ extension BedrockAgentCoreControlClientTypes.AgentRuntimeArtifact {
1095911052
static func write(value: BedrockAgentCoreControlClientTypes.AgentRuntimeArtifact?, to writer: SmithyJSON.Writer) throws {
1096011053
guard let value else { return }
1096111054
switch value {
11055+
case let .codeconfiguration(codeconfiguration):
11056+
try writer["codeConfiguration"].write(codeconfiguration, with: BedrockAgentCoreControlClientTypes.CodeConfiguration.write(value:to:))
1096211057
case let .containerconfiguration(containerconfiguration):
1096311058
try writer["containerConfiguration"].write(containerconfiguration, with: BedrockAgentCoreControlClientTypes.ContainerConfiguration.write(value:to:))
1096411059
case let .sdkUnknown(sdkUnknown):
@@ -10972,12 +11067,76 @@ extension BedrockAgentCoreControlClientTypes.AgentRuntimeArtifact {
1097211067
switch name {
1097311068
case "containerConfiguration":
1097411069
return .containerconfiguration(try reader["containerConfiguration"].read(with: BedrockAgentCoreControlClientTypes.ContainerConfiguration.read(from:)))
11070+
case "codeConfiguration":
11071+
return .codeconfiguration(try reader["codeConfiguration"].read(with: BedrockAgentCoreControlClientTypes.CodeConfiguration.read(from:)))
11072+
default:
11073+
return .sdkUnknown(name ?? "")
11074+
}
11075+
}
11076+
}
11077+
11078+
extension BedrockAgentCoreControlClientTypes.CodeConfiguration {
11079+
11080+
static func write(value: BedrockAgentCoreControlClientTypes.CodeConfiguration?, to writer: SmithyJSON.Writer) throws {
11081+
guard let value else { return }
11082+
try writer["code"].write(value.code, with: BedrockAgentCoreControlClientTypes.Code.write(value:to:))
11083+
try writer["entryPoint"].writeList(value.entryPoint, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
11084+
try writer["runtime"].write(value.runtime)
11085+
}
11086+
11087+
static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentCoreControlClientTypes.CodeConfiguration {
11088+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
11089+
var value = BedrockAgentCoreControlClientTypes.CodeConfiguration()
11090+
value.code = try reader["code"].readIfPresent(with: BedrockAgentCoreControlClientTypes.Code.read(from:))
11091+
value.runtime = try reader["runtime"].readIfPresent() ?? .sdkUnknown("")
11092+
value.entryPoint = try reader["entryPoint"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false) ?? []
11093+
return value
11094+
}
11095+
}
11096+
11097+
extension BedrockAgentCoreControlClientTypes.Code {
11098+
11099+
static func write(value: BedrockAgentCoreControlClientTypes.Code?, to writer: SmithyJSON.Writer) throws {
11100+
guard let value else { return }
11101+
switch value {
11102+
case let .s3(s3):
11103+
try writer["s3"].write(s3, with: BedrockAgentCoreControlClientTypes.S3Location.write(value:to:))
11104+
case let .sdkUnknown(sdkUnknown):
11105+
try writer["sdkUnknown"].write(sdkUnknown)
11106+
}
11107+
}
11108+
11109+
static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentCoreControlClientTypes.Code {
11110+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
11111+
let name = reader.children.filter { $0.hasContent && $0.nodeInfo.name != "__type" }.first?.nodeInfo.name
11112+
switch name {
11113+
case "s3":
11114+
return .s3(try reader["s3"].read(with: BedrockAgentCoreControlClientTypes.S3Location.read(from:)))
1097511115
default:
1097611116
return .sdkUnknown(name ?? "")
1097711117
}
1097811118
}
1097911119
}
1098011120

11121+
extension BedrockAgentCoreControlClientTypes.S3Location {
11122+
11123+
static func write(value: BedrockAgentCoreControlClientTypes.S3Location?, to writer: SmithyJSON.Writer) throws {
11124+
guard let value else { return }
11125+
try writer["bucket"].write(value.bucket)
11126+
try writer["prefix"].write(value.`prefix`)
11127+
try writer["versionId"].write(value.versionId)
11128+
}
11129+
11130+
static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentCoreControlClientTypes.S3Location {
11131+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
11132+
var value = BedrockAgentCoreControlClientTypes.S3Location()
11133+
value.bucket = try reader["bucket"].readIfPresent() ?? ""
11134+
value.`prefix` = try reader["prefix"].readIfPresent() ?? ""
11135+
value.versionId = try reader["versionId"].readIfPresent()
11136+
return value
11137+
}
11138+
}
11139+
1098111140
extension BedrockAgentCoreControlClientTypes.ContainerConfiguration {
1098211141

1098311142
static func write(value: BedrockAgentCoreControlClientTypes.ContainerConfiguration?, to writer: SmithyJSON.Writer) throws {
@@ -11066,23 +11225,6 @@ extension BedrockAgentCoreControlClientTypes.RecordingConfig {
1106611225
}
1106711226
}
1106811227

11069-
extension BedrockAgentCoreControlClientTypes.S3Location {
11070-
11071-
static func write(value: BedrockAgentCoreControlClientTypes.S3Location?, to writer: SmithyJSON.Writer) throws {
11072-
guard let value else { return }
11073-
try writer["bucket"].write(value.bucket)
11074-
try writer["prefix"].write(value.`prefix`)
11075-
}
11076-
11077-
static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentCoreControlClientTypes.S3Location {
11078-
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
11079-
var value = BedrockAgentCoreControlClientTypes.S3Location()
11080-
value.bucket = try reader["bucket"].readIfPresent() ?? ""
11081-
value.`prefix` = try reader["prefix"].readIfPresent() ?? ""
11082-
return value
11083-
}
11084-
}
11085-
1108611228
extension BedrockAgentCoreControlClientTypes.BrowserSigningConfigOutput {
1108711229

1108811230
static func read(from reader: SmithyJSON.Reader) throws -> BedrockAgentCoreControlClientTypes.BrowserSigningConfigOutput {

0 commit comments

Comments
 (0)