Skip to content

Commit fef3011

Browse files
chore: Updates version to 1.6.111
1 parent 0082f76 commit fef3011

35 files changed

Lines changed: 8523 additions & 1177 deletions

File tree

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import PackageDescription
1515

1616
// MARK: - Dynamic Content
1717

18-
let clientRuntimeVersion: Version = "0.203.0"
18+
let clientRuntimeVersion: Version = "0.204.0"
1919
let crtVersion: Version = "0.58.1"
2020

2121
let excludeRuntimeUnitTests = false

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.110
1+
1.6.111

Package.version.next

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.111
1+
1.6.112

Sources/Core/AWSSDKDynamic/Sources/AWSSDKDynamic/PackageVersion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
// Code is auto-generated. DO NOT EDIT!
99

10-
public let packageVersion = "1.6.110"
10+
public let packageVersion = "1.6.111"

Sources/Services/AWSARCRegionswitch/Sources/AWSARCRegionswitch/Models.swift

Lines changed: 190 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ extension ARCRegionswitchClientTypes {
13721372
public var asgs: [ARCRegionswitchClientTypes.Asg]?
13731373
/// The monitoring approach that you specify EC2 Auto Scaling groups for the configuration.
13741374
public var capacityMonitoringApproach: ARCRegionswitchClientTypes.Ec2AsgCapacityMonitoringApproach?
1375-
/// The target percentage that you specify for EC2 Auto Scaling groups.
1375+
/// The target percentage that you specify for EC2 Auto Scaling groups. The default is 100.
13761376
public var targetPercent: Swift.Int?
13771377
/// The timeout value specified for the configuration.
13781378
public var timeoutMinutes: Swift.Int?
@@ -1476,7 +1476,7 @@ extension ARCRegionswitchClientTypes {
14761476
/// The services specified for the configuration.
14771477
/// This member is required.
14781478
public var services: [ARCRegionswitchClientTypes.Service]?
1479-
/// The target percentage specified for the configuration.
1479+
/// The target percentage specified for the configuration. The default is 100.
14801480
public var targetPercent: Swift.Int?
14811481
/// The timeout value specified for the configuration.
14821482
public var timeoutMinutes: Swift.Int?
@@ -1624,7 +1624,7 @@ extension ARCRegionswitchClientTypes {
16241624
public var kubernetesResourceType: ARCRegionswitchClientTypes.KubernetesResourceType?
16251625
/// The scaling resources for the configuration.
16261626
public var scalingResources: [[Swift.String: [Swift.String: ARCRegionswitchClientTypes.KubernetesScalingResource]]]?
1627-
/// The target percentage for the configuration.
1627+
/// The target percentage for the configuration. The default is 100.
16281628
public var targetPercent: Swift.Int?
16291629
/// The timeout value specified for the configuration.
16301630
public var timeoutMinutes: Swift.Int?
@@ -1783,6 +1783,129 @@ extension ARCRegionswitchClientTypes {
17831783
}
17841784
}
17851785

1786+
extension ARCRegionswitchClientTypes {
1787+
1788+
public enum EventSourceMappingAction: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
1789+
case disable
1790+
case enable
1791+
case sdkUnknown(Swift.String)
1792+
1793+
public static var allCases: [EventSourceMappingAction] {
1794+
return [
1795+
.disable,
1796+
.enable
1797+
]
1798+
}
1799+
1800+
public init?(rawValue: Swift.String) {
1801+
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
1802+
self = value ?? Self.sdkUnknown(rawValue)
1803+
}
1804+
1805+
public var rawValue: Swift.String {
1806+
switch self {
1807+
case .disable: return "disable"
1808+
case .enable: return "enable"
1809+
case let .sdkUnknown(s): return s
1810+
}
1811+
}
1812+
}
1813+
}
1814+
1815+
extension ARCRegionswitchClientTypes {
1816+
1817+
/// The Amazon Web Services Lambda event source mapping configuration, containing the resource ARN and optional cross-account configuration.
1818+
public struct EventSourceMapping: Swift.Sendable {
1819+
/// The Amazon Resource Name (ARN) of the Lambda event source mapping.
1820+
/// This member is required.
1821+
public var arn: Swift.String?
1822+
/// The cross account role for the configuration.
1823+
public var crossAccountRole: Swift.String?
1824+
/// The external ID (secret key) for the configuration.
1825+
public var externalId: Swift.String?
1826+
1827+
public init(
1828+
arn: Swift.String? = nil,
1829+
crossAccountRole: Swift.String? = nil,
1830+
externalId: Swift.String? = nil
1831+
) {
1832+
self.arn = arn
1833+
self.crossAccountRole = crossAccountRole
1834+
self.externalId = externalId
1835+
}
1836+
}
1837+
}
1838+
1839+
extension ARCRegionswitchClientTypes {
1840+
1841+
public enum LambdaEventSourceMappingUngracefulBehavior: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
1842+
case skip
1843+
case sdkUnknown(Swift.String)
1844+
1845+
public static var allCases: [LambdaEventSourceMappingUngracefulBehavior] {
1846+
return [
1847+
.skip
1848+
]
1849+
}
1850+
1851+
public init?(rawValue: Swift.String) {
1852+
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
1853+
self = value ?? Self.sdkUnknown(rawValue)
1854+
}
1855+
1856+
public var rawValue: Swift.String {
1857+
switch self {
1858+
case .skip: return "skip"
1859+
case let .sdkUnknown(s): return s
1860+
}
1861+
}
1862+
}
1863+
}
1864+
1865+
extension ARCRegionswitchClientTypes {
1866+
1867+
/// Specifies whether to skip enabling or disabling an event source mapping during an ungraceful execution.
1868+
public struct LambdaEventSourceMappingUngraceful: Swift.Sendable {
1869+
/// Set to skip to skip executing this event source mapping step during an ungraceful execution.
1870+
public var behavior: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngracefulBehavior?
1871+
1872+
public init(
1873+
behavior: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngracefulBehavior? = .skip
1874+
) {
1875+
self.behavior = behavior
1876+
}
1877+
}
1878+
}
1879+
1880+
extension ARCRegionswitchClientTypes {
1881+
1882+
/// Configuration for Amazon Web Services Lambda event source mappings used in a Region switch plan.
1883+
public struct LambdaEventSourceMappingConfiguration: Swift.Sendable {
1884+
/// The action to take - whether to enable or disable an event source mapping.
1885+
/// This member is required.
1886+
public var action: ARCRegionswitchClientTypes.EventSourceMappingAction?
1887+
/// Per-region configuration for which Lambda event source mapping to enable or disable when activating or deactivating a region.
1888+
/// This member is required.
1889+
public var regionEventSourceMappings: [Swift.String: ARCRegionswitchClientTypes.EventSourceMapping]?
1890+
/// The timeout value specified for the configuration.
1891+
public var timeoutMinutes: Swift.Int?
1892+
/// The settings for ungraceful execution.
1893+
public var ungraceful: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful?
1894+
1895+
public init(
1896+
action: ARCRegionswitchClientTypes.EventSourceMappingAction? = nil,
1897+
regionEventSourceMappings: [Swift.String: ARCRegionswitchClientTypes.EventSourceMapping]? = nil,
1898+
timeoutMinutes: Swift.Int? = 60,
1899+
ungraceful: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful? = nil
1900+
) {
1901+
self.action = action
1902+
self.regionEventSourceMappings = regionEventSourceMappings
1903+
self.timeoutMinutes = timeoutMinutes
1904+
self.ungraceful = ungraceful
1905+
}
1906+
}
1907+
}
1908+
17861909
extension ARCRegionswitchClientTypes {
17871910

17881911
/// Configuration for creating an Amazon RDS cross-Region read replica during post-recovery in a Region switch.
@@ -1929,6 +2052,7 @@ extension ARCRegionswitchClientTypes {
19292052
case ecs
19302053
case eksResourceScaling
19312054
case executionApproval
2055+
case lambdaEventSourceMapping
19322056
case parallel
19332057
case rdsCreateCrossRegionReplica
19342058
case rdsPromoteReadReplica
@@ -1946,6 +2070,7 @@ extension ARCRegionswitchClientTypes {
19462070
.ecs,
19472071
.eksResourceScaling,
19482072
.executionApproval,
2073+
.lambdaEventSourceMapping,
19492074
.parallel,
19502075
.rdsCreateCrossRegionReplica,
19512076
.rdsPromoteReadReplica,
@@ -1969,6 +2094,7 @@ extension ARCRegionswitchClientTypes {
19692094
case .ecs: return "ECSServiceScaling"
19702095
case .eksResourceScaling: return "EKSResourceScaling"
19712096
case .executionApproval: return "ManualApproval"
2097+
case .lambdaEventSourceMapping: return "LambdaEventSourceMapping"
19722098
case .parallel: return "Parallel"
19732099
case .rdsCreateCrossRegionReplica: return "RdsCreateCrossRegionReplica"
19742100
case .rdsPromoteReadReplica: return "RdsPromoteReadReplica"
@@ -2907,6 +3033,8 @@ extension ARCRegionswitchClientTypes {
29073033
case rdspromotereadreplicaconfig(ARCRegionswitchClientTypes.RdsPromoteReadReplicaConfiguration)
29083034
/// An Amazon RDS create cross-Region replica execution block.
29093035
case rdscreatecrossregionreadreplicaconfig(ARCRegionswitchClientTypes.RdsCreateCrossRegionReplicaConfiguration)
3036+
/// A Lambda event source mapping execution block.
3037+
case lambdaeventsourcemappingconfig(ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration)
29103038
case sdkUnknown(Swift.String)
29113039
}
29123040
}
@@ -4618,6 +4746,25 @@ extension ARCRegionswitchClientTypes.EksResourceScalingUngraceful {
46184746
}
46194747
}
46204748

4749+
extension ARCRegionswitchClientTypes.EventSourceMapping {
4750+
4751+
static func write(value: ARCRegionswitchClientTypes.EventSourceMapping?, to writer: SmithyCBOR.Writer) throws {
4752+
guard let value else { return }
4753+
try writer["arn"].write(value.arn)
4754+
try writer["crossAccountRole"].write(value.crossAccountRole)
4755+
try writer["externalId"].write(value.externalId)
4756+
}
4757+
4758+
static func read(from reader: SmithyCBOR.Reader) throws -> ARCRegionswitchClientTypes.EventSourceMapping {
4759+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
4760+
var value = ARCRegionswitchClientTypes.EventSourceMapping()
4761+
value.crossAccountRole = try reader["crossAccountRole"].readIfPresent()
4762+
value.externalId = try reader["externalId"].readIfPresent()
4763+
value.arn = try reader["arn"].readIfPresent() ?? ""
4764+
return value
4765+
}
4766+
}
4767+
46214768
extension ARCRegionswitchClientTypes.ExecutionApprovalConfiguration {
46224769

46234770
static func write(value: ARCRegionswitchClientTypes.ExecutionApprovalConfiguration?, to writer: SmithyCBOR.Writer) throws {
@@ -4656,6 +4803,8 @@ extension ARCRegionswitchClientTypes.ExecutionBlockConfiguration {
46564803
try writer["executionApprovalConfig"].write(executionapprovalconfig, with: ARCRegionswitchClientTypes.ExecutionApprovalConfiguration.write(value:to:))
46574804
case let .globalauroraconfig(globalauroraconfig):
46584805
try writer["globalAuroraConfig"].write(globalauroraconfig, with: ARCRegionswitchClientTypes.GlobalAuroraConfiguration.write(value:to:))
4806+
case let .lambdaeventsourcemappingconfig(lambdaeventsourcemappingconfig):
4807+
try writer["lambdaEventSourceMappingConfig"].write(lambdaeventsourcemappingconfig, with: ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration.write(value:to:))
46594808
case let .parallelconfig(parallelconfig):
46604809
try writer["parallelConfig"].write(parallelconfig, with: ARCRegionswitchClientTypes.ParallelExecutionBlockConfiguration.write(value:to:))
46614810
case let .rdscreatecrossregionreadreplicaconfig(rdscreatecrossregionreadreplicaconfig):
@@ -4701,6 +4850,8 @@ extension ARCRegionswitchClientTypes.ExecutionBlockConfiguration {
47014850
return .rdspromotereadreplicaconfig(try reader["rdsPromoteReadReplicaConfig"].read(with: ARCRegionswitchClientTypes.RdsPromoteReadReplicaConfiguration.read(from:)))
47024851
case "rdsCreateCrossRegionReadReplicaConfig":
47034852
return .rdscreatecrossregionreadreplicaconfig(try reader["rdsCreateCrossRegionReadReplicaConfig"].read(with: ARCRegionswitchClientTypes.RdsCreateCrossRegionReplicaConfiguration.read(from:)))
4853+
case "lambdaEventSourceMappingConfig":
4854+
return .lambdaeventsourcemappingconfig(try reader["lambdaEventSourceMappingConfig"].read(with: ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration.read(from:)))
47044855
default:
47054856
return .sdkUnknown(name ?? "")
47064857
}
@@ -4825,6 +4976,42 @@ extension ARCRegionswitchClientTypes.KubernetesScalingResource {
48254976
}
48264977
}
48274978

4979+
extension ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration {
4980+
4981+
static func write(value: ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration?, to writer: SmithyCBOR.Writer) throws {
4982+
guard let value else { return }
4983+
try writer["action"].write(value.action)
4984+
try writer["regionEventSourceMappings"].writeMap(value.regionEventSourceMappings, valueWritingClosure: ARCRegionswitchClientTypes.EventSourceMapping.write(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false)
4985+
try writer["timeoutMinutes"].write(value.timeoutMinutes)
4986+
try writer["ungraceful"].write(value.ungraceful, with: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful.write(value:to:))
4987+
}
4988+
4989+
static func read(from reader: SmithyCBOR.Reader) throws -> ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration {
4990+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
4991+
var value = ARCRegionswitchClientTypes.LambdaEventSourceMappingConfiguration()
4992+
value.timeoutMinutes = try reader["timeoutMinutes"].readIfPresent() ?? 60
4993+
value.action = try reader["action"].readIfPresent() ?? .sdkUnknown("")
4994+
value.regionEventSourceMappings = try reader["regionEventSourceMappings"].readMapIfPresent(valueReadingClosure: ARCRegionswitchClientTypes.EventSourceMapping.read(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) ?? [:]
4995+
value.ungraceful = try reader["ungraceful"].readIfPresent(with: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful.read(from:))
4996+
return value
4997+
}
4998+
}
4999+
5000+
extension ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful {
5001+
5002+
static func write(value: ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful?, to writer: SmithyCBOR.Writer) throws {
5003+
guard let value else { return }
5004+
try writer["behavior"].write(value.behavior)
5005+
}
5006+
5007+
static func read(from reader: SmithyCBOR.Reader) throws -> ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful {
5008+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
5009+
var value = ARCRegionswitchClientTypes.LambdaEventSourceMappingUngraceful()
5010+
value.behavior = try reader["behavior"].readIfPresent() ?? ARCRegionswitchClientTypes.LambdaEventSourceMappingUngracefulBehavior.skip
5011+
return value
5012+
}
5013+
}
5014+
48285015
extension ARCRegionswitchClientTypes.Lambdas {
48295016

48305017
static func write(value: ARCRegionswitchClientTypes.Lambdas?, to writer: SmithyCBOR.Writer) throws {

0 commit comments

Comments
 (0)