Skip to content

Commit

Permalink
chore: Updates version to 0.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 31, 2023
1 parent d41d7ea commit 668c5ce
Show file tree
Hide file tree
Showing 120 changed files with 752 additions and 5,995 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func addProtocolTests() {
// MARK: - Generated

addDependencies(
clientRuntimeVersion: "0.33.0",
clientRuntimeVersion: "0.34.0",
crtVersion: "0.17.0"
)

Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.29.0
0.30.0
81 changes: 9 additions & 72 deletions Sources/Services/AWSAccessAnalyzer/AccessAnalyzerClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<ApplyArchiveRuleInput, ApplyArchiveRuleOutput, ApplyArchiveRuleOutputError>(id: "applyArchiveRule")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<ApplyArchiveRuleOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<ApplyArchiveRuleInput, ApplyArchiveRuleOutput, ApplyArchiveRuleOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<ApplyArchiveRuleInput, ApplyArchiveRuleOutput, ApplyArchiveRuleOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<ApplyArchiveRuleInput, ApplyArchiveRuleOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -200,14 +193,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<CreateAccessPreviewInput, CreateAccessPreviewOutput, CreateAccessPreviewOutputError>(id: "createAccessPreview")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<CreateAccessPreviewOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<CreateAccessPreviewInput, CreateAccessPreviewOutput, CreateAccessPreviewOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<CreateAccessPreviewInput, CreateAccessPreviewOutput, CreateAccessPreviewOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<CreateAccessPreviewInput, CreateAccessPreviewOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -257,14 +243,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<CreateAnalyzerInput, CreateAnalyzerOutput, CreateAnalyzerOutputError>(id: "createAnalyzer")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<CreateAnalyzerOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<CreateAnalyzerInput, CreateAnalyzerOutput, CreateAnalyzerOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<CreateAnalyzerInput, CreateAnalyzerOutput, CreateAnalyzerOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<CreateAnalyzerInput, CreateAnalyzerOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -315,14 +294,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<CreateArchiveRuleInput, CreateArchiveRuleOutput, CreateArchiveRuleOutputError>(id: "createArchiveRule")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<CreateArchiveRuleOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<CreateArchiveRuleInput, CreateArchiveRuleOutput, CreateArchiveRuleOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<CreateArchiveRuleInput, CreateArchiveRuleOutput, CreateArchiveRuleOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<CreateArchiveRuleInput, CreateArchiveRuleOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -371,14 +343,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<DeleteAnalyzerInput, DeleteAnalyzerOutput, DeleteAnalyzerOutputError>(id: "deleteAnalyzer")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<DeleteAnalyzerOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<DeleteAnalyzerInput, DeleteAnalyzerOutput, DeleteAnalyzerOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<DeleteAnalyzerInput, DeleteAnalyzerOutput, DeleteAnalyzerOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<DeleteAnalyzerInput, DeleteAnalyzerOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -425,14 +390,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<DeleteArchiveRuleInput, DeleteArchiveRuleOutput, DeleteArchiveRuleOutputError>(id: "deleteArchiveRule")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<DeleteArchiveRuleOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<DeleteArchiveRuleInput, DeleteArchiveRuleOutput, DeleteArchiveRuleOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<DeleteArchiveRuleInput, DeleteArchiveRuleOutput, DeleteArchiveRuleOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<DeleteArchiveRuleInput, DeleteArchiveRuleOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -1124,14 +1082,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<StartPolicyGenerationInput, StartPolicyGenerationOutput, StartPolicyGenerationOutputError>(id: "startPolicyGeneration")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<StartPolicyGenerationOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<StartPolicyGenerationInput, StartPolicyGenerationOutput, StartPolicyGenerationOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<StartPolicyGenerationInput, StartPolicyGenerationOutput, StartPolicyGenerationOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<StartPolicyGenerationInput, StartPolicyGenerationOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -1322,14 +1273,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<UpdateArchiveRuleInput, UpdateArchiveRuleOutput, UpdateArchiveRuleOutputError>(id: "updateArchiveRule")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<UpdateArchiveRuleOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<UpdateArchiveRuleInput, UpdateArchiveRuleOutput, UpdateArchiveRuleOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<UpdateArchiveRuleInput, UpdateArchiveRuleOutput, UpdateArchiveRuleOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<UpdateArchiveRuleInput, UpdateArchiveRuleOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down Expand Up @@ -1378,14 +1322,7 @@ extension AccessAnalyzerClient: AccessAnalyzerClientProtocol {
.withSigningRegion(value: config.signingRegion)
.build()
var operation = ClientRuntime.OperationStack<UpdateFindingsInput, UpdateFindingsOutput, UpdateFindingsOutputError>(id: "updateFindings")
operation.initializeStep.intercept(position: .after, id: "IdempotencyTokenMiddleware") { (context, input, next) -> ClientRuntime.OperationOutput<UpdateFindingsOutput> in
let idempotencyTokenGenerator = context.getIdempotencyTokenGenerator()
var copiedInput = input
if input.clientToken == nil {
copiedInput.clientToken = idempotencyTokenGenerator.generateToken()
}
return try await next.handle(context: context, input: copiedInput)
}
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.IdempotencyTokenMiddleware<UpdateFindingsInput, UpdateFindingsOutput, UpdateFindingsOutputError>(keyPath: \.clientToken))
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLPathMiddleware<UpdateFindingsInput, UpdateFindingsOutput, UpdateFindingsOutputError>())
operation.initializeStep.intercept(position: .after, middleware: ClientRuntime.URLHostMiddleware<UpdateFindingsInput, UpdateFindingsOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
Expand Down
Loading

0 comments on commit 668c5ce

Please sign in to comment.