Skip to content

Commit 444b728

Browse files
Update models from aws-sdk-go-v2 release-2024-12-17 (#747)
Co-authored-by: adam-fowler <[email protected]>
1 parent d46f1bb commit 444b728

File tree

121 files changed

+20788
-6092
lines changed

Some content is hidden

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

121 files changed

+20788
-6092
lines changed

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ let package = Package(
6565
.library(name: "SotoBCMPricingCalculator", targets: ["SotoBCMPricingCalculator"]),
6666
.library(name: "SotoBackup", targets: ["SotoBackup"]),
6767
.library(name: "SotoBackupGateway", targets: ["SotoBackupGateway"]),
68+
.library(name: "SotoBackupSearch", targets: ["SotoBackupSearch"]),
6869
.library(name: "SotoBatch", targets: ["SotoBatch"]),
6970
.library(name: "SotoBedrock", targets: ["SotoBedrock"]),
7071
.library(name: "SotoBedrockAgent", targets: ["SotoBedrockAgent"]),
@@ -658,6 +659,12 @@ let package = Package(
658659
path: "./Sources/Soto/Services/BackupGateway",
659660
swiftSettings: swiftSettings
660661
),
662+
.target(
663+
name: "SotoBackupSearch",
664+
dependencies: [.product(name: "SotoCore", package: "soto-core")],
665+
path: "./Sources/Soto/Services/BackupSearch",
666+
swiftSettings: swiftSettings
667+
),
661668
.target(
662669
name: "SotoBatch",
663670
dependencies: [.product(name: "SotoCore", package: "soto-core")],

Sources/Soto/Services/AppSync/AppSync_shapes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ extension AppSync {
15921592
public let relationalDatabaseConfig: RelationalDatabaseDataSourceConfig?
15931593
/// The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
15941594
public let serviceRoleArn: String?
1595-
/// The type of the data source. AWS_LAMBDA: The data source is an Lambda function. AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table. AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain. AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain. AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration. NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation. HTTP: The data source is an HTTP endpoint. RELATIONAL_DATABASE: The data source is a relational database.
1595+
/// The type of the data source. AWS_LAMBDA: The data source is an Lambda function. AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table. AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain. AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain. AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration. AMAZON_BEDROCK_RUNTIME: The data source is the Amazon Bedrock runtime. NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation. HTTP: The data source is an HTTP endpoint. RELATIONAL_DATABASE: The data source is a relational database.
15961596
public let type: DataSourceType?
15971597

15981598
@inlinable

Sources/Soto/Services/Artifact/Artifact_api.swift

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,38 @@ public struct Artifact: AWSService {
204204
return try await self.getTermForReport(input, logger: logger)
205205
}
206206

207+
/// List active customer-agreements applicable to calling identity.
208+
@Sendable
209+
@inlinable
210+
public func listCustomerAgreements(_ input: ListCustomerAgreementsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ListCustomerAgreementsResponse {
211+
try await self.client.execute(
212+
operation: "ListCustomerAgreements",
213+
path: "/v1/customer-agreement/list",
214+
httpMethod: .GET,
215+
serviceConfig: self.config,
216+
input: input,
217+
logger: logger
218+
)
219+
}
220+
/// List active customer-agreements applicable to calling identity.
221+
///
222+
/// Parameters:
223+
/// - maxResults: Maximum number of resources to return in the paginated response.
224+
/// - nextToken: Pagination token to request the next page of resources.
225+
/// - logger: Logger use during operation
226+
@inlinable
227+
public func listCustomerAgreements(
228+
maxResults: Int? = nil,
229+
nextToken: String? = nil,
230+
logger: Logger = AWSClient.loggingDisabled
231+
) async throws -> ListCustomerAgreementsResponse {
232+
let input = ListCustomerAgreementsRequest(
233+
maxResults: maxResults,
234+
nextToken: nextToken
235+
)
236+
return try await self.listCustomerAgreements(input, logger: logger)
237+
}
238+
207239
/// List available reports.
208240
@Sendable
209241
@inlinable
@@ -279,6 +311,40 @@ extension Artifact {
279311

280312
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
281313
extension Artifact {
314+
/// Return PaginatorSequence for operation ``listCustomerAgreements(_:logger:)``.
315+
///
316+
/// - Parameters:
317+
/// - input: Input for operation
318+
/// - logger: Logger used for logging
319+
@inlinable
320+
public func listCustomerAgreementsPaginator(
321+
_ input: ListCustomerAgreementsRequest,
322+
logger: Logger = AWSClient.loggingDisabled
323+
) -> AWSClient.PaginatorSequence<ListCustomerAgreementsRequest, ListCustomerAgreementsResponse> {
324+
return .init(
325+
input: input,
326+
command: self.listCustomerAgreements,
327+
inputKey: \ListCustomerAgreementsRequest.nextToken,
328+
outputKey: \ListCustomerAgreementsResponse.nextToken,
329+
logger: logger
330+
)
331+
}
332+
/// Return PaginatorSequence for operation ``listCustomerAgreements(_:logger:)``.
333+
///
334+
/// - Parameters:
335+
/// - maxResults: Maximum number of resources to return in the paginated response.
336+
/// - logger: Logger used for logging
337+
@inlinable
338+
public func listCustomerAgreementsPaginator(
339+
maxResults: Int? = nil,
340+
logger: Logger = AWSClient.loggingDisabled
341+
) -> AWSClient.PaginatorSequence<ListCustomerAgreementsRequest, ListCustomerAgreementsResponse> {
342+
let input = ListCustomerAgreementsRequest(
343+
maxResults: maxResults
344+
)
345+
return self.listCustomerAgreementsPaginator(input, logger: logger)
346+
}
347+
282348
/// Return PaginatorSequence for operation ``listReports(_:logger:)``.
283349
///
284350
/// - Parameters:
@@ -314,6 +380,16 @@ extension Artifact {
314380
}
315381
}
316382

383+
extension Artifact.ListCustomerAgreementsRequest: AWSPaginateToken {
384+
@inlinable
385+
public func usingPaginationToken(_ token: String) -> Artifact.ListCustomerAgreementsRequest {
386+
return .init(
387+
maxResults: self.maxResults,
388+
nextToken: token
389+
)
390+
}
391+
}
392+
317393
extension Artifact.ListReportsRequest: AWSPaginateToken {
318394
@inlinable
319395
public func usingPaginationToken(_ token: String) -> Artifact.ListReportsRequest {

Sources/Soto/Services/Artifact/Artifact_shapes.swift

Lines changed: 129 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,37 @@ extension Artifact {
2727
// MARK: Enums
2828

2929
public enum AcceptanceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
30-
/// Require explicit click-through acceptance of
31-
/// the Term associated with this Report.
30+
/// Require explicit click-through acceptance of the
31+
/// Term associated with this Report.
3232
case explicit = "EXPLICIT"
33-
/// Do not require explicit click-through
34-
/// acceptance of the Term associated with
35-
/// this Report.
33+
/// Do not require explicit click-through acceptance
34+
/// of the Term associated with this Report
3635
case passthrough = "PASSTHROUGH"
3736
public var description: String { return self.rawValue }
3837
}
3938

39+
public enum AgreementType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
40+
case `default` = "DEFAULT"
41+
case custom = "CUSTOM"
42+
case modified = "MODIFIED"
43+
public var description: String { return self.rawValue }
44+
}
45+
46+
public enum CustomerAgreementState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
47+
case active = "ACTIVE"
48+
case awsTerminated = "AWS_TERMINATED"
49+
case customerTerminated = "CUSTOMER_TERMINATED"
50+
public var description: String { return self.rawValue }
51+
}
52+
4053
public enum NotificationSubscriptionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
41-
/// The account is not subscribed for notification.
4254
case notSubscribed = "NOT_SUBSCRIBED"
43-
/// The account is subscribed for notification.
4455
case subscribed = "SUBSCRIBED"
4556
public var description: String { return self.rawValue }
4657
}
4758

4859
public enum PublishedState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
49-
/// The resource is published for consumption.
5060
case published = "PUBLISHED"
51-
/// The resource is not published for consumption.
5261
case unpublished = "UNPUBLISHED"
5362
public var description: String { return self.rawValue }
5463
}
@@ -77,6 +86,70 @@ extension Artifact {
7786
}
7887
}
7988

89+
public struct CustomerAgreementSummary: AWSDecodableShape {
90+
/// Terms required to accept the agreement resource.
91+
public let acceptanceTerms: [String]?
92+
/// ARN of the agreement resource the customer-agreement resource represents.
93+
public let agreementArn: String?
94+
/// ARN of the customer-agreement resource.
95+
public let arn: String?
96+
/// AWS account Id that owns the resource.
97+
public let awsAccountId: String?
98+
/// Description of the resource.
99+
public let description: String?
100+
/// Timestamp indicating when the agreement was terminated.
101+
@OptionalCustomCoding<ISO8601DateCoder>
102+
public var effectiveEnd: Date?
103+
/// Timestamp indicating when the agreement became effective.
104+
@OptionalCustomCoding<ISO8601DateCoder>
105+
public var effectiveStart: Date?
106+
/// Identifier of the customer-agreement resource.
107+
public let id: String?
108+
/// Name of the customer-agreement resource.
109+
public let name: String?
110+
/// ARN of the organization that owns the resource.
111+
public let organizationArn: String?
112+
/// State of the resource.
113+
public let state: CustomerAgreementState?
114+
/// Terms required to terminate the customer-agreement resource.
115+
public let terminateTerms: [String]?
116+
/// Type of the customer-agreement resource.
117+
public let type: AgreementType?
118+
119+
@inlinable
120+
public init(acceptanceTerms: [String]? = nil, agreementArn: String? = nil, arn: String? = nil, awsAccountId: String? = nil, description: String? = nil, effectiveEnd: Date? = nil, effectiveStart: Date? = nil, id: String? = nil, name: String? = nil, organizationArn: String? = nil, state: CustomerAgreementState? = nil, terminateTerms: [String]? = nil, type: AgreementType? = nil) {
121+
self.acceptanceTerms = acceptanceTerms
122+
self.agreementArn = agreementArn
123+
self.arn = arn
124+
self.awsAccountId = awsAccountId
125+
self.description = description
126+
self.effectiveEnd = effectiveEnd
127+
self.effectiveStart = effectiveStart
128+
self.id = id
129+
self.name = name
130+
self.organizationArn = organizationArn
131+
self.state = state
132+
self.terminateTerms = terminateTerms
133+
self.type = type
134+
}
135+
136+
private enum CodingKeys: String, CodingKey {
137+
case acceptanceTerms = "acceptanceTerms"
138+
case agreementArn = "agreementArn"
139+
case arn = "arn"
140+
case awsAccountId = "awsAccountId"
141+
case description = "description"
142+
case effectiveEnd = "effectiveEnd"
143+
case effectiveStart = "effectiveStart"
144+
case id = "id"
145+
case name = "name"
146+
case organizationArn = "organizationArn"
147+
case state = "state"
148+
case terminateTerms = "terminateTerms"
149+
case type = "type"
150+
}
151+
}
152+
80153
public struct GetAccountSettingsRequest: AWSEncodableShape {
81154
public init() {}
82155
}
@@ -228,6 +301,53 @@ extension Artifact {
228301
}
229302
}
230303

304+
public struct ListCustomerAgreementsRequest: AWSEncodableShape {
305+
/// Maximum number of resources to return in the paginated response.
306+
public let maxResults: Int?
307+
/// Pagination token to request the next page of resources.
308+
public let nextToken: String?
309+
310+
@inlinable
311+
public init(maxResults: Int? = nil, nextToken: String? = nil) {
312+
self.maxResults = maxResults
313+
self.nextToken = nextToken
314+
}
315+
316+
public func encode(to encoder: Encoder) throws {
317+
let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
318+
_ = encoder.container(keyedBy: CodingKeys.self)
319+
request.encodeQuery(self.maxResults, key: "maxResults")
320+
request.encodeQuery(self.nextToken, key: "nextToken")
321+
}
322+
323+
public func validate(name: String) throws {
324+
try self.validate(self.maxResults, name: "maxResults", parent: name, max: 300)
325+
try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
326+
try self.validate(self.nextToken, name: "nextToken", parent: name, max: 2048)
327+
try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
328+
}
329+
330+
private enum CodingKeys: CodingKey {}
331+
}
332+
333+
public struct ListCustomerAgreementsResponse: AWSDecodableShape {
334+
/// List of customer-agreement resources.
335+
public let customerAgreements: [CustomerAgreementSummary]
336+
/// Pagination token to request the next page of resources.
337+
public let nextToken: String?
338+
339+
@inlinable
340+
public init(customerAgreements: [CustomerAgreementSummary], nextToken: String? = nil) {
341+
self.customerAgreements = customerAgreements
342+
self.nextToken = nextToken
343+
}
344+
345+
private enum CodingKeys: String, CodingKey {
346+
case customerAgreements = "customerAgreements"
347+
case nextToken = "nextToken"
348+
}
349+
}
350+
231351
public struct ListReportsRequest: AWSEncodableShape {
232352
/// Maximum number of resources to return in the paginated response.
233353
public let maxResults: Int?

Sources/Soto/Services/Athena/Athena_api.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public struct Athena: AWSService {
9292
"ap-southeast-2": "athena.ap-southeast-2.api.aws",
9393
"ap-southeast-3": "athena.ap-southeast-3.api.aws",
9494
"ap-southeast-4": "athena.ap-southeast-4.api.aws",
95+
"ap-southeast-5": "athena.ap-southeast-5.api.aws",
9596
"ca-central-1": "athena.ca-central-1.api.aws",
9697
"ca-west-1": "athena.ca-west-1.api.aws",
9798
"cn-north-1": "athena.cn-north-1.api.amazonwebservices.com.cn",

Sources/Soto/Services/BCMPricingCalculator/BCMPricingCalculator_shapes.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,21 +497,21 @@ extension BCMPricingCalculator {
497497

498498
public func validate(name: String) throws {
499499
try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, max: 32)
500-
try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
500+
try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
501501
try self.validate(self.group, name: "group", parent: name, max: 30)
502502
try self.validate(self.group, name: "group", parent: name, pattern: "^[a-zA-Z0-9-]*$")
503503
try self.historicalUsage?.validate(name: "\(name).historicalUsage")
504504
try self.validate(self.key, name: "key", parent: name, max: 10)
505505
try self.validate(self.key, name: "key", parent: name, pattern: "^[a-zA-Z0-9]*$")
506506
try self.validate(self.operation, name: "operation", parent: name, max: 32)
507-
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
507+
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
508508
try self.validate(self.serviceCode, name: "serviceCode", parent: name, max: 32)
509509
try self.validate(self.serviceCode, name: "serviceCode", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
510510
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, max: 12)
511511
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, min: 12)
512512
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, pattern: "^\\d{12}$")
513513
try self.validate(self.usageType, name: "usageType", parent: name, max: 128)
514-
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
514+
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
515515
}
516516

517517
private enum CodingKeys: String, CodingKey {
@@ -701,14 +701,14 @@ extension BCMPricingCalculator {
701701
try self.validate(self.key, name: "key", parent: name, max: 10)
702702
try self.validate(self.key, name: "key", parent: name, pattern: "^[a-zA-Z0-9]*$")
703703
try self.validate(self.operation, name: "operation", parent: name, max: 32)
704-
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
704+
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
705705
try self.validate(self.serviceCode, name: "serviceCode", parent: name, max: 32)
706706
try self.validate(self.serviceCode, name: "serviceCode", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
707707
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, max: 12)
708708
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, min: 12)
709709
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, pattern: "^\\d{12}$")
710710
try self.validate(self.usageType, name: "usageType", parent: name, max: 128)
711-
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
711+
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
712712
}
713713

714714
private enum CodingKeys: String, CodingKey {
@@ -2439,14 +2439,14 @@ extension BCMPricingCalculator {
24392439

24402440
public func validate(name: String) throws {
24412441
try self.validate(self.operation, name: "operation", parent: name, max: 32)
2442-
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
2442+
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
24432443
try self.validate(self.serviceCode, name: "serviceCode", parent: name, max: 32)
24442444
try self.validate(self.serviceCode, name: "serviceCode", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
24452445
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, max: 12)
24462446
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, min: 12)
24472447
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, pattern: "^\\d{12}$")
24482448
try self.validate(self.usageType, name: "usageType", parent: name, max: 128)
2449-
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
2449+
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
24502450
}
24512451

24522452
private enum CodingKeys: String, CodingKey {

0 commit comments

Comments
 (0)