Skip to content

Commit

Permalink
Update CloudWatch client to send payload in POST body instead of URL (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
knovichikhin authored Jan 25, 2024
1 parent 49c7c32 commit 9bed082
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Sources/SmokeAWSGenerate/CloudwatchConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,27 @@

import Foundation
import ServiceModelEntities
import SmokeAWSModelGenerate

internal struct CloudwatchConfiguration {
static let modelOverride = ModelOverride(fieldRawTypeOverride: ["Long": CommonConfiguration.intOverride])

static let modelOverride = ModelOverride(
fieldRawTypeOverride: ["Long": CommonConfiguration.intOverride],
additionalErrors: ["ThrottlingException"])

static let httpClientConfiguration = HttpClientConfiguration(
retryOnUnknownError: true,
knownErrorsDefaultRetryBehavior: .fail,
unretriableUnknownErrors: [],
retriableUnknownErrors: ["LimitExceededFault", "LimitExceededException"],
retriableUnknownErrors: ["LimitExceededFault", "LimitExceededException", "ThrottlingException"],
clientDelegateNameOverride: "FormEncodedXMLAWSHttpClientDelegate",
clientDelegateParameters: ["outputListDecodingStrategy: .collapseListUsingItemTag(\"member\")",
"inputQueryListEncodingStrategy: .expandListWithIndexAndItemTag(itemTag: \"member\")"])

static let serviceModelDetails = ServiceModelDetails(
serviceName: "monitoring", serviceVersion: "2010-08-01",
baseName: "CloudWatch", modelOverride: modelOverride,
httpClientConfiguration: httpClientConfiguration,
signAllHeaders: false)
signAllHeaders: false,
awsCodeGenerationCustomizations: AWSCodeGenerationCustomizations(
contentTypeHeaderOverride: "application/x-www-form-urlencoded; charset=utf-8"))
}

0 comments on commit 9bed082

Please sign in to comment.