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 config/v1.27.11 #698

Merged
merged 1 commit into from
Apr 6, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 16 additions & 6 deletions Package.swift

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Sources/Soto/Services/ACM/ACM_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public struct ACM: AWSService {
static var variantEndpoints: [EndpointVariantType: AWSServiceConfig.EndpointVariant] {[
[.fips]: .init(endpoints: [
"ca-central-1": "acm-fips.ca-central-1.amazonaws.com",
"ca-west-1": "acm-fips.ca-west-1.amazonaws.com",
"us-east-1": "acm-fips.us-east-1.amazonaws.com",
"us-east-2": "acm-fips.us-east-2.amazonaws.com",
"us-gov-east-1": "acm.us-gov-east-1.amazonaws.com",
Expand Down
2 changes: 1 addition & 1 deletion Sources/Soto/Services/ACM/ACM_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if os(Linux)
#if os(Linux) && compiler(<5.10)
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#else
Expand Down
3 changes: 2 additions & 1 deletion Sources/Soto/Services/ACMPCA/ACMPCA_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public struct ACMPCA: AWSService {
static var variantEndpoints: [EndpointVariantType: AWSServiceConfig.EndpointVariant] {[
[.fips]: .init(endpoints: [
"ca-central-1": "acm-pca-fips.ca-central-1.amazonaws.com",
"ca-west-1": "acm-pca-fips.ca-west-1.amazonaws.com",
"us-east-1": "acm-pca-fips.us-east-1.amazonaws.com",
"us-east-2": "acm-pca-fips.us-east-2.amazonaws.com",
"us-gov-east-1": "acm-pca.us-gov-east-1.amazonaws.com",
Expand Down Expand Up @@ -744,7 +745,7 @@ extension ACMPCA {
.init(state: .success, matcher: AWSSuccessMatcher()),
.init(state: .retry, matcher: AWSErrorCodeMatcher("RequestInProgressException")),
],
minDelayTime: .seconds(3),
minDelayTime: .seconds(1),
command: self.getCertificate
)
return try await self.client.waitUntil(input, waiter: waiter, maxWaitTime: maxWaitTime, logger: logger)
Expand Down
82 changes: 50 additions & 32 deletions Sources/Soto/Services/ACMPCA/ACMPCA_shapes.swift

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Sources/Soto/Services/APIGateway/APIGateway_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public struct APIGateway: AWSService {
static var variantEndpoints: [EndpointVariantType: AWSServiceConfig.EndpointVariant] {[
[.fips]: .init(endpoints: [
"ca-central-1": "apigateway-fips.ca-central-1.amazonaws.com",
"ca-west-1": "apigateway-fips.ca-west-1.amazonaws.com",
"us-east-1": "apigateway-fips.us-east-1.amazonaws.com",
"us-east-2": "apigateway-fips.us-east-2.amazonaws.com",
"us-west-1": "apigateway-fips.us-west-1.amazonaws.com",
Expand Down Expand Up @@ -1578,7 +1579,7 @@ public struct APIGateway: AWSService {
)
}

/// Changes information about a model.
/// Changes information about a model. The maximum size of the model is 400 KB.
@Sendable
public func updateModel(_ input: UpdateModelRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> Model {
return try await self.client.execute(
Expand Down
8 changes: 4 additions & 4 deletions Sources/Soto/Services/APIGateway/APIGateway_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if os(Linux)
#if os(Linux) && compiler(<5.10)
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#else
Expand Down Expand Up @@ -853,7 +853,7 @@ extension APIGateway {
public let name: String
/// The RestApi identifier under which the Model will be created.
public let restApiId: String
/// The schema for the model. For application/json models, this should be JSON schema draft 4 model.
/// The schema for the model. For application/json models, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB.
public let schema: String?

public init(contentType: String, description: String? = nil, name: String, restApiId: String, schema: String? = nil) {
Expand Down Expand Up @@ -3377,7 +3377,7 @@ extension APIGateway {
public let cacheTtlInSeconds: Int?
/// Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the stage for responses to be cached.
public let cachingEnabled: Bool?
/// Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs.
/// Specifies whether data trace logging is enabled for this method, which affects the log entries pushed to Amazon CloudWatch Logs. This can be useful to troubleshoot APIs, but can result in logging sensitive data. We recommend that you don't enable this option for production APIs.
public let dataTraceEnabled: Bool?
/// Specifies the logging level for this method, which affects the log entries pushed to Amazon CloudWatch Logs. Valid values are OFF, ERROR, and INFO. Choose ERROR to write only error-level entries to CloudWatch Logs, or choose INFO to include all ERROR events as well as extra informational events.
public let loggingLevel: String?
Expand Down Expand Up @@ -4165,7 +4165,7 @@ extension APIGateway {
public struct Stage: AWSDecodableShape {
/// Settings for logging access in this stage.
public let accessLogSettings: AccessLogSettings?
/// Specifies whether a cache cluster is enabled for the stage.
/// Specifies whether a cache cluster is enabled for the stage. To activate a method-level cache, set CachingEnabled to true for a method.
public let cacheClusterEnabled: Bool?
/// The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
public let cacheClusterSize: CacheClusterSize?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if os(Linux)
#if os(Linux) && compiler(<5.10)
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#else
Expand Down
10 changes: 5 additions & 5 deletions Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public struct AccessAnalyzer: AWSService {
)
}

/// Retrieves information about the specified finding.
/// Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action.
@Sendable
public func getFinding(_ input: GetFindingRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> GetFindingResponse {
return try await self.client.execute(
Expand All @@ -274,7 +274,7 @@ public struct AccessAnalyzer: AWSService {
)
}

/// Retrieves information about the specified finding.
/// Retrieves information about the specified finding. GetFinding and GetFindingV2 both use access-analyzer:GetFinding in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:GetFinding action.
@Sendable
public func getFindingV2(_ input: GetFindingV2Request, logger: Logger = AWSClient.loggingDisabled) async throws -> GetFindingV2Response {
return try await self.client.execute(
Expand Down Expand Up @@ -326,7 +326,7 @@ public struct AccessAnalyzer: AWSService {
)
}

/// Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
/// Retrieves a list of resources of the specified type that have been analyzed by the specified external access analyzer. This action is not supported for unused access analyzers.
@Sendable
public func listAnalyzedResources(_ input: ListAnalyzedResourcesRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ListAnalyzedResourcesResponse {
return try await self.client.execute(
Expand Down Expand Up @@ -365,7 +365,7 @@ public struct AccessAnalyzer: AWSService {
)
}

/// Retrieves a list of findings generated by the specified analyzer. To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
/// Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action. To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
@Sendable
public func listFindings(_ input: ListFindingsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> ListFindingsResponse {
return try await self.client.execute(
Expand All @@ -378,7 +378,7 @@ public struct AccessAnalyzer: AWSService {
)
}

/// Retrieves a list of findings generated by the specified analyzer. To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
/// Retrieves a list of findings generated by the specified analyzer. ListFindings and ListFindingsV2 both use access-analyzer:ListFindings in the Action element of an IAM policy statement. You must have permission to perform the access-analyzer:ListFindings action. To learn about filter keys that you can use to retrieve a list of findings, see IAM Access Analyzer filter keys in the IAM User Guide.
@Sendable
public func listFindingsV2(_ input: ListFindingsV2Request, logger: Logger = AWSClient.loggingDisabled) async throws -> ListFindingsV2Response {
return try await self.client.execute(
Expand Down
51 changes: 48 additions & 3 deletions Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if os(Linux)
#if os(Linux) && compiler(<5.10)
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#else
Expand Down Expand Up @@ -181,6 +181,8 @@ extension AccessAnalyzer {
}

public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case awsDynamodbStream = "AWS::DynamoDB::Stream"
case awsDynamodbTable = "AWS::DynamoDB::Table"
case awsEC2Snapshot = "AWS::EC2::Snapshot"
case awsECRRepository = "AWS::ECR::Repository"
case awsEFSFilesystem = "AWS::EFS::FileSystem"
Expand All @@ -207,6 +209,7 @@ extension AccessAnalyzer {
}

public enum ValidatePolicyResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case awsDynamodbTable = "AWS::DynamoDB::Table"
case awsIAMAssumerolepolicydocument = "AWS::IAM::AssumeRolePolicyDocument"
case awsS3Accesspoint = "AWS::S3::AccessPoint"
case awsS3Bucket = "AWS::S3::Bucket"
Expand Down Expand Up @@ -265,6 +268,10 @@ extension AccessAnalyzer {
}

public enum Configuration: AWSEncodableShape & AWSDecodableShape, Sendable {
/// The access control configuration is for a DynamoDB stream.
case dynamodbStream(DynamodbStreamConfiguration)
/// The access control configuration is for a DynamoDB table or index.
case dynamodbTable(DynamodbTableConfiguration)
/// The access control configuration is for an Amazon EBS volume snapshot.
case ebsSnapshot(EbsSnapshotConfiguration)
/// The access control configuration is for an Amazon ECR repository.
Expand Down Expand Up @@ -300,6 +307,12 @@ extension AccessAnalyzer {
throw DecodingError.dataCorrupted(context)
}
switch key {
case .dynamodbStream:
let value = try container.decode(DynamodbStreamConfiguration.self, forKey: .dynamodbStream)
self = .dynamodbStream(value)
case .dynamodbTable:
let value = try container.decode(DynamodbTableConfiguration.self, forKey: .dynamodbTable)
self = .dynamodbTable(value)
case .ebsSnapshot:
let value = try container.decode(EbsSnapshotConfiguration.self, forKey: .ebsSnapshot)
self = .ebsSnapshot(value)
Expand Down Expand Up @@ -342,6 +355,10 @@ extension AccessAnalyzer {
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
switch self {
case .dynamodbStream(let value):
try container.encode(value, forKey: .dynamodbStream)
case .dynamodbTable(let value):
try container.encode(value, forKey: .dynamodbTable)
case .ebsSnapshot(let value):
try container.encode(value, forKey: .ebsSnapshot)
case .ecrRepository(let value):
Expand Down Expand Up @@ -381,6 +398,8 @@ extension AccessAnalyzer {
}

private enum CodingKeys: String, CodingKey {
case dynamodbStream = "dynamodbStream"
case dynamodbTable = "dynamodbTable"
case ebsSnapshot = "ebsSnapshot"
case ecrRepository = "ecrRepository"
case efsFileSystem = "efsFileSystem"
Expand Down Expand Up @@ -540,7 +559,7 @@ extension AccessAnalyzer {
// MARK: Shapes

public struct Access: AWSEncodableShape {
/// A list of actions for the access permissions.
/// A list of actions for the access permissions. Any strings that can be used as an action in an IAM policy can be used in the list of actions to check.
public let actions: [String]

public init(actions: [String]) {
Expand Down Expand Up @@ -1095,7 +1114,7 @@ extension AccessAnalyzer {
public let configuration: AnalyzerConfiguration?
/// An array of key-value pairs to apply to the analyzer.
public let tags: [String: String]?
/// The type of analyzer to create. Only ACCOUNT, ORGANIZATION, ACCOUNT_UNUSED_ACCESS, and ORGANIZTAION_UNUSED_ACCESS analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
/// The type of analyzer to create. Only ACCOUNT, ORGANIZATION, ACCOUNT_UNUSED_ACCESS, and ORGANIZATION_UNUSED_ACCESS analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
public let type: `Type`

public init(analyzerName: String, archiveRules: [InlineArchiveRule]? = nil, clientToken: String? = CreateAnalyzerRequest.idempotencyToken(), configuration: AnalyzerConfiguration? = nil, tags: [String: String]? = nil, type: `Type`) {
Expand Down Expand Up @@ -1279,6 +1298,32 @@ extension AccessAnalyzer {
private enum CodingKeys: CodingKey {}
}

public struct DynamodbStreamConfiguration: AWSEncodableShape & AWSDecodableShape {
/// The proposed resource policy defining who can access or manage the DynamoDB stream.
public let streamPolicy: String?

public init(streamPolicy: String? = nil) {
self.streamPolicy = streamPolicy
}

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

public struct DynamodbTableConfiguration: AWSEncodableShape & AWSDecodableShape {
/// The proposed resource policy defining who can access or manage the DynamoDB table.
public let tablePolicy: String?

public init(tablePolicy: String? = nil) {
self.tablePolicy = tablePolicy
}

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

public struct EbsSnapshotConfiguration: AWSEncodableShape & AWSDecodableShape {
/// The groups that have access to the Amazon EBS volume snapshot. If the value all is specified, then the Amazon EBS volume snapshot is public. If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups, then the access preview uses the existing shared groups for the snapshot. If the access preview is for a new resource and you do not specify the groups, then the access preview considers the snapshot without any groups. To propose deletion of existing shared groups, you can specify an empty list for groups.
public let groups: [String]?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Soto/Services/Account/Account_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if os(Linux)
#if os(Linux) && compiler(<5.10)
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if os(Linux)
#if os(Linux) && compiler(<5.10)
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#else
Expand Down
Loading
Loading