Skip to content

Commit

Permalink
Update models from aws-sdk-go-v2 release-2025-02-21
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Feb 24, 2025
1 parent 444b728 commit f0721d7
Show file tree
Hide file tree
Showing 351 changed files with 51,228 additions and 15,285 deletions.
14 changes: 0 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ let package = Package(
.library(name: "SotoInternetMonitor", targets: ["SotoInternetMonitor"]),
.library(name: "SotoInvoicing", targets: ["SotoInvoicing"]),
.library(name: "SotoIoT", targets: ["SotoIoT"]),
.library(name: "SotoIoT1ClickDevicesService", targets: ["SotoIoT1ClickDevicesService"]),
.library(name: "SotoIoT1ClickProjects", targets: ["SotoIoT1ClickProjects"]),
.library(name: "SotoIoTAnalytics", targets: ["SotoIoTAnalytics"]),
.library(name: "SotoIoTDataPlane", targets: ["SotoIoTDataPlane"]),
.library(name: "SotoIoTDeviceAdvisor", targets: ["SotoIoTDeviceAdvisor"]),
Expand Down Expand Up @@ -1529,18 +1527,6 @@ let package = Package(
path: "./Sources/Soto/Services/IoT",
swiftSettings: swiftSettings
),
.target(
name: "SotoIoT1ClickDevicesService",
dependencies: [.product(name: "SotoCore", package: "soto-core")],
path: "./Sources/Soto/Services/IoT1ClickDevicesService",
swiftSettings: swiftSettings
),
.target(
name: "SotoIoT1ClickProjects",
dependencies: [.product(name: "SotoCore", package: "soto-core")],
path: "./Sources/Soto/Services/IoT1ClickProjects",
swiftSettings: swiftSettings
),
.target(
name: "SotoIoTAnalytics",
dependencies: [.product(name: "SotoCore", package: "soto-core")],
Expand Down
32 changes: 30 additions & 2 deletions Sources/Soto/Services/ACMPCA/ACMPCA_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ extension ACMPCA {
public var description: String { return self.rawValue }
}

public enum CrlType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case complete = "COMPLETE"
case partitioned = "PARTITIONED"
public var description: String { return self.rawValue }
}

public enum ExtendedKeyUsageType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
case certificateTransparency = "CERTIFICATE_TRANSPARENCY"
case clientAuth = "CLIENT_AUTH"
Expand Down Expand Up @@ -649,13 +655,29 @@ extension ACMPCA {
public struct CrlConfiguration: AWSEncodableShape & AWSDecodableShape {
/// Configures the behavior of the CRL Distribution Point extension for certificates issued by your certificate authority. If this field is not provided, then the CRl Distribution Point Extension will be present and contain the default CRL URL.
public let crlDistributionPointExtensionConfiguration: CrlDistributionPointExtensionConfiguration?
/// Specifies whether to create a complete or partitioned CRL. This setting determines the maximum
/// number of certificates that the certificate authority can issue and revoke. For more information, see
/// Amazon Web Services Private CA quotas. COMPLETE - The default setting. Amazon Web Services Private CA maintains a single CRL file for all unexpired
/// certificates issued by a CA that have been revoked for any reason. Each certificate that Amazon Web Services Private CA
/// issues is bound to a specific CRL through its CRL distribution point (CDP) extension, defined in
/// RFC 5280. PARTITIONED - Compared to complete CRLs, partitioned CRLs
/// dramatically increase the number of certificates your private CA can issue. When using partitioned CRLs, you must validate that the CRL's associated
/// issuing distribution point (IDP) URI matches the certificate's CDP URI to ensure
/// the right CRL has been fetched. Amazon Web Services Private CA marks the IDP extension as critical,
/// which your client must be able to process.
///
public let crlType: CrlType?
/// Name inserted into the certificate CRL Distribution
/// Points extension that enables the use of an alias for the CRL
/// distribution point. Use this value if you don't want the name of your S3 bucket to be
/// public. The content of a Canonical Name (CNAME) record must conform to RFC2396 restrictions on the
/// use of special characters in URIs. Additionally, the value of the CNAME must not
/// include a protocol prefix such as "http://" or "https://".
public let customCname: String?
/// Designates a custom file path in S3 for CRL(s). For example, http://<CustomName>/
/// <CustomPath>/<CrlPartition_GUID>.crl.
///
public let customPath: String?
/// Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
/// You can use this value to enable certificate revocation for a new CA when you call the
/// CreateCertificateAuthority action or for an existing CA when you call the
Expand Down Expand Up @@ -684,9 +706,11 @@ extension ACMPCA {
public let s3ObjectAcl: S3ObjectAcl?

@inlinable
public init(crlDistributionPointExtensionConfiguration: CrlDistributionPointExtensionConfiguration? = nil, customCname: String? = nil, enabled: Bool, expirationInDays: Int? = nil, s3BucketName: String? = nil, s3ObjectAcl: S3ObjectAcl? = nil) {
public init(crlDistributionPointExtensionConfiguration: CrlDistributionPointExtensionConfiguration? = nil, crlType: CrlType? = nil, customCname: String? = nil, customPath: String? = nil, enabled: Bool, expirationInDays: Int? = nil, s3BucketName: String? = nil, s3ObjectAcl: S3ObjectAcl? = nil) {
self.crlDistributionPointExtensionConfiguration = crlDistributionPointExtensionConfiguration
self.crlType = crlType
self.customCname = customCname
self.customPath = customPath
self.enabled = enabled
self.expirationInDays = expirationInDays
self.s3BucketName = s3BucketName
Expand All @@ -696,6 +720,8 @@ extension ACMPCA {
public func validate(name: String) throws {
try self.validate(self.customCname, name: "customCname", parent: name, max: 253)
try self.validate(self.customCname, name: "customCname", parent: name, pattern: "^[-a-zA-Z0-9;/?:@&=+$,%_.!~*()']*$")
try self.validate(self.customPath, name: "customPath", parent: name, max: 253)
try self.validate(self.customPath, name: "customPath", parent: name, pattern: "^[-a-zA-Z0-9;?:@&=+$,%_.!~*()']+(/[-a-zA-Z0-9;?:@&=+$,%_.!~*()']+)*$")
try self.validate(self.expirationInDays, name: "expirationInDays", parent: name, max: 5000)
try self.validate(self.expirationInDays, name: "expirationInDays", parent: name, min: 1)
try self.validate(self.s3BucketName, name: "s3BucketName", parent: name, max: 255)
Expand All @@ -705,7 +731,9 @@ extension ACMPCA {

private enum CodingKeys: String, CodingKey {
case crlDistributionPointExtensionConfiguration = "CrlDistributionPointExtensionConfiguration"
case crlType = "CrlType"
case customCname = "CustomCname"
case customPath = "CustomPath"
case enabled = "Enabled"
case expirationInDays = "ExpirationInDays"
case s3BucketName = "S3BucketName"
Expand Down Expand Up @@ -1853,7 +1881,7 @@ extension ACMPCA {
}

public func validate(name: String) throws {
try self.validate(self.policy, name: "policy", parent: name, max: 20480)
try self.validate(self.policy, name: "policy", parent: name, max: 81920)
try self.validate(self.policy, name: "policy", parent: name, min: 1)
try self.validate(self.policy, name: "policy", parent: name, pattern: "^[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+$")
try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 200)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Soto/Services/APIGateway/APIGateway_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public struct APIGateway: AWSService {
/// Parameters:
/// - basePath: The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
/// - domainName: The domain name of the BasePathMapping resource to create.
/// - domainNameId: The identifier for the domain name resource. Supported only for private custom domain names.
/// - domainNameId: The identifier for the domain name resource. Required for private custom domain names.
/// - restApiId: The string identifier of the associated RestApi.
/// - stage: The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.
/// - logger: Logger use during operation
Expand Down Expand Up @@ -2193,7 +2193,7 @@ public struct APIGateway: AWSService {
///
/// Parameters:
/// - domainName: The name of the DomainName resource.
/// - domainNameId: The identifier for the domain name resource. Supported only for private custom domain names.
/// - domainNameId: The identifier for the domain name resource. Required for private custom domain names.
/// - logger: Logger use during operation
@inlinable
public func getDomainName(
Expand Down
4 changes: 2 additions & 2 deletions Sources/Soto/Services/APIGateway/APIGateway_shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ extension APIGateway {
public let basePath: String?
/// The domain name of the BasePathMapping resource to create.
public let domainName: String
/// The identifier for the domain name resource. Supported only for private custom domain names.
/// The identifier for the domain name resource. Required for private custom domain names.
public let domainNameId: String?
/// The string identifier of the associated RestApi.
public let restApiId: String
Expand Down Expand Up @@ -2628,7 +2628,7 @@ extension APIGateway {
public struct GetDomainNameRequest: AWSEncodableShape {
/// The name of the DomainName resource.
public let domainName: String
/// The identifier for the domain name resource. Supported only for private custom domain names.
/// The identifier for the domain name resource. Required for private custom domain names.
public let domainNameId: String?

@inlinable
Expand Down
29 changes: 29 additions & 0 deletions Sources/Soto/Services/AccessAnalyzer/AccessAnalyzer_api.swift
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,35 @@ public struct AccessAnalyzer: AWSService {
return try await self.getFindingV2(input, logger: logger)
}

/// Retrieves a list of aggregated finding statistics for an external access or unused access analyzer.
@Sendable
@inlinable
public func getFindingsStatistics(_ input: GetFindingsStatisticsRequest, logger: Logger = AWSClient.loggingDisabled) async throws -> GetFindingsStatisticsResponse {
try await self.client.execute(
operation: "GetFindingsStatistics",
path: "/analyzer/findings/statistics",
httpMethod: .POST,
serviceConfig: self.config,
input: input,
logger: logger
)
}
/// Retrieves a list of aggregated finding statistics for an external access or unused access analyzer.
///
/// Parameters:
/// - analyzerArn: The ARN of the analyzer used to generate the statistics.
/// - logger: Logger use during operation
@inlinable
public func getFindingsStatistics(
analyzerArn: String,
logger: Logger = AWSClient.loggingDisabled
) async throws -> GetFindingsStatisticsResponse {
let input = GetFindingsStatisticsRequest(
analyzerArn: analyzerArn
)
return try await self.getFindingsStatistics(input, logger: logger)
}

/// Retrieves the policy that was generated using StartPolicyGeneration.
@Sendable
@inlinable
Expand Down
Loading

0 comments on commit f0721d7

Please sign in to comment.