Skip to content

Commit

Permalink
chore: Updates version to 1.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 14, 2024
1 parent 4dd0a25 commit a6e96bb
Show file tree
Hide file tree
Showing 11 changed files with 1,542 additions and 86 deletions.
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.18
1.0.19
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.19
1.0.20
178 changes: 147 additions & 31 deletions Sources/Services/AWSCodePipeline/Sources/AWSCodePipeline/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1844,13 +1844,17 @@ extension CodePipelineClientTypes {

public enum Result: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case fail
case retry
case rollback
case skip
case sdkUnknown(Swift.String)

public static var allCases: [Result] {
return [
.fail,
.rollback
.retry,
.rollback,
.skip
]
}

Expand All @@ -1862,7 +1866,9 @@ extension CodePipelineClientTypes {
public var rawValue: Swift.String {
switch self {
case .fail: return "FAIL"
case .retry: return "RETRY"
case .rollback: return "ROLLBACK"
case .skip: return "SKIP"
case let .sdkUnknown(s): return s
}
}
Expand Down Expand Up @@ -2447,6 +2453,51 @@ extension CodePipelineClientTypes {
}
}

extension CodePipelineClientTypes {

public enum StageRetryMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case allActions
case failedActions
case sdkUnknown(Swift.String)

public static var allCases: [StageRetryMode] {
return [
.allActions,
.failedActions
]
}

public init?(rawValue: Swift.String) {
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
self = value ?? Self.sdkUnknown(rawValue)
}

public var rawValue: Swift.String {
switch self {
case .allActions: return "ALL_ACTIONS"
case .failedActions: return "FAILED_ACTIONS"
case let .sdkUnknown(s): return s
}
}
}
}

extension CodePipelineClientTypes {

/// The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
public struct RetryConfiguration: Swift.Sendable {
/// The method that you want to configure for automatic stage retry on stage failure. You can specify to retry only failed action in the stage or all actions in the stage.
public var retryMode: CodePipelineClientTypes.StageRetryMode?

public init(
retryMode: CodePipelineClientTypes.StageRetryMode? = nil
)
{
self.retryMode = retryMode
}
}
}

extension CodePipelineClientTypes {

/// The configuration that specifies the result, such as rollback, to occur upon stage failure.
Expand All @@ -2455,14 +2506,18 @@ extension CodePipelineClientTypes {
public var conditions: [CodePipelineClientTypes.Condition]?
/// The specified result for when the failure conditions are met, such as rolling back the stage.
public var result: CodePipelineClientTypes.Result?
/// The retry configuration specifies automatic retry for a failed stage, along with the configured retry mode.
public var retryConfiguration: CodePipelineClientTypes.RetryConfiguration?

public init(
conditions: [CodePipelineClientTypes.Condition]? = nil,
result: CodePipelineClientTypes.Result? = nil
result: CodePipelineClientTypes.Result? = nil,
retryConfiguration: CodePipelineClientTypes.RetryConfiguration? = nil
)
{
self.conditions = conditions
self.result = result
self.retryConfiguration = retryConfiguration
}
}
}
Expand Down Expand Up @@ -3959,6 +4014,7 @@ extension CodePipelineClientTypes {
case cancelled
case failed
case inprogress
case skipped
case stopped
case stopping
case succeeded
Expand All @@ -3969,6 +4025,7 @@ extension CodePipelineClientTypes {
.cancelled,
.failed,
.inprogress,
.skipped,
.stopped,
.stopping,
.succeeded
Expand All @@ -3985,6 +4042,7 @@ extension CodePipelineClientTypes {
case .cancelled: return "Cancelled"
case .failed: return "Failed"
case .inprogress: return "InProgress"
case .skipped: return "Skipped"
case .stopped: return "Stopped"
case .stopping: return "Stopping"
case .succeeded: return "Succeeded"
Expand Down Expand Up @@ -4048,6 +4106,59 @@ extension CodePipelineClientTypes {
}
}

extension CodePipelineClientTypes {

public enum RetryTrigger: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case automatedstageretry
case manualstageretry
case sdkUnknown(Swift.String)

public static var allCases: [RetryTrigger] {
return [
.automatedstageretry,
.manualstageretry
]
}

public init?(rawValue: Swift.String) {
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
self = value ?? Self.sdkUnknown(rawValue)
}

public var rawValue: Swift.String {
switch self {
case .automatedstageretry: return "AutomatedStageRetry"
case .manualstageretry: return "ManualStageRetry"
case let .sdkUnknown(s): return s
}
}
}
}

extension CodePipelineClientTypes {

/// The details of a specific automatic retry on stage failure, including the attempt number and trigger.
public struct RetryStageMetadata: Swift.Sendable {
/// The number of attempts for a specific stage with automatic retry on stage failure. One attempt is allowed for automatic stage retry on failure.
public var autoStageRetryAttempt: Swift.Int?
/// The latest trigger for a specific stage where manual or automatic retries have been made upon stage failure.
public var latestRetryTrigger: CodePipelineClientTypes.RetryTrigger?
/// The number of attempts for a specific stage where manual retries have been made upon stage failure.
public var manualStageRetryAttempt: Swift.Int?

public init(
autoStageRetryAttempt: Swift.Int? = nil,
latestRetryTrigger: CodePipelineClientTypes.RetryTrigger? = nil,
manualStageRetryAttempt: Swift.Int? = nil
)
{
self.autoStageRetryAttempt = autoStageRetryAttempt
self.latestRetryTrigger = latestRetryTrigger
self.manualStageRetryAttempt = manualStageRetryAttempt
}
}
}

extension CodePipelineClientTypes {

/// Represents information about the state of the stage.
Expand All @@ -4068,6 +4179,8 @@ extension CodePipelineClientTypes {
public var onFailureConditionState: CodePipelineClientTypes.StageConditionState?
/// The state of the success conditions for a stage.
public var onSuccessConditionState: CodePipelineClientTypes.StageConditionState?
/// he details of a specific automatic retry on stage failure, including the attempt number and trigger.
public var retryStageMetadata: CodePipelineClientTypes.RetryStageMetadata?
/// The name of the stage.
public var stageName: Swift.String?

Expand All @@ -4080,6 +4193,7 @@ extension CodePipelineClientTypes {
latestExecution: CodePipelineClientTypes.StageExecution? = nil,
onFailureConditionState: CodePipelineClientTypes.StageConditionState? = nil,
onSuccessConditionState: CodePipelineClientTypes.StageConditionState? = nil,
retryStageMetadata: CodePipelineClientTypes.RetryStageMetadata? = nil,
stageName: Swift.String? = nil
)
{
Expand All @@ -4091,6 +4205,7 @@ extension CodePipelineClientTypes {
self.latestExecution = latestExecution
self.onFailureConditionState = onFailureConditionState
self.onSuccessConditionState = onSuccessConditionState
self.retryStageMetadata = retryStageMetadata
self.stageName = stageName
}
}
Expand Down Expand Up @@ -6047,35 +6162,6 @@ public struct StageNotRetryableException: ClientRuntime.ModeledError, AWSClientR
}
}

extension CodePipelineClientTypes {

public enum StageRetryMode: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case allActions
case failedActions
case sdkUnknown(Swift.String)

public static var allCases: [StageRetryMode] {
return [
.allActions,
.failedActions
]
}

public init?(rawValue: Swift.String) {
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
self = value ?? Self.sdkUnknown(rawValue)
}

public var rawValue: Swift.String {
switch self {
case .allActions: return "ALL_ACTIONS"
case .failedActions: return "FAILED_ACTIONS"
case let .sdkUnknown(s): return s
}
}
}
}

/// Represents the input of a RetryStageExecution action.
public struct RetryStageExecutionInput: Swift.Sendable {
/// The ID of the pipeline execution in the failed stage to be retried. Use the [GetPipelineState] action to retrieve the current pipelineExecutionId of the failed stage
Expand Down Expand Up @@ -9377,17 +9463,34 @@ extension CodePipelineClientTypes.FailureConditions {
guard let value else { return }
try writer["conditions"].writeList(value.conditions, memberWritingClosure: CodePipelineClientTypes.Condition.write(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["result"].write(value.result)
try writer["retryConfiguration"].write(value.retryConfiguration, with: CodePipelineClientTypes.RetryConfiguration.write(value:to:))
}

static func read(from reader: SmithyJSON.Reader) throws -> CodePipelineClientTypes.FailureConditions {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = CodePipelineClientTypes.FailureConditions()
value.result = try reader["result"].readIfPresent()
value.retryConfiguration = try reader["retryConfiguration"].readIfPresent(with: CodePipelineClientTypes.RetryConfiguration.read(from:))
value.conditions = try reader["conditions"].readListIfPresent(memberReadingClosure: CodePipelineClientTypes.Condition.read(from:), memberNodeInfo: "member", isFlattened: false)
return value
}
}

extension CodePipelineClientTypes.RetryConfiguration {

static func write(value: CodePipelineClientTypes.RetryConfiguration?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["retryMode"].write(value.retryMode)
}

static func read(from reader: SmithyJSON.Reader) throws -> CodePipelineClientTypes.RetryConfiguration {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = CodePipelineClientTypes.RetryConfiguration()
value.retryMode = try reader["retryMode"].readIfPresent()
return value
}
}

extension CodePipelineClientTypes.ActionDeclaration {

static func write(value: CodePipelineClientTypes.ActionDeclaration?, to writer: SmithyJSON.Writer) throws {
Expand Down Expand Up @@ -9907,6 +10010,19 @@ extension CodePipelineClientTypes.StageState {
value.beforeEntryConditionState = try reader["beforeEntryConditionState"].readIfPresent(with: CodePipelineClientTypes.StageConditionState.read(from:))
value.onSuccessConditionState = try reader["onSuccessConditionState"].readIfPresent(with: CodePipelineClientTypes.StageConditionState.read(from:))
value.onFailureConditionState = try reader["onFailureConditionState"].readIfPresent(with: CodePipelineClientTypes.StageConditionState.read(from:))
value.retryStageMetadata = try reader["retryStageMetadata"].readIfPresent(with: CodePipelineClientTypes.RetryStageMetadata.read(from:))
return value
}
}

extension CodePipelineClientTypes.RetryStageMetadata {

static func read(from reader: SmithyJSON.Reader) throws -> CodePipelineClientTypes.RetryStageMetadata {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = CodePipelineClientTypes.RetryStageMetadata()
value.autoStageRetryAttempt = try reader["autoStageRetryAttempt"].readIfPresent()
value.manualStageRetryAttempt = try reader["manualStageRetryAttempt"].readIfPresent()
value.latestRetryTrigger = try reader["latestRetryTrigger"].readIfPresent()
return value
}
}
Expand Down
Loading

0 comments on commit a6e96bb

Please sign in to comment.