Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update models from aws-sdk-go-v2 release-2024-12-17 #747

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ let package = Package(
.library(name: "SotoBCMPricingCalculator", targets: ["SotoBCMPricingCalculator"]),
.library(name: "SotoBackup", targets: ["SotoBackup"]),
.library(name: "SotoBackupGateway", targets: ["SotoBackupGateway"]),
.library(name: "SotoBackupSearch", targets: ["SotoBackupSearch"]),
.library(name: "SotoBatch", targets: ["SotoBatch"]),
.library(name: "SotoBedrock", targets: ["SotoBedrock"]),
.library(name: "SotoBedrockAgent", targets: ["SotoBedrockAgent"]),
Expand Down Expand Up @@ -658,6 +659,12 @@ let package = Package(
path: "./Sources/Soto/Services/BackupGateway",
swiftSettings: swiftSettings
),
.target(
name: "SotoBackupSearch",
dependencies: [.product(name: "SotoCore", package: "soto-core")],
path: "./Sources/Soto/Services/BackupSearch",
swiftSettings: swiftSettings
),
.target(
name: "SotoBatch",
dependencies: [.product(name: "SotoCore", package: "soto-core")],
Expand Down
2 changes: 1 addition & 1 deletion Sources/Soto/Services/AppSync/AppSync_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ extension AppSync {
public let relationalDatabaseConfig: RelationalDatabaseDataSourceConfig?
/// 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.
public let serviceRoleArn: String?
/// 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.
/// 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.
public let type: DataSourceType?

@inlinable
Expand Down
76 changes: 76 additions & 0 deletions Sources/Soto/Services/Artifact/Artifact_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,38 @@ public struct Artifact: AWSService {
return try await self.getTermForReport(input, logger: logger)
}

/// List active customer-agreements applicable to calling identity.
@Sendable
@inlinable
public func listCustomerAgreements(_ input: ListCustomerAgreementsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ListCustomerAgreementsResponse {
try await self.client.execute(
operation: "ListCustomerAgreements",
path: "/v1/customer-agreement/list",
httpMethod: .GET,
serviceConfig: self.config,
input: input,
logger: logger
)
}
/// List active customer-agreements applicable to calling identity.
///
/// Parameters:
/// - maxResults: Maximum number of resources to return in the paginated response.
/// - nextToken: Pagination token to request the next page of resources.
/// - logger: Logger use during operation
@inlinable
public func listCustomerAgreements(
maxResults: Int? = nil,
nextToken: String? = nil,
logger: Logger = AWSClient.loggingDisabled
) async throws -> ListCustomerAgreementsResponse {
let input = ListCustomerAgreementsRequest(
maxResults: maxResults,
nextToken: nextToken
)
return try await self.listCustomerAgreements(input, logger: logger)
}

/// List available reports.
@Sendable
@inlinable
Expand Down Expand Up @@ -279,6 +311,40 @@ extension Artifact {

@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Artifact {
/// Return PaginatorSequence for operation ``listCustomerAgreements(_:logger:)``.
///
/// - Parameters:
/// - input: Input for operation
/// - logger: Logger used for logging
@inlinable
public func listCustomerAgreementsPaginator(
_ input: ListCustomerAgreementsRequest,
logger: Logger = AWSClient.loggingDisabled
) -> AWSClient.PaginatorSequence<ListCustomerAgreementsRequest, ListCustomerAgreementsResponse> {
return .init(
input: input,
command: self.listCustomerAgreements,
inputKey: \ListCustomerAgreementsRequest.nextToken,
outputKey: \ListCustomerAgreementsResponse.nextToken,
logger: logger
)
}
/// Return PaginatorSequence for operation ``listCustomerAgreements(_:logger:)``.
///
/// - Parameters:
/// - maxResults: Maximum number of resources to return in the paginated response.
/// - logger: Logger used for logging
@inlinable
public func listCustomerAgreementsPaginator(
maxResults: Int? = nil,
logger: Logger = AWSClient.loggingDisabled
) -> AWSClient.PaginatorSequence<ListCustomerAgreementsRequest, ListCustomerAgreementsResponse> {
let input = ListCustomerAgreementsRequest(
maxResults: maxResults
)
return self.listCustomerAgreementsPaginator(input, logger: logger)
}

/// Return PaginatorSequence for operation ``listReports(_:logger:)``.
///
/// - Parameters:
Expand Down Expand Up @@ -314,6 +380,16 @@ extension Artifact {
}
}

extension Artifact.ListCustomerAgreementsRequest: AWSPaginateToken {
@inlinable
public func usingPaginationToken(_ token: String) -> Artifact.ListCustomerAgreementsRequest {
return .init(
maxResults: self.maxResults,
nextToken: token
)
}
}

extension Artifact.ListReportsRequest: AWSPaginateToken {
@inlinable
public func usingPaginationToken(_ token: String) -> Artifact.ListReportsRequest {
Expand Down
138 changes: 129 additions & 9 deletions Sources/Soto/Services/Artifact/Artifact_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,37 @@ extension Artifact {
// MARK: Enums

public enum AcceptanceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
/// Require explicit click-through acceptance of
/// the Term associated with this Report.
/// Require explicit click-through acceptance of the
/// Term associated with this Report.
case explicit = "EXPLICIT"
/// Do not require explicit click-through
/// acceptance of the Term associated with
/// this Report.
/// Do not require explicit click-through acceptance
/// of the Term associated with this Report
case passthrough = "PASSTHROUGH"
public var description: String { return self.rawValue }
}

public enum AgreementType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case `default` = "DEFAULT"
case custom = "CUSTOM"
case modified = "MODIFIED"
public var description: String { return self.rawValue }
}

public enum CustomerAgreementState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case active = "ACTIVE"
case awsTerminated = "AWS_TERMINATED"
case customerTerminated = "CUSTOMER_TERMINATED"
public var description: String { return self.rawValue }
}

public enum NotificationSubscriptionStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
/// The account is not subscribed for notification.
case notSubscribed = "NOT_SUBSCRIBED"
/// The account is subscribed for notification.
case subscribed = "SUBSCRIBED"
public var description: String { return self.rawValue }
}

public enum PublishedState: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
/// The resource is published for consumption.
case published = "PUBLISHED"
/// The resource is not published for consumption.
case unpublished = "UNPUBLISHED"
public var description: String { return self.rawValue }
}
Expand Down Expand Up @@ -77,6 +86,70 @@ extension Artifact {
}
}

public struct CustomerAgreementSummary: AWSDecodableShape {
/// Terms required to accept the agreement resource.
public let acceptanceTerms: [String]?
/// ARN of the agreement resource the customer-agreement resource represents.
public let agreementArn: String?
/// ARN of the customer-agreement resource.
public let arn: String?
/// AWS account Id that owns the resource.
public let awsAccountId: String?
/// Description of the resource.
public let description: String?
/// Timestamp indicating when the agreement was terminated.
@OptionalCustomCoding<ISO8601DateCoder>
public var effectiveEnd: Date?
/// Timestamp indicating when the agreement became effective.
@OptionalCustomCoding<ISO8601DateCoder>
public var effectiveStart: Date?
/// Identifier of the customer-agreement resource.
public let id: String?
/// Name of the customer-agreement resource.
public let name: String?
/// ARN of the organization that owns the resource.
public let organizationArn: String?
/// State of the resource.
public let state: CustomerAgreementState?
/// Terms required to terminate the customer-agreement resource.
public let terminateTerms: [String]?
/// Type of the customer-agreement resource.
public let type: AgreementType?

@inlinable
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) {
self.acceptanceTerms = acceptanceTerms
self.agreementArn = agreementArn
self.arn = arn
self.awsAccountId = awsAccountId
self.description = description
self.effectiveEnd = effectiveEnd
self.effectiveStart = effectiveStart
self.id = id
self.name = name
self.organizationArn = organizationArn
self.state = state
self.terminateTerms = terminateTerms
self.type = type
}

private enum CodingKeys: String, CodingKey {
case acceptanceTerms = "acceptanceTerms"
case agreementArn = "agreementArn"
case arn = "arn"
case awsAccountId = "awsAccountId"
case description = "description"
case effectiveEnd = "effectiveEnd"
case effectiveStart = "effectiveStart"
case id = "id"
case name = "name"
case organizationArn = "organizationArn"
case state = "state"
case terminateTerms = "terminateTerms"
case type = "type"
}
}

public struct GetAccountSettingsRequest: AWSEncodableShape {
public init() {}
}
Expand Down Expand Up @@ -228,6 +301,53 @@ extension Artifact {
}
}

public struct ListCustomerAgreementsRequest: AWSEncodableShape {
/// Maximum number of resources to return in the paginated response.
public let maxResults: Int?
/// Pagination token to request the next page of resources.
public let nextToken: String?

@inlinable
public init(maxResults: Int? = nil, nextToken: String? = nil) {
self.maxResults = maxResults
self.nextToken = nextToken
}

public func encode(to encoder: Encoder) throws {
let request = encoder.userInfo[.awsRequest]! as! RequestEncodingContainer
_ = encoder.container(keyedBy: CodingKeys.self)
request.encodeQuery(self.maxResults, key: "maxResults")
request.encodeQuery(self.nextToken, key: "nextToken")
}

public func validate(name: String) throws {
try self.validate(self.maxResults, name: "maxResults", parent: name, max: 300)
try self.validate(self.maxResults, name: "maxResults", parent: name, min: 1)
try self.validate(self.nextToken, name: "nextToken", parent: name, max: 2048)
try self.validate(self.nextToken, name: "nextToken", parent: name, min: 1)
}

private enum CodingKeys: CodingKey {}
}

public struct ListCustomerAgreementsResponse: AWSDecodableShape {
/// List of customer-agreement resources.
public let customerAgreements: [CustomerAgreementSummary]
/// Pagination token to request the next page of resources.
public let nextToken: String?

@inlinable
public init(customerAgreements: [CustomerAgreementSummary], nextToken: String? = nil) {
self.customerAgreements = customerAgreements
self.nextToken = nextToken
}

private enum CodingKeys: String, CodingKey {
case customerAgreements = "customerAgreements"
case nextToken = "nextToken"
}
}

public struct ListReportsRequest: AWSEncodableShape {
/// Maximum number of resources to return in the paginated response.
public let maxResults: Int?
Expand Down
1 change: 1 addition & 0 deletions Sources/Soto/Services/Athena/Athena_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public struct Athena: AWSService {
"ap-southeast-2": "athena.ap-southeast-2.api.aws",
"ap-southeast-3": "athena.ap-southeast-3.api.aws",
"ap-southeast-4": "athena.ap-southeast-4.api.aws",
"ap-southeast-5": "athena.ap-southeast-5.api.aws",
"ca-central-1": "athena.ca-central-1.api.aws",
"ca-west-1": "athena.ca-west-1.api.aws",
"cn-north-1": "athena.cn-north-1.api.amazonwebservices.com.cn",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,21 +497,21 @@ extension BCMPricingCalculator {

public func validate(name: String) throws {
try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, max: 32)
try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.availabilityZone, name: "availabilityZone", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.group, name: "group", parent: name, max: 30)
try self.validate(self.group, name: "group", parent: name, pattern: "^[a-zA-Z0-9-]*$")
try self.historicalUsage?.validate(name: "\(name).historicalUsage")
try self.validate(self.key, name: "key", parent: name, max: 10)
try self.validate(self.key, name: "key", parent: name, pattern: "^[a-zA-Z0-9]*$")
try self.validate(self.operation, name: "operation", parent: name, max: 32)
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.serviceCode, name: "serviceCode", parent: name, max: 32)
try self.validate(self.serviceCode, name: "serviceCode", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, max: 12)
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, min: 12)
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, pattern: "^\\d{12}$")
try self.validate(self.usageType, name: "usageType", parent: name, max: 128)
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
}

private enum CodingKeys: String, CodingKey {
Expand Down Expand Up @@ -701,14 +701,14 @@ extension BCMPricingCalculator {
try self.validate(self.key, name: "key", parent: name, max: 10)
try self.validate(self.key, name: "key", parent: name, pattern: "^[a-zA-Z0-9]*$")
try self.validate(self.operation, name: "operation", parent: name, max: 32)
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.serviceCode, name: "serviceCode", parent: name, max: 32)
try self.validate(self.serviceCode, name: "serviceCode", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, max: 12)
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, min: 12)
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, pattern: "^\\d{12}$")
try self.validate(self.usageType, name: "usageType", parent: name, max: 128)
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
}

private enum CodingKeys: String, CodingKey {
Expand Down Expand Up @@ -2439,14 +2439,14 @@ extension BCMPricingCalculator {

public func validate(name: String) throws {
try self.validate(self.operation, name: "operation", parent: name, max: 32)
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.operation, name: "operation", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.serviceCode, name: "serviceCode", parent: name, max: 32)
try self.validate(self.serviceCode, name: "serviceCode", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, max: 12)
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, min: 12)
try self.validate(self.usageAccountId, name: "usageAccountId", parent: name, pattern: "^\\d{12}$")
try self.validate(self.usageType, name: "usageType", parent: name, max: 128)
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:,]*$")
try self.validate(self.usageType, name: "usageType", parent: name, pattern: "^[-a-zA-Z0-9\\.\\-_:, \\/()]*$")
}

private enum CodingKeys: String, CodingKey {
Expand Down
Loading
Loading