Skip to content

Commit

Permalink
chore: Updates version to 1.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Oct 3, 2024
1 parent 84ed168 commit 3f13921
Show file tree
Hide file tree
Showing 19 changed files with 2,257 additions and 82 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ let serviceTargets: [String] = [
"AWSMarketplaceDeployment",
"AWSMarketplaceEntitlementService",
"AWSMarketplaceMetering",
"AWSMarketplaceReporting",
"AWSMediaConnect",
"AWSMediaConvert",
"AWSMediaLive",
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.11
1.0.12
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.12
1.0.13
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,8 @@ This SDK is open-source. Code is available on Github [here](https://github.com/

[AWSMarketplaceMetering](../../../../../swift/api/awsmarketplacemetering/latest)

[AWSMarketplaceReporting](../../../../../swift/api/awsmarketplacereporting/latest)

[AWSMediaConnect](../../../../../swift/api/awsmediaconnect/latest)

[AWSMediaConvert](../../../../../swift/api/awsmediaconvert/latest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,18 @@ extension CodePipelineClientTypes {

/// Represents information about the output of an action.
public struct OutputArtifact: Swift.Sendable {
/// The files that you want to associate with the output artifact that will be exported from the compute action.
public var files: [Swift.String]?
/// The name of the output of an artifact, such as "My App". The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions. Output artifact names must be unique within a pipeline.
/// This member is required.
public var name: Swift.String?

public init(
files: [Swift.String]? = nil,
name: Swift.String? = nil
)
{
self.files = files
self.name = name
}
}
Expand All @@ -562,6 +566,8 @@ extension CodePipelineClientTypes {
/// Specifies the action type and the provider of the action.
/// This member is required.
public var actionTypeId: CodePipelineClientTypes.ActionTypeId?
/// The shell commands to run with your compute action in CodePipeline. All commands are supported except multi-line formats. While CodeBuild logs and permissions are used, you do not need to create any resources in CodeBuild. Using compute time for this action will incur separate charges in CodeBuild.
public var commands: [Swift.String]?
/// The action's configuration. These are key-value pairs that specify input values for an action. For more information, see [Action Structure Requirements in CodePipeline](https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html#action-requirements). For the list of configuration properties for the CloudFormation action type in CodePipeline, see [Configuration Properties Reference](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-action-reference.html) in the CloudFormation User Guide. For template snippets with examples, see [Using Parameter Override Functions with CodePipeline Pipelines](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/continuous-delivery-codepipeline-parameter-override-functions.html) in the CloudFormation User Guide. The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows: JSON: "Configuration" : { Key : Value },
public var configuration: [Swift.String: Swift.String]?
/// The name or ID of the artifact consumed by the action, such as a test or build artifact.
Expand All @@ -573,6 +579,8 @@ extension CodePipelineClientTypes {
public var namespace: Swift.String?
/// The name or ID of the result of the action declaration, such as a test or build artifact.
public var outputArtifacts: [CodePipelineClientTypes.OutputArtifact]?
/// The list of variables that are to be exported from the compute action. This is specifically CodeBuild environment variables as used for that action.
public var outputVariables: [Swift.String]?
/// The action declaration's Amazon Web Services Region, such as us-east-1.
public var region: Swift.String?
/// The ARN of the IAM service role that performs the declared action. This is assumed through the roleArn for the pipeline.
Expand All @@ -584,23 +592,27 @@ extension CodePipelineClientTypes {

public init(
actionTypeId: CodePipelineClientTypes.ActionTypeId? = nil,
commands: [Swift.String]? = nil,
configuration: [Swift.String: Swift.String]? = nil,
inputArtifacts: [CodePipelineClientTypes.InputArtifact]? = nil,
name: Swift.String? = nil,
namespace: Swift.String? = nil,
outputArtifacts: [CodePipelineClientTypes.OutputArtifact]? = nil,
outputVariables: [Swift.String]? = nil,
region: Swift.String? = nil,
roleArn: Swift.String? = nil,
runOrder: Swift.Int? = nil,
timeoutInMinutes: Swift.Int? = nil
)
{
self.actionTypeId = actionTypeId
self.commands = commands
self.configuration = configuration
self.inputArtifacts = inputArtifacts
self.name = name
self.namespace = namespace
self.outputArtifacts = outputArtifacts
self.outputVariables = outputVariables
self.region = region
self.roleArn = roleArn
self.runOrder = runOrder
Expand Down Expand Up @@ -9378,11 +9390,13 @@ extension CodePipelineClientTypes.ActionDeclaration {
static func write(value: CodePipelineClientTypes.ActionDeclaration?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["actionTypeId"].write(value.actionTypeId, with: CodePipelineClientTypes.ActionTypeId.write(value:to:))
try writer["commands"].writeList(value.commands, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["configuration"].writeMap(value.configuration, valueWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false)
try writer["inputArtifacts"].writeList(value.inputArtifacts, memberWritingClosure: CodePipelineClientTypes.InputArtifact.write(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["name"].write(value.name)
try writer["namespace"].write(value.namespace)
try writer["outputArtifacts"].writeList(value.outputArtifacts, memberWritingClosure: CodePipelineClientTypes.OutputArtifact.write(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["outputVariables"].writeList(value.outputVariables, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["region"].write(value.region)
try writer["roleArn"].write(value.roleArn)
try writer["runOrder"].write(value.runOrder)
Expand All @@ -9396,8 +9410,10 @@ extension CodePipelineClientTypes.ActionDeclaration {
value.actionTypeId = try reader["actionTypeId"].readIfPresent(with: CodePipelineClientTypes.ActionTypeId.read(from:))
value.runOrder = try reader["runOrder"].readIfPresent()
value.configuration = try reader["configuration"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false)
value.commands = try reader["commands"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false)
value.outputArtifacts = try reader["outputArtifacts"].readListIfPresent(memberReadingClosure: CodePipelineClientTypes.OutputArtifact.read(from:), memberNodeInfo: "member", isFlattened: false)
value.inputArtifacts = try reader["inputArtifacts"].readListIfPresent(memberReadingClosure: CodePipelineClientTypes.InputArtifact.read(from:), memberNodeInfo: "member", isFlattened: false)
value.outputVariables = try reader["outputVariables"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false)
value.roleArn = try reader["roleArn"].readIfPresent()
value.region = try reader["region"].readIfPresent()
value.namespace = try reader["namespace"].readIfPresent()
Expand All @@ -9410,13 +9426,15 @@ extension CodePipelineClientTypes.OutputArtifact {

static func write(value: CodePipelineClientTypes.OutputArtifact?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["files"].writeList(value.files, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["name"].write(value.name)
}

static func read(from reader: SmithyJSON.Reader) throws -> CodePipelineClientTypes.OutputArtifact {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = CodePipelineClientTypes.OutputArtifact()
value.name = try reader["name"].readIfPresent() ?? ""
value.files = try reader["files"].readListIfPresent(memberReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), memberNodeInfo: "member", isFlattened: false)
return value
}
}
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 @@ -32767,6 +32767,70 @@ extension EC2Client {
return try await op.execute(input: input)
}

/// Performs the `ModifyInstanceCpuOptions` operation on the `AmazonEC2` service.
///
/// By default, all vCPUs for the instance type are active when you launch an instance. When you configure the number of active vCPUs for the instance, it can help you save on licensing costs and optimize performance. The base cost of the instance remains unchanged. The number of active vCPUs equals the number of threads per CPU core multiplied by the number of cores. Some instance type options do not support this capability. For more information, see [Supported CPU options](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cpu-options-supported-instances-values.html) in the Amazon EC2 User Guide.
///
/// - Parameter ModifyInstanceCpuOptionsInput : [no documentation found]
///
/// - Returns: `ModifyInstanceCpuOptionsOutput` : [no documentation found]
public func modifyInstanceCpuOptions(input: ModifyInstanceCpuOptionsInput) async throws -> ModifyInstanceCpuOptionsOutput {
let context = Smithy.ContextBuilder()
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "modifyInstanceCpuOptions")
.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<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput, 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<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>(ModifyInstanceCpuOptionsInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>())
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>())
builder.deserialize(ClientRuntime.DeserializeMiddleware<ModifyInstanceCpuOptionsOutput>(ModifyInstanceCpuOptionsOutput.httpOutput(from:), ModifyInstanceCpuOptionsOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
builder.applySigner(ClientRuntime.SignerMiddleware<ModifyInstanceCpuOptionsOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<ModifyInstanceCpuOptionsOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>(serviceID: serviceName, version: "1.0", config: config))
builder.serialize(ClientRuntime.BodyMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput, SmithyFormURL.Writer>(rootNodeInfo: "", inputWritingClosure: ModifyInstanceCpuOptionsInput.write(value:to:)))
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>(contentType: "application/x-www-form-urlencoded"))
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<ModifyInstanceCpuOptionsOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<ModifyInstanceCpuOptionsInput, ModifyInstanceCpuOptionsOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
var metricsAttributes = Smithy.Attributes()
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "EC2")
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "ModifyInstanceCpuOptions")
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 `ModifyInstanceCreditSpecification` operation on the `AmazonEC2` service.
///
/// Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited. For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the Amazon EC2 User Guide.
Expand Down
Loading

0 comments on commit 3f13921

Please sign in to comment.