Skip to content

Commit

Permalink
Merge pull request #141 from amzn/code_generate_2_44_298
Browse files Browse the repository at this point in the history
Code generate with Go SDK v1.44.298 models.
  • Loading branch information
tachyonics authored Jul 11, 2023
2 parents b68e65f + 8d3071d commit 35edcb6
Show file tree
Hide file tree
Showing 114 changed files with 17,414 additions and 395 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ extension HostedConfigurationVersion: HTTPResponseOutputProtocol {
content: body,
contentType: headers.contentType,
description: headers.description,
versionLabel: headers.versionLabel,
versionNumber: headers.versionNumber)
}
}
Expand Down
11 changes: 9 additions & 2 deletions Sources/AppConfigModel/AppConfigModelDefaultInstances.swift
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ public extension CreateHostedConfigurationVersionRequest {
content: Data(),
contentType: "0",
description: nil,
latestVersionNumber: nil)
latestVersionNumber: nil,
versionLabel: nil)

return defaultInstance
}()
Expand Down Expand Up @@ -431,6 +432,8 @@ public extension Deployment {
finalBakeTimeInMinutes: nil,
growthFactor: nil,
growthType: nil,
kmsKeyArn: nil,
kmsKeyIdentifier: nil,
percentageComplete: nil,
startedAt: nil,
state: nil)
Expand Down Expand Up @@ -773,6 +776,7 @@ public extension HostedConfigurationVersion {
content: nil,
contentType: nil,
description: nil,
versionLabel: nil,
versionNumber: nil)

return defaultInstance
Expand All @@ -789,6 +793,7 @@ public extension HostedConfigurationVersionSummary {
configurationProfileId: nil,
contentType: nil,
description: nil,
versionLabel: nil,
versionNumber: nil)

return defaultInstance
Expand Down Expand Up @@ -945,7 +950,8 @@ public extension ListHostedConfigurationVersionsRequest {
applicationId: "",
configurationProfileId: "",
maxResults: nil,
nextToken: nil)
nextToken: nil,
versionLabel: nil)

return defaultInstance
}()
Expand Down Expand Up @@ -1053,6 +1059,7 @@ public extension StartDeploymentRequest {
deploymentStrategyId: "",
description: nil,
environmentId: "",
kmsKeyIdentifier: nil,
tags: nil)

return defaultInstance
Expand Down
32 changes: 28 additions & 4 deletions Sources/AppConfigModel/AppConfigModelOperations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -441,24 +441,29 @@ public struct CreateHostedConfigurationVersionOperationInputAdditionalHeaders: C
public var contentType: StringWithLengthBetween1And255
public var description: Description?
public var latestVersionNumber: Integer?
public var versionLabel: VersionLabel?

public init(contentType: StringWithLengthBetween1And255,
description: Description? = nil,
latestVersionNumber: Integer? = nil) {
latestVersionNumber: Integer? = nil,
versionLabel: VersionLabel? = nil) {
self.contentType = contentType
self.description = description
self.latestVersionNumber = latestVersionNumber
self.versionLabel = versionLabel
}

enum CodingKeys: String, CodingKey {
case contentType = "Content-Type"
case description = "Description"
case latestVersionNumber = "Latest-Version-Number"
case versionLabel = "VersionLabel"
}

public func validate() throws {
try contentType.validateAsStringWithLengthBetween1And255()
try description?.validateAsDescription()
try versionLabel?.validateAsVersionLabel()
}
}

Expand All @@ -467,7 +472,8 @@ public extension CreateHostedConfigurationVersionRequest {
return CreateHostedConfigurationVersionOperationInputAdditionalHeaders(
contentType: contentType,
description: description,
latestVersionNumber: latestVersionNumber)
latestVersionNumber: latestVersionNumber,
versionLabel: versionLabel)
}
}

Expand All @@ -480,17 +486,20 @@ public struct CreateHostedConfigurationVersionOperationOutputHeaders: Codable, E
public var configurationProfileId: Id?
public var contentType: StringWithLengthBetween1And255?
public var description: Description?
public var versionLabel: VersionLabel?
public var versionNumber: Integer?

public init(applicationId: Id? = nil,
configurationProfileId: Id? = nil,
contentType: StringWithLengthBetween1And255? = nil,
description: Description? = nil,
versionLabel: VersionLabel? = nil,
versionNumber: Integer? = nil) {
self.applicationId = applicationId
self.configurationProfileId = configurationProfileId
self.contentType = contentType
self.description = description
self.versionLabel = versionLabel
self.versionNumber = versionNumber
}

Expand All @@ -499,6 +508,7 @@ public struct CreateHostedConfigurationVersionOperationOutputHeaders: Codable, E
case configurationProfileId = "Configuration-Profile-Id"
case contentType = "Content-Type"
case description = "Description"
case versionLabel = "VersionLabel"
case versionNumber = "Version-Number"
}

Expand All @@ -507,6 +517,7 @@ public struct CreateHostedConfigurationVersionOperationOutputHeaders: Codable, E
try configurationProfileId?.validateAsId()
try contentType?.validateAsStringWithLengthBetween1And255()
try description?.validateAsDescription()
try versionLabel?.validateAsVersionLabel()
}
}

Expand All @@ -517,6 +528,7 @@ public extension HostedConfigurationVersion {
configurationProfileId: configurationProfileId,
contentType: contentType,
description: description,
versionLabel: versionLabel,
versionNumber: versionNumber)
}
}
Expand Down Expand Up @@ -1526,29 +1538,35 @@ public extension ListHostedConfigurationVersionsRequest {
public struct ListHostedConfigurationVersionsOperationInputQuery: Codable, Equatable {
public var maxResults: MaxResults?
public var nextToken: NextToken?
public var versionLabel: QueryName?

public init(maxResults: MaxResults? = nil,
nextToken: NextToken? = nil) {
nextToken: NextToken? = nil,
versionLabel: QueryName? = nil) {
self.maxResults = maxResults
self.nextToken = nextToken
self.versionLabel = versionLabel
}

enum CodingKeys: String, CodingKey {
case maxResults = "max_results"
case nextToken = "next_token"
case versionLabel = "version_label"
}

public func validate() throws {
try maxResults?.validateAsMaxResults()
try nextToken?.validateAsNextToken()
try versionLabel?.validateAsQueryName()
}
}

public extension ListHostedConfigurationVersionsRequest {
func asAppConfigModelListHostedConfigurationVersionsOperationInputQuery() -> ListHostedConfigurationVersionsOperationInputQuery {
return ListHostedConfigurationVersionsOperationInputQuery(
maxResults: maxResults,
nextToken: nextToken)
nextToken: nextToken,
versionLabel: versionLabel)
}
}

Expand Down Expand Up @@ -1621,17 +1639,20 @@ public struct StartDeploymentOperationInputBody: Codable, Equatable {
public var configurationVersion: Version
public var deploymentStrategyId: DeploymentStrategyId
public var description: Description?
public var kmsKeyIdentifier: Identifier?
public var tags: TagMap?

public init(configurationProfileId: Id,
configurationVersion: Version,
deploymentStrategyId: DeploymentStrategyId,
description: Description? = nil,
kmsKeyIdentifier: Identifier? = nil,
tags: TagMap? = nil) {
self.configurationProfileId = configurationProfileId
self.configurationVersion = configurationVersion
self.deploymentStrategyId = deploymentStrategyId
self.description = description
self.kmsKeyIdentifier = kmsKeyIdentifier
self.tags = tags
}

Expand All @@ -1640,6 +1661,7 @@ public struct StartDeploymentOperationInputBody: Codable, Equatable {
case configurationVersion = "ConfigurationVersion"
case deploymentStrategyId = "DeploymentStrategyId"
case description = "Description"
case kmsKeyIdentifier = "KmsKeyIdentifier"
case tags = "Tags"
}

Expand All @@ -1648,6 +1670,7 @@ public struct StartDeploymentOperationInputBody: Codable, Equatable {
try configurationVersion.validateAsVersion()
try deploymentStrategyId.validateAsDeploymentStrategyId()
try description?.validateAsDescription()
try kmsKeyIdentifier?.validateAsIdentifier()
}
}

Expand All @@ -1658,6 +1681,7 @@ public extension StartDeploymentRequest {
configurationVersion: configurationVersion,
deploymentStrategyId: deploymentStrategyId,
description: description,
kmsKeyIdentifier: kmsKeyIdentifier,
tags: tags)
}
}
Expand Down
Loading

0 comments on commit 35edcb6

Please sign in to comment.