Skip to content

Commit

Permalink
chore: Updates version to 1.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 24, 2024
1 parent bd44749 commit b85f397
Show file tree
Hide file tree
Showing 22 changed files with 476 additions and 13,224 deletions.
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import PackageDescription

// MARK: - Dynamic Content

let clientRuntimeVersion: Version = "0.83.0"
let clientRuntimeVersion: Version = "0.84.0"
let crtVersion: Version = "0.37.0"

let excludeRuntimeUnitTests = false
Expand Down Expand Up @@ -276,7 +276,6 @@ let serviceTargets: [String] = [
"AWSNetworkFirewall",
"AWSNetworkManager",
"AWSNetworkMonitor",
"AWSNimble",
"AWSOAM",
"AWSOSIS",
"AWSOmics",
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.26
1.0.27
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.27
1.0.28
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,6 @@ This SDK is open-source. Code is available on Github [here](https://github.com/

[AWSNetworkMonitor](../../../../../swift/api/awsnetworkmonitor/latest)

[AWSNimble](../../../../../swift/api/awsnimble/latest)

[AWSOAM](../../../../../swift/api/awsoam/latest)

[AWSOSIS](../../../../../swift/api/awsosis/latest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ extension AppConfigClient {

/// Performs the `StopDeployment` operation on the `AmazonAppConfig` service.
///
/// Stops a deployment. This API action works only on deployments that have a status of DEPLOYING. This action moves the deployment to a status of ROLLED_BACK.
/// Stops a deployment. This API action works only on deployments that have a status of DEPLOYING, unless an AllowRevert parameter is supplied. If the AllowRevert parameter is supplied, the status of an in-progress deployment will be ROLLED_BACK. The status of a completed deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion.
///
/// - Parameter StopDeploymentInput : [no documentation found]
///
Expand Down Expand Up @@ -2633,6 +2633,7 @@ extension AppConfigClient {
}
builder.interceptors.add(ClientRuntime.URLPathMiddleware<StopDeploymentInput, StopDeploymentOutput>(StopDeploymentInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<StopDeploymentInput, StopDeploymentOutput>())
builder.serialize(ClientRuntime.HeaderMiddleware<StopDeploymentInput, StopDeploymentOutput>(StopDeploymentInput.headerProvider(_:)))
builder.deserialize(ClientRuntime.DeserializeMiddleware<StopDeploymentOutput>(StopDeploymentOutput.httpOutput(from:), StopDeploymentOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<StopDeploymentInput, StopDeploymentOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
Expand Down
26 changes: 25 additions & 1 deletion Sources/Services/AWSAppConfig/Sources/AWSAppConfig/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ extension AppConfigClientTypes {
public enum EnvironmentState: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case deploying
case readyForDeployment
case reverted
case rolledBack
case rollingBack
case sdkUnknown(Swift.String)
Expand All @@ -828,6 +829,7 @@ extension AppConfigClientTypes {
return [
.deploying,
.readyForDeployment,
.reverted,
.rolledBack,
.rollingBack
]
Expand All @@ -842,6 +844,7 @@ extension AppConfigClientTypes {
switch self {
case .deploying: return "DEPLOYING"
case .readyForDeployment: return "READY_FOR_DEPLOYMENT"
case .reverted: return "REVERTED"
case .rolledBack: return "ROLLED_BACK"
case .rollingBack: return "ROLLING_BACK"
case let .sdkUnknown(s): return s
Expand Down Expand Up @@ -1427,7 +1430,7 @@ public struct GetConfigurationInput: Swift.Sendable {
/// The application to get. Specify either the application name or the application ID.
/// This member is required.
public var application: Swift.String?
/// The configuration version returned in the most recent [GetConfiguration] response. AppConfig uses the value of the ClientConfigurationVersion parameter to identify the configuration version on your clients. If you don’t send ClientConfigurationVersion with each call to [GetConfiguration], your clients receive the current configuration. You are charged each time your clients receive a configuration. To avoid excess charges, we recommend you use the [StartConfigurationSession](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/StartConfigurationSession.html) and [GetLatestConfiguration](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/GetLatestConfiguration.html) APIs, which track the client configuration version on your behalf. If you choose to continue using [GetConfiguration], we recommend that you include the ClientConfigurationVersion value with every call to [GetConfiguration]. The value to use for ClientConfigurationVersion comes from the ConfigurationVersion attribute returned by [GetConfiguration] when there is new or updated data, and should be saved for subsequent calls to [GetConfiguration]. For more information about working with configurations, see [Retrieving the Configuration](http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration.html) in the AppConfig User Guide.
/// The configuration version returned in the most recent [GetConfiguration] response. AppConfig uses the value of the ClientConfigurationVersion parameter to identify the configuration version on your clients. If you don’t send ClientConfigurationVersion with each call to [GetConfiguration], your clients receive the current configuration. You are charged each time your clients receive a configuration. To avoid excess charges, we recommend you use the [StartConfigurationSession](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/StartConfigurationSession.html) and [GetLatestConfiguration](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/GetLatestConfiguration.html) APIs, which track the client configuration version on your behalf. If you choose to continue using [GetConfiguration], we recommend that you include the ClientConfigurationVersion value with every call to [GetConfiguration]. The value to use for ClientConfigurationVersion comes from the ConfigurationVersion attribute returned by [GetConfiguration] when there is new or updated data, and should be saved for subsequent calls to [GetConfiguration]. For more information about working with configurations, see [Retrieving feature flags and configuration data in AppConfig](http://docs.aws.amazon.com/appconfig/latest/userguide/retrieving-feature-flags.html) in the AppConfig User Guide.
public var clientConfigurationVersion: Swift.String?
/// The clientId parameter in the following command is a unique, user-specified ID to identify the client for the configuration. This ID enables AppConfig to deploy the configuration in intervals, as defined in the deployment strategy.
/// This member is required.
Expand Down Expand Up @@ -1605,6 +1608,7 @@ extension AppConfigClientTypes {
case deploymentCompleted
case deploymentStarted
case percentageUpdated
case revertCompleted
case rollbackCompleted
case rollbackStarted
case sdkUnknown(Swift.String)
Expand All @@ -1615,6 +1619,7 @@ extension AppConfigClientTypes {
.deploymentCompleted,
.deploymentStarted,
.percentageUpdated,
.revertCompleted,
.rollbackCompleted,
.rollbackStarted
]
Expand All @@ -1631,6 +1636,7 @@ extension AppConfigClientTypes {
case .deploymentCompleted: return "DEPLOYMENT_COMPLETED"
case .deploymentStarted: return "DEPLOYMENT_STARTED"
case .percentageUpdated: return "PERCENTAGE_UPDATED"
case .revertCompleted: return "REVERT_COMPLETED"
case .rollbackCompleted: return "ROLLBACK_COMPLETED"
case .rollbackStarted: return "ROLLBACK_STARTED"
case let .sdkUnknown(s): return s
Expand Down Expand Up @@ -1718,6 +1724,7 @@ extension AppConfigClientTypes {
case baking
case complete
case deploying
case reverted
case rolledBack
case rollingBack
case validating
Expand All @@ -1728,6 +1735,7 @@ extension AppConfigClientTypes {
.baking,
.complete,
.deploying,
.reverted,
.rolledBack,
.rollingBack,
.validating
Expand All @@ -1744,6 +1752,7 @@ extension AppConfigClientTypes {
case .baking: return "BAKING"
case .complete: return "COMPLETE"
case .deploying: return "DEPLOYING"
case .reverted: return "REVERTED"
case .rolledBack: return "ROLLED_BACK"
case .rollingBack: return "ROLLING_BACK"
case .validating: return "VALIDATING"
Expand Down Expand Up @@ -2893,6 +2902,8 @@ public struct StartDeploymentOutput: Swift.Sendable {
}

public struct StopDeploymentInput: Swift.Sendable {
/// A Boolean that enables AppConfig to rollback a COMPLETED deployment to the previous configuration version. This action moves the deployment to a status of REVERTED.
public var allowRevert: Swift.Bool?
/// The application ID.
/// This member is required.
public var applicationId: Swift.String?
Expand All @@ -2904,11 +2915,13 @@ public struct StopDeploymentInput: Swift.Sendable {
public var environmentId: Swift.String?

public init(
allowRevert: Swift.Bool? = false,
applicationId: Swift.String? = nil,
deploymentNumber: Swift.Int? = 0,
environmentId: Swift.String? = nil
)
{
self.allowRevert = allowRevert
self.applicationId = applicationId
self.deploymentNumber = deploymentNumber
self.environmentId = environmentId
Expand Down Expand Up @@ -4098,6 +4111,17 @@ extension StopDeploymentInput {
}
}

extension StopDeploymentInput {

static func headerProvider(_ value: StopDeploymentInput) -> SmithyHTTPAPI.Headers {
var items = SmithyHTTPAPI.Headers()
if let allowRevert = value.allowRevert {
items.add(SmithyHTTPAPI.Header(name: "Allow-Revert", value: Swift.String(allowRevert)))
}
return items
}
}

extension TagResourceInput {

static func urlPathProvider(_ value: TagResourceInput) -> Swift.String? {
Expand Down
64 changes: 64 additions & 0 deletions Sources/Services/AWSEC2/Sources/AWSEC2/EC2Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17914,6 +17914,70 @@ extension EC2Client {
return try await op.execute(input: input)
}

/// Performs the `DescribeInstanceImageMetadata` operation on the `AmazonEC2` service.
///
/// Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, or made private (no longer public or shared with your account). If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. If you specify an instance ID that is not valid, an instance that doesn't exist, or an instance that you do not own, an error (InvalidInstanceID.NotFound) is returned. Recently terminated instances might appear in the returned results. This interval is usually less than one hour. In the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected Availability Zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs that are in an unaffected Availability Zone, the call works normally. The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.
///
/// - Parameter DescribeInstanceImageMetadataInput : [no documentation found]
///
/// - Returns: `DescribeInstanceImageMetadataOutput` : [no documentation found]
public func describeInstanceImageMetadata(input: DescribeInstanceImageMetadataInput) async throws -> DescribeInstanceImageMetadataOutput {
let context = Smithy.ContextBuilder()
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "describeInstanceImageMetadata")
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
.withLogger(value: config.logger)
.withPartitionID(value: config.partitionID)
.withAuthSchemes(value: config.authSchemes ?? [])
.withAuthSchemeResolver(value: config.authSchemeResolver)
.withUnsignedPayloadTrait(value: false)
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
.withRegion(value: config.region)
.withSigningName(value: "ec2")
.withSigningRegion(value: config.signingRegion)
.build()
let builder = ClientRuntime.OrchestratorBuilder<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
builder.interceptors.add(ClientRuntime.URLPathMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>(DescribeInstanceImageMetadataInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>())
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>())
builder.deserialize(ClientRuntime.DeserializeMiddleware<DescribeInstanceImageMetadataOutput>(DescribeInstanceImageMetadataOutput.httpOutput(from:), DescribeInstanceImageMetadataOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
builder.applySigner(ClientRuntime.SignerMiddleware<DescribeInstanceImageMetadataOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<DescribeInstanceImageMetadataOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>(serviceID: serviceName, version: "1.0", config: config))
builder.serialize(ClientRuntime.BodyMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput, SmithyFormURL.Writer>(rootNodeInfo: "", inputWritingClosure: DescribeInstanceImageMetadataInput.write(value:to:)))
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>(contentType: "application/x-www-form-urlencoded"))
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<DescribeInstanceImageMetadataOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<DescribeInstanceImageMetadataInput, DescribeInstanceImageMetadataOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
var metricsAttributes = Smithy.Attributes()
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "EC2")
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "DescribeInstanceImageMetadata")
let op = builder.attributes(context)
.telemetry(ClientRuntime.OrchestratorTelemetry(
telemetryProvider: config.telemetryProvider,
metricsAttributes: metricsAttributes,
meterScope: serviceName,
tracerScope: serviceName
))
.executeRequest(client)
.build()
return try await op.execute(input: input)
}

/// Performs the `DescribeInstanceStatus` operation on the `AmazonEC2` service.
///
/// Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances. Instance status includes the following components:
Expand Down
Loading

0 comments on commit b85f397

Please sign in to comment.