From 08334ae7385b08c14d01dfb961df8632761a9647 Mon Sep 17 00:00:00 2001 From: AWS SDK Swift Automation Date: Fri, 25 Oct 2024 18:54:15 +0000 Subject: [PATCH] chore: Updates version to 1.0.28 --- Package.swift | 2 +- Package.version | 2 +- Package.version.next | 2 +- .../Sources/AWSBedrockAgent/Models.swift | 83 ++++++++++++++++--- .../CloudWatchLogsClient.swift | 12 +-- .../Sources/AWSCloudWatchLogs/Models.swift | 21 +++-- .../Sources/AWSCodeBuild/Models.swift | 66 +++++++++++++++ .../AWSLambda/Sources/AWSLambda/Models.swift | 42 +++++++++- .../Sources/AWSSupplyChain/Models.swift | 5 ++ .../AWSSupplyChain/SupplyChainClient.swift | 36 ++++---- packageDependencies.plist | 2 +- 11 files changed, 225 insertions(+), 48 deletions(-) diff --git a/Package.swift b/Package.swift index 6aacfc69401..692556af0a2 100644 --- a/Package.swift +++ b/Package.swift @@ -15,7 +15,7 @@ import PackageDescription // MARK: - Dynamic Content -let clientRuntimeVersion: Version = "0.84.0" +let clientRuntimeVersion: Version = "0.85.0" let crtVersion: Version = "0.37.0" let excludeRuntimeUnitTests = false diff --git a/Package.version b/Package.version index 3f11ef63078..f8536a434c8 100644 --- a/Package.version +++ b/Package.version @@ -1 +1 @@ -1.0.27 \ No newline at end of file +1.0.28 \ No newline at end of file diff --git a/Package.version.next b/Package.version.next index f8536a434c8..fa7e3ca512b 100644 --- a/Package.version.next +++ b/Package.version.next @@ -1 +1 @@ -1.0.28 \ No newline at end of file +1.0.29 \ No newline at end of file diff --git a/Sources/Services/AWSBedrockAgent/Sources/AWSBedrockAgent/Models.swift b/Sources/Services/AWSBedrockAgent/Sources/AWSBedrockAgent/Models.swift index 28a417c14d7..1ed394ff3e9 100644 --- a/Sources/Services/AWSBedrockAgent/Sources/AWSBedrockAgent/Models.swift +++ b/Sources/Services/AWSBedrockAgent/Sources/AWSBedrockAgent/Models.swift @@ -25,6 +25,7 @@ import protocol ClientRuntime.ModeledError @_spi(SmithyReadWrite) import protocol SmithyReadWrite.SmithyWriter @_spi(SmithyReadWrite) import struct AWSClientRuntime.RestJSONError @_spi(UnknownAWSHTTPServiceError) import struct AWSClientRuntime.UnknownAWSHTTPServiceError +import struct Smithy.Document import struct Smithy.URIQueryItem @_spi(SmithyReadWrite) import struct SmithyReadWrite.ReadingClosureBox @_spi(SmithyReadWrite) import struct SmithyReadWrite.WritingClosureBox @@ -1637,7 +1638,17 @@ public struct CreateAgentInput: Swift.Sendable { public var customerEncryptionKeyArn: Swift.String? /// A description of the agent. public var description: Swift.String? - /// The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create. + /// The identifier for the model that you want to be used for orchestration by the agent you create. The modelId to provide depends on the type of model or throughput that you use: + /// + /// * If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see [Amazon Bedrock base model IDs (on-demand throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) in the Amazon Bedrock User Guide. + /// + /// * If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see [Supported Regions and models for cross-region inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) in the Amazon Bedrock User Guide. + /// + /// * If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see [Run inference using a Provisioned Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) in the Amazon Bedrock User Guide. + /// + /// * If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see [Use a custom model in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) in the Amazon Bedrock User Guide. + /// + /// * If you use an [imported model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html), specify the ARN of the imported model. You can get the model ARN from a successful call to [CreateModelImportJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html) or from the Imported models page in the Amazon Bedrock console. public var foundationModel: Swift.String? /// The unique Guardrail configuration assigned to the agent when it is created. public var guardrailConfiguration: BedrockAgentClientTypes.GuardrailConfiguration? @@ -1893,7 +1904,17 @@ public struct UpdateAgentInput: Swift.Sendable { public var customerEncryptionKeyArn: Swift.String? /// Specifies a new description of the agent. public var description: Swift.String? - /// Specifies a new foundation model to be used for orchestration by the agent. + /// The identifier for the model that you want to be used for orchestration by the agent you create. The modelId to provide depends on the type of model or throughput that you use: + /// + /// * If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see [Amazon Bedrock base model IDs (on-demand throughput)](https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns) in the Amazon Bedrock User Guide. + /// + /// * If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see [Supported Regions and models for cross-region inference](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html) in the Amazon Bedrock User Guide. + /// + /// * If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see [Run inference using a Provisioned Throughput](https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html) in the Amazon Bedrock User Guide. + /// + /// * If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see [Use a custom model in Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html) in the Amazon Bedrock User Guide. + /// + /// * If you use an [imported model](https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html), specify the ARN of the imported model. You can get the model ARN from a successful call to [CreateModelImportJob](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html) or from the Imported models page in the Amazon Bedrock console. /// This member is required. public var foundationModel: Swift.String? /// The unique Guardrail configuration assigned to the agent when it is updated. @@ -3971,8 +3992,7 @@ extension BedrockAgentClientTypes { extension BedrockAgentClientTypes.FlowCondition: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "CONTENT_REDACTED" - } + "FlowCondition(name: \(Swift.String(describing: name)), expression: \"CONTENT_REDACTED\")"} } extension BedrockAgentClientTypes { @@ -3992,11 +4012,6 @@ extension BedrockAgentClientTypes { } } -extension BedrockAgentClientTypes.ConditionFlowNodeConfiguration: Swift.CustomDebugStringConvertible { - public var debugDescription: Swift.String { - "ConditionFlowNodeConfiguration(conditions: \"CONTENT_REDACTED\")"} -} - extension BedrockAgentClientTypes { /// Contains configurations for the input flow node for a flow. This node takes the input from flow invocation and passes it to the next node in the data type that you specify. @@ -4205,6 +4220,8 @@ extension BedrockAgentClientTypes { /// Contains configurations for a prompt defined inline in the node. public struct PromptFlowNodeInlineConfiguration: Swift.Sendable { + /// Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see [Inference request parameters and response fields for foundation models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + public var additionalModelRequestFields: Smithy.Document? /// Contains inference configurations for the prompt. public var inferenceConfiguration: BedrockAgentClientTypes.PromptInferenceConfiguration? /// The unique identifier of the model or [inference profile](https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html) to run inference with. @@ -4218,12 +4235,14 @@ extension BedrockAgentClientTypes { public var templateType: BedrockAgentClientTypes.PromptTemplateType? public init( + additionalModelRequestFields: Smithy.Document? = nil, inferenceConfiguration: BedrockAgentClientTypes.PromptInferenceConfiguration? = nil, modelId: Swift.String? = nil, templateConfiguration: BedrockAgentClientTypes.PromptTemplateConfiguration? = nil, templateType: BedrockAgentClientTypes.PromptTemplateType? = nil ) { + self.additionalModelRequestFields = additionalModelRequestFields self.inferenceConfiguration = inferenceConfiguration self.modelId = modelId self.templateConfiguration = templateConfiguration @@ -4605,7 +4624,8 @@ extension BedrockAgentClientTypes { extension BedrockAgentClientTypes.FlowDefinition: Swift.CustomDebugStringConvertible { public var debugDescription: Swift.String { - "FlowDefinition(connections: \(Swift.String(describing: connections)), nodes: \"CONTENT_REDACTED\")"} + "CONTENT_REDACTED" + } } public struct CreateFlowInput: Swift.Sendable { @@ -4646,6 +4666,11 @@ public struct CreateFlowInput: Swift.Sendable { } } +extension CreateFlowInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateFlowInput(clientToken: \(Swift.String(describing: clientToken)), customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), name: \(Swift.String(describing: name)), tags: \(Swift.String(describing: tags)), definition: \"CONTENT_REDACTED\")"} +} + extension BedrockAgentClientTypes { public enum FlowStatus: Swift.Sendable, Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable { @@ -4741,6 +4766,11 @@ public struct CreateFlowOutput: Swift.Sendable { } } +extension CreateFlowOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateFlowOutput(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), id: \(Swift.String(describing: id)), name: \(Swift.String(describing: name)), status: \(Swift.String(describing: status)), updatedAt: \(Swift.String(describing: updatedAt)), version: \(Swift.String(describing: version)), definition: \"CONTENT_REDACTED\")"} +} + public struct DeleteFlowInput: Swift.Sendable { /// The unique identifier of the flow. /// This member is required. @@ -5216,6 +5246,11 @@ public struct CreateFlowVersionOutput: Swift.Sendable { } } +extension CreateFlowVersionOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "CreateFlowVersionOutput(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), id: \(Swift.String(describing: id)), name: \(Swift.String(describing: name)), status: \(Swift.String(describing: status)), version: \(Swift.String(describing: version)), definition: \"CONTENT_REDACTED\")"} +} + public struct DeleteFlowVersionInput: Swift.Sendable { /// The unique identifier of the flow whose version that you want to delete /// This member is required. @@ -5329,6 +5364,11 @@ public struct GetFlowVersionOutput: Swift.Sendable { } } +extension GetFlowVersionOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "GetFlowVersionOutput(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), id: \(Swift.String(describing: id)), name: \(Swift.String(describing: name)), status: \(Swift.String(describing: status)), version: \(Swift.String(describing: version)), definition: \"CONTENT_REDACTED\")"} +} + public struct ListFlowVersionsInput: Swift.Sendable { /// The unique identifier of the flow. /// This member is required. @@ -5546,6 +5586,11 @@ public struct GetFlowOutput: Swift.Sendable { } } +extension GetFlowOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "GetFlowOutput(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), id: \(Swift.String(describing: id)), name: \(Swift.String(describing: name)), status: \(Swift.String(describing: status)), updatedAt: \(Swift.String(describing: updatedAt)), validations: \(Swift.String(describing: validations)), version: \(Swift.String(describing: version)), definition: \"CONTENT_REDACTED\")"} +} + public struct ListFlowsInput: Swift.Sendable { /// The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results. public var maxResults: Swift.Int? @@ -5704,6 +5749,11 @@ public struct UpdateFlowInput: Swift.Sendable { } } +extension UpdateFlowInput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateFlowInput(customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), flowIdentifier: \(Swift.String(describing: flowIdentifier)), name: \(Swift.String(describing: name)), definition: \"CONTENT_REDACTED\")"} +} + public struct UpdateFlowOutput: Swift.Sendable { /// The Amazon Resource Name (ARN) of the flow. /// This member is required. @@ -5764,6 +5814,11 @@ public struct UpdateFlowOutput: Swift.Sendable { } } +extension UpdateFlowOutput: Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + "UpdateFlowOutput(arn: \(Swift.String(describing: arn)), createdAt: \(Swift.String(describing: createdAt)), customerEncryptionKeyArn: \(Swift.String(describing: customerEncryptionKeyArn)), description: \(Swift.String(describing: description)), executionRoleArn: \(Swift.String(describing: executionRoleArn)), id: \(Swift.String(describing: id)), name: \(Swift.String(describing: name)), status: \(Swift.String(describing: status)), updatedAt: \(Swift.String(describing: updatedAt)), version: \(Swift.String(describing: version)), definition: \"CONTENT_REDACTED\")"} +} + public struct GetIngestionJobInput: Swift.Sendable { /// The unique identifier of the data source for the data ingestion job you want to get information on. /// This member is required. @@ -7332,6 +7387,8 @@ extension BedrockAgentClientTypes { /// Contains details about a variant of the prompt. public struct PromptVariant: Swift.Sendable { + /// Contains model-specific inference configurations that aren't in the inferenceConfiguration field. To see model-specific inference parameters, see [Inference request parameters and response fields for foundation models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). + public var additionalModelRequestFields: Smithy.Document? /// Contains inference configurations for the prompt variant. public var inferenceConfiguration: BedrockAgentClientTypes.PromptInferenceConfiguration? /// An array of objects, each containing a key-value pair that defines a metadata tag and value to attach to a prompt variant. For more information, see [Create a prompt using Prompt management](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html). @@ -7349,6 +7406,7 @@ extension BedrockAgentClientTypes { public var templateType: BedrockAgentClientTypes.PromptTemplateType? public init( + additionalModelRequestFields: Smithy.Document? = nil, inferenceConfiguration: BedrockAgentClientTypes.PromptInferenceConfiguration? = nil, metadata: [BedrockAgentClientTypes.PromptMetadataEntry]? = nil, modelId: Swift.String? = nil, @@ -7357,6 +7415,7 @@ extension BedrockAgentClientTypes { templateType: BedrockAgentClientTypes.PromptTemplateType? = nil ) { + self.additionalModelRequestFields = additionalModelRequestFields self.inferenceConfiguration = inferenceConfiguration self.metadata = metadata self.modelId = modelId @@ -12793,6 +12852,7 @@ extension BedrockAgentClientTypes.PromptFlowNodeInlineConfiguration { static func write(value: BedrockAgentClientTypes.PromptFlowNodeInlineConfiguration?, to writer: SmithyJSON.Writer) throws { guard let value else { return } + try writer["additionalModelRequestFields"].write(value.additionalModelRequestFields) try writer["inferenceConfiguration"].write(value.inferenceConfiguration, with: BedrockAgentClientTypes.PromptInferenceConfiguration.write(value:to:)) try writer["modelId"].write(value.modelId) try writer["templateConfiguration"].write(value.templateConfiguration, with: BedrockAgentClientTypes.PromptTemplateConfiguration.write(value:to:)) @@ -12806,6 +12866,7 @@ extension BedrockAgentClientTypes.PromptFlowNodeInlineConfiguration { value.templateConfiguration = try reader["templateConfiguration"].readIfPresent(with: BedrockAgentClientTypes.PromptTemplateConfiguration.read(from:)) value.modelId = try reader["modelId"].readIfPresent() ?? "" value.inferenceConfiguration = try reader["inferenceConfiguration"].readIfPresent(with: BedrockAgentClientTypes.PromptInferenceConfiguration.read(from:)) + value.additionalModelRequestFields = try reader["additionalModelRequestFields"].readIfPresent() return value } } @@ -13352,6 +13413,7 @@ extension BedrockAgentClientTypes.PromptVariant { static func write(value: BedrockAgentClientTypes.PromptVariant?, to writer: SmithyJSON.Writer) throws { guard let value else { return } + try writer["additionalModelRequestFields"].write(value.additionalModelRequestFields) try writer["inferenceConfiguration"].write(value.inferenceConfiguration, with: BedrockAgentClientTypes.PromptInferenceConfiguration.write(value:to:)) try writer["metadata"].writeList(value.metadata, memberWritingClosure: BedrockAgentClientTypes.PromptMetadataEntry.write(value:to:), memberNodeInfo: "member", isFlattened: false) try writer["modelId"].write(value.modelId) @@ -13369,6 +13431,7 @@ extension BedrockAgentClientTypes.PromptVariant { value.modelId = try reader["modelId"].readIfPresent() value.inferenceConfiguration = try reader["inferenceConfiguration"].readIfPresent(with: BedrockAgentClientTypes.PromptInferenceConfiguration.read(from:)) value.metadata = try reader["metadata"].readListIfPresent(memberReadingClosure: BedrockAgentClientTypes.PromptMetadataEntry.read(from:), memberNodeInfo: "member", isFlattened: false) + value.additionalModelRequestFields = try reader["additionalModelRequestFields"].readIfPresent() return value } } diff --git a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift index 9c8ed800e34..12d2f1e8a8a 100644 --- a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift +++ b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/CloudWatchLogsClient.swift @@ -360,7 +360,7 @@ extension CloudWatchLogsClient { /// * Use CreateDelivery to create a delivery by pairing exactly one delivery source and one delivery destination. /// /// - /// You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination. You can't update an existing delivery. You can only create and delete deliveries. + /// You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination. To update an existing delivery configuration, use [UpdateDeliveryConfiguration](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html). /// /// - Parameter CreateDeliveryInput : [no documentation found] /// @@ -2359,7 +2359,7 @@ extension CloudWatchLogsClient { /// Performs the `DescribeLogGroups` operation on the `Logs_20140328` service. /// - /// Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name. CloudWatch Logs doesn’t support IAM policies that control access to the DescribeLogGroups action by using the aws:ResourceTag/key-name condition key. Other CloudWatch Logs actions do support the use of the aws:ResourceTag/key-name condition key to control access. For more information about using tags to control access, see [Controlling access to Amazon Web Services resources using tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html). If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see [CloudWatch cross-account observability](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html). + /// Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name. CloudWatch Logs doesn't support IAM policies that control access to the DescribeLogGroups action by using the aws:ResourceTag/key-name condition key. Other CloudWatch Logs actions do support the use of the aws:ResourceTag/key-name condition key to control access. For more information about using tags to control access, see [Controlling access to Amazon Web Services resources using tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html). If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see [CloudWatch cross-account observability](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html). /// /// - Parameter DescribeLogGroupsInput : [no documentation found] /// @@ -4904,7 +4904,7 @@ extension CloudWatchLogsClient { /// Performs the `PutRetentionPolicy` operation on the `Logs_20140328` service. /// - /// Sets the retention of the specified log group. With a retention policy, you can configure the number of days for which to retain log events in the specified log group. CloudWatch Logs doesn’t immediately delete log events when they reach their retention setting. It typically takes up to 72 hours after that before log events are deleted, but in rare situations might take longer. To illustrate, imagine that you change a log group to have a longer retention setting when it contains log events that are past the expiration date, but haven’t been deleted. Those log events will take up to 72 hours to be deleted after the new retention date is reached. To make sure that log data is deleted permanently, keep a log group at its lower retention setting until 72 hours after the previous retention period ends. Alternatively, wait to change the retention setting until you confirm that the earlier log events are deleted. When log events reach their retention setting they are marked for deletion. After they are marked for deletion, they do not add to your archival storage costs anymore, even if they are not actually deleted until later. These log events marked for deletion are also not included when you use an API to retrieve the storedBytes value to see how many bytes a log group is storing. + /// Sets the retention of the specified log group. With a retention policy, you can configure the number of days for which to retain log events in the specified log group. CloudWatch Logs doesn't immediately delete log events when they reach their retention setting. It typically takes up to 72 hours after that before log events are deleted, but in rare situations might take longer. To illustrate, imagine that you change a log group to have a longer retention setting when it contains log events that are past the expiration date, but haven't been deleted. Those log events will take up to 72 hours to be deleted after the new retention date is reached. To make sure that log data is deleted permanently, keep a log group at its lower retention setting until 72 hours after the previous retention period ends. Alternatively, wait to change the retention setting until you confirm that the earlier log events are deleted. When log events reach their retention setting they are marked for deletion. After they are marked for deletion, they do not add to your archival storage costs anymore, even if they are not actually deleted until later. These log events marked for deletion are also not included when you use an API to retrieve the storedBytes value to see how many bytes a log group is storing. /// /// - Parameter PutRetentionPolicyInput : [no documentation found] /// @@ -5293,7 +5293,7 @@ extension CloudWatchLogsClient { /// Performs the `TagLogGroup` operation on the `Logs_20140328` service. /// - /// The TagLogGroup operation is on the path to deprecation. We recommend that you use [TagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html) instead. Adds or updates the specified tags for the specified log group. To list the tags for a log group, use [ListTagsForResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html). To remove tags, use [UntagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html). For more information about tags, see [Tag Log Groups in Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging) in the Amazon CloudWatch Logs User Guide. CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. For more information about using tags to control access, see [Controlling access to Amazon Web Services resources using tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html). + /// The TagLogGroup operation is on the path to deprecation. We recommend that you use [TagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html) instead. Adds or updates the specified tags for the specified log group. To list the tags for a log group, use [ListTagsForResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html). To remove tags, use [UntagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html). For more information about tags, see [Tag Log Groups in Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging) in the Amazon CloudWatch Logs User Guide. CloudWatch Logs doesn't support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. For more information about using tags to control access, see [Controlling access to Amazon Web Services resources using tags](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html). @available(*, deprecated, message: "Please use the generic tagging API TagResource") /// /// - Parameter TagLogGroupInput : [no documentation found] @@ -5509,7 +5509,7 @@ extension CloudWatchLogsClient { /// Performs the `UntagLogGroup` operation on the `Logs_20140328` service. /// - /// The UntagLogGroup operation is on the path to deprecation. We recommend that you use [UntagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html) instead. Removes the specified tags from the specified log group. To list the tags for a log group, use [ListTagsForResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html). To add tags, use [TagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html). CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. + /// The UntagLogGroup operation is on the path to deprecation. We recommend that you use [UntagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html) instead. Removes the specified tags from the specified log group. To list the tags for a log group, use [ListTagsForResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html). To add tags, use [TagResource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html). CloudWatch Logs doesn't support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. @available(*, deprecated, message: "Please use the generic tagging API UntagResource") /// /// - Parameter UntagLogGroupInput : [no documentation found] @@ -5652,7 +5652,7 @@ extension CloudWatchLogsClient { /// Performs the `UpdateAnomaly` operation on the `Logs_20140328` service. /// - /// Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern. You must specify either anomalyId or patternId, but you can't specify both parameters in the same operation. If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the suppressionType and suppressionPeriod parameters. + /// Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress an anomaly, CloudWatch Logs won't report new occurrences of that anomaly and won't update that anomaly with new data. If you suppress a pattern, CloudWatch Logs won't report any anomalies related to that pattern. You must specify either anomalyId or patternId, but you can't specify both parameters in the same operation. If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to stop suppressing, and omit the suppressionType and suppressionPeriod parameters. /// /// - Parameter UpdateAnomalyInput : [no documentation found] /// diff --git a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift index dd3b913a331..4aedf8468c6 100644 --- a/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift +++ b/Sources/Services/AWSCloudWatchLogs/Sources/AWSCloudWatchLogs/Models.swift @@ -345,6 +345,8 @@ extension CloudWatchLogsClientTypes { public var dynamicTokenPosition: Swift.Int /// Contains the values found for a dynamic token, and the number of times each value was found. public var enumerations: [Swift.String: Swift.Int]? + /// A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable. The string part of the inferredTokenName gives you a clearer idea of the content of this token. The number part of the inferredTokenName shows where in the pattern this token appears, compared to other dynamic tokens. CloudWatch Logs assigns the string part of the name based on analyzing the content of the log events that contain it. For example, an inferred token name of IPAddress-3 means that the token represents an IP address, and this token is the third dynamic token in the pattern. + public var inferredTokenName: Swift.String? /// Specifies whether this is a dynamic token. public var isDynamic: Swift.Bool? /// The string represented by this token. If this is a dynamic token, the value will be <*> @@ -353,12 +355,14 @@ extension CloudWatchLogsClientTypes { public init( dynamicTokenPosition: Swift.Int = 0, enumerations: [Swift.String: Swift.Int]? = nil, + inferredTokenName: Swift.String? = nil, isDynamic: Swift.Bool? = nil, tokenString: Swift.String? = nil ) { self.dynamicTokenPosition = dynamicTokenPosition self.enumerations = enumerations + self.inferredTokenName = inferredTokenName self.isDynamic = isDynamic self.tokenString = tokenString } @@ -921,7 +925,7 @@ extension CloudWatchLogsClientTypes { public var allowedOutputFormats: [CloudWatchLogsClientTypes.OutputFormat]? /// The list of variable fields that can be used in the suffix path of a delivery that delivers to an S3 bucket. public var allowedSuffixPathFields: [Swift.String]? - /// A mapping that displays the default value of each property within a delivery’s configuration, if it is not specified in the request. + /// A mapping that displays the default value of each property within a delivery's configuration, if it is not specified in the request. public var defaultDeliveryConfigValues: CloudWatchLogsClientTypes.ConfigurationTemplateDeliveryConfigValues? /// A string specifying which destination type this configuration template applies to. public var deliveryDestinationType: CloudWatchLogsClientTypes.DeliveryDestinationType? @@ -1064,9 +1068,9 @@ public struct CreateDeliveryInput: Swift.Sendable { public var deliverySourceName: Swift.String? /// The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format. public var fieldDelimiter: Swift.String? - /// The list of record fields to be delivered to the destination, in order. If the delivery’s log source has mandatory fields, they must be included in this list. + /// The list of record fields to be delivered to the destination, in order. If the delivery's log source has mandatory fields, they must be included in this list. public var recordFields: [Swift.String]? - /// This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket. + /// This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket. public var s3DeliveryConfiguration: CloudWatchLogsClientTypes.S3DeliveryConfiguration? /// An optional list of key-value pairs to associate with the resource. For more information about tagging, see [Tagging Amazon Web Services resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) public var tags: [Swift.String: Swift.String]? @@ -1091,7 +1095,7 @@ public struct CreateDeliveryInput: Swift.Sendable { extension CloudWatchLogsClientTypes { - /// This structure contains information about one delivery in your account. A delivery is a connection between a logical delivery source and a logical delivery destination. For more information, see [CreateDelivery](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html). You can't update an existing delivery. You can only create and delete deliveries. + /// This structure contains information about one delivery in your account. A delivery is a connection between a logical delivery source and a logical delivery destination. For more information, see [CreateDelivery](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html). To update an existing delivery configuration, use [UpdateDeliveryConfiguration](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html). public struct Delivery: Swift.Sendable { /// The Amazon Resource Name (ARN) that uniquely identifies this delivery. public var arn: Swift.String? @@ -1201,7 +1205,7 @@ public struct CreateExportTaskInput: Swift.Sendable { /// The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region. /// This member is required. public var destination: Swift.String? - /// The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs. + /// The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs. The length of this parameter must comply with the S3 object key name length limits. The object key name is a sequence of Unicode characters with UTF-8 encoding, and can be up to 1,024 bytes. public var destinationPrefix: Swift.String? /// The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported. /// This member is required. @@ -4762,7 +4766,7 @@ public struct StartQueryInput: Swift.Sendable { /// The end of the time range to query. The range is inclusive, so the specified end time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC. /// This member is required. public var endTime: Swift.Int? - /// The maximum number of log events to return in the query. If the query string uses the fields command, only the specified fields and their values are returned. The default is 1000. + /// The maximum number of log events to return in the query. If the query string uses the fields command, only the specified fields and their values are returned. The default is 10,000. public var limit: Swift.Int? /// The list of log groups to query. You can include up to 50 log groups. You can specify them by the log group name or ARN. If a log group that you're querying is in a source account and you're using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account. If you specify an ARN, the ARN can't end with an asterisk (*). A StartQuery operation must include exactly one of the following parameters: logGroupName, logGroupNames, or logGroupIdentifiers. public var logGroupIdentifiers: [Swift.String]? @@ -5106,9 +5110,9 @@ public struct UpdateDeliveryConfigurationInput: Swift.Sendable { /// The ID of the delivery to be updated by this request. /// This member is required. public var id: Swift.String? - /// The list of record fields to be delivered to the destination, in order. If the delivery’s log source has mandatory fields, they must be included in this list. + /// The list of record fields to be delivered to the destination, in order. If the delivery's log source has mandatory fields, they must be included in this list. public var recordFields: [Swift.String]? - /// This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket. + /// This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket. public var s3DeliveryConfiguration: CloudWatchLogsClientTypes.S3DeliveryConfiguration? public init( @@ -9249,6 +9253,7 @@ extension CloudWatchLogsClientTypes.PatternToken { value.isDynamic = try reader["isDynamic"].readIfPresent() value.tokenString = try reader["tokenString"].readIfPresent() value.enumerations = try reader["enumerations"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readInt(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.inferredTokenName = try reader["inferredTokenName"].readIfPresent() return value } } diff --git a/Sources/Services/AWSCodeBuild/Sources/AWSCodeBuild/Models.swift b/Sources/Services/AWSCodeBuild/Sources/AWSCodeBuild/Models.swift index 27c26b6352f..b196c1f7be9 100644 --- a/Sources/Services/AWSCodeBuild/Sources/AWSCodeBuild/Models.swift +++ b/Sources/Services/AWSCodeBuild/Sources/AWSCodeBuild/Models.swift @@ -181,6 +181,34 @@ extension CodeBuildClientTypes { } } +extension CodeBuildClientTypes { + + /// Information about the auto-retry configuration for the build. + public struct AutoRetryConfig: Swift.Sendable { + /// The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times. + public var autoRetryLimit: Swift.Int? + /// The number of times that the build has been retried. The initial build will have an auto-retry number of 0. + public var autoRetryNumber: Swift.Int? + /// The build ARN of the auto-retried build triggered by the current build. The next auto-retry will be null for builds that don't trigger an auto-retry. + public var nextAutoRetry: Swift.String? + /// The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build. + public var previousAutoRetry: Swift.String? + + public init( + autoRetryLimit: Swift.Int? = nil, + autoRetryNumber: Swift.Int? = nil, + nextAutoRetry: Swift.String? = nil, + previousAutoRetry: Swift.String? = nil + ) + { + self.autoRetryLimit = autoRetryLimit + self.autoRetryNumber = autoRetryNumber + self.nextAutoRetry = nextAutoRetry + self.previousAutoRetry = previousAutoRetry + } + } +} + /// The input value that was provided is not valid. public struct InvalidInputException: ClientRuntime.ModeledError, AWSClientRuntime.AWSServiceError, ClientRuntime.HTTPError, Swift.Error { @@ -2021,6 +2049,8 @@ extension CodeBuildClientTypes { public var arn: Swift.String? /// Information about the output artifacts for the build. public var artifacts: CodeBuildClientTypes.BuildArtifacts? + /// Information about the auto-retry configuration for the build. + public var autoRetryConfig: CodeBuildClientTypes.AutoRetryConfig? /// The ARN of the batch build that this build is a member of, if applicable. public var buildBatchArn: Swift.String? /// Whether the build is complete. True if complete; otherwise, false. @@ -2117,6 +2147,7 @@ extension CodeBuildClientTypes { public init( arn: Swift.String? = nil, artifacts: CodeBuildClientTypes.BuildArtifacts? = nil, + autoRetryConfig: CodeBuildClientTypes.AutoRetryConfig? = nil, buildBatchArn: Swift.String? = nil, buildComplete: Swift.Bool = false, buildNumber: Swift.Int? = nil, @@ -2151,6 +2182,7 @@ extension CodeBuildClientTypes { { self.arn = arn self.artifacts = artifacts + self.autoRetryConfig = autoRetryConfig self.buildBatchArn = buildBatchArn self.buildComplete = buildComplete self.buildNumber = buildNumber @@ -3244,6 +3276,8 @@ extension CodeBuildClientTypes { public var arn: Swift.String? /// Information about the build output artifacts for the build project. public var artifacts: CodeBuildClientTypes.ProjectArtifacts? + /// The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times. + public var autoRetryLimit: Swift.Int? /// Information about the build badge for the build project. public var badge: CodeBuildClientTypes.ProjectBadge? /// A [ProjectBuildBatchConfig] object that defines the batch build options for the project. @@ -3313,6 +3347,7 @@ extension CodeBuildClientTypes { public init( arn: Swift.String? = nil, artifacts: CodeBuildClientTypes.ProjectArtifacts? = nil, + autoRetryLimit: Swift.Int? = nil, badge: CodeBuildClientTypes.ProjectBadge? = nil, buildBatchConfig: CodeBuildClientTypes.ProjectBuildBatchConfig? = nil, cache: CodeBuildClientTypes.ProjectCache? = nil, @@ -3343,6 +3378,7 @@ extension CodeBuildClientTypes { { self.arn = arn self.artifacts = artifacts + self.autoRetryLimit = autoRetryLimit self.badge = badge self.buildBatchConfig = buildBatchConfig self.cache = cache @@ -4020,6 +4056,8 @@ public struct CreateProjectInput: Swift.Sendable { /// Information about the build output artifacts for the build project. /// This member is required. public var artifacts: CodeBuildClientTypes.ProjectArtifacts? + /// The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times. + public var autoRetryLimit: Swift.Int? /// Set this to true to generate a publicly accessible URL for your project's build badge. public var badgeEnabled: Swift.Bool? /// A [ProjectBuildBatchConfig] object that defines the batch build options for the project. @@ -4080,6 +4118,7 @@ public struct CreateProjectInput: Swift.Sendable { public init( artifacts: CodeBuildClientTypes.ProjectArtifacts? = nil, + autoRetryLimit: Swift.Int? = nil, badgeEnabled: Swift.Bool? = nil, buildBatchConfig: CodeBuildClientTypes.ProjectBuildBatchConfig? = nil, cache: CodeBuildClientTypes.ProjectCache? = nil, @@ -4103,6 +4142,7 @@ public struct CreateProjectInput: Swift.Sendable { ) { self.artifacts = artifacts + self.autoRetryLimit = autoRetryLimit self.badgeEnabled = badgeEnabled self.buildBatchConfig = buildBatchConfig self.cache = cache @@ -5972,6 +6012,8 @@ public struct RetryBuildBatchOutput: Swift.Sendable { public struct StartBuildInput: Swift.Sendable { /// Build output artifact settings that override, for this build only, the latest ones already defined in the build project. public var artifactsOverride: CodeBuildClientTypes.ProjectArtifacts? + /// The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times. + public var autoRetryLimitOverride: Swift.Int? /// Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is GITHUB, GITHUB_ENTERPRISE, or BITBUCKET. public var buildStatusConfigOverride: CodeBuildClientTypes.BuildStatusConfig? /// A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed. If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see [Buildspec File Name and Storage Location](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage). Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket. @@ -6038,6 +6080,7 @@ public struct StartBuildInput: Swift.Sendable { public init( artifactsOverride: CodeBuildClientTypes.ProjectArtifacts? = nil, + autoRetryLimitOverride: Swift.Int? = nil, buildStatusConfigOverride: CodeBuildClientTypes.BuildStatusConfig? = nil, buildspecOverride: Swift.String? = nil, cacheOverride: CodeBuildClientTypes.ProjectCache? = nil, @@ -6072,6 +6115,7 @@ public struct StartBuildInput: Swift.Sendable { ) { self.artifactsOverride = artifactsOverride + self.autoRetryLimitOverride = autoRetryLimitOverride self.buildStatusConfigOverride = buildStatusConfigOverride self.buildspecOverride = buildspecOverride self.cacheOverride = cacheOverride @@ -6433,6 +6477,8 @@ public struct UpdateFleetOutput: Swift.Sendable { public struct UpdateProjectInput: Swift.Sendable { /// Information to be changed about the build output artifacts for the build project. public var artifacts: CodeBuildClientTypes.ProjectArtifacts? + /// The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times. + public var autoRetryLimit: Swift.Int? /// Set this to true to generate a publicly accessible URL for your project's build badge. public var badgeEnabled: Swift.Bool? /// Contains configuration information about a batch build project. @@ -6490,6 +6536,7 @@ public struct UpdateProjectInput: Swift.Sendable { public init( artifacts: CodeBuildClientTypes.ProjectArtifacts? = nil, + autoRetryLimit: Swift.Int? = nil, badgeEnabled: Swift.Bool? = nil, buildBatchConfig: CodeBuildClientTypes.ProjectBuildBatchConfig? = nil, cache: CodeBuildClientTypes.ProjectCache? = nil, @@ -6513,6 +6560,7 @@ public struct UpdateProjectInput: Swift.Sendable { ) { self.artifacts = artifacts + self.autoRetryLimit = autoRetryLimit self.badgeEnabled = badgeEnabled self.buildBatchConfig = buildBatchConfig self.cache = cache @@ -7097,6 +7145,7 @@ extension CreateProjectInput { static func write(value: CreateProjectInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["artifacts"].write(value.artifacts, with: CodeBuildClientTypes.ProjectArtifacts.write(value:to:)) + try writer["autoRetryLimit"].write(value.autoRetryLimit) try writer["badgeEnabled"].write(value.badgeEnabled) try writer["buildBatchConfig"].write(value.buildBatchConfig, with: CodeBuildClientTypes.ProjectBuildBatchConfig.write(value:to:)) try writer["cache"].write(value.cache, with: CodeBuildClientTypes.ProjectCache.write(value:to:)) @@ -7440,6 +7489,7 @@ extension StartBuildInput { static func write(value: StartBuildInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["artifactsOverride"].write(value.artifactsOverride, with: CodeBuildClientTypes.ProjectArtifacts.write(value:to:)) + try writer["autoRetryLimitOverride"].write(value.autoRetryLimitOverride) try writer["buildStatusConfigOverride"].write(value.buildStatusConfigOverride, with: CodeBuildClientTypes.BuildStatusConfig.write(value:to:)) try writer["buildspecOverride"].write(value.buildspecOverride) try writer["cacheOverride"].write(value.cacheOverride, with: CodeBuildClientTypes.ProjectCache.write(value:to:)) @@ -7551,6 +7601,7 @@ extension UpdateProjectInput { static func write(value: UpdateProjectInput?, to writer: SmithyJSON.Writer) throws { guard let value else { return } try writer["artifacts"].write(value.artifacts, with: CodeBuildClientTypes.ProjectArtifacts.write(value:to:)) + try writer["autoRetryLimit"].write(value.autoRetryLimit) try writer["badgeEnabled"].write(value.badgeEnabled) try writer["buildBatchConfig"].write(value.buildBatchConfig, with: CodeBuildClientTypes.ProjectBuildBatchConfig.write(value:to:)) try writer["cache"].write(value.cache, with: CodeBuildClientTypes.ProjectCache.write(value:to:)) @@ -9505,6 +9556,20 @@ extension CodeBuildClientTypes.Build { value.fileSystemLocations = try reader["fileSystemLocations"].readListIfPresent(memberReadingClosure: CodeBuildClientTypes.ProjectFileSystemLocation.read(from:), memberNodeInfo: "member", isFlattened: false) value.debugSession = try reader["debugSession"].readIfPresent(with: CodeBuildClientTypes.DebugSession.read(from:)) value.buildBatchArn = try reader["buildBatchArn"].readIfPresent() + value.autoRetryConfig = try reader["autoRetryConfig"].readIfPresent(with: CodeBuildClientTypes.AutoRetryConfig.read(from:)) + return value + } +} + +extension CodeBuildClientTypes.AutoRetryConfig { + + static func read(from reader: SmithyJSON.Reader) throws -> CodeBuildClientTypes.AutoRetryConfig { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = CodeBuildClientTypes.AutoRetryConfig() + value.autoRetryLimit = try reader["autoRetryLimit"].readIfPresent() + value.autoRetryNumber = try reader["autoRetryNumber"].readIfPresent() + value.nextAutoRetry = try reader["nextAutoRetry"].readIfPresent() + value.previousAutoRetry = try reader["previousAutoRetry"].readIfPresent() return value } } @@ -9727,6 +9792,7 @@ extension CodeBuildClientTypes.Project { value.projectVisibility = try reader["projectVisibility"].readIfPresent() value.publicProjectAlias = try reader["publicProjectAlias"].readIfPresent() value.resourceAccessRole = try reader["resourceAccessRole"].readIfPresent() + value.autoRetryLimit = try reader["autoRetryLimit"].readIfPresent() return value } } diff --git a/Sources/Services/AWSLambda/Sources/AWSLambda/Models.swift b/Sources/Services/AWSLambda/Sources/AWSLambda/Models.swift index 1b2b43c239a..aa65a6e44ef 100644 --- a/Sources/Services/AWSLambda/Sources/AWSLambda/Models.swift +++ b/Sources/Services/AWSLambda/Sources/AWSLambda/Models.swift @@ -3959,6 +3959,28 @@ extension LambdaClientTypes { } } +extension LambdaClientTypes { + + /// An object that contains details about an error related to retrieving tags. + public struct TagsError: Swift.Sendable { + /// The error code. + /// This member is required. + public var errorCode: Swift.String? + /// The error message. + /// This member is required. + public var message: Swift.String? + + public init( + errorCode: Swift.String? = nil, + message: Swift.String? = nil + ) + { + self.errorCode = errorCode + self.message = message + } + } +} + public struct GetFunctionOutput: Swift.Sendable { /// The deployment package of the function or version. public var code: LambdaClientTypes.FunctionCodeLocation? @@ -3966,20 +3988,24 @@ public struct GetFunctionOutput: Swift.Sendable { public var concurrency: LambdaClientTypes.Concurrency? /// The configuration of the function or version. public var configuration: LambdaClientTypes.FunctionConfiguration? - /// The function's [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). + /// The function's [tags](https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). Lambda returns tag data only if you have explicit allow permissions for [lambda:ListTags](https://docs.aws.amazon.com/https:/docs.aws.amazon.com/lambda/latest/api/API_ListTags.html). public var tags: [Swift.String: Swift.String]? + /// An object that contains details about an error related to retrieving tags. + public var tagsError: LambdaClientTypes.TagsError? public init( code: LambdaClientTypes.FunctionCodeLocation? = nil, concurrency: LambdaClientTypes.Concurrency? = nil, configuration: LambdaClientTypes.FunctionConfiguration? = nil, - tags: [Swift.String: Swift.String]? = nil + tags: [Swift.String: Swift.String]? = nil, + tagsError: LambdaClientTypes.TagsError? = nil ) { self.code = code self.concurrency = concurrency self.configuration = configuration self.tags = tags + self.tagsError = tagsError } } @@ -10413,6 +10439,7 @@ extension GetFunctionOutput { value.concurrency = try reader["Concurrency"].readIfPresent(with: LambdaClientTypes.Concurrency.read(from:)) value.configuration = try reader["Configuration"].readIfPresent(with: LambdaClientTypes.FunctionConfiguration.read(from:)) value.tags = try reader["Tags"].readMapIfPresent(valueReadingClosure: SmithyReadWrite.ReadingClosures.readString(from:), keyNodeInfo: "key", valueNodeInfo: "value", isFlattened: false) + value.tagsError = try reader["TagsError"].readIfPresent(with: LambdaClientTypes.TagsError.read(from:)) return value } } @@ -13596,6 +13623,17 @@ extension LambdaClientTypes.FunctionCodeLocation { } } +extension LambdaClientTypes.TagsError { + + static func read(from reader: SmithyJSON.Reader) throws -> LambdaClientTypes.TagsError { + guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent } + var value = LambdaClientTypes.TagsError() + value.errorCode = try reader["ErrorCode"].readIfPresent() ?? "" + value.message = try reader["Message"].readIfPresent() ?? "" + return value + } +} + extension LambdaClientTypes.Concurrency { static func read(from reader: SmithyJSON.Reader) throws -> LambdaClientTypes.Concurrency { diff --git a/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/Models.swift b/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/Models.swift index 3e2f4d160a0..fa5a2ba768c 100644 --- a/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/Models.swift +++ b/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/Models.swift @@ -1041,6 +1041,8 @@ extension SupplyChainClientTypes { public var awsAccountId: Swift.String? /// The instance creation timestamp. public var createdTime: Foundation.Date? + /// The Amazon Web Services Supply Chain instance error message. If the instance results in an unhealthy state, customers need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message. + public var errorMessage: Swift.String? /// The Amazon Web Services Supply Chain instance description. public var instanceDescription: Swift.String? /// The Amazon Web Services Supply Chain instance identifier. @@ -1063,6 +1065,7 @@ extension SupplyChainClientTypes { public init( awsAccountId: Swift.String? = nil, createdTime: Foundation.Date? = nil, + errorMessage: Swift.String? = nil, instanceDescription: Swift.String? = nil, instanceId: Swift.String? = nil, instanceName: Swift.String? = nil, @@ -1075,6 +1078,7 @@ extension SupplyChainClientTypes { { self.awsAccountId = awsAccountId self.createdTime = createdTime + self.errorMessage = errorMessage self.instanceDescription = instanceDescription self.instanceId = instanceId self.instanceName = instanceName @@ -3057,6 +3061,7 @@ extension SupplyChainClientTypes.Instance { value.instanceId = try reader["instanceId"].readIfPresent() ?? "" value.awsAccountId = try reader["awsAccountId"].readIfPresent() ?? "" value.state = try reader["state"].readIfPresent() ?? .sdkUnknown("") + value.errorMessage = try reader["errorMessage"].readIfPresent() value.webAppDnsDomain = try reader["webAppDnsDomain"].readIfPresent() value.createdTime = try reader["createdTime"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.epochSeconds) value.lastModifiedTime = try reader["lastModifiedTime"].readTimestampIfPresent(format: SmithyTimestamps.TimestampFormat.epochSeconds) diff --git a/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/SupplyChainClient.swift b/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/SupplyChainClient.swift index 89830091716..8b8039fef92 100644 --- a/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/SupplyChainClient.swift +++ b/Sources/Services/AWSSupplyChain/Sources/AWSSupplyChain/SupplyChainClient.swift @@ -273,7 +273,7 @@ extension SupplyChainClient { /// Performs the `CreateDataIntegrationFlow` operation on the `GalaxyPublicAPIGateway` service. /// - /// Create DataIntegrationFlow to map one or more different sources to one target using the SQL transformation query. + /// Enables you to programmatically create a data pipeline to ingest data from source systems such as Amazon S3 buckets, to a predefined Amazon Web Services Supply Chain dataset (product, inbound_order) or a temporary dataset along with the data transformation query provided with the API. /// /// - Parameter CreateDataIntegrationFlowInput : The request parameters for CreateDataIntegrationFlow. /// @@ -348,7 +348,7 @@ extension SupplyChainClient { /// Performs the `CreateDataLakeDataset` operation on the `GalaxyPublicAPIGateway` service. /// - /// Create a data lake dataset. + /// Enables you to programmatically create an Amazon Web Services Supply Chain data lake dataset. Developers can create the datasets using their pre-defined or custom schema for a given instance ID, namespace, and dataset name. /// /// - Parameter CreateDataLakeDatasetInput : The request parameters for CreateDataLakeDataset. /// @@ -423,7 +423,7 @@ extension SupplyChainClient { /// Performs the `CreateInstance` operation on the `GalaxyPublicAPIGateway` service. /// - /// Create a new instance for AWS Supply Chain. This is an asynchronous operation. Upon receiving a CreateInstance request, AWS Supply Chain immediately returns the instance resource, with instance ID, and the initializing state while simultaneously creating all required Amazon Web Services resources for an instance creation. You can use GetInstance to check the status of the instance. + /// Enables you to programmatically create an Amazon Web Services Supply Chain instance by applying KMS keys and relevant information associated with the API without using the Amazon Web Services console. This is an asynchronous operation. Upon receiving a CreateInstance request, Amazon Web Services Supply Chain immediately returns the instance resource, instance ID, and the initializing state while simultaneously creating all required Amazon Web Services resources for an instance creation. You can use GetInstance to check the status of the instance. If the instance results in an unhealthy state, you need to check the error message, delete the current instance, and recreate a new one based on the mitigation from the error message. /// /// - Parameter CreateInstanceInput : The request parameters for CreateInstance. /// @@ -499,7 +499,7 @@ extension SupplyChainClient { /// Performs the `DeleteDataIntegrationFlow` operation on the `GalaxyPublicAPIGateway` service. /// - /// Delete the DataIntegrationFlow. + /// Enable you to programmatically delete an existing data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name. /// /// - Parameter DeleteDataIntegrationFlowInput : The request parameters for DeleteDataIntegrationFlow. /// @@ -571,7 +571,7 @@ extension SupplyChainClient { /// Performs the `DeleteDataLakeDataset` operation on the `GalaxyPublicAPIGateway` service. /// - /// Delete a data lake dataset. + /// Enables you to programmatically delete an Amazon Web Services Supply Chain data lake dataset. Developers can delete the existing datasets for a given instance ID, namespace, and instance name. /// /// - Parameter DeleteDataLakeDatasetInput : The request parameters of DeleteDataLakeDataset. /// @@ -643,7 +643,7 @@ extension SupplyChainClient { /// Performs the `DeleteInstance` operation on the `GalaxyPublicAPIGateway` service. /// - /// Delete the instance. This is an asynchronous operation. Upon receiving a DeleteInstance request, AWS Supply Chain immediately returns a response with the instance resource, delete state while cleaning up all Amazon Web Services resources created during the instance creation process. You can use the GetInstance action to check the instance status. + /// Enables you to programmatically delete an Amazon Web Services Supply Chain instance by deleting the KMS keys and relevant information associated with the API without using the Amazon Web Services console. This is an asynchronous operation. Upon receiving a DeleteInstance request, Amazon Web Services Supply Chain immediately returns a response with the instance resource, delete state while cleaning up all Amazon Web Services resources created during the instance creation process. You can use the GetInstance action to check the instance status. /// /// - Parameter DeleteInstanceInput : The request parameters for DeleteInstance. /// @@ -787,7 +787,7 @@ extension SupplyChainClient { /// Performs the `GetDataIntegrationFlow` operation on the `GalaxyPublicAPIGateway` service. /// - /// View the DataIntegrationFlow details. + /// Enables you to programmatically view a specific data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name. /// /// - Parameter GetDataIntegrationFlowInput : The request parameters for GetDataIntegrationFlow. /// @@ -859,7 +859,7 @@ extension SupplyChainClient { /// Performs the `GetDataLakeDataset` operation on the `GalaxyPublicAPIGateway` service. /// - /// Get a data lake dataset. + /// Enables you to programmatically view an Amazon Web Services Supply Chain data lake dataset. Developers can view the data lake dataset information such as namespace, schema, and so on for a given instance ID, namespace, and dataset name. /// /// - Parameter GetDataLakeDatasetInput : The request parameters for GetDataLakeDataset. /// @@ -931,7 +931,7 @@ extension SupplyChainClient { /// Performs the `GetInstance` operation on the `GalaxyPublicAPIGateway` service. /// - /// Get the AWS Supply Chain instance details. + /// Enables you to programmatically retrieve the information related to an Amazon Web Services Supply Chain instance ID. /// /// - Parameter GetInstanceInput : The request parameters for GetInstance. /// @@ -1003,7 +1003,7 @@ extension SupplyChainClient { /// Performs the `ListDataIntegrationFlows` operation on the `GalaxyPublicAPIGateway` service. /// - /// Lists all the DataIntegrationFlows in a paginated way. + /// Enables you to programmatically list all data pipelines for the provided Amazon Web Services Supply Chain instance. /// /// - Parameter ListDataIntegrationFlowsInput : The request parameters for ListDataIntegrationFlows. /// @@ -1076,7 +1076,7 @@ extension SupplyChainClient { /// Performs the `ListDataLakeDatasets` operation on the `GalaxyPublicAPIGateway` service. /// - /// List the data lake datasets for a specific instance and name space. + /// Enables you to programmatically view the list of Amazon Web Services Supply Chain data lake datasets. Developers can view the datasets and the corresponding information such as namespace, schema, and so on for a given instance ID and namespace. /// /// - Parameter ListDataLakeDatasetsInput : The request parameters of ListDataLakeDatasets. /// @@ -1149,7 +1149,7 @@ extension SupplyChainClient { /// Performs the `ListInstances` operation on the `GalaxyPublicAPIGateway` service. /// - /// List all the AWS Supply Chain instances in a paginated way. + /// List all Amazon Web Services Supply Chain instances for a specific account. Enables you to programmatically list all Amazon Web Services Supply Chain instances based on their account ID, instance name, and state of the instance (active or delete). /// /// - Parameter ListInstancesInput : The request parameters for ListInstances. /// @@ -1222,7 +1222,7 @@ extension SupplyChainClient { /// Performs the `ListTagsForResource` operation on the `GalaxyPublicAPIGateway` service. /// - /// List all the tags for an Amazon Web ServicesSupply Chain resource. + /// List all the tags for an Amazon Web ServicesSupply Chain resource. You can list all the tags added to a resource. By listing the tags, developers can view the tag level information on a resource and perform actions such as, deleting a resource associated with a particular tag. /// /// - Parameter ListTagsForResourceInput : The request parameters of ListTagsForResource. /// @@ -1370,7 +1370,7 @@ extension SupplyChainClient { /// Performs the `TagResource` operation on the `GalaxyPublicAPIGateway` service. /// - /// Create tags for an Amazon Web Services Supply chain resource. + /// You can create tags during or after creating a resource such as instance, data flow, or dataset in AWS Supply chain. During the data ingestion process, you can add tags such as dev, test, or prod to data flows created during the data ingestion process in the AWS Supply Chain datasets. You can use these tags to identify a group of resources or a single resource used by the developer. /// /// - Parameter TagResourceInput : The request parameters of TagResource. /// @@ -1445,7 +1445,7 @@ extension SupplyChainClient { /// Performs the `UntagResource` operation on the `GalaxyPublicAPIGateway` service. /// - /// Delete tags for an Amazon Web Services Supply chain resource. + /// You can delete tags for an Amazon Web Services Supply chain resource such as instance, data flow, or dataset in AWS Supply Chain. During the data ingestion process, you can delete tags such as dev, test, or prod to data flows created during the data ingestion process in the AWS Supply Chain datasets. /// /// - Parameter UntagResourceInput : The request parameters of UntagResource. /// @@ -1518,7 +1518,7 @@ extension SupplyChainClient { /// Performs the `UpdateDataIntegrationFlow` operation on the `GalaxyPublicAPIGateway` service. /// - /// Update the DataIntegrationFlow. + /// Enables you to programmatically update an existing data pipeline to ingest data from the source systems such as, Amazon S3 buckets, to a predefined Amazon Web Services Supply Chain dataset (product, inbound_order) or a temporary dataset along with the data transformation query provided with the API. /// /// - Parameter UpdateDataIntegrationFlowInput : The request parameters for UpdateDataIntegrationFlow. /// @@ -1593,7 +1593,7 @@ extension SupplyChainClient { /// Performs the `UpdateDataLakeDataset` operation on the `GalaxyPublicAPIGateway` service. /// - /// Update a data lake dataset. + /// Enables you to programmatically update an Amazon Web Services Supply Chain data lake dataset. Developers can update the description of a data lake dataset for a given instance ID, namespace, and dataset name. /// /// - Parameter UpdateDataLakeDatasetInput : The request parameters of UpdateDataLakeDataset. /// @@ -1668,7 +1668,7 @@ extension SupplyChainClient { /// Performs the `UpdateInstance` operation on the `GalaxyPublicAPIGateway` service. /// - /// Update the instance. + /// Enables you to programmatically update an Amazon Web Services Supply Chain instance description by providing all the relevant information such as account ID, instance ID and so on without using the AWS console. /// /// - Parameter UpdateInstanceInput : The request parameters for UpdateInstance. /// diff --git a/packageDependencies.plist b/packageDependencies.plist index b3b30e4df80..64bccc33f8d 100644 --- a/packageDependencies.plist +++ b/packageDependencies.plist @@ -9,6 +9,6 @@ clientRuntimeBranch main clientRuntimeVersion - 0.84.0 + 0.85.0