Skip to content

Commit

Permalink
Update models from aws-sdk-go-v2 release-2024-12-28
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Dec 30, 2024
1 parent 444b728 commit 0506884
Show file tree
Hide file tree
Showing 94 changed files with 10,152 additions and 1,707 deletions.
56 changes: 48 additions & 8 deletions Sources/Soto/Services/Amplify/Amplify_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ extension Amplify {
public enum JobStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case cancelled = "CANCELLED"
case cancelling = "CANCELLING"
case created = "CREATED"
case failed = "FAILED"
case pending = "PENDING"
case provisioning = "PROVISIONING"
Expand Down Expand Up @@ -111,6 +112,15 @@ extension Amplify {
public var description: String { return self.rawValue }
}

public enum WafStatus: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case associating = "ASSOCIATING"
case associationFailed = "ASSOCIATION_FAILED"
case associationSuccess = "ASSOCIATION_SUCCESS"
case disassociating = "DISASSOCIATING"
case disassociationFailed = "DISASSOCIATION_FAILED"
public var description: String { return self.rawValue }
}

// MARK: Shapes

public struct App: AWSDecodableShape {
Expand All @@ -128,7 +138,7 @@ extension Amplify {
public let buildSpec: String?
/// The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the default AMPLIFY_MANAGED setting.
public let cacheConfig: CacheConfig?
/// Creates a date and time for the Amplify app.
/// A timestamp of when Amplify created the application.
public let createTime: Date
/// Describes the custom HTTP headers for the Amplify app.
public let customHeaders: String?
Expand Down Expand Up @@ -162,11 +172,15 @@ extension Amplify {
public let repositoryCloneMethod: RepositoryCloneMethod?
/// The tag for the Amplify app.
public let tags: [String: String]?
/// Updates the date and time for the Amplify app.
/// A timestamp of when Amplify updated the application.
public let updateTime: Date
/// Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration with WAF.
public let wafConfiguration: WafConfiguration?
/// A timestamp of when Amplify created the webhook in your Git repository.
public let webhookCreateTime: Date?

@inlinable
public init(appArn: String, appId: String, autoBranchCreationConfig: AutoBranchCreationConfig? = nil, autoBranchCreationPatterns: [String]? = nil, basicAuthCredentials: String? = nil, buildSpec: String? = nil, cacheConfig: CacheConfig? = nil, createTime: Date, customHeaders: String? = nil, customRules: [CustomRule]? = nil, defaultDomain: String, description: String? = nil, enableAutoBranchCreation: Bool? = nil, enableBasicAuth: Bool, enableBranchAutoBuild: Bool, enableBranchAutoDeletion: Bool? = nil, environmentVariables: [String: String]? = nil, iamServiceRoleArn: String? = nil, name: String, platform: Platform, productionBranch: ProductionBranch? = nil, repository: String? = nil, repositoryCloneMethod: RepositoryCloneMethod? = nil, tags: [String: String]? = nil, updateTime: Date) {
public init(appArn: String, appId: String, autoBranchCreationConfig: AutoBranchCreationConfig? = nil, autoBranchCreationPatterns: [String]? = nil, basicAuthCredentials: String? = nil, buildSpec: String? = nil, cacheConfig: CacheConfig? = nil, createTime: Date, customHeaders: String? = nil, customRules: [CustomRule]? = nil, defaultDomain: String, description: String? = nil, enableAutoBranchCreation: Bool? = nil, enableBasicAuth: Bool, enableBranchAutoBuild: Bool, enableBranchAutoDeletion: Bool? = nil, environmentVariables: [String: String]? = nil, iamServiceRoleArn: String? = nil, name: String, platform: Platform, productionBranch: ProductionBranch? = nil, repository: String? = nil, repositoryCloneMethod: RepositoryCloneMethod? = nil, tags: [String: String]? = nil, updateTime: Date, wafConfiguration: WafConfiguration? = nil, webhookCreateTime: Date? = nil) {
self.appArn = appArn
self.appId = appId
self.autoBranchCreationConfig = autoBranchCreationConfig
Expand All @@ -192,6 +206,8 @@ extension Amplify {
self.repositoryCloneMethod = repositoryCloneMethod
self.tags = tags
self.updateTime = updateTime
self.wafConfiguration = wafConfiguration
self.webhookCreateTime = webhookCreateTime
}

private enum CodingKeys: String, CodingKey {
Expand Down Expand Up @@ -220,6 +236,8 @@ extension Amplify {
case repositoryCloneMethod = "repositoryCloneMethod"
case tags = "tags"
case updateTime = "updateTime"
case wafConfiguration = "wafConfiguration"
case webhookCreateTime = "webhookCreateTime"
}
}

Expand Down Expand Up @@ -379,7 +397,7 @@ extension Amplify {
public let branchName: String
/// The build specification (build spec) content for the branch of an Amplify app.
public let buildSpec: String?
/// The creation date and time for a branch that is part of an Amplify app.
/// A timestamp of when Amplify created the branch.
public let createTime: Date
/// The custom domains for a branch of an Amplify app.
public let customDomains: [String]
Expand Down Expand Up @@ -417,7 +435,7 @@ extension Amplify {
public let totalNumberOfJobs: String
/// The content Time to Live (TTL) for the website in seconds.
public let ttl: String
/// The last updated date and time for a branch that is part of an Amplify app.
/// A timestamp for the last updated time for a branch.
public let updateTime: Date

@inlinable
Expand Down Expand Up @@ -1850,7 +1868,7 @@ extension Amplify {
public let commitId: String
/// The commit message from a third-party repository provider for the job.
public let commitMessage: String
/// The commit date and time for the job.
/// The commit date and time for the job.
public let commitTime: Date
/// The end date and time for the job.
public let endTime: Date?
Expand Down Expand Up @@ -3196,14 +3214,36 @@ extension Amplify {
}
}

public struct WafConfiguration: AWSDecodableShape {
/// The reason for the current status of the Firewall configuration.
public let statusReason: String?
/// The status of the process to associate or disassociate a web ACL to an Amplify app.
public let wafStatus: WafStatus?
/// The Amazon Resource Name (ARN) for the web ACL associated with an Amplify app.
public let webAclArn: String?

@inlinable
public init(statusReason: String? = nil, wafStatus: WafStatus? = nil, webAclArn: String? = nil) {
self.statusReason = statusReason
self.wafStatus = wafStatus
self.webAclArn = webAclArn
}

private enum CodingKeys: String, CodingKey {
case statusReason = "statusReason"
case wafStatus = "wafStatus"
case webAclArn = "webAclArn"
}
}

public struct Webhook: AWSDecodableShape {
/// The name for a branch that is part of an Amplify app.
public let branchName: String
/// The create date and time for a webhook.
/// A timestamp of when Amplify created the webhook in your Git repository.
public let createTime: Date
/// The description for a webhook.
public let description: String
/// Updates the date and time for a webhook.
/// A timestamp of when Amplify updated the webhook in your Git repository.
public let updateTime: Date
/// The Amazon Resource Name (ARN) for the webhook.
public let webhookArn: String
Expand Down
1 change: 1 addition & 0 deletions Sources/Soto/Services/AppStream/AppStream_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ extension AppStream {
public enum PlatformType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case amazonLinux2 = "AMAZON_LINUX2"
case rhel8 = "RHEL8"
case rockyLinux8 = "ROCKY_LINUX8"
case windows = "WINDOWS"
case windowsServer2016 = "WINDOWS_SERVER_2016"
case windowsServer2019 = "WINDOWS_SERVER_2019"
Expand Down
43 changes: 39 additions & 4 deletions Sources/Soto/Services/BedrockAgent/BedrockAgent_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ extension BedrockAgent {

public enum PromptType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case knowledgeBaseResponseGeneration = "KNOWLEDGE_BASE_RESPONSE_GENERATION"
case memorySummarization = "MEMORY_SUMMARIZATION"
case orchestration = "ORCHESTRATION"
case postProcessing = "POST_PROCESSING"
case preProcessing = "PRE_PROCESSING"
Expand Down Expand Up @@ -414,6 +415,7 @@ extension BedrockAgent {

public enum SharePointAuthType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case oauth2ClientCredentials = "OAUTH2_CLIENT_CREDENTIALS"
case oauth2SharepointAppOnlyClientCredentials = "OAUTH2_SHAREPOINT_APP_ONLY_CLIENT_CREDENTIALS"
public var description: String { return self.rawValue }
}

Expand Down Expand Up @@ -6963,24 +6965,29 @@ extension BedrockAgent {
public struct MemoryConfiguration: AWSEncodableShape & AWSDecodableShape {
/// The type of memory that is stored.
public let enabledMemoryTypes: [MemoryType]
/// Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
public let sessionSummaryConfiguration: SessionSummaryConfiguration?
/// The number of days the agent is configured to retain the conversational context.
public let storageDays: Int?

@inlinable
public init(enabledMemoryTypes: [MemoryType], storageDays: Int? = nil) {
public init(enabledMemoryTypes: [MemoryType], sessionSummaryConfiguration: SessionSummaryConfiguration? = nil, storageDays: Int? = nil) {
self.enabledMemoryTypes = enabledMemoryTypes
self.sessionSummaryConfiguration = sessionSummaryConfiguration
self.storageDays = storageDays
}

public func validate(name: String) throws {
try self.validate(self.enabledMemoryTypes, name: "enabledMemoryTypes", parent: name, max: 1)
try self.validate(self.enabledMemoryTypes, name: "enabledMemoryTypes", parent: name, min: 1)
try self.validate(self.storageDays, name: "storageDays", parent: name, max: 30)
try self.sessionSummaryConfiguration?.validate(name: "\(name).sessionSummaryConfiguration")
try self.validate(self.storageDays, name: "storageDays", parent: name, max: 365)
try self.validate(self.storageDays, name: "storageDays", parent: name, min: 0)
}

private enum CodingKeys: String, CodingKey {
case enabledMemoryTypes = "enabledMemoryTypes"
case sessionSummaryConfiguration = "sessionSummaryConfiguration"
case storageDays = "storageDays"
}
}
Expand Down Expand Up @@ -8746,6 +8753,24 @@ extension BedrockAgent {
}
}

public struct SessionSummaryConfiguration: AWSEncodableShape & AWSDecodableShape {
/// Maximum number of recent session summaries to include in the agent's prompt context.
public let maxRecentSessions: Int?

@inlinable
public init(maxRecentSessions: Int? = nil) {
self.maxRecentSessions = maxRecentSessions
}

public func validate(name: String) throws {
try self.validate(self.maxRecentSessions, name: "maxRecentSessions", parent: name, min: 1)
}

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

public struct SharePointCrawlerConfiguration: AWSEncodableShape & AWSDecodableShape {
/// The configuration of filtering the SharePoint content. For example, configuring regular expression patterns to include or exclude certain content.
public let filterConfiguration: CrawlFilterConfiguration?
Expand Down Expand Up @@ -10460,13 +10485,16 @@ extension BedrockAgent {
public let inclusionFilters: [String]?
/// The scope of what is crawled for your URLs. You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL "https://docs.aws.amazon.com/bedrock/latest/userguide/" and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain "aws.amazon.com" can also include sub domain "docs.aws.amazon.com".
public let scope: WebScopeType?
/// A string used for identifying the crawler or a bot when it accesses a web server. By default, this is set to bedrockbot_UUID for your crawler. You can optionally append a custom string to bedrockbot_UUID to allowlist a specific user agent permitted to access your source URLs.
public let userAgent: String?

@inlinable
public init(crawlerLimits: WebCrawlerLimits? = nil, exclusionFilters: [String]? = nil, inclusionFilters: [String]? = nil, scope: WebScopeType? = nil) {
public init(crawlerLimits: WebCrawlerLimits? = nil, exclusionFilters: [String]? = nil, inclusionFilters: [String]? = nil, scope: WebScopeType? = nil, userAgent: String? = nil) {
self.crawlerLimits = crawlerLimits
self.exclusionFilters = exclusionFilters
self.inclusionFilters = inclusionFilters
self.scope = scope
self.userAgent = userAgent
}

public func validate(name: String) throws {
Expand All @@ -10482,26 +10510,33 @@ extension BedrockAgent {
}
try self.validate(self.inclusionFilters, name: "inclusionFilters", parent: name, max: 25)
try self.validate(self.inclusionFilters, name: "inclusionFilters", parent: name, min: 1)
try self.validate(self.userAgent, name: "userAgent", parent: name, max: 40)
try self.validate(self.userAgent, name: "userAgent", parent: name, min: 15)
}

private enum CodingKeys: String, CodingKey {
case crawlerLimits = "crawlerLimits"
case exclusionFilters = "exclusionFilters"
case inclusionFilters = "inclusionFilters"
case scope = "scope"
case userAgent = "userAgent"
}
}

public struct WebCrawlerLimits: AWSEncodableShape & AWSDecodableShape {
/// The max number of web pages crawled from your source URLs, up to 25,000 pages. If the web pages exceed this limit, the data source sync will fail and no web pages will be ingested.
public let maxPages: Int?
/// The max rate at which pages are crawled, up to 300 per minute per host.
public let rateLimit: Int?

@inlinable
public init(rateLimit: Int? = nil) {
public init(maxPages: Int? = nil, rateLimit: Int? = nil) {
self.maxPages = maxPages
self.rateLimit = rateLimit
}

private enum CodingKeys: String, CodingKey {
case maxPages = "maxPages"
case rateLimit = "rateLimit"
}
}
Expand Down
Loading

0 comments on commit 0506884

Please sign in to comment.