From 1756961a3bee7d0799a313f7eab6c1c653b2b646 Mon Sep 17 00:00:00 2001 From: AWS SDK Rust Bot Date: Fri, 25 Oct 2024 18:36:45 +0000 Subject: [PATCH] Update SDK models --- aws-models/bedrock-agent.json | 37 ++++-- aws-models/cloudwatch-logs.json | 42 ++++--- aws-models/codebuild.json | 62 ++++++++++ aws-models/lambda.json | 50 +++++++- aws-models/sdk-endpoints.json | 32 +++++ aws-models/supplychain.json | 65 +++++++--- sdk/bedrockagent/src/client/create_agent.rs | 2 +- sdk/bedrockagent/src/client/update_agent.rs | 2 +- .../create_agent/_create_agent_input.rs | 75 ++++++++++- .../src/operation/create_agent/builders.rs | 45 ++++++- .../create_flow/_create_flow_input.rs | 30 ++++- .../create_flow/_create_flow_output.rs | 40 +++++- .../_create_flow_version_output.rs | 38 +++++- .../operation/get_flow/_get_flow_output.rs | 42 ++++++- .../_get_flow_version_output.rs | 38 +++++- .../update_agent/_update_agent_input.rs | 75 ++++++++++- .../src/operation/update_agent/builders.rs | 45 ++++++- .../update_flow/_update_flow_input.rs | 28 ++++- .../update_flow/_update_flow_output.rs | 40 +++++- ...e_prompt_flow_node_inline_configuration.rs | 7 ++ .../protocol_serde/shape_prompt_variant.rs | 7 ++ .../_condition_flow_node_configuration.rs | 18 +-- sdk/bedrockagent/src/types/_flow_condition.rs | 4 +- .../src/types/_flow_definition.rs | 4 +- .../_prompt_flow_node_inline_configuration.rs | 22 ++++ sdk/bedrockagent/src/types/_prompt_variant.rs | 24 ++++ .../src/client/create_delivery.rs | 4 +- .../src/client/create_export_task.rs | 2 +- sdk/cloudwatchlogs/src/client/start_query.rs | 2 +- .../client/update_delivery_configuration.rs | 4 +- .../create_delivery/_create_delivery_input.rs | 20 +-- .../src/operation/create_delivery/builders.rs | 14 +-- .../_create_export_task_input.rs | 5 + .../operation/create_export_task/builders.rs | 3 + .../operation/describe_log_groups/builders.rs | 2 +- .../put_retention_policy/builders.rs | 4 +- .../start_query/_start_query_input.rs | 10 +- .../src/operation/start_query/builders.rs | 6 +- .../src/operation/tag_log_group/builders.rs | 2 +- .../src/operation/untag_log_group/builders.rs | 2 +- .../src/operation/update_anomaly/builders.rs | 2 +- .../_update_delivery_configuration_input.rs | 20 +-- .../update_delivery_configuration/builders.rs | 12 +- .../src/protocol_serde/shape_pattern_token.rs | 7 ++ .../src/types/_configuration_template.rs | 10 +- sdk/cloudwatchlogs/src/types/_delivery.rs | 2 +- .../src/types/_pattern_token.rs | 27 ++++ sdk/codebuild/src/client/create_project.rs | 1 + sdk/codebuild/src/client/start_build.rs | 1 + sdk/codebuild/src/client/update_project.rs | 1 + .../create_project/_create_project_input.rs | 22 ++++ .../src/operation/create_project/builders.rs | 14 +++ .../start_build/_start_build_input.rs | 22 ++++ .../src/operation/start_build/builders.rs | 14 +++ .../update_project/_update_project_input.rs | 22 ++++ .../src/operation/update_project/builders.rs | 14 +++ sdk/codebuild/src/protocol_serde.rs | 2 + .../protocol_serde/shape_auto_retry_config.rs | 61 +++++++++ .../src/protocol_serde/shape_build.rs | 3 + .../shape_create_project_input.rs | 6 + .../src/protocol_serde/shape_project.rs | 7 ++ .../protocol_serde/shape_start_build_input.rs | 6 + .../shape_update_project_input.rs | 6 + sdk/codebuild/src/types.rs | 4 + sdk/codebuild/src/types/_auto_retry_config.rs | 116 ++++++++++++++++++ sdk/codebuild/src/types/_build.rs | 22 ++++ sdk/codebuild/src/types/_project.rs | 22 ++++ sdk/codebuild/src/types/builders.rs | 2 + sdk/lambda/src/client/get_function.rs | 3 +- .../get_function/_get_function_output.rs | 32 ++++- sdk/lambda/src/protocol_serde.rs | 2 + .../src/protocol_serde/shape_get_function.rs | 3 + .../src/protocol_serde/shape_tags_error.rs | 49 ++++++++ sdk/lambda/src/serde_util.rs | 10 ++ sdk/lambda/src/types.rs | 4 + sdk/lambda/src/types/_tags_error.rs | 89 ++++++++++++++ sdk/lambda/src/types/builders.rs | 2 + .../create_data_integration_flow/builders.rs | 2 +- .../create_data_lake_dataset/builders.rs | 2 +- .../src/operation/create_instance/builders.rs | 3 +- .../delete_data_integration_flow/builders.rs | 2 +- .../delete_data_lake_dataset/builders.rs | 2 +- .../src/operation/delete_instance/builders.rs | 3 +- .../get_data_integration_flow/builders.rs | 2 +- .../get_data_lake_dataset/builders.rs | 2 +- .../src/operation/get_instance/builders.rs | 2 +- .../list_data_integration_flows/builders.rs | 2 +- .../list_data_lake_datasets/builders.rs | 2 +- .../src/operation/list_instances/builders.rs | 2 +- .../list_tags_for_resource/builders.rs | 2 +- .../src/operation/tag_resource/builders.rs | 2 +- .../src/operation/untag_resource/builders.rs | 2 +- .../update_data_integration_flow/builders.rs | 2 +- .../update_data_lake_dataset/builders.rs | 2 +- .../src/operation/update_instance/builders.rs | 2 +- .../src/protocol_serde/shape_instance.rs | 7 ++ sdk/supplychain/src/types/_instance.rs | 22 ++++ versions.toml | 22 ++-- 98 files changed, 1494 insertions(+), 191 deletions(-) create mode 100644 sdk/codebuild/src/protocol_serde/shape_auto_retry_config.rs create mode 100644 sdk/codebuild/src/types/_auto_retry_config.rs create mode 100644 sdk/lambda/src/protocol_serde/shape_tags_error.rs create mode 100644 sdk/lambda/src/types/_tags_error.rs diff --git a/aws-models/bedrock-agent.json b/aws-models/bedrock-agent.json index 4b35434ba21b..2787a1f41529 100644 --- a/aws-models/bedrock-agent.json +++ b/aws-models/bedrock-agent.json @@ -2617,7 +2617,7 @@ "foundationModel": { "target": "com.amazonaws.bedrockagent#ModelIdentifier", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.

" + "smithy.api#documentation": "

The identifier for the model that you want to be used for orchestration by the agent you create.

\n

The modelId to provide depends on the type of model or throughput that you use:

\n " } }, "description": { @@ -5349,8 +5349,7 @@ } }, "traits": { - "smithy.api#documentation": "

Defines a condition in the condition node.

", - "smithy.api#sensitive": {} + "smithy.api#documentation": "

Defines a condition in the condition node.

" } }, "com.amazonaws.bedrockagent#FlowConditionExpression": { @@ -5393,8 +5392,7 @@ "smithy.api#length": { "min": 1, "max": 5 - }, - "smithy.api#sensitive": {} + } } }, "com.amazonaws.bedrockagent#FlowConnection": { @@ -5532,7 +5530,8 @@ } }, "traits": { - "smithy.api#documentation": "

The definition of the nodes and connections between nodes in the flow.

" + "smithy.api#documentation": "

The definition of the nodes and connections between nodes in the flow.

", + "smithy.api#sensitive": {} } }, "com.amazonaws.bedrockagent#FlowDescription": { @@ -5912,8 +5911,7 @@ "traits": { "smithy.api#length": { "max": 20 - }, - "smithy.api#sensitive": {} + } } }, "com.amazonaws.bedrockagent#FlowResource": { @@ -8141,11 +8139,12 @@ "com.amazonaws.bedrockagent#KnowledgeBaseModelIdentifier": { "type": "string", "traits": { + "smithy.api#documentation": "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a jumpstart model or imported model, or a provisioned throughput ARN for custom models.", "smithy.api#length": { "min": 1, "max": 2048 }, - "smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(model-gateway|inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$" + "smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$" } }, "com.amazonaws.bedrockagent#KnowledgeBaseResource": { @@ -9663,11 +9662,12 @@ "com.amazonaws.bedrockagent#ModelIdentifier": { "type": "string", "traits": { + "smithy.api#documentation": "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a jumpstart model or imported model, or a provisioned throughput ARN for custom models.", "smithy.api#length": { "min": 1, "max": 2048 }, - "smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}(([:][a-z0-9-]{1,63}){0,2})?/[a-z0-9]{12})|(:foundation-model/([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2})))|(([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.]?[a-z0-9-]{1,63})([:][a-z0-9-]{1,63}){0,2}))|(([0-9a-zA-Z][_-]?)+)$" + "smithy.api#pattern": "^(arn:aws(-[^:]{1,12})?:(bedrock|sagemaker):[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]+/)?)?([a-zA-Z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$" } }, "com.amazonaws.bedrockagent#MongoDbAtlasCollectionName": { @@ -10439,6 +10439,12 @@ "traits": { "smithy.api#documentation": "

Contains inference configurations for the prompt.

" } + }, + "additionalModelRequestFields": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

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.

" + } } }, "traits": { @@ -10598,11 +10604,12 @@ "com.amazonaws.bedrockagent#PromptModelIdentifier": { "type": "string", "traits": { + "smithy.api#documentation": "ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a jumpstart model or imported model, or a provisioned throughput ARN for custom models.", "smithy.api#length": { "min": 1, "max": 2048 }, - "smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(model-gateway|inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$" + "smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|([0-9]{12}:imported-model/[a-z0-9]{12})|([0-9]{12}:provisioned-model/[a-z0-9]{12})))|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):(inference-profile|application-inference-profile)/[a-zA-Z0-9-:.]+)|([a-zA-Z0-9-:.]+)$" } }, "com.amazonaws.bedrockagent#PromptModelInferenceConfiguration": { @@ -10877,6 +10884,12 @@ "traits": { "smithy.api#documentation": "

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.

" } + }, + "additionalModelRequestFields": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

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.

" + } } }, "traits": { @@ -12728,7 +12741,7 @@ "target": "com.amazonaws.bedrockagent#ModelIdentifier", "traits": { "smithy.api#clientOptional": {}, - "smithy.api#documentation": "

Specifies a new foundation model to be used for orchestration by the agent.

", + "smithy.api#documentation": "

The identifier for the model that you want to be used for orchestration by the agent you create.

\n

The modelId to provide depends on the type of model or throughput that you use:

\n ", "smithy.api#required": {} } }, diff --git a/aws-models/cloudwatch-logs.json b/aws-models/cloudwatch-logs.json index e512433e3a87..06fb8310e2b9 100644 --- a/aws-models/cloudwatch-logs.json +++ b/aws-models/cloudwatch-logs.json @@ -581,7 +581,7 @@ "defaultDeliveryConfigValues": { "target": "com.amazonaws.cloudwatchlogs#ConfigurationTemplateDeliveryConfigValues", "traits": { - "smithy.api#documentation": "

A mapping that displays the default value of each property within a delivery’s configuration,\n if it is not specified in the request.

" + "smithy.api#documentation": "

A mapping that displays the default value of each property within a delivery's configuration,\n if it is not specified in the request.

" } }, "allowedFields": { @@ -701,7 +701,7 @@ } ], "traits": { - "smithy.api#documentation": "

Creates a delivery. A delivery is a connection between a logical delivery source and a logical\n delivery destination\n that you have already created.

\n

Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed\n as Supported [V2 Permissions] in the table at \n Enabling \n logging from Amazon Web Services services.\n

\n

A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.

\n

To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:

\n \n

You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You \n can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.

\n

You can't update an existing delivery. You can only create and delete deliveries.

" + "smithy.api#documentation": "

Creates a delivery. A delivery is a connection between a logical delivery source and a logical\n delivery destination\n that you have already created.

\n

Only some Amazon Web Services services support being configured as a delivery source using this operation. These services are listed\n as Supported [V2 Permissions] in the table at \n Enabling \n logging from Amazon Web Services services.\n

\n

A delivery destination can represent a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.

\n

To configure logs delivery between a supported Amazon Web Services service and a destination, you must do the following:

\n \n

You can configure a single delivery source to send logs to multiple destinations by creating multiple deliveries. You \n can also create multiple deliveries to configure multiple delivery sources to send logs to the same delivery destination.

\n

To update an existing delivery configuration, use UpdateDeliveryConfiguration.

" } }, "com.amazonaws.cloudwatchlogs#CreateDeliveryRequest": { @@ -724,7 +724,7 @@ "recordFields": { "target": "com.amazonaws.cloudwatchlogs#RecordFields", "traits": { - "smithy.api#documentation": "

The list of record fields to be delivered to the destination, in order. \n If the delivery’s log source has mandatory fields, they must be included in this list.

" + "smithy.api#documentation": "

The list of record fields to be delivered to the destination, in order. \n If the delivery's log source has mandatory fields, they must be included in this list.

" } }, "fieldDelimiter": { @@ -736,7 +736,7 @@ "s3DeliveryConfiguration": { "target": "com.amazonaws.cloudwatchlogs#S3DeliveryConfiguration", "traits": { - "smithy.api#documentation": "

This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket.

" + "smithy.api#documentation": "

This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket.

" } }, "tags": { @@ -842,7 +842,7 @@ "destinationPrefix": { "target": "com.amazonaws.cloudwatchlogs#ExportDestinationPrefix", "traits": { - "smithy.api#documentation": "

The prefix used as the start of the key for every object exported. If you don't\n specify a value, the default is exportedlogs.

" + "smithy.api#documentation": "

The prefix used as the start of the key for every object exported. If you don't\n specify a value, the default is exportedlogs.

\n

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, \n and can be up to 1,024 bytes.

" } } }, @@ -1858,7 +1858,7 @@ } }, "traits": { - "smithy.api#documentation": "

This structure contains information about one delivery in your account.

\n

A delivery is a connection between a logical delivery source and a logical\n delivery destination.

\n

For more information, see CreateDelivery.

\n

You can't update an existing delivery. You can only create and delete deliveries.

" + "smithy.api#documentation": "

This structure contains information about one delivery in your account.

\n

A delivery is a connection between a logical delivery source and a logical\n delivery destination.

\n

For more information, see CreateDelivery.

\n

To update an existing delivery configuration, use UpdateDeliveryConfiguration.

" } }, "com.amazonaws.cloudwatchlogs#DeliveryDestination": { @@ -2581,7 +2581,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists the specified log groups. You can list all your log groups or filter the results by prefix.\n The results are ASCII-sorted by log group name.

\n

CloudWatch Logs doesn’t support IAM policies that control access to the DescribeLogGroups action by using the \n aws:ResourceTag/key-name\n condition key. Other CloudWatch Logs actions\n do support the use of the aws:ResourceTag/key-name\n condition key to control access.\n For more information about using tags to control access, see \n Controlling access to Amazon Web Services resources using tags.

\n

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and \n view data from the linked source accounts. For more information, see \n CloudWatch cross-account observability.

", + "smithy.api#documentation": "

Lists the specified log groups. You can list all your log groups or filter the results by prefix.\n The results are ASCII-sorted by log group name.

\n

CloudWatch Logs doesn't support IAM policies that control access to the DescribeLogGroups action by using the \n aws:ResourceTag/key-name\n condition key. Other CloudWatch Logs actions\n do support the use of the aws:ResourceTag/key-name\n condition key to control access.\n For more information about using tags to control access, see \n Controlling access to Amazon Web Services resources using tags.

\n

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and \n view data from the linked source accounts. For more information, see \n CloudWatch cross-account observability.

", "smithy.api#paginated": { "inputToken": "nextToken", "outputToken": "nextToken", @@ -4691,6 +4691,14 @@ "com.amazonaws.cloudwatchlogs#IncludeLinkedAccounts": { "type": "boolean" }, + "com.amazonaws.cloudwatchlogs#InferredTokenName": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, "com.amazonaws.cloudwatchlogs#InheritedProperties": { "type": "list", "member": { @@ -7178,6 +7186,12 @@ "traits": { "smithy.api#documentation": "

Contains the values found for a dynamic token, and the number of times each value was found.

" } + }, + "inferredTokenName": { + "target": "com.amazonaws.cloudwatchlogs#InferredTokenName", + "traits": { + "smithy.api#documentation": "

A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable. The string part of \n the inferredTokenName gives you a clearer idea of the content of this token. The number part of \n the inferredTokenName shows where in the pattern this token appears, compared to other dynamic tokens.\n CloudWatch Logs assigns the string part of the name based on analyzing the content of the log events that contain it.

\n

For example, an inferred token name of IPAddress-3 means that the token represents an IP address, and this \n token is the third dynamic token in the pattern.

" + } } }, "traits": { @@ -8080,7 +8094,7 @@ } ], "traits": { - "smithy.api#documentation": "

Sets the retention of the specified log group. With a retention policy, you can\n configure the number of days for which to retain log events in the specified log\n group.

\n \n

CloudWatch Logs doesn’t immediately delete log events when they reach their retention\n setting. It typically takes up to 72 hours after that before log events are deleted, but in\n rare situations might take longer.

\n

To illustrate, imagine that you change a log group to have a longer retention setting\n when it contains log events that are past the expiration date, but haven’t been deleted.\n Those log events will take up to 72 hours to be deleted after the new retention date is\n reached. To make sure that log data is deleted permanently, keep a log group at its lower\n retention setting until 72 hours after the previous retention period ends. Alternatively,\n wait to change the retention setting until you confirm that the earlier log events are\n deleted.

\n

When log events reach their retention setting they are marked for deletion. After\n they are marked for deletion, they do not add to your archival storage costs anymore, even if \n they are not actually deleted until later. These log events marked for deletion are also not \n included when you use an API to retrieve the storedBytes value to see how many bytes a log group is storing.

\n
" + "smithy.api#documentation": "

Sets the retention of the specified log group. With a retention policy, you can\n configure the number of days for which to retain log events in the specified log\n group.

\n \n

CloudWatch Logs doesn't immediately delete log events when they reach their retention\n setting. It typically takes up to 72 hours after that before log events are deleted, but in\n rare situations might take longer.

\n

To illustrate, imagine that you change a log group to have a longer retention setting\n when it contains log events that are past the expiration date, but haven't been deleted.\n Those log events will take up to 72 hours to be deleted after the new retention date is\n reached. To make sure that log data is deleted permanently, keep a log group at its lower\n retention setting until 72 hours after the previous retention period ends. Alternatively,\n wait to change the retention setting until you confirm that the earlier log events are\n deleted.

\n

When log events reach their retention setting they are marked for deletion. After\n they are marked for deletion, they do not add to your archival storage costs anymore, even if \n they are not actually deleted until later. These log events marked for deletion are also not \n included when you use an API to retrieve the storedBytes value to see how many bytes a log group is storing.

\n
" } }, "com.amazonaws.cloudwatchlogs#PutRetentionPolicyRequest": { @@ -9152,7 +9166,7 @@ "limit": { "target": "com.amazonaws.cloudwatchlogs#EventsLimit", "traits": { - "smithy.api#documentation": "

The maximum number of log events to return in the query. If the query string uses the fields command,\n only the specified fields and their values are returned. The default is 1000.

" + "smithy.api#documentation": "

The maximum number of log events to return in the query. If the query string uses the fields command,\n only the specified fields and their values are returned. The default is 10,000.

" } } }, @@ -9451,7 +9465,7 @@ "smithy.api#deprecated": { "message": "Please use the generic tagging API TagResource" }, - "smithy.api#documentation": "\n

The TagLogGroup operation is on the path to deprecation. We recommend that you use \n TagResource instead.

\n
\n

Adds or updates the specified tags for the specified log group.

\n

To list the tags for a log group, use ListTagsForResource.\n To remove tags, use UntagResource.

\n

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs\n in the Amazon CloudWatch Logs User Guide.

\n

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to \n log groups using the aws:Resource/key-name\n or aws:TagKeys condition keys. \n For more information about using tags to control access, see \n Controlling access to Amazon Web Services resources using tags.

" + "smithy.api#documentation": "\n

The TagLogGroup operation is on the path to deprecation. We recommend that you use \n TagResource instead.

\n
\n

Adds or updates the specified tags for the specified log group.

\n

To list the tags for a log group, use ListTagsForResource.\n To remove tags, use UntagResource.

\n

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs\n in the Amazon CloudWatch Logs User Guide.

\n

CloudWatch Logs doesn't support IAM policies that prevent users from assigning specified tags to \n log groups using the aws:Resource/key-name\n or aws:TagKeys condition keys. \n For more information about using tags to control access, see \n Controlling access to Amazon Web Services resources using tags.

" } }, "com.amazonaws.cloudwatchlogs#TagLogGroupRequest": { @@ -9726,7 +9740,7 @@ "smithy.api#deprecated": { "message": "Please use the generic tagging API UntagResource" }, - "smithy.api#documentation": "\n

The UntagLogGroup operation is on the path to deprecation. We recommend that you use \n UntagResource instead.

\n
\n

Removes the specified tags from the specified log group.

\n

To list the tags for a log group, use ListTagsForResource.\n To add tags, use TagResource.

\n

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to \n log groups using the aws:Resource/key-name\n or aws:TagKeys condition keys. \n

" + "smithy.api#documentation": "\n

The UntagLogGroup operation is on the path to deprecation. We recommend that you use \n UntagResource instead.

\n
\n

Removes the specified tags from the specified log group.

\n

To list the tags for a log group, use ListTagsForResource.\n To add tags, use TagResource.

\n

CloudWatch Logs doesn't support IAM policies that prevent users from assigning specified tags to \n log groups using the aws:Resource/key-name\n or aws:TagKeys condition keys. \n

" } }, "com.amazonaws.cloudwatchlogs#UntagLogGroupRequest": { @@ -9822,7 +9836,7 @@ } ], "traits": { - "smithy.api#documentation": "

Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress \n an anomaly, CloudWatch Logs won’t report new occurrences of that anomaly and won't\n update that anomaly \n with new data. If you suppress a pattern, CloudWatch Logs won’t report any anomalies related to that pattern.

\n

You must specify either anomalyId or patternId, but you can't specify both parameters in the \n same operation.

\n

If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause\n CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to \n stop suppressing, and omit the suppressionType and suppressionPeriod parameters.

" + "smithy.api#documentation": "

Use this operation to suppress anomaly detection for a specified anomaly or pattern. If you suppress \n an anomaly, CloudWatch Logs won't report new occurrences of that anomaly and won't\n update that anomaly \n with new data. If you suppress a pattern, CloudWatch Logs won't report any anomalies related to that pattern.

\n

You must specify either anomalyId or patternId, but you can't specify both parameters in the \n same operation.

\n

If you have previously used this operation to suppress detection of a pattern or anomaly, you can use it again to cause\n CloudWatch Logs to end the suppression. To do this, use this operation and specify the anomaly or pattern to \n stop suppressing, and omit the suppressionType and suppressionPeriod parameters.

" } }, "com.amazonaws.cloudwatchlogs#UpdateAnomalyRequest": { @@ -9909,7 +9923,7 @@ "recordFields": { "target": "com.amazonaws.cloudwatchlogs#RecordFields", "traits": { - "smithy.api#documentation": "

The list of record fields to be delivered to the destination, in order. \n If the delivery’s log source has mandatory fields, they must be included in this list.

" + "smithy.api#documentation": "

The list of record fields to be delivered to the destination, in order. \n If the delivery's log source has mandatory fields, they must be included in this list.

" } }, "fieldDelimiter": { @@ -9921,7 +9935,7 @@ "s3DeliveryConfiguration": { "target": "com.amazonaws.cloudwatchlogs#S3DeliveryConfiguration", "traits": { - "smithy.api#documentation": "

This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket.

" + "smithy.api#documentation": "

This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket.

" } } }, diff --git a/aws-models/codebuild.json b/aws-models/codebuild.json index 9a44cf5d3b37..354755fa5232 100644 --- a/aws-models/codebuild.json +++ b/aws-models/codebuild.json @@ -133,6 +133,38 @@ } } }, + "com.amazonaws.codebuild#AutoRetryConfig": { + "type": "structure", + "members": { + "autoRetryLimit": { + "target": "com.amazonaws.codebuild#WrapperInt", + "traits": { + "smithy.api#documentation": "

The maximum number of additional automatic retries after a failed build. For example, if the \n auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically \n retry your build for up to 2 additional times.

" + } + }, + "autoRetryNumber": { + "target": "com.amazonaws.codebuild#WrapperInt", + "traits": { + "smithy.api#documentation": "

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

" + } + }, + "nextAutoRetry": { + "target": "com.amazonaws.codebuild#String", + "traits": { + "smithy.api#documentation": "

The build ARN of the auto-retried build triggered by the current build. The next auto-retry \n will be null for builds that don't trigger an auto-retry.

" + } + }, + "previousAutoRetry": { + "target": "com.amazonaws.codebuild#String", + "traits": { + "smithy.api#documentation": "

The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be \n null for the initial build.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the auto-retry configuration for the build.

" + } + }, "com.amazonaws.codebuild#BatchDeleteBuilds": { "type": "operation", "input": { @@ -761,6 +793,12 @@ "traits": { "smithy.api#documentation": "

The ARN of the batch build that this build is a member of, if applicable.

" } + }, + "autoRetryConfig": { + "target": "com.amazonaws.codebuild#AutoRetryConfig", + "traits": { + "smithy.api#documentation": "

Information about the auto-retry configuration for the build.

" + } } }, "traits": { @@ -3101,6 +3139,12 @@ "traits": { "smithy.api#documentation": "

The maximum number of concurrent builds that are allowed for this project.

\n

New builds are only started if the current number of builds is less than or equal to this limit. \n If the current build count meets this limit, new builds are throttled and are not run.

" } + }, + "autoRetryLimit": { + "target": "com.amazonaws.codebuild#WrapperInt", + "traits": { + "smithy.api#documentation": "

The maximum number of additional automatic retries after a failed build. For example, if the \n auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically \n retry your build for up to 2 additional times.

" + } } }, "traits": { @@ -6175,6 +6219,12 @@ "traits": { "smithy.api#documentation": "

The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for\n the project's builds.

" } + }, + "autoRetryLimit": { + "target": "com.amazonaws.codebuild#WrapperInt", + "traits": { + "smithy.api#documentation": "

The maximum number of additional automatic retries after a failed build. For example, if the \n auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically \n retry your build for up to 2 additional times.

" + } } }, "traits": { @@ -8297,6 +8347,12 @@ "traits": { "smithy.api#documentation": "

A ProjectFleet object specified for this build that overrides the one defined in the\n build project.

" } + }, + "autoRetryLimitOverride": { + "target": "com.amazonaws.codebuild#WrapperInt", + "traits": { + "smithy.api#documentation": "

The maximum number of additional automatic retries after a failed build. For example, if the \n auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically \n retry your build for up to 2 additional times.

" + } } }, "traits": { @@ -8904,6 +8960,12 @@ "traits": { "smithy.api#documentation": "

The maximum number of concurrent builds that are allowed for this project.

\n

New builds are only started if the current number of builds is less than or equal to this limit. \n If the current build count meets this limit, new builds are throttled and are not run.

\n

To remove this limit, set this value to -1.

" } + }, + "autoRetryLimit": { + "target": "com.amazonaws.codebuild#WrapperInt", + "traits": { + "smithy.api#documentation": "

The maximum number of additional automatic retries after a failed build. For example, if the \n auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically \n retry your build for up to 2 additional times.

" + } } }, "traits": { diff --git a/aws-models/lambda.json b/aws-models/lambda.json index 674144fde123..1d2a5ab6de28 100644 --- a/aws-models/lambda.json +++ b/aws-models/lambda.json @@ -5926,7 +5926,13 @@ "Tags": { "target": "com.amazonaws.lambda#Tags", "traits": { - "smithy.api#documentation": "

The function's tags.

" + "smithy.api#documentation": "

The function's tags. Lambda\n returns tag data only if you have explicit allow permissions for lambda:ListTags.

" + } + }, + "TagsError": { + "target": "com.amazonaws.lambda#TagsError", + "traits": { + "smithy.api#documentation": "

An object that contains details about an error related to retrieving tags.

" } }, "Concurrency": { @@ -11981,6 +11987,48 @@ "target": "com.amazonaws.lambda#TagValue" } }, + "com.amazonaws.lambda#TagsError": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.lambda#TagsErrorCode", + "traits": { + "smithy.api#documentation": "

The error code.

", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.lambda#TagsErrorMessage", + "traits": { + "smithy.api#documentation": "

The error message.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that contains details about an error related to retrieving tags.

" + } + }, + "com.amazonaws.lambda#TagsErrorCode": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 10, + "max": 21 + }, + "smithy.api#pattern": "^[A-Za-z]+Exception$" + } + }, + "com.amazonaws.lambda#TagsErrorMessage": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 84, + "max": 1000 + }, + "smithy.api#pattern": "^.*$" + } + }, "com.amazonaws.lambda#ThrottleReason": { "type": "enum", "members": { diff --git a/aws-models/sdk-endpoints.json b/aws-models/sdk-endpoints.json index 3442dc5920b8..622af11a6345 100644 --- a/aws-models/sdk-endpoints.json +++ b/aws-models/sdk-endpoints.json @@ -13262,6 +13262,7 @@ "ap-northeast-2" : { }, "ap-northeast-3" : { }, "ap-south-1" : { }, + "ap-south-2" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, "ap-southeast-4" : { }, @@ -13271,6 +13272,7 @@ "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, + "me-central-1" : { }, "sa-east-1" : { }, "us-east-1" : { }, "us-east-2" : { }, @@ -28113,6 +28115,36 @@ } } }, + "redshift-serverless" : { + "endpoints" : { + "fips-us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "deprecated" : true, + "hostname" : "redshift-serverless-fips.us-gov-east-1.amazonaws.com" + }, + "fips-us-gov-west-1" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "deprecated" : true, + "hostname" : "redshift-serverless-fips.us-gov-west-1.amazonaws.com" + }, + "us-gov-east-1" : { + "variants" : [ { + "hostname" : "redshift-serverless-fips.us-gov-east-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + }, + "us-gov-west-1" : { + "variants" : [ { + "hostname" : "redshift-serverless-fips.us-gov-west-1.amazonaws.com", + "tags" : [ "fips" ] + } ] + } + } + }, "rekognition" : { "endpoints" : { "rekognition-fips.us-gov-west-1" : { diff --git a/aws-models/supplychain.json b/aws-models/supplychain.json index 966ea7a2c2e2..5651911a7d1f 100644 --- a/aws-models/supplychain.json +++ b/aws-models/supplychain.json @@ -304,7 +304,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create DataIntegrationFlow to map one or more different sources to one target using the SQL transformation query.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Successful CreateDataIntegrationFlow for s3 to dataset flow", @@ -498,7 +498,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create a data lake dataset.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Create an AWS Supply Chain inbound order dataset", @@ -860,7 +860,7 @@ } ], "traits": { - "smithy.api#documentation": "

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.

", + "smithy.api#documentation": "

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.

\n

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.

", "smithy.api#examples": [ { "title": "Successful CreateInstance request with all input data", @@ -1941,7 +1941,7 @@ } ], "traits": { - "smithy.api#documentation": "

Delete the DataIntegrationFlow.

", + "smithy.api#documentation": "

Enable you to programmatically delete an existing data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name.

", "smithy.api#examples": [ { "title": "Successful DeleteDataIntegrationFlow", @@ -2037,7 +2037,7 @@ } ], "traits": { - "smithy.api#documentation": "

Delete a data lake dataset.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Delete an AWS Supply Chain inbound_order dataset", @@ -2163,7 +2163,7 @@ } ], "traits": { - "smithy.api#documentation": "

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.

", + "smithy.api#documentation": "

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.

\n

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 \n the instance creation process. You can use the GetInstance action to check the instance status.

", "smithy.api#examples": [ { "title": "Successful DeleteInstance request", @@ -3111,7 +3111,7 @@ } ], "traits": { - "smithy.api#documentation": "

View the DataIntegrationFlow details.

", + "smithy.api#documentation": "

Enables you to programmatically view a specific data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name.

", "smithy.api#examples": [ { "title": "Successful GetDataIntegrationFlow", @@ -3227,7 +3227,7 @@ } ], "traits": { - "smithy.api#documentation": "

Get a data lake dataset.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Get properties of an existing AWS Supply Chain inbound order dataset", @@ -3532,7 +3532,7 @@ } ], "traits": { - "smithy.api#documentation": "

Get the AWS Supply Chain instance details.

", + "smithy.api#documentation": "

Enables you to programmatically retrieve the information related to an Amazon Web Services Supply Chain instance ID.

", "smithy.api#examples": [ { "title": "Successful GetInstance request", @@ -3552,6 +3552,26 @@ "versionNumber": 2.0 } } + }, + { + "title": "Successful GetInstance request with error message", + "input": { + "instanceId": "9e193580-7cc5-45f7-9609-c43ba0ada793" + }, + "output": { + "instance": { + "instanceId": "9e193580-7cc5-45f7-9609-c43ba0ada793", + "awsAccountId": "123456789012", + "state": "CreateFailed", + "errorMessage": "Access denied when attempting to create an S3 bucket. Please correct your IAM policy and try again.", + "createdTime": 172615383136, + "lastModifiedTime": 172615383136, + "instanceName": "example instance name", + "instanceDescription": "example instance description", + "kmsKeyArn": "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d", + "versionNumber": 2.0 + } + } } ], "smithy.api#http": { @@ -3621,6 +3641,12 @@ "smithy.api#required": {} } }, + "errorMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

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.

" + } + }, "webAppDnsDomain": { "target": "com.amazonaws.supplychain#InstanceWebAppDnsDomain", "traits": { @@ -3742,6 +3768,9 @@ "state": { "target": "com.amazonaws.supplychain#InstanceState" }, + "errorMessage": { + "target": "smithy.api#String" + }, "createdTime": { "target": "smithy.api#Timestamp" }, @@ -3887,7 +3916,7 @@ } ], "traits": { - "smithy.api#documentation": "

Lists all the DataIntegrationFlows in a paginated way.

", + "smithy.api#documentation": "

Enables you to programmatically list all data pipelines for the provided Amazon Web Services Supply Chain instance.

", "smithy.api#examples": [ { "title": "Successful ListDataIntegrationFlow", @@ -4056,7 +4085,7 @@ } ], "traits": { - "smithy.api#documentation": "

List the data lake datasets for a specific instance and name space.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "List AWS Supply Chain datasets", @@ -4405,7 +4434,7 @@ } ], "traits": { - "smithy.api#documentation": "

List all the AWS Supply Chain instances in a paginated way.

", + "smithy.api#documentation": "

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).

", "smithy.api#examples": [ { "title": "Successful ListInstance request with no input data", @@ -4605,7 +4634,7 @@ } ], "traits": { - "smithy.api#documentation": "

List all the tags for an Amazon Web ServicesSupply Chain resource.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Successful ListTagsForResource", @@ -5064,7 +5093,7 @@ } ], "traits": { - "smithy.api#documentation": "

Create tags for an Amazon Web Services Supply chain resource.

", + "smithy.api#documentation": "

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 \n 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.

", "smithy.api#examples": [ { "title": "Successful TagResource", @@ -5177,7 +5206,7 @@ } ], "traits": { - "smithy.api#documentation": "

Delete tags for an Amazon Web Services Supply chain resource.

", + "smithy.api#documentation": "

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 \n created during the data ingestion process in the AWS Supply Chain datasets.

", "smithy.api#examples": [ { "title": "Successful UntagResource", @@ -5257,7 +5286,7 @@ } ], "traits": { - "smithy.api#documentation": "

Update the DataIntegrationFlow.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Successful UpdateDataIntegrationFlow for s3 to dataset flow to update SQL transformation", @@ -5483,7 +5512,7 @@ } ], "traits": { - "smithy.api#documentation": "

Update a data lake dataset.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Update description of an existing AWS Supply Chain inbound order dataset", @@ -5795,7 +5824,7 @@ } ], "traits": { - "smithy.api#documentation": "

Update the instance.

", + "smithy.api#documentation": "

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.

", "smithy.api#examples": [ { "title": "Successful UpdateInstance request", diff --git a/sdk/bedrockagent/src/client/create_agent.rs b/sdk/bedrockagent/src/client/create_agent.rs index 4f2cae9d80b7..b540eb005e0a 100644 --- a/sdk/bedrockagent/src/client/create_agent.rs +++ b/sdk/bedrockagent/src/client/create_agent.rs @@ -6,7 +6,7 @@ impl super::Client { /// - [`agent_name(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::agent_name) / [`set_agent_name(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_agent_name):
required: **true**

A name for the agent that you create.


/// - [`client_token(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::client_token) / [`set_client_token(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_client_token):
required: **false**

A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.


/// - [`instruction(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::instruction) / [`set_instruction(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_instruction):
required: **false**

Instructions that tell the agent what it should do and how it should interact with users.


- /// - [`foundation_model(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::foundation_model) / [`set_foundation_model(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_foundation_model):
required: **false**

The Amazon Resource Name (ARN) of the foundation model to be used for orchestration by the agent you create.


+ /// - [`foundation_model(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::foundation_model) / [`set_foundation_model(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_foundation_model):
required: **false**

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:


/// - [`description(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::description) / [`set_description(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_description):
required: **false**

A description of the agent.


/// - [`idle_session_ttl_in_seconds(i32)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::idle_session_ttl_in_seconds) / [`set_idle_session_ttl_in_seconds(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_idle_session_ttl_in_seconds):
required: **false**

The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.


/// - [`agent_resource_role_arn(impl Into)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::agent_resource_role_arn) / [`set_agent_resource_role_arn(Option)`](crate::operation::create_agent::builders::CreateAgentFluentBuilder::set_agent_resource_role_arn):
required: **false**

The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.


diff --git a/sdk/bedrockagent/src/client/update_agent.rs b/sdk/bedrockagent/src/client/update_agent.rs index 97b8fc5bb292..c388884a6e9e 100644 --- a/sdk/bedrockagent/src/client/update_agent.rs +++ b/sdk/bedrockagent/src/client/update_agent.rs @@ -6,7 +6,7 @@ impl super::Client { /// - [`agent_id(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_id) / [`set_agent_id(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_id):
required: **true**

The unique identifier of the agent.


/// - [`agent_name(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_name) / [`set_agent_name(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_name):
required: **true**

Specifies a new name for the agent.


/// - [`instruction(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::instruction) / [`set_instruction(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_instruction):
required: **false**

Specifies new instructions that tell the agent what it should do and how it should interact with users.


- /// - [`foundation_model(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::foundation_model) / [`set_foundation_model(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_foundation_model):
required: **true**

Specifies a new foundation model to be used for orchestration by the agent.


+ /// - [`foundation_model(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::foundation_model) / [`set_foundation_model(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_foundation_model):
required: **true**

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:


/// - [`description(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::description) / [`set_description(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_description):
required: **false**

Specifies a new description of the agent.


/// - [`idle_session_ttl_in_seconds(i32)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::idle_session_ttl_in_seconds) / [`set_idle_session_ttl_in_seconds(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_idle_session_ttl_in_seconds):
required: **false**

The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent.

A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.


/// - [`agent_resource_role_arn(impl Into)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::agent_resource_role_arn) / [`set_agent_resource_role_arn(Option)`](crate::operation::update_agent::builders::UpdateAgentFluentBuilder::set_agent_resource_role_arn):
required: **true**

The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.


diff --git a/sdk/bedrockagent/src/operation/create_agent/_create_agent_input.rs b/sdk/bedrockagent/src/operation/create_agent/_create_agent_input.rs index 2a66b37f8a69..cb10b697775b 100644 --- a/sdk/bedrockagent/src/operation/create_agent/_create_agent_input.rs +++ b/sdk/bedrockagent/src/operation/create_agent/_create_agent_input.rs @@ -9,7 +9,20 @@ pub struct CreateAgentInput { pub client_token: ::std::option::Option<::std::string::String>, ///

Instructions that tell the agent what it should do and how it should interact with users.

pub instruction: ::std::option::Option<::std::string::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:

+ /// pub foundation_model: ::std::option::Option<::std::string::String>, ///

A description of the agent.

pub description: ::std::option::Option<::std::string::String>, @@ -42,7 +55,20 @@ impl CreateAgentInput { pub fn instruction(&self) -> ::std::option::Option<&str> { self.instruction.as_deref() } - ///

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:

+ /// pub fn foundation_model(&self) -> ::std::option::Option<&str> { self.foundation_model.as_deref() } @@ -166,17 +192,56 @@ impl CreateAgentInputBuilder { pub fn get_instruction(&self) -> &::std::option::Option<::std::string::String> { &self.instruction } - ///

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:

+ /// pub fn foundation_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.foundation_model = ::std::option::Option::Some(input.into()); self } - ///

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:

+ /// pub fn set_foundation_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.foundation_model = input; self } - ///

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:

+ /// pub fn get_foundation_model(&self) -> &::std::option::Option<::std::string::String> { &self.foundation_model } diff --git a/sdk/bedrockagent/src/operation/create_agent/builders.rs b/sdk/bedrockagent/src/operation/create_agent/builders.rs index ffad49fbda18..18cbf88a5d56 100644 --- a/sdk/bedrockagent/src/operation/create_agent/builders.rs +++ b/sdk/bedrockagent/src/operation/create_agent/builders.rs @@ -170,17 +170,56 @@ impl CreateAgentFluentBuilder { pub fn get_instruction(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_instruction() } - ///

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:

+ /// pub fn foundation_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.foundation_model(input.into()); self } - ///

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:

+ /// pub fn set_foundation_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_foundation_model(input); self } - ///

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:

+ /// pub fn get_foundation_model(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_foundation_model() } diff --git a/sdk/bedrockagent/src/operation/create_flow/_create_flow_input.rs b/sdk/bedrockagent/src/operation/create_flow/_create_flow_input.rs index 7cee82e6dcb5..b114b06fcf90 100644 --- a/sdk/bedrockagent/src/operation/create_flow/_create_flow_input.rs +++ b/sdk/bedrockagent/src/operation/create_flow/_create_flow_input.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct CreateFlowInput { ///

A name for the flow.

pub name: ::std::option::Option<::std::string::String>, @@ -48,6 +48,19 @@ impl CreateFlowInput { self.tags.as_ref() } } +impl ::std::fmt::Debug for CreateFlowInput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("CreateFlowInput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("client_token", &self.client_token); + formatter.field("tags", &self.tags); + formatter.finish() + } +} impl CreateFlowInput { /// Creates a new builder-style object to manufacture [`CreateFlowInput`](crate::operation::create_flow::CreateFlowInput). pub fn builder() -> crate::operation::create_flow::builders::CreateFlowInputBuilder { @@ -56,7 +69,7 @@ impl CreateFlowInput { } /// A builder for [`CreateFlowInput`](crate::operation::create_flow::CreateFlowInput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct CreateFlowInputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -187,3 +200,16 @@ impl CreateFlowInputBuilder { }) } } +impl ::std::fmt::Debug for CreateFlowInputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("CreateFlowInputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("client_token", &self.client_token); + formatter.field("tags", &self.tags); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/operation/create_flow/_create_flow_output.rs b/sdk/bedrockagent/src/operation/create_flow/_create_flow_output.rs index f7f36df0b6b8..21c85fb88853 100644 --- a/sdk/bedrockagent/src/operation/create_flow/_create_flow_output.rs +++ b/sdk/bedrockagent/src/operation/create_flow/_create_flow_output.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct CreateFlowOutput { ///

The name of the flow.

pub name: ::std::string::String, @@ -78,6 +78,24 @@ impl CreateFlowOutput { self.definition.as_ref() } } +impl ::std::fmt::Debug for CreateFlowOutput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("CreateFlowOutput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("updated_at", &self.updated_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} impl ::aws_types::request_id::RequestId for CreateFlowOutput { fn request_id(&self) -> Option<&str> { self._request_id.as_deref() @@ -91,7 +109,7 @@ impl CreateFlowOutput { } /// A builder for [`CreateFlowOutput`](crate::operation::create_flow::CreateFlowOutput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct CreateFlowOutputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -346,3 +364,21 @@ impl CreateFlowOutputBuilder { }) } } +impl ::std::fmt::Debug for CreateFlowOutputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("CreateFlowOutputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("updated_at", &self.updated_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/operation/create_flow_version/_create_flow_version_output.rs b/sdk/bedrockagent/src/operation/create_flow_version/_create_flow_version_output.rs index 3d338c8aa3da..4a16b4e50ffb 100644 --- a/sdk/bedrockagent/src/operation/create_flow_version/_create_flow_version_output.rs +++ b/sdk/bedrockagent/src/operation/create_flow_version/_create_flow_version_output.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct CreateFlowVersionOutput { ///

The name of the version.

pub name: ::std::string::String, @@ -72,6 +72,23 @@ impl CreateFlowVersionOutput { self.definition.as_ref() } } +impl ::std::fmt::Debug for CreateFlowVersionOutput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("CreateFlowVersionOutput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} impl ::aws_types::request_id::RequestId for CreateFlowVersionOutput { fn request_id(&self) -> Option<&str> { self._request_id.as_deref() @@ -85,7 +102,7 @@ impl CreateFlowVersionOutput { } /// A builder for [`CreateFlowVersionOutput`](crate::operation::create_flow_version::CreateFlowVersionOutput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct CreateFlowVersionOutputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -319,3 +336,20 @@ impl CreateFlowVersionOutputBuilder { }) } } +impl ::std::fmt::Debug for CreateFlowVersionOutputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("CreateFlowVersionOutputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/operation/get_flow/_get_flow_output.rs b/sdk/bedrockagent/src/operation/get_flow/_get_flow_output.rs index 4276248b8440..ef41a07a955a 100644 --- a/sdk/bedrockagent/src/operation/get_flow/_get_flow_output.rs +++ b/sdk/bedrockagent/src/operation/get_flow/_get_flow_output.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct GetFlowOutput { ///

The name of the flow.

pub name: ::std::string::String, @@ -106,6 +106,25 @@ impl GetFlowOutput { self.validations.as_deref().unwrap_or_default() } } +impl ::std::fmt::Debug for GetFlowOutput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("GetFlowOutput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("updated_at", &self.updated_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("validations", &self.validations); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} impl ::aws_types::request_id::RequestId for GetFlowOutput { fn request_id(&self) -> Option<&str> { self._request_id.as_deref() @@ -119,7 +138,7 @@ impl GetFlowOutput { } /// A builder for [`GetFlowOutput`](crate::operation::get_flow::GetFlowOutput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct GetFlowOutputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -426,3 +445,22 @@ impl GetFlowOutputBuilder { }) } } +impl ::std::fmt::Debug for GetFlowOutputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("GetFlowOutputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("updated_at", &self.updated_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("validations", &self.validations); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/operation/get_flow_version/_get_flow_version_output.rs b/sdk/bedrockagent/src/operation/get_flow_version/_get_flow_version_output.rs index d652bc52a50e..84551639b5b1 100644 --- a/sdk/bedrockagent/src/operation/get_flow_version/_get_flow_version_output.rs +++ b/sdk/bedrockagent/src/operation/get_flow_version/_get_flow_version_output.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct GetFlowVersionOutput { ///

The name of the version.

pub name: ::std::string::String, @@ -72,6 +72,23 @@ impl GetFlowVersionOutput { self.definition.as_ref() } } +impl ::std::fmt::Debug for GetFlowVersionOutput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("GetFlowVersionOutput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} impl ::aws_types::request_id::RequestId for GetFlowVersionOutput { fn request_id(&self) -> Option<&str> { self._request_id.as_deref() @@ -85,7 +102,7 @@ impl GetFlowVersionOutput { } /// A builder for [`GetFlowVersionOutput`](crate::operation::get_flow_version::GetFlowVersionOutput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct GetFlowVersionOutputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -319,3 +336,20 @@ impl GetFlowVersionOutputBuilder { }) } } +impl ::std::fmt::Debug for GetFlowVersionOutputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("GetFlowVersionOutputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/operation/update_agent/_update_agent_input.rs b/sdk/bedrockagent/src/operation/update_agent/_update_agent_input.rs index c00f53ea7d4a..5ac8469ec8b0 100644 --- a/sdk/bedrockagent/src/operation/update_agent/_update_agent_input.rs +++ b/sdk/bedrockagent/src/operation/update_agent/_update_agent_input.rs @@ -9,7 +9,20 @@ pub struct UpdateAgentInput { pub agent_name: ::std::option::Option<::std::string::String>, ///

Specifies new instructions that tell the agent what it should do and how it should interact with users.

pub instruction: ::std::option::Option<::std::string::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:

+ /// pub foundation_model: ::std::option::Option<::std::string::String>, ///

Specifies a new description of the agent.

pub description: ::std::option::Option<::std::string::String>, @@ -40,7 +53,20 @@ impl UpdateAgentInput { pub fn instruction(&self) -> ::std::option::Option<&str> { self.instruction.as_deref() } - ///

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:

+ /// pub fn foundation_model(&self) -> ::std::option::Option<&str> { self.foundation_model.as_deref() } @@ -159,18 +185,57 @@ impl UpdateAgentInputBuilder { pub fn get_instruction(&self) -> &::std::option::Option<::std::string::String> { &self.instruction } - ///

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:

+ /// /// This field is required. pub fn foundation_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.foundation_model = ::std::option::Option::Some(input.into()); self } - ///

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:

+ /// pub fn set_foundation_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.foundation_model = input; self } - ///

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:

+ /// pub fn get_foundation_model(&self) -> &::std::option::Option<::std::string::String> { &self.foundation_model } diff --git a/sdk/bedrockagent/src/operation/update_agent/builders.rs b/sdk/bedrockagent/src/operation/update_agent/builders.rs index 1bf10b252de0..1a849e22d91e 100644 --- a/sdk/bedrockagent/src/operation/update_agent/builders.rs +++ b/sdk/bedrockagent/src/operation/update_agent/builders.rs @@ -150,17 +150,56 @@ impl UpdateAgentFluentBuilder { pub fn get_instruction(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_instruction() } - ///

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:

+ /// pub fn foundation_model(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.foundation_model(input.into()); self } - ///

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:

+ /// pub fn set_foundation_model(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_foundation_model(input); self } - ///

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:

+ /// pub fn get_foundation_model(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_foundation_model() } diff --git a/sdk/bedrockagent/src/operation/update_flow/_update_flow_input.rs b/sdk/bedrockagent/src/operation/update_flow/_update_flow_input.rs index f8100c8329ad..6206032701fa 100644 --- a/sdk/bedrockagent/src/operation/update_flow/_update_flow_input.rs +++ b/sdk/bedrockagent/src/operation/update_flow/_update_flow_input.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct UpdateFlowInput { ///

A name for the flow.

pub name: ::std::option::Option<::std::string::String>, @@ -42,6 +42,18 @@ impl UpdateFlowInput { self.flow_identifier.as_deref() } } +impl ::std::fmt::Debug for UpdateFlowInput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("UpdateFlowInput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("flow_identifier", &self.flow_identifier); + formatter.finish() + } +} impl UpdateFlowInput { /// Creates a new builder-style object to manufacture [`UpdateFlowInput`](crate::operation::update_flow::UpdateFlowInput). pub fn builder() -> crate::operation::update_flow::builders::UpdateFlowInputBuilder { @@ -50,7 +62,7 @@ impl UpdateFlowInput { } /// A builder for [`UpdateFlowInput`](crate::operation::update_flow::UpdateFlowInput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct UpdateFlowInputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -160,3 +172,15 @@ impl UpdateFlowInputBuilder { }) } } +impl ::std::fmt::Debug for UpdateFlowInputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("UpdateFlowInputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("flow_identifier", &self.flow_identifier); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/operation/update_flow/_update_flow_output.rs b/sdk/bedrockagent/src/operation/update_flow/_update_flow_output.rs index 76d808d6a573..d2d1198fcc41 100644 --- a/sdk/bedrockagent/src/operation/update_flow/_update_flow_output.rs +++ b/sdk/bedrockagent/src/operation/update_flow/_update_flow_output.rs @@ -1,7 +1,7 @@ // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] pub struct UpdateFlowOutput { ///

The name of the flow.

pub name: ::std::string::String, @@ -78,6 +78,24 @@ impl UpdateFlowOutput { self.definition.as_ref() } } +impl ::std::fmt::Debug for UpdateFlowOutput { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("UpdateFlowOutput"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("updated_at", &self.updated_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} impl ::aws_types::request_id::RequestId for UpdateFlowOutput { fn request_id(&self) -> Option<&str> { self._request_id.as_deref() @@ -91,7 +109,7 @@ impl UpdateFlowOutput { } /// A builder for [`UpdateFlowOutput`](crate::operation::update_flow::UpdateFlowOutput). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] #[non_exhaustive] pub struct UpdateFlowOutputBuilder { pub(crate) name: ::std::option::Option<::std::string::String>, @@ -346,3 +364,21 @@ impl UpdateFlowOutputBuilder { }) } } +impl ::std::fmt::Debug for UpdateFlowOutputBuilder { + fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { + let mut formatter = f.debug_struct("UpdateFlowOutputBuilder"); + formatter.field("name", &self.name); + formatter.field("description", &self.description); + formatter.field("execution_role_arn", &self.execution_role_arn); + formatter.field("customer_encryption_key_arn", &self.customer_encryption_key_arn); + formatter.field("id", &self.id); + formatter.field("arn", &self.arn); + formatter.field("status", &self.status); + formatter.field("created_at", &self.created_at); + formatter.field("updated_at", &self.updated_at); + formatter.field("version", &self.version); + formatter.field("definition", &"*** Sensitive Data Redacted ***"); + formatter.field("_request_id", &self._request_id); + formatter.finish() + } +} diff --git a/sdk/bedrockagent/src/protocol_serde/shape_prompt_flow_node_inline_configuration.rs b/sdk/bedrockagent/src/protocol_serde/shape_prompt_flow_node_inline_configuration.rs index 02f5156363d3..373abea2454b 100644 --- a/sdk/bedrockagent/src/protocol_serde/shape_prompt_flow_node_inline_configuration.rs +++ b/sdk/bedrockagent/src/protocol_serde/shape_prompt_flow_node_inline_configuration.rs @@ -21,6 +21,9 @@ pub fn ser_prompt_flow_node_inline_configuration( crate::protocol_serde::shape_prompt_inference_configuration::ser_prompt_inference_configuration(&mut object_4, var_3)?; object_4.finish(); } + if let Some(var_5) = &input.additional_model_request_fields { + object.key("additionalModelRequestFields").document(var_5); + } Ok(()) } @@ -63,6 +66,10 @@ where crate::protocol_serde::shape_prompt_inference_configuration::de_prompt_inference_configuration(tokens)?, ); } + "additionalModelRequestFields" => { + builder = + builder.set_additional_model_request_fields(Some(::aws_smithy_json::deserialize::token::expect_document(tokens)?)); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/bedrockagent/src/protocol_serde/shape_prompt_variant.rs b/sdk/bedrockagent/src/protocol_serde/shape_prompt_variant.rs index 9e1923f789db..a9cd8595d0bb 100644 --- a/sdk/bedrockagent/src/protocol_serde/shape_prompt_variant.rs +++ b/sdk/bedrockagent/src/protocol_serde/shape_prompt_variant.rs @@ -36,6 +36,9 @@ pub fn ser_prompt_variant( } array_7.finish(); } + if let Some(var_10) = &input.additional_model_request_fields { + object.key("additionalModelRequestFields").document(var_10); + } Ok(()) } @@ -88,6 +91,10 @@ where "metadata" => { builder = builder.set_metadata(crate::protocol_serde::shape_prompt_metadata_list::de_prompt_metadata_list(tokens)?); } + "additionalModelRequestFields" => { + builder = + builder.set_additional_model_request_fields(Some(::aws_smithy_json::deserialize::token::expect_document(tokens)?)); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/bedrockagent/src/types/_condition_flow_node_configuration.rs b/sdk/bedrockagent/src/types/_condition_flow_node_configuration.rs index 57f33aa05041..3f9dfe30d70a 100644 --- a/sdk/bedrockagent/src/types/_condition_flow_node_configuration.rs +++ b/sdk/bedrockagent/src/types/_condition_flow_node_configuration.rs @@ -2,7 +2,7 @@ ///

Defines a condition node in your flow. You can specify conditions that determine which node comes next in the flow. For more information, see Node types in Amazon Bedrock works in the Amazon Bedrock User Guide.

#[non_exhaustive] -#[derive(::std::clone::Clone, ::std::cmp::PartialEq)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct ConditionFlowNodeConfiguration { ///

An array of conditions. Each member contains the name of a condition and an expression that defines the condition.

pub conditions: ::std::vec::Vec, @@ -14,13 +14,6 @@ impl ConditionFlowNodeConfiguration { self.conditions.deref() } } -impl ::std::fmt::Debug for ConditionFlowNodeConfiguration { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - let mut formatter = f.debug_struct("ConditionFlowNodeConfiguration"); - formatter.field("conditions", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} impl ConditionFlowNodeConfiguration { /// Creates a new builder-style object to manufacture [`ConditionFlowNodeConfiguration`](crate::types::ConditionFlowNodeConfiguration). pub fn builder() -> crate::types::builders::ConditionFlowNodeConfigurationBuilder { @@ -29,7 +22,7 @@ impl ConditionFlowNodeConfiguration { } /// A builder for [`ConditionFlowNodeConfiguration`](crate::types::ConditionFlowNodeConfiguration). -#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] #[non_exhaustive] pub struct ConditionFlowNodeConfigurationBuilder { pub(crate) conditions: ::std::option::Option<::std::vec::Vec>, @@ -69,10 +62,3 @@ impl ConditionFlowNodeConfigurationBuilder { }) } } -impl ::std::fmt::Debug for ConditionFlowNodeConfigurationBuilder { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - let mut formatter = f.debug_struct("ConditionFlowNodeConfigurationBuilder"); - formatter.field("conditions", &"*** Sensitive Data Redacted ***"); - formatter.finish() - } -} diff --git a/sdk/bedrockagent/src/types/_flow_condition.rs b/sdk/bedrockagent/src/types/_flow_condition.rs index dd842d48fe3b..c76c7191823a 100644 --- a/sdk/bedrockagent/src/types/_flow_condition.rs +++ b/sdk/bedrockagent/src/types/_flow_condition.rs @@ -23,7 +23,7 @@ impl FlowCondition { impl ::std::fmt::Debug for FlowCondition { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { let mut formatter = f.debug_struct("FlowCondition"); - formatter.field("name", &"*** Sensitive Data Redacted ***"); + formatter.field("name", &self.name); formatter.field("expression", &"*** Sensitive Data Redacted ***"); formatter.finish() } @@ -90,7 +90,7 @@ impl FlowConditionBuilder { impl ::std::fmt::Debug for FlowConditionBuilder { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { let mut formatter = f.debug_struct("FlowConditionBuilder"); - formatter.field("name", &"*** Sensitive Data Redacted ***"); + formatter.field("name", &self.name); formatter.field("expression", &"*** Sensitive Data Redacted ***"); formatter.finish() } diff --git a/sdk/bedrockagent/src/types/_flow_definition.rs b/sdk/bedrockagent/src/types/_flow_definition.rs index 1cc23e0b32ea..6484a299b130 100644 --- a/sdk/bedrockagent/src/types/_flow_definition.rs +++ b/sdk/bedrockagent/src/types/_flow_definition.rs @@ -27,7 +27,7 @@ impl ::std::fmt::Debug for FlowDefinition { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { let mut formatter = f.debug_struct("FlowDefinition"); formatter.field("nodes", &"*** Sensitive Data Redacted ***"); - formatter.field("connections", &self.connections); + formatter.field("connections", &"*** Sensitive Data Redacted ***"); formatter.finish() } } @@ -98,7 +98,7 @@ impl ::std::fmt::Debug for FlowDefinitionBuilder { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { let mut formatter = f.debug_struct("FlowDefinitionBuilder"); formatter.field("nodes", &"*** Sensitive Data Redacted ***"); - formatter.field("connections", &self.connections); + formatter.field("connections", &"*** Sensitive Data Redacted ***"); formatter.finish() } } diff --git a/sdk/bedrockagent/src/types/_prompt_flow_node_inline_configuration.rs b/sdk/bedrockagent/src/types/_prompt_flow_node_inline_configuration.rs index 9cf15fd9c943..4bfe9122da36 100644 --- a/sdk/bedrockagent/src/types/_prompt_flow_node_inline_configuration.rs +++ b/sdk/bedrockagent/src/types/_prompt_flow_node_inline_configuration.rs @@ -12,6 +12,8 @@ pub struct PromptFlowNodeInlineConfiguration { pub model_id: ::std::string::String, ///

Contains inference configurations for the prompt.

pub inference_configuration: ::std::option::Option, + ///

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.

+ pub additional_model_request_fields: ::std::option::Option<::aws_smithy_types::Document>, } impl PromptFlowNodeInlineConfiguration { ///

The type of prompt template.

@@ -31,6 +33,10 @@ impl PromptFlowNodeInlineConfiguration { pub fn inference_configuration(&self) -> ::std::option::Option<&crate::types::PromptInferenceConfiguration> { self.inference_configuration.as_ref() } + ///

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.

+ pub fn additional_model_request_fields(&self) -> ::std::option::Option<&::aws_smithy_types::Document> { + self.additional_model_request_fields.as_ref() + } } impl PromptFlowNodeInlineConfiguration { /// Creates a new builder-style object to manufacture [`PromptFlowNodeInlineConfiguration`](crate::types::PromptFlowNodeInlineConfiguration). @@ -47,6 +53,7 @@ pub struct PromptFlowNodeInlineConfigurationBuilder { pub(crate) template_configuration: ::std::option::Option, pub(crate) model_id: ::std::option::Option<::std::string::String>, pub(crate) inference_configuration: ::std::option::Option, + pub(crate) additional_model_request_fields: ::std::option::Option<::aws_smithy_types::Document>, } impl PromptFlowNodeInlineConfigurationBuilder { ///

The type of prompt template.

@@ -108,6 +115,20 @@ impl PromptFlowNodeInlineConfigurationBuilder { pub fn get_inference_configuration(&self) -> &::std::option::Option { &self.inference_configuration } + ///

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.

+ pub fn additional_model_request_fields(mut self, input: ::aws_smithy_types::Document) -> Self { + self.additional_model_request_fields = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_additional_model_request_fields(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self { + self.additional_model_request_fields = input; + self + } + ///

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.

+ pub fn get_additional_model_request_fields(&self) -> &::std::option::Option<::aws_smithy_types::Document> { + &self.additional_model_request_fields + } /// Consumes the builder and constructs a [`PromptFlowNodeInlineConfiguration`](crate::types::PromptFlowNodeInlineConfiguration). /// This method will fail if any of the following fields are not set: /// - [`template_type`](crate::types::builders::PromptFlowNodeInlineConfigurationBuilder::template_type) @@ -128,6 +149,7 @@ impl PromptFlowNodeInlineConfigurationBuilder { ) })?, inference_configuration: self.inference_configuration, + additional_model_request_fields: self.additional_model_request_fields, }) } } diff --git a/sdk/bedrockagent/src/types/_prompt_variant.rs b/sdk/bedrockagent/src/types/_prompt_variant.rs index ba9909bcfbe8..eae656b52489 100644 --- a/sdk/bedrockagent/src/types/_prompt_variant.rs +++ b/sdk/bedrockagent/src/types/_prompt_variant.rs @@ -16,6 +16,8 @@ pub struct PromptVariant { pub inference_configuration: ::std::option::Option, ///

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.

pub metadata: ::std::option::Option<::std::vec::Vec>, + ///

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.

+ pub additional_model_request_fields: ::std::option::Option<::aws_smithy_types::Document>, } impl PromptVariant { ///

The name of the prompt variant.

@@ -45,6 +47,10 @@ impl PromptVariant { pub fn metadata(&self) -> &[crate::types::PromptMetadataEntry] { self.metadata.as_deref().unwrap_or_default() } + ///

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.

+ pub fn additional_model_request_fields(&self) -> ::std::option::Option<&::aws_smithy_types::Document> { + self.additional_model_request_fields.as_ref() + } } impl ::std::fmt::Debug for PromptVariant { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { @@ -55,6 +61,7 @@ impl ::std::fmt::Debug for PromptVariant { formatter.field("model_id", &"*** Sensitive Data Redacted ***"); formatter.field("inference_configuration", &"*** Sensitive Data Redacted ***"); formatter.field("metadata", &"*** Sensitive Data Redacted ***"); + formatter.field("additional_model_request_fields", &"*** Sensitive Data Redacted ***"); formatter.finish() } } @@ -75,6 +82,7 @@ pub struct PromptVariantBuilder { pub(crate) model_id: ::std::option::Option<::std::string::String>, pub(crate) inference_configuration: ::std::option::Option, pub(crate) metadata: ::std::option::Option<::std::vec::Vec>, + pub(crate) additional_model_request_fields: ::std::option::Option<::aws_smithy_types::Document>, } impl PromptVariantBuilder { ///

The name of the prompt variant.

@@ -170,6 +178,20 @@ impl PromptVariantBuilder { pub fn get_metadata(&self) -> &::std::option::Option<::std::vec::Vec> { &self.metadata } + ///

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.

+ pub fn additional_model_request_fields(mut self, input: ::aws_smithy_types::Document) -> Self { + self.additional_model_request_fields = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_additional_model_request_fields(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self { + self.additional_model_request_fields = input; + self + } + ///

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.

+ pub fn get_additional_model_request_fields(&self) -> &::std::option::Option<::aws_smithy_types::Document> { + &self.additional_model_request_fields + } /// Consumes the builder and constructs a [`PromptVariant`](crate::types::PromptVariant). /// This method will fail if any of the following fields are not set: /// - [`name`](crate::types::builders::PromptVariantBuilder::name) @@ -192,6 +214,7 @@ impl PromptVariantBuilder { model_id: self.model_id, inference_configuration: self.inference_configuration, metadata: self.metadata, + additional_model_request_fields: self.additional_model_request_fields, }) } } @@ -204,6 +227,7 @@ impl ::std::fmt::Debug for PromptVariantBuilder { formatter.field("model_id", &"*** Sensitive Data Redacted ***"); formatter.field("inference_configuration", &"*** Sensitive Data Redacted ***"); formatter.field("metadata", &"*** Sensitive Data Redacted ***"); + formatter.field("additional_model_request_fields", &"*** Sensitive Data Redacted ***"); formatter.finish() } } diff --git a/sdk/cloudwatchlogs/src/client/create_delivery.rs b/sdk/cloudwatchlogs/src/client/create_delivery.rs index 9c8a7cbd0705..11c3160b0b0b 100644 --- a/sdk/cloudwatchlogs/src/client/create_delivery.rs +++ b/sdk/cloudwatchlogs/src/client/create_delivery.rs @@ -5,9 +5,9 @@ impl super::Client { /// - The fluent builder is configurable: /// - [`delivery_source_name(impl Into)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::delivery_source_name) / [`set_delivery_source_name(Option)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_delivery_source_name):
required: **true**

The name of the delivery source to use for this delivery.


/// - [`delivery_destination_arn(impl Into)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::delivery_destination_arn) / [`set_delivery_destination_arn(Option)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_delivery_destination_arn):
required: **true**

The ARN of the delivery destination to use for this delivery.


- /// - [`record_fields(impl Into)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::record_fields) / [`set_record_fields(Option>)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_record_fields):
required: **false**

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.


+ /// - [`record_fields(impl Into)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::record_fields) / [`set_record_fields(Option>)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_record_fields):
required: **false**

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.


/// - [`field_delimiter(impl Into)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::field_delimiter) / [`set_field_delimiter(Option)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_field_delimiter):
required: **false**

The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.


- /// - [`s3_delivery_configuration(S3DeliveryConfiguration)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::s3_delivery_configuration) / [`set_s3_delivery_configuration(Option)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_s3_delivery_configuration):
required: **false**

This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket.


+ /// - [`s3_delivery_configuration(S3DeliveryConfiguration)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::s3_delivery_configuration) / [`set_s3_delivery_configuration(Option)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_s3_delivery_configuration):
required: **false**

This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket.


/// - [`tags(impl Into, impl Into)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::tags) / [`set_tags(Option>)`](crate::operation::create_delivery::builders::CreateDeliveryFluentBuilder::set_tags):
required: **false**

An optional list of key-value pairs to associate with the resource.

For more information about tagging, see Tagging Amazon Web Services resources


/// - On success, responds with [`CreateDeliveryOutput`](crate::operation::create_delivery::CreateDeliveryOutput) with field(s): /// - [`delivery(Option)`](crate::operation::create_delivery::CreateDeliveryOutput::delivery):

A structure that contains information about the delivery that you just created.

diff --git a/sdk/cloudwatchlogs/src/client/create_export_task.rs b/sdk/cloudwatchlogs/src/client/create_export_task.rs index 97659cca9666..5acd743e15e3 100644 --- a/sdk/cloudwatchlogs/src/client/create_export_task.rs +++ b/sdk/cloudwatchlogs/src/client/create_export_task.rs @@ -9,7 +9,7 @@ impl super::Client { /// - [`from(i64)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::from) / [`set_from(Option)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_from):
required: **true**

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.


/// - [`to(i64)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::to) / [`set_to(Option)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_to):
required: **true**

The end 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 later than this time are not exported.

You must specify a time that is not earlier than when this log group was created.


/// - [`destination(impl Into)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::destination) / [`set_destination(Option)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_destination):
required: **true**

The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region.


- /// - [`destination_prefix(impl Into)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::destination_prefix) / [`set_destination_prefix(Option)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_destination_prefix):
required: **false**

The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs.


+ /// - [`destination_prefix(impl Into)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::destination_prefix) / [`set_destination_prefix(Option)`](crate::operation::create_export_task::builders::CreateExportTaskFluentBuilder::set_destination_prefix):
required: **false**

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.


/// - On success, responds with [`CreateExportTaskOutput`](crate::operation::create_export_task::CreateExportTaskOutput) with field(s): /// - [`task_id(Option)`](crate::operation::create_export_task::CreateExportTaskOutput::task_id):

The ID of the export task.

/// - On failure, responds with [`SdkError`](crate::operation::create_export_task::CreateExportTaskError) diff --git a/sdk/cloudwatchlogs/src/client/start_query.rs b/sdk/cloudwatchlogs/src/client/start_query.rs index ce742b59d64f..e1b822cc886d 100644 --- a/sdk/cloudwatchlogs/src/client/start_query.rs +++ b/sdk/cloudwatchlogs/src/client/start_query.rs @@ -9,7 +9,7 @@ impl super::Client { /// - [`start_time(i64)`](crate::operation::start_query::builders::StartQueryFluentBuilder::start_time) / [`set_start_time(Option)`](crate::operation::start_query::builders::StartQueryFluentBuilder::set_start_time):
required: **true**

The beginning of the time range to query. The range is inclusive, so the specified start time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.


/// - [`end_time(i64)`](crate::operation::start_query::builders::StartQueryFluentBuilder::end_time) / [`set_end_time(Option)`](crate::operation::start_query::builders::StartQueryFluentBuilder::set_end_time):
required: **true**

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.


/// - [`query_string(impl Into)`](crate::operation::start_query::builders::StartQueryFluentBuilder::query_string) / [`set_query_string(Option)`](crate::operation::start_query::builders::StartQueryFluentBuilder::set_query_string):
required: **true**

The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.


- /// - [`limit(i32)`](crate::operation::start_query::builders::StartQueryFluentBuilder::limit) / [`set_limit(Option)`](crate::operation::start_query::builders::StartQueryFluentBuilder::set_limit):
required: **false**

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.


+ /// - [`limit(i32)`](crate::operation::start_query::builders::StartQueryFluentBuilder::limit) / [`set_limit(Option)`](crate::operation::start_query::builders::StartQueryFluentBuilder::set_limit):
required: **false**

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.


/// - On success, responds with [`StartQueryOutput`](crate::operation::start_query::StartQueryOutput) with field(s): /// - [`query_id(Option)`](crate::operation::start_query::StartQueryOutput::query_id):

The unique ID of the query.

/// - On failure, responds with [`SdkError`](crate::operation::start_query::StartQueryError) diff --git a/sdk/cloudwatchlogs/src/client/update_delivery_configuration.rs b/sdk/cloudwatchlogs/src/client/update_delivery_configuration.rs index cf717185a827..4d9e315a736c 100644 --- a/sdk/cloudwatchlogs/src/client/update_delivery_configuration.rs +++ b/sdk/cloudwatchlogs/src/client/update_delivery_configuration.rs @@ -4,9 +4,9 @@ impl super::Client { /// /// - The fluent builder is configurable: /// - [`id(impl Into)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::id) / [`set_id(Option)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::set_id):
required: **true**

The ID of the delivery to be updated by this request.


- /// - [`record_fields(impl Into)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::record_fields) / [`set_record_fields(Option>)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::set_record_fields):
required: **false**

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.


+ /// - [`record_fields(impl Into)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::record_fields) / [`set_record_fields(Option>)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::set_record_fields):
required: **false**

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.


/// - [`field_delimiter(impl Into)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::field_delimiter) / [`set_field_delimiter(Option)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::set_field_delimiter):
required: **false**

The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.


- /// - [`s3_delivery_configuration(S3DeliveryConfiguration)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::s3_delivery_configuration) / [`set_s3_delivery_configuration(Option)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::set_s3_delivery_configuration):
required: **false**

This structure contains parameters that are valid only when the delivery’s delivery destination is an S3 bucket.


+ /// - [`s3_delivery_configuration(S3DeliveryConfiguration)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::s3_delivery_configuration) / [`set_s3_delivery_configuration(Option)`](crate::operation::update_delivery_configuration::builders::UpdateDeliveryConfigurationFluentBuilder::set_s3_delivery_configuration):
required: **false**

This structure contains parameters that are valid only when the delivery's delivery destination is an S3 bucket.


/// - On success, responds with [`UpdateDeliveryConfigurationOutput`](crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationOutput) /// - On failure, responds with [`SdkError`](crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError) pub fn update_delivery_configuration( diff --git a/sdk/cloudwatchlogs/src/operation/create_delivery/_create_delivery_input.rs b/sdk/cloudwatchlogs/src/operation/create_delivery/_create_delivery_input.rs index fc42f41b5d09..9e3460efb4f2 100644 --- a/sdk/cloudwatchlogs/src/operation/create_delivery/_create_delivery_input.rs +++ b/sdk/cloudwatchlogs/src/operation/create_delivery/_create_delivery_input.rs @@ -7,11 +7,11 @@ pub struct CreateDeliveryInput { pub delivery_source_name: ::std::option::Option<::std::string::String>, ///

The ARN of the delivery destination to use for this delivery.

pub delivery_destination_arn: ::std::option::Option<::std::string::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.

pub record_fields: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.

pub field_delimiter: ::std::option::Option<::std::string::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.

pub s3_delivery_configuration: ::std::option::Option, ///

An optional list of key-value pairs to associate with the resource.

///

For more information about tagging, see Tagging Amazon Web Services resources

@@ -26,7 +26,7 @@ impl CreateDeliveryInput { pub fn delivery_destination_arn(&self) -> ::std::option::Option<&str> { self.delivery_destination_arn.as_deref() } - ///

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.

/// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.record_fields.is_none()`. pub fn record_fields(&self) -> &[::std::string::String] { @@ -36,7 +36,7 @@ impl CreateDeliveryInput { pub fn field_delimiter(&self) -> ::std::option::Option<&str> { self.field_delimiter.as_deref() } - ///

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.

pub fn s3_delivery_configuration(&self) -> ::std::option::Option<&crate::types::S3DeliveryConfiguration> { self.s3_delivery_configuration.as_ref() } @@ -99,19 +99,19 @@ impl CreateDeliveryInputBuilder { /// /// To override the contents of this collection use [`set_record_fields`](Self::set_record_fields). /// - ///

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.

pub fn record_fields(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.record_fields.unwrap_or_default(); v.push(input.into()); self.record_fields = ::std::option::Option::Some(v); self } - ///

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.

pub fn set_record_fields(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.record_fields = input; self } - ///

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.

pub fn get_record_fields(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.record_fields } @@ -129,17 +129,17 @@ impl CreateDeliveryInputBuilder { pub fn get_field_delimiter(&self) -> &::std::option::Option<::std::string::String> { &self.field_delimiter } - ///

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.

pub fn s3_delivery_configuration(mut self, input: crate::types::S3DeliveryConfiguration) -> Self { self.s3_delivery_configuration = ::std::option::Option::Some(input); self } - ///

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.

pub fn set_s3_delivery_configuration(mut self, input: ::std::option::Option) -> Self { self.s3_delivery_configuration = input; self } - ///

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.

pub fn get_s3_delivery_configuration(&self) -> &::std::option::Option { &self.s3_delivery_configuration } diff --git a/sdk/cloudwatchlogs/src/operation/create_delivery/builders.rs b/sdk/cloudwatchlogs/src/operation/create_delivery/builders.rs index e1825c4bf148..3400faf2d56c 100644 --- a/sdk/cloudwatchlogs/src/operation/create_delivery/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/create_delivery/builders.rs @@ -37,7 +37,7 @@ impl crate::operation::create_delivery::builders::CreateDeliveryInputBuilder { ///

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.

+///

To update an existing delivery configuration, use UpdateDeliveryConfiguration.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct CreateDeliveryFluentBuilder { handle: ::std::sync::Arc, @@ -156,17 +156,17 @@ impl CreateDeliveryFluentBuilder { /// /// To override the contents of this collection use [`set_record_fields`](Self::set_record_fields). /// - ///

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.

pub fn record_fields(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.record_fields(input.into()); self } - ///

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.

pub fn set_record_fields(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.inner = self.inner.set_record_fields(input); self } - ///

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.

pub fn get_record_fields(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { self.inner.get_record_fields() } @@ -184,17 +184,17 @@ impl CreateDeliveryFluentBuilder { pub fn get_field_delimiter(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_field_delimiter() } - ///

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.

pub fn s3_delivery_configuration(mut self, input: crate::types::S3DeliveryConfiguration) -> Self { self.inner = self.inner.s3_delivery_configuration(input); self } - ///

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.

pub fn set_s3_delivery_configuration(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_s3_delivery_configuration(input); self } - ///

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.

pub fn get_s3_delivery_configuration(&self) -> &::std::option::Option { self.inner.get_s3_delivery_configuration() } diff --git a/sdk/cloudwatchlogs/src/operation/create_export_task/_create_export_task_input.rs b/sdk/cloudwatchlogs/src/operation/create_export_task/_create_export_task_input.rs index f9391ac5e986..8d747688244b 100644 --- a/sdk/cloudwatchlogs/src/operation/create_export_task/_create_export_task_input.rs +++ b/sdk/cloudwatchlogs/src/operation/create_export_task/_create_export_task_input.rs @@ -17,6 +17,7 @@ pub struct CreateExportTaskInput { ///

The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region.

pub destination: ::std::option::Option<::std::string::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 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.

pub destination_prefix: ::std::option::Option<::std::string::String>, } impl CreateExportTaskInput { @@ -46,6 +47,7 @@ impl CreateExportTaskInput { self.destination.as_deref() } ///

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.

pub fn destination_prefix(&self) -> ::std::option::Option<&str> { self.destination_prefix.as_deref() } @@ -162,16 +164,19 @@ impl CreateExportTaskInputBuilder { &self.destination } ///

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.

pub fn destination_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.destination_prefix = ::std::option::Option::Some(input.into()); self } ///

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.

pub fn set_destination_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.destination_prefix = input; self } ///

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.

pub fn get_destination_prefix(&self) -> &::std::option::Option<::std::string::String> { &self.destination_prefix } diff --git a/sdk/cloudwatchlogs/src/operation/create_export_task/builders.rs b/sdk/cloudwatchlogs/src/operation/create_export_task/builders.rs index 9b4daf1827d9..6a4702593650 100644 --- a/sdk/cloudwatchlogs/src/operation/create_export_task/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/create_export_task/builders.rs @@ -202,16 +202,19 @@ impl CreateExportTaskFluentBuilder { self.inner.get_destination() } ///

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.

pub fn destination_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.destination_prefix(input.into()); self } ///

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.

pub fn set_destination_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.inner = self.inner.set_destination_prefix(input); self } ///

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.

pub fn get_destination_prefix(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_destination_prefix() } diff --git a/sdk/cloudwatchlogs/src/operation/describe_log_groups/builders.rs b/sdk/cloudwatchlogs/src/operation/describe_log_groups/builders.rs index 7923b5757b96..a324a4ee04f9 100644 --- a/sdk/cloudwatchlogs/src/operation/describe_log_groups/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/describe_log_groups/builders.rs @@ -23,7 +23,7 @@ impl crate::operation::describe_log_groups::builders::DescribeLogGroupsInputBuil /// Fluent builder constructing a request to `DescribeLogGroups`. /// ///

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.

+///

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.

///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct DescribeLogGroupsFluentBuilder { diff --git a/sdk/cloudwatchlogs/src/operation/put_retention_policy/builders.rs b/sdk/cloudwatchlogs/src/operation/put_retention_policy/builders.rs index 2d762cb5dc3b..9d58a69cb62f 100644 --- a/sdk/cloudwatchlogs/src/operation/put_retention_policy/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/put_retention_policy/builders.rs @@ -23,8 +23,8 @@ impl crate::operation::put_retention_policy::builders::PutRetentionPolicyInputBu /// Fluent builder constructing a request to `PutRetentionPolicy`. /// ///

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.

+///

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.

///
#[derive(::std::clone::Clone, ::std::fmt::Debug)] diff --git a/sdk/cloudwatchlogs/src/operation/start_query/_start_query_input.rs b/sdk/cloudwatchlogs/src/operation/start_query/_start_query_input.rs index 7cfd2e4d099e..9ce0422c7fc2 100644 --- a/sdk/cloudwatchlogs/src/operation/start_query/_start_query_input.rs +++ b/sdk/cloudwatchlogs/src/operation/start_query/_start_query_input.rs @@ -22,7 +22,7 @@ pub struct StartQueryInput { pub end_time: ::std::option::Option, ///

The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.

pub query_string: ::std::option::Option<::std::string::String>, - ///

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.

pub limit: ::std::option::Option, } impl StartQueryInput { @@ -61,7 +61,7 @@ impl StartQueryInput { pub fn query_string(&self) -> ::std::option::Option<&str> { self.query_string.as_deref() } - ///

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.

pub fn limit(&self) -> ::std::option::Option { self.limit } @@ -206,17 +206,17 @@ impl StartQueryInputBuilder { pub fn get_query_string(&self) -> &::std::option::Option<::std::string::String> { &self.query_string } - ///

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.

pub fn limit(mut self, input: i32) -> Self { self.limit = ::std::option::Option::Some(input); self } - ///

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.

pub fn set_limit(mut self, input: ::std::option::Option) -> Self { self.limit = input; self } - ///

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.

pub fn get_limit(&self) -> &::std::option::Option { &self.limit } diff --git a/sdk/cloudwatchlogs/src/operation/start_query/builders.rs b/sdk/cloudwatchlogs/src/operation/start_query/builders.rs index e714b42a0ae9..070f6111df18 100644 --- a/sdk/cloudwatchlogs/src/operation/start_query/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/start_query/builders.rs @@ -229,17 +229,17 @@ impl StartQueryFluentBuilder { pub fn get_query_string(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_query_string() } - ///

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.

pub fn limit(mut self, input: i32) -> Self { self.inner = self.inner.limit(input); self } - ///

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.

pub fn set_limit(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_limit(input); self } - ///

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.

pub fn get_limit(&self) -> &::std::option::Option { self.inner.get_limit() } diff --git a/sdk/cloudwatchlogs/src/operation/tag_log_group/builders.rs b/sdk/cloudwatchlogs/src/operation/tag_log_group/builders.rs index 9047d9b7c1d5..6495ebd47086 100644 --- a/sdk/cloudwatchlogs/src/operation/tag_log_group/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/tag_log_group/builders.rs @@ -28,7 +28,7 @@ impl crate::operation::tag_log_group::builders::TagLogGroupInputBuilder { ///

Adds or updates the specified tags for the specified log group.

///

To list the tags for a log group, use ListTagsForResource. To remove tags, use UntagResource.

///

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs 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.

+///

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.

#[deprecated(note = "Please use the generic tagging API TagResource")] #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct TagLogGroupFluentBuilder { diff --git a/sdk/cloudwatchlogs/src/operation/untag_log_group/builders.rs b/sdk/cloudwatchlogs/src/operation/untag_log_group/builders.rs index 4e0cddf97a91..89bbdd620169 100644 --- a/sdk/cloudwatchlogs/src/operation/untag_log_group/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/untag_log_group/builders.rs @@ -27,7 +27,7 @@ impl crate::operation::untag_log_group::builders::UntagLogGroupInputBuilder { /// ///

Removes the specified tags from the specified log group.

///

To list the tags for a log group, use ListTagsForResource. To add tags, use TagResource.

-///

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.

+///

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.

#[deprecated(note = "Please use the generic tagging API UntagResource")] #[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct UntagLogGroupFluentBuilder { diff --git a/sdk/cloudwatchlogs/src/operation/update_anomaly/builders.rs b/sdk/cloudwatchlogs/src/operation/update_anomaly/builders.rs index e0bc0de83809..9ceb7445cfd7 100644 --- a/sdk/cloudwatchlogs/src/operation/update_anomaly/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/update_anomaly/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::update_anomaly::builders::UpdateAnomalyInputBuilder { } /// Fluent builder constructing a request to `UpdateAnomaly`. /// -///

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.

+///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] diff --git a/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/_update_delivery_configuration_input.rs b/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/_update_delivery_configuration_input.rs index 7fe87efeef02..c556ce0b5618 100644 --- a/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/_update_delivery_configuration_input.rs +++ b/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/_update_delivery_configuration_input.rs @@ -5,11 +5,11 @@ pub struct UpdateDeliveryConfigurationInput { ///

The ID of the delivery to be updated by this request.

pub id: ::std::option::Option<::std::string::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.

pub record_fields: ::std::option::Option<::std::vec::Vec<::std::string::String>>, ///

The field delimiter to use between record fields when the final output format of a delivery is in Plain, W3C, or Raw format.

pub field_delimiter: ::std::option::Option<::std::string::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.

pub s3_delivery_configuration: ::std::option::Option, } impl UpdateDeliveryConfigurationInput { @@ -17,7 +17,7 @@ impl UpdateDeliveryConfigurationInput { pub fn id(&self) -> ::std::option::Option<&str> { self.id.as_deref() } - ///

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.

/// /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.record_fields.is_none()`. pub fn record_fields(&self) -> &[::std::string::String] { @@ -27,7 +27,7 @@ impl UpdateDeliveryConfigurationInput { pub fn field_delimiter(&self) -> ::std::option::Option<&str> { self.field_delimiter.as_deref() } - ///

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.

pub fn s3_delivery_configuration(&self) -> ::std::option::Option<&crate::types::S3DeliveryConfiguration> { self.s3_delivery_configuration.as_ref() } @@ -68,19 +68,19 @@ impl UpdateDeliveryConfigurationInputBuilder { /// /// To override the contents of this collection use [`set_record_fields`](Self::set_record_fields). /// - ///

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.

pub fn record_fields(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { let mut v = self.record_fields.unwrap_or_default(); v.push(input.into()); self.record_fields = ::std::option::Option::Some(v); self } - ///

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.

pub fn set_record_fields(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.record_fields = input; self } - ///

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.

pub fn get_record_fields(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { &self.record_fields } @@ -98,17 +98,17 @@ impl UpdateDeliveryConfigurationInputBuilder { pub fn get_field_delimiter(&self) -> &::std::option::Option<::std::string::String> { &self.field_delimiter } - ///

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.

pub fn s3_delivery_configuration(mut self, input: crate::types::S3DeliveryConfiguration) -> Self { self.s3_delivery_configuration = ::std::option::Option::Some(input); self } - ///

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.

pub fn set_s3_delivery_configuration(mut self, input: ::std::option::Option) -> Self { self.s3_delivery_configuration = input; self } - ///

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.

pub fn get_s3_delivery_configuration(&self) -> &::std::option::Option { &self.s3_delivery_configuration } diff --git a/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/builders.rs b/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/builders.rs index ffb8b7b7c8fa..15eb2c115ca0 100644 --- a/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/builders.rs +++ b/sdk/cloudwatchlogs/src/operation/update_delivery_configuration/builders.rs @@ -127,17 +127,17 @@ impl UpdateDeliveryConfigurationFluentBuilder { /// /// To override the contents of this collection use [`set_record_fields`](Self::set_record_fields). /// - ///

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.

pub fn record_fields(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.inner = self.inner.record_fields(input.into()); self } - ///

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.

pub fn set_record_fields(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self { self.inner = self.inner.set_record_fields(input); self } - ///

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.

pub fn get_record_fields(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> { self.inner.get_record_fields() } @@ -155,17 +155,17 @@ impl UpdateDeliveryConfigurationFluentBuilder { pub fn get_field_delimiter(&self) -> &::std::option::Option<::std::string::String> { self.inner.get_field_delimiter() } - ///

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.

pub fn s3_delivery_configuration(mut self, input: crate::types::S3DeliveryConfiguration) -> Self { self.inner = self.inner.s3_delivery_configuration(input); self } - ///

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.

pub fn set_s3_delivery_configuration(mut self, input: ::std::option::Option) -> Self { self.inner = self.inner.set_s3_delivery_configuration(input); self } - ///

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.

pub fn get_s3_delivery_configuration(&self) -> &::std::option::Option { self.inner.get_s3_delivery_configuration() } diff --git a/sdk/cloudwatchlogs/src/protocol_serde/shape_pattern_token.rs b/sdk/cloudwatchlogs/src/protocol_serde/shape_pattern_token.rs index 4dd1aee8e070..edea36e35689 100644 --- a/sdk/cloudwatchlogs/src/protocol_serde/shape_pattern_token.rs +++ b/sdk/cloudwatchlogs/src/protocol_serde/shape_pattern_token.rs @@ -34,6 +34,13 @@ where "enumerations" => { builder = builder.set_enumerations(crate::protocol_serde::shape_enumerations::de_enumerations(tokens)?); } + "inferredTokenName" => { + builder = builder.set_inferred_token_name( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/cloudwatchlogs/src/types/_configuration_template.rs b/sdk/cloudwatchlogs/src/types/_configuration_template.rs index 3deb43921de0..1d40919d00ab 100644 --- a/sdk/cloudwatchlogs/src/types/_configuration_template.rs +++ b/sdk/cloudwatchlogs/src/types/_configuration_template.rs @@ -12,7 +12,7 @@ pub struct ConfigurationTemplate { pub resource_type: ::std::option::Option<::std::string::String>, ///

A string specifying which destination type this configuration template applies to.

pub delivery_destination_type: ::std::option::Option, - ///

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.

pub default_delivery_config_values: ::std::option::Option, ///

The allowed fields that a caller can use in the recordFields parameter of a CreateDelivery or UpdateDeliveryConfiguration operation.

pub allowed_fields: ::std::option::Option<::std::vec::Vec>, @@ -42,7 +42,7 @@ impl ConfigurationTemplate { pub fn delivery_destination_type(&self) -> ::std::option::Option<&crate::types::DeliveryDestinationType> { self.delivery_destination_type.as_ref() } - ///

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.

pub fn default_delivery_config_values(&self) -> ::std::option::Option<&crate::types::ConfigurationTemplateDeliveryConfigValues> { self.default_delivery_config_values.as_ref() } @@ -154,12 +154,12 @@ impl ConfigurationTemplateBuilder { pub fn get_delivery_destination_type(&self) -> &::std::option::Option { &self.delivery_destination_type } - ///

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.

pub fn default_delivery_config_values(mut self, input: crate::types::ConfigurationTemplateDeliveryConfigValues) -> Self { self.default_delivery_config_values = ::std::option::Option::Some(input); self } - ///

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.

pub fn set_default_delivery_config_values( mut self, input: ::std::option::Option, @@ -167,7 +167,7 @@ impl ConfigurationTemplateBuilder { self.default_delivery_config_values = input; self } - ///

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.

pub fn get_default_delivery_config_values(&self) -> &::std::option::Option { &self.default_delivery_config_values } diff --git a/sdk/cloudwatchlogs/src/types/_delivery.rs b/sdk/cloudwatchlogs/src/types/_delivery.rs index b7be1e7f742e..214b3f1b7924 100644 --- a/sdk/cloudwatchlogs/src/types/_delivery.rs +++ b/sdk/cloudwatchlogs/src/types/_delivery.rs @@ -3,7 +3,7 @@ ///

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.

-///

You can't update an existing delivery. You can only create and delete deliveries.

+///

To update an existing delivery configuration, use UpdateDeliveryConfiguration.

#[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct Delivery { diff --git a/sdk/cloudwatchlogs/src/types/_pattern_token.rs b/sdk/cloudwatchlogs/src/types/_pattern_token.rs index 9b143949eb3e..db481603133d 100644 --- a/sdk/cloudwatchlogs/src/types/_pattern_token.rs +++ b/sdk/cloudwatchlogs/src/types/_pattern_token.rs @@ -13,6 +13,9 @@ pub struct PatternToken { pub token_string: ::std::option::Option<::std::string::String>, ///

Contains the values found for a dynamic token, and the number of times each value was found.

pub enumerations: ::std::option::Option<::std::collections::HashMap<::std::string::String, i64>>, + ///

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.

+ pub inferred_token_name: ::std::option::Option<::std::string::String>, } impl PatternToken { ///

For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens. The dynamic token that appears first has a value of 1, the one that appears second is 2, and so on.

@@ -31,6 +34,11 @@ impl PatternToken { pub fn enumerations(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, i64>> { self.enumerations.as_ref() } + ///

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.

+ pub fn inferred_token_name(&self) -> ::std::option::Option<&str> { + self.inferred_token_name.as_deref() + } } impl PatternToken { /// Creates a new builder-style object to manufacture [`PatternToken`](crate::types::PatternToken). @@ -47,6 +55,7 @@ pub struct PatternTokenBuilder { pub(crate) is_dynamic: ::std::option::Option, pub(crate) token_string: ::std::option::Option<::std::string::String>, pub(crate) enumerations: ::std::option::Option<::std::collections::HashMap<::std::string::String, i64>>, + pub(crate) inferred_token_name: ::std::option::Option<::std::string::String>, } impl PatternTokenBuilder { ///

For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens. The dynamic token that appears first has a value of 1, the one that appears second is 2, and so on.

@@ -111,6 +120,23 @@ impl PatternTokenBuilder { pub fn get_enumerations(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, i64>> { &self.enumerations } + ///

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.

+ pub fn inferred_token_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.inferred_token_name = ::std::option::Option::Some(input.into()); + self + } + ///

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.

+ pub fn set_inferred_token_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.inferred_token_name = input; + self + } + ///

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.

+ pub fn get_inferred_token_name(&self) -> &::std::option::Option<::std::string::String> { + &self.inferred_token_name + } /// Consumes the builder and constructs a [`PatternToken`](crate::types::PatternToken). pub fn build(self) -> crate::types::PatternToken { crate::types::PatternToken { @@ -118,6 +144,7 @@ impl PatternTokenBuilder { is_dynamic: self.is_dynamic, token_string: self.token_string, enumerations: self.enumerations, + inferred_token_name: self.inferred_token_name, } } } diff --git a/sdk/codebuild/src/client/create_project.rs b/sdk/codebuild/src/client/create_project.rs index be323152d685..f93eff189c44 100644 --- a/sdk/codebuild/src/client/create_project.rs +++ b/sdk/codebuild/src/client/create_project.rs @@ -24,6 +24,7 @@ impl super::Client { /// - [`file_system_locations(ProjectFileSystemLocation)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::file_system_locations) / [`set_file_system_locations(Option>)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_file_system_locations):
required: **false**

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.


/// - [`build_batch_config(ProjectBuildBatchConfig)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::build_batch_config) / [`set_build_batch_config(Option)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_build_batch_config):
required: **false**

A ProjectBuildBatchConfig object that defines the batch build options for the project.


/// - [`concurrent_build_limit(i32)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::concurrent_build_limit) / [`set_concurrent_build_limit(Option)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_concurrent_build_limit):
required: **false**

The maximum number of concurrent builds that are allowed for this project.

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.


+ /// - [`auto_retry_limit(i32)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::auto_retry_limit) / [`set_auto_retry_limit(Option)`](crate::operation::create_project::builders::CreateProjectFluentBuilder::set_auto_retry_limit):
required: **false**

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.


/// - On success, responds with [`CreateProjectOutput`](crate::operation::create_project::CreateProjectOutput) with field(s): /// - [`project(Option)`](crate::operation::create_project::CreateProjectOutput::project):

Information about the build project that was created.

/// - On failure, responds with [`SdkError`](crate::operation::create_project::CreateProjectError) diff --git a/sdk/codebuild/src/client/start_build.rs b/sdk/codebuild/src/client/start_build.rs index 9700bed9462a..dcb334178c98 100644 --- a/sdk/codebuild/src/client/start_build.rs +++ b/sdk/codebuild/src/client/start_build.rs @@ -35,6 +35,7 @@ impl super::Client { /// - [`image_pull_credentials_type_override(ImagePullCredentialsType)`](crate::operation::start_build::builders::StartBuildFluentBuilder::image_pull_credentials_type_override) / [`set_image_pull_credentials_type_override(Option)`](crate::operation::start_build::builders::StartBuildFluentBuilder::set_image_pull_credentials_type_override):
required: **false**

The type of credentials CodeBuild uses to pull images in your build. There are two valid values:

CODEBUILD

Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.

SERVICE_ROLE

Specifies that CodeBuild uses your build project's service role.

When using a cross-account or private registry image, you must use SERVICE_ROLE credentials. When using an CodeBuild curated image, you must use CODEBUILD credentials.


/// - [`debug_session_enabled(bool)`](crate::operation::start_build::builders::StartBuildFluentBuilder::debug_session_enabled) / [`set_debug_session_enabled(Option)`](crate::operation::start_build::builders::StartBuildFluentBuilder::set_debug_session_enabled):
required: **false**

Specifies if session debugging is enabled for this build. For more information, see Viewing a running build in Session Manager.


/// - [`fleet_override(ProjectFleet)`](crate::operation::start_build::builders::StartBuildFluentBuilder::fleet_override) / [`set_fleet_override(Option)`](crate::operation::start_build::builders::StartBuildFluentBuilder::set_fleet_override):
required: **false**

A ProjectFleet object specified for this build that overrides the one defined in the build project.


+ /// - [`auto_retry_limit_override(i32)`](crate::operation::start_build::builders::StartBuildFluentBuilder::auto_retry_limit_override) / [`set_auto_retry_limit_override(Option)`](crate::operation::start_build::builders::StartBuildFluentBuilder::set_auto_retry_limit_override):
required: **false**

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.


/// - On success, responds with [`StartBuildOutput`](crate::operation::start_build::StartBuildOutput) with field(s): /// - [`build_value(Option)`](crate::operation::start_build::StartBuildOutput::build_value):

Information about the build to be run.

/// - On failure, responds with [`SdkError`](crate::operation::start_build::StartBuildError) diff --git a/sdk/codebuild/src/client/update_project.rs b/sdk/codebuild/src/client/update_project.rs index 895051b6452e..00d7cbddf1dd 100644 --- a/sdk/codebuild/src/client/update_project.rs +++ b/sdk/codebuild/src/client/update_project.rs @@ -24,6 +24,7 @@ impl super::Client { /// - [`file_system_locations(ProjectFileSystemLocation)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::file_system_locations) / [`set_file_system_locations(Option>)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::set_file_system_locations):
required: **false**

An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.


/// - [`build_batch_config(ProjectBuildBatchConfig)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::build_batch_config) / [`set_build_batch_config(Option)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::set_build_batch_config):
required: **false**

Contains configuration information about a batch build project.


/// - [`concurrent_build_limit(i32)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::concurrent_build_limit) / [`set_concurrent_build_limit(Option)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::set_concurrent_build_limit):
required: **false**

The maximum number of concurrent builds that are allowed for this project.

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

To remove this limit, set this value to -1.


+ /// - [`auto_retry_limit(i32)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::auto_retry_limit) / [`set_auto_retry_limit(Option)`](crate::operation::update_project::builders::UpdateProjectFluentBuilder::set_auto_retry_limit):
required: **false**

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.


/// - On success, responds with [`UpdateProjectOutput`](crate::operation::update_project::UpdateProjectOutput) with field(s): /// - [`project(Option)`](crate::operation::update_project::UpdateProjectOutput::project):

Information about the build project that was changed.

/// - On failure, responds with [`SdkError`](crate::operation::update_project::UpdateProjectError) diff --git a/sdk/codebuild/src/operation/create_project/_create_project_input.rs b/sdk/codebuild/src/operation/create_project/_create_project_input.rs index 57120cd6e148..e298ac08ad76 100644 --- a/sdk/codebuild/src/operation/create_project/_create_project_input.rs +++ b/sdk/codebuild/src/operation/create_project/_create_project_input.rs @@ -66,6 +66,8 @@ pub struct CreateProjectInput { ///

The maximum number of concurrent builds that are allowed for this project.

///

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

pub concurrent_build_limit: ::std::option::Option, + ///

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.

+ pub auto_retry_limit: ::std::option::Option, } impl CreateProjectInput { ///

The name of the build project.

@@ -183,6 +185,10 @@ impl CreateProjectInput { pub fn concurrent_build_limit(&self) -> ::std::option::Option { self.concurrent_build_limit } + ///

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.

+ pub fn auto_retry_limit(&self) -> ::std::option::Option { + self.auto_retry_limit + } } impl CreateProjectInput { /// Creates a new builder-style object to manufacture [`CreateProjectInput`](crate::operation::create_project::CreateProjectInput). @@ -216,6 +222,7 @@ pub struct CreateProjectInputBuilder { pub(crate) file_system_locations: ::std::option::Option<::std::vec::Vec>, pub(crate) build_batch_config: ::std::option::Option, pub(crate) concurrent_build_limit: ::std::option::Option, + pub(crate) auto_retry_limit: ::std::option::Option, } impl CreateProjectInputBuilder { ///

The name of the build project.

@@ -610,6 +617,20 @@ impl CreateProjectInputBuilder { pub fn get_concurrent_build_limit(&self) -> &::std::option::Option { &self.concurrent_build_limit } + ///

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.

+ pub fn auto_retry_limit(mut self, input: i32) -> Self { + self.auto_retry_limit = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_limit = input; + self + } + ///

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.

+ pub fn get_auto_retry_limit(&self) -> &::std::option::Option { + &self.auto_retry_limit + } /// Consumes the builder and constructs a [`CreateProjectInput`](crate::operation::create_project::CreateProjectInput). pub fn build( self, @@ -636,6 +657,7 @@ impl CreateProjectInputBuilder { file_system_locations: self.file_system_locations, build_batch_config: self.build_batch_config, concurrent_build_limit: self.concurrent_build_limit, + auto_retry_limit: self.auto_retry_limit, }) } } diff --git a/sdk/codebuild/src/operation/create_project/builders.rs b/sdk/codebuild/src/operation/create_project/builders.rs index c6c108c7c52d..3ed30d2ab955 100644 --- a/sdk/codebuild/src/operation/create_project/builders.rs +++ b/sdk/codebuild/src/operation/create_project/builders.rs @@ -490,4 +490,18 @@ impl CreateProjectFluentBuilder { pub fn get_concurrent_build_limit(&self) -> &::std::option::Option { self.inner.get_concurrent_build_limit() } + ///

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.

+ pub fn auto_retry_limit(mut self, input: i32) -> Self { + self.inner = self.inner.auto_retry_limit(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_auto_retry_limit(input); + self + } + ///

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.

+ pub fn get_auto_retry_limit(&self) -> &::std::option::Option { + self.inner.get_auto_retry_limit() + } } diff --git a/sdk/codebuild/src/operation/start_build/_start_build_input.rs b/sdk/codebuild/src/operation/start_build/_start_build_input.rs index a20e14432937..e34da686a179 100644 --- a/sdk/codebuild/src/operation/start_build/_start_build_input.rs +++ b/sdk/codebuild/src/operation/start_build/_start_build_input.rs @@ -125,6 +125,8 @@ pub struct StartBuildInput { pub debug_session_enabled: ::std::option::Option, ///

A ProjectFleet object specified for this build that overrides the one defined in the build project.

pub fleet_override: ::std::option::Option, + ///

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.

+ pub auto_retry_limit_override: ::std::option::Option, } impl StartBuildInput { ///

The name of the CodeBuild build project to start running a build.

@@ -321,6 +323,10 @@ impl StartBuildInput { pub fn fleet_override(&self) -> ::std::option::Option<&crate::types::ProjectFleet> { self.fleet_override.as_ref() } + ///

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.

+ pub fn auto_retry_limit_override(&self) -> ::std::option::Option { + self.auto_retry_limit_override + } } impl StartBuildInput { /// Creates a new builder-style object to manufacture [`StartBuildInput`](crate::operation::start_build::StartBuildInput). @@ -365,6 +371,7 @@ pub struct StartBuildInputBuilder { pub(crate) image_pull_credentials_type_override: ::std::option::Option, pub(crate) debug_session_enabled: ::std::option::Option, pub(crate) fleet_override: ::std::option::Option, + pub(crate) auto_retry_limit_override: ::std::option::Option, } impl StartBuildInputBuilder { ///

The name of the CodeBuild build project to start running a build.

@@ -1017,6 +1024,20 @@ impl StartBuildInputBuilder { pub fn get_fleet_override(&self) -> &::std::option::Option { &self.fleet_override } + ///

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.

+ pub fn auto_retry_limit_override(mut self, input: i32) -> Self { + self.auto_retry_limit_override = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit_override(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_limit_override = input; + self + } + ///

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.

+ pub fn get_auto_retry_limit_override(&self) -> &::std::option::Option { + &self.auto_retry_limit_override + } /// Consumes the builder and constructs a [`StartBuildInput`](crate::operation::start_build::StartBuildInput). pub fn build(self) -> ::std::result::Result { ::std::result::Result::Ok(crate::operation::start_build::StartBuildInput { @@ -1052,6 +1073,7 @@ impl StartBuildInputBuilder { image_pull_credentials_type_override: self.image_pull_credentials_type_override, debug_session_enabled: self.debug_session_enabled, fleet_override: self.fleet_override, + auto_retry_limit_override: self.auto_retry_limit_override, }) } } diff --git a/sdk/codebuild/src/operation/start_build/builders.rs b/sdk/codebuild/src/operation/start_build/builders.rs index 11009cd80334..f3188c08c10a 100644 --- a/sdk/codebuild/src/operation/start_build/builders.rs +++ b/sdk/codebuild/src/operation/start_build/builders.rs @@ -754,4 +754,18 @@ impl StartBuildFluentBuilder { pub fn get_fleet_override(&self) -> &::std::option::Option { self.inner.get_fleet_override() } + ///

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.

+ pub fn auto_retry_limit_override(mut self, input: i32) -> Self { + self.inner = self.inner.auto_retry_limit_override(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit_override(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_auto_retry_limit_override(input); + self + } + ///

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.

+ pub fn get_auto_retry_limit_override(&self) -> &::std::option::Option { + self.inner.get_auto_retry_limit_override() + } } diff --git a/sdk/codebuild/src/operation/update_project/_update_project_input.rs b/sdk/codebuild/src/operation/update_project/_update_project_input.rs index 6fa454f99e75..6c11a7d9ca5b 100644 --- a/sdk/codebuild/src/operation/update_project/_update_project_input.rs +++ b/sdk/codebuild/src/operation/update_project/_update_project_input.rs @@ -67,6 +67,8 @@ pub struct UpdateProjectInput { ///

New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

///

To remove this limit, set this value to -1.

pub concurrent_build_limit: ::std::option::Option, + ///

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.

+ pub auto_retry_limit: ::std::option::Option, } impl UpdateProjectInput { ///

The name of the build project.

@@ -185,6 +187,10 @@ impl UpdateProjectInput { pub fn concurrent_build_limit(&self) -> ::std::option::Option { self.concurrent_build_limit } + ///

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.

+ pub fn auto_retry_limit(&self) -> ::std::option::Option { + self.auto_retry_limit + } } impl UpdateProjectInput { /// Creates a new builder-style object to manufacture [`UpdateProjectInput`](crate::operation::update_project::UpdateProjectInput). @@ -218,6 +224,7 @@ pub struct UpdateProjectInputBuilder { pub(crate) file_system_locations: ::std::option::Option<::std::vec::Vec>, pub(crate) build_batch_config: ::std::option::Option, pub(crate) concurrent_build_limit: ::std::option::Option, + pub(crate) auto_retry_limit: ::std::option::Option, } impl UpdateProjectInputBuilder { ///

The name of the build project.

@@ -611,6 +618,20 @@ impl UpdateProjectInputBuilder { pub fn get_concurrent_build_limit(&self) -> &::std::option::Option { &self.concurrent_build_limit } + ///

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.

+ pub fn auto_retry_limit(mut self, input: i32) -> Self { + self.auto_retry_limit = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_limit = input; + self + } + ///

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.

+ pub fn get_auto_retry_limit(&self) -> &::std::option::Option { + &self.auto_retry_limit + } /// Consumes the builder and constructs a [`UpdateProjectInput`](crate::operation::update_project::UpdateProjectInput). pub fn build( self, @@ -637,6 +658,7 @@ impl UpdateProjectInputBuilder { file_system_locations: self.file_system_locations, build_batch_config: self.build_batch_config, concurrent_build_limit: self.concurrent_build_limit, + auto_retry_limit: self.auto_retry_limit, }) } } diff --git a/sdk/codebuild/src/operation/update_project/builders.rs b/sdk/codebuild/src/operation/update_project/builders.rs index 0c901423b17c..dc722f9bcc8a 100644 --- a/sdk/codebuild/src/operation/update_project/builders.rs +++ b/sdk/codebuild/src/operation/update_project/builders.rs @@ -493,4 +493,18 @@ impl UpdateProjectFluentBuilder { pub fn get_concurrent_build_limit(&self) -> &::std::option::Option { self.inner.get_concurrent_build_limit() } + ///

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.

+ pub fn auto_retry_limit(mut self, input: i32) -> Self { + self.inner = self.inner.auto_retry_limit(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit(mut self, input: ::std::option::Option) -> Self { + self.inner = self.inner.set_auto_retry_limit(input); + self + } + ///

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.

+ pub fn get_auto_retry_limit(&self) -> &::std::option::Option { + self.inner.get_auto_retry_limit() + } } diff --git a/sdk/codebuild/src/protocol_serde.rs b/sdk/codebuild/src/protocol_serde.rs index 22b9a77985b7..089b2f7ae827 100644 --- a/sdk/codebuild/src/protocol_serde.rs +++ b/sdk/codebuild/src/protocol_serde.rs @@ -339,6 +339,8 @@ pub(crate) mod shape_webhook; pub(crate) mod shape_webhook_filter; +pub(crate) mod shape_auto_retry_config; + pub(crate) mod shape_batch_restrictions; pub(crate) mod shape_build_artifacts; diff --git a/sdk/codebuild/src/protocol_serde/shape_auto_retry_config.rs b/sdk/codebuild/src/protocol_serde/shape_auto_retry_config.rs new file mode 100644 index 000000000000..6ddab94682c2 --- /dev/null +++ b/sdk/codebuild/src/protocol_serde/shape_auto_retry_config.rs @@ -0,0 +1,61 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn de_auto_retry_config<'a, I>( + tokens: &mut ::std::iter::Peekable, +) -> Result, ::aws_smithy_json::deserialize::error::DeserializeError> +where + I: Iterator, ::aws_smithy_json::deserialize::error::DeserializeError>>, +{ + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::types::builders::AutoRetryConfigBuilder::default(); + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "autoRetryLimit" => { + builder = builder.set_auto_retry_limit( + ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(i32::try_from) + .transpose()?, + ); + } + "autoRetryNumber" => { + builder = builder.set_auto_retry_number( + ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(i32::try_from) + .transpose()?, + ); + } + "nextAutoRetry" => { + builder = builder.set_next_auto_retry( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "previousAutoRetry" => { + builder = builder.set_previous_auto_retry( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + Ok(Some(builder.build())) + } + _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/codebuild/src/protocol_serde/shape_build.rs b/sdk/codebuild/src/protocol_serde/shape_build.rs index 7608b526fc22..fe8e47657532 100644 --- a/sdk/codebuild/src/protocol_serde/shape_build.rs +++ b/sdk/codebuild/src/protocol_serde/shape_build.rs @@ -179,6 +179,9 @@ where .transpose()?, ); } + "autoRetryConfig" => { + builder = builder.set_auto_retry_config(crate::protocol_serde::shape_auto_retry_config::de_auto_retry_config(tokens)?); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/codebuild/src/protocol_serde/shape_create_project_input.rs b/sdk/codebuild/src/protocol_serde/shape_create_project_input.rs index d648b5abc243..62ee7578fa1c 100644 --- a/sdk/codebuild/src/protocol_serde/shape_create_project_input.rs +++ b/sdk/codebuild/src/protocol_serde/shape_create_project_input.rs @@ -141,5 +141,11 @@ pub fn ser_create_project_input_input( ::aws_smithy_types::Number::NegInt((*var_43).into()), ); } + if let Some(var_44) = &input.auto_retry_limit { + object.key("autoRetryLimit").number( + #[allow(clippy::useless_conversion)] + ::aws_smithy_types::Number::NegInt((*var_44).into()), + ); + } Ok(()) } diff --git a/sdk/codebuild/src/protocol_serde/shape_project.rs b/sdk/codebuild/src/protocol_serde/shape_project.rs index 45738b5c509e..2a5dd1984a11 100644 --- a/sdk/codebuild/src/protocol_serde/shape_project.rs +++ b/sdk/codebuild/src/protocol_serde/shape_project.rs @@ -159,6 +159,13 @@ where .transpose()?, ); } + "autoRetryLimit" => { + builder = builder.set_auto_retry_limit( + ::aws_smithy_json::deserialize::token::expect_number_or_null(tokens.next())? + .map(i32::try_from) + .transpose()?, + ); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/codebuild/src/protocol_serde/shape_start_build_input.rs b/sdk/codebuild/src/protocol_serde/shape_start_build_input.rs index ebdec1ce9e9f..b06462a56ff8 100644 --- a/sdk/codebuild/src/protocol_serde/shape_start_build_input.rs +++ b/sdk/codebuild/src/protocol_serde/shape_start_build_input.rs @@ -168,5 +168,11 @@ pub fn ser_start_build_input_input( crate::protocol_serde::shape_project_fleet::ser_project_fleet(&mut object_52, var_51)?; object_52.finish(); } + if let Some(var_53) = &input.auto_retry_limit_override { + object.key("autoRetryLimitOverride").number( + #[allow(clippy::useless_conversion)] + ::aws_smithy_types::Number::NegInt((*var_53).into()), + ); + } Ok(()) } diff --git a/sdk/codebuild/src/protocol_serde/shape_update_project_input.rs b/sdk/codebuild/src/protocol_serde/shape_update_project_input.rs index c0d38a462499..95afd1f7356d 100644 --- a/sdk/codebuild/src/protocol_serde/shape_update_project_input.rs +++ b/sdk/codebuild/src/protocol_serde/shape_update_project_input.rs @@ -141,5 +141,11 @@ pub fn ser_update_project_input_input( ::aws_smithy_types::Number::NegInt((*var_43).into()), ); } + if let Some(var_44) = &input.auto_retry_limit { + object.key("autoRetryLimit").number( + #[allow(clippy::useless_conversion)] + ::aws_smithy_types::Number::NegInt((*var_44).into()), + ); + } Ok(()) } diff --git a/sdk/codebuild/src/types.rs b/sdk/codebuild/src/types.rs index f87a18df7061..e9f6dbe4fb74 100644 --- a/sdk/codebuild/src/types.rs +++ b/sdk/codebuild/src/types.rs @@ -151,6 +151,8 @@ pub use crate::types::_build_batch_phase_type::BuildBatchPhaseType; pub use crate::types::_build::Build; +pub use crate::types::_auto_retry_config::AutoRetryConfig; + pub use crate::types::_debug_session::DebugSession; pub use crate::types::_exported_environment_variable::ExportedEnvironmentVariable; @@ -227,6 +229,8 @@ mod _artifacts_type; mod _auth_type; +mod _auto_retry_config; + mod _batch_report_mode_type; mod _batch_restrictions; diff --git a/sdk/codebuild/src/types/_auto_retry_config.rs b/sdk/codebuild/src/types/_auto_retry_config.rs new file mode 100644 index 000000000000..fe740bb59b7b --- /dev/null +++ b/sdk/codebuild/src/types/_auto_retry_config.rs @@ -0,0 +1,116 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +///

Information about the auto-retry configuration for the build.

+#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct AutoRetryConfig { + ///

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.

+ pub auto_retry_limit: ::std::option::Option, + ///

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

+ pub auto_retry_number: ::std::option::Option, + ///

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.

+ pub next_auto_retry: ::std::option::Option<::std::string::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.

+ pub previous_auto_retry: ::std::option::Option<::std::string::String>, +} +impl AutoRetryConfig { + ///

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.

+ pub fn auto_retry_limit(&self) -> ::std::option::Option { + self.auto_retry_limit + } + ///

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

+ pub fn auto_retry_number(&self) -> ::std::option::Option { + self.auto_retry_number + } + ///

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.

+ pub fn next_auto_retry(&self) -> ::std::option::Option<&str> { + self.next_auto_retry.as_deref() + } + ///

The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

+ pub fn previous_auto_retry(&self) -> ::std::option::Option<&str> { + self.previous_auto_retry.as_deref() + } +} +impl AutoRetryConfig { + /// Creates a new builder-style object to manufacture [`AutoRetryConfig`](crate::types::AutoRetryConfig). + pub fn builder() -> crate::types::builders::AutoRetryConfigBuilder { + crate::types::builders::AutoRetryConfigBuilder::default() + } +} + +/// A builder for [`AutoRetryConfig`](crate::types::AutoRetryConfig). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct AutoRetryConfigBuilder { + pub(crate) auto_retry_limit: ::std::option::Option, + pub(crate) auto_retry_number: ::std::option::Option, + pub(crate) next_auto_retry: ::std::option::Option<::std::string::String>, + pub(crate) previous_auto_retry: ::std::option::Option<::std::string::String>, +} +impl AutoRetryConfigBuilder { + ///

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.

+ pub fn auto_retry_limit(mut self, input: i32) -> Self { + self.auto_retry_limit = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_limit = input; + self + } + ///

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.

+ pub fn get_auto_retry_limit(&self) -> &::std::option::Option { + &self.auto_retry_limit + } + ///

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

+ pub fn auto_retry_number(mut self, input: i32) -> Self { + self.auto_retry_number = ::std::option::Option::Some(input); + self + } + ///

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

+ pub fn set_auto_retry_number(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_number = input; + self + } + ///

The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

+ pub fn get_auto_retry_number(&self) -> &::std::option::Option { + &self.auto_retry_number + } + ///

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.

+ pub fn next_auto_retry(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.next_auto_retry = ::std::option::Option::Some(input.into()); + self + } + ///

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.

+ pub fn set_next_auto_retry(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.next_auto_retry = input; + self + } + ///

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.

+ pub fn get_next_auto_retry(&self) -> &::std::option::Option<::std::string::String> { + &self.next_auto_retry + } + ///

The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

+ pub fn previous_auto_retry(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.previous_auto_retry = ::std::option::Option::Some(input.into()); + self + } + ///

The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

+ pub fn set_previous_auto_retry(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.previous_auto_retry = input; + self + } + ///

The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

+ pub fn get_previous_auto_retry(&self) -> &::std::option::Option<::std::string::String> { + &self.previous_auto_retry + } + /// Consumes the builder and constructs a [`AutoRetryConfig`](crate::types::AutoRetryConfig). + pub fn build(self) -> crate::types::AutoRetryConfig { + crate::types::AutoRetryConfig { + auto_retry_limit: self.auto_retry_limit, + auto_retry_number: self.auto_retry_number, + next_auto_retry: self.next_auto_retry, + previous_auto_retry: self.previous_auto_retry, + } + } +} diff --git a/sdk/codebuild/src/types/_build.rs b/sdk/codebuild/src/types/_build.rs index 1d6c96cfbbda..eba564ca6b36 100644 --- a/sdk/codebuild/src/types/_build.rs +++ b/sdk/codebuild/src/types/_build.rs @@ -113,6 +113,8 @@ pub struct Build { pub debug_session: ::std::option::Option, ///

The ARN of the batch build that this build is a member of, if applicable.

pub build_batch_arn: ::std::option::Option<::std::string::String>, + ///

Information about the auto-retry configuration for the build.

+ pub auto_retry_config: ::std::option::Option, } impl Build { ///

The unique ID for the build.

@@ -302,6 +304,10 @@ impl Build { pub fn build_batch_arn(&self) -> ::std::option::Option<&str> { self.build_batch_arn.as_deref() } + ///

Information about the auto-retry configuration for the build.

+ pub fn auto_retry_config(&self) -> ::std::option::Option<&crate::types::AutoRetryConfig> { + self.auto_retry_config.as_ref() + } } impl Build { /// Creates a new builder-style object to manufacture [`Build`](crate::types::Build). @@ -346,6 +352,7 @@ pub struct BuildBuilder { pub(crate) file_system_locations: ::std::option::Option<::std::vec::Vec>, pub(crate) debug_session: ::std::option::Option, pub(crate) build_batch_arn: ::std::option::Option<::std::string::String>, + pub(crate) auto_retry_config: ::std::option::Option, } impl BuildBuilder { ///

The unique ID for the build.

@@ -976,6 +983,20 @@ impl BuildBuilder { pub fn get_build_batch_arn(&self) -> &::std::option::Option<::std::string::String> { &self.build_batch_arn } + ///

Information about the auto-retry configuration for the build.

+ pub fn auto_retry_config(mut self, input: crate::types::AutoRetryConfig) -> Self { + self.auto_retry_config = ::std::option::Option::Some(input); + self + } + ///

Information about the auto-retry configuration for the build.

+ pub fn set_auto_retry_config(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_config = input; + self + } + ///

Information about the auto-retry configuration for the build.

+ pub fn get_auto_retry_config(&self) -> &::std::option::Option { + &self.auto_retry_config + } /// Consumes the builder and constructs a [`Build`](crate::types::Build). pub fn build(self) -> crate::types::Build { crate::types::Build { @@ -1011,6 +1032,7 @@ impl BuildBuilder { file_system_locations: self.file_system_locations, debug_session: self.debug_session, build_batch_arn: self.build_batch_arn, + auto_retry_config: self.auto_retry_config, } } } diff --git a/sdk/codebuild/src/types/_project.rs b/sdk/codebuild/src/types/_project.rs index f704c8b8b1fc..5cb561d9a96b 100644 --- a/sdk/codebuild/src/types/_project.rs +++ b/sdk/codebuild/src/types/_project.rs @@ -93,6 +93,8 @@ pub struct Project { pub public_project_alias: ::std::option::Option<::std::string::String>, ///

The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.

pub resource_access_role: ::std::option::Option<::std::string::String>, + ///

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.

+ pub auto_retry_limit: ::std::option::Option, } impl Project { ///

The name of the build project.

@@ -250,6 +252,10 @@ impl Project { pub fn resource_access_role(&self) -> ::std::option::Option<&str> { self.resource_access_role.as_deref() } + ///

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.

+ pub fn auto_retry_limit(&self) -> ::std::option::Option { + self.auto_retry_limit + } } impl Project { /// Creates a new builder-style object to manufacture [`Project`](crate::types::Project). @@ -290,6 +296,7 @@ pub struct ProjectBuilder { pub(crate) project_visibility: ::std::option::Option, pub(crate) public_project_alias: ::std::option::Option<::std::string::String>, pub(crate) resource_access_role: ::std::option::Option<::std::string::String>, + pub(crate) auto_retry_limit: ::std::option::Option, } impl ProjectBuilder { ///

The name of the build project.

@@ -813,6 +820,20 @@ impl ProjectBuilder { pub fn get_resource_access_role(&self) -> &::std::option::Option<::std::string::String> { &self.resource_access_role } + ///

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.

+ pub fn auto_retry_limit(mut self, input: i32) -> Self { + self.auto_retry_limit = ::std::option::Option::Some(input); + self + } + ///

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.

+ pub fn set_auto_retry_limit(mut self, input: ::std::option::Option) -> Self { + self.auto_retry_limit = input; + self + } + ///

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.

+ pub fn get_auto_retry_limit(&self) -> &::std::option::Option { + &self.auto_retry_limit + } /// Consumes the builder and constructs a [`Project`](crate::types::Project). pub fn build(self) -> crate::types::Project { crate::types::Project { @@ -844,6 +865,7 @@ impl ProjectBuilder { project_visibility: self.project_visibility, public_project_alias: self.public_project_alias, resource_access_role: self.resource_access_role, + auto_retry_limit: self.auto_retry_limit, } } } diff --git a/sdk/codebuild/src/types/builders.rs b/sdk/codebuild/src/types/builders.rs index 339d73b553c4..9740b1b56a56 100644 --- a/sdk/codebuild/src/types/builders.rs +++ b/sdk/codebuild/src/types/builders.rs @@ -83,6 +83,8 @@ pub use crate::types::_phase_context::PhaseContextBuilder; pub use crate::types::_build::BuildBuilder; +pub use crate::types::_auto_retry_config::AutoRetryConfigBuilder; + pub use crate::types::_debug_session::DebugSessionBuilder; pub use crate::types::_exported_environment_variable::ExportedEnvironmentVariableBuilder; diff --git a/sdk/lambda/src/client/get_function.rs b/sdk/lambda/src/client/get_function.rs index f8d07f723a98..a5999a8c7467 100644 --- a/sdk/lambda/src/client/get_function.rs +++ b/sdk/lambda/src/client/get_function.rs @@ -8,7 +8,8 @@ impl super::Client { /// - On success, responds with [`GetFunctionOutput`](crate::operation::get_function::GetFunctionOutput) with field(s): /// - [`configuration(Option)`](crate::operation::get_function::GetFunctionOutput::configuration):

The configuration of the function or version.

/// - [`code(Option)`](crate::operation::get_function::GetFunctionOutput::code):

The deployment package of the function or version.

- /// - [`tags(Option>)`](crate::operation::get_function::GetFunctionOutput::tags):

The function's tags.

+ /// - [`tags(Option>)`](crate::operation::get_function::GetFunctionOutput::tags):

The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.

+ /// - [`tags_error(Option)`](crate::operation::get_function::GetFunctionOutput::tags_error):

An object that contains details about an error related to retrieving tags.

/// - [`concurrency(Option)`](crate::operation::get_function::GetFunctionOutput::concurrency):

The function's reserved concurrency.

/// - On failure, responds with [`SdkError`](crate::operation::get_function::GetFunctionError) pub fn get_function(&self) -> crate::operation::get_function::builders::GetFunctionFluentBuilder { diff --git a/sdk/lambda/src/operation/get_function/_get_function_output.rs b/sdk/lambda/src/operation/get_function/_get_function_output.rs index 077da9e641e4..86c6e533cbb2 100644 --- a/sdk/lambda/src/operation/get_function/_get_function_output.rs +++ b/sdk/lambda/src/operation/get_function/_get_function_output.rs @@ -7,8 +7,10 @@ pub struct GetFunctionOutput { pub configuration: ::std::option::Option, ///

The deployment package of the function or version.

pub code: ::std::option::Option, - ///

The function's tags.

+ ///

The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.

pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, + ///

An object that contains details about an error related to retrieving tags.

+ pub tags_error: ::std::option::Option, ///

The function's reserved concurrency.

pub concurrency: ::std::option::Option, _request_id: Option, @@ -22,10 +24,14 @@ impl GetFunctionOutput { pub fn code(&self) -> ::std::option::Option<&crate::types::FunctionCodeLocation> { self.code.as_ref() } - ///

The function's tags.

+ ///

The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.

pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> { self.tags.as_ref() } + ///

An object that contains details about an error related to retrieving tags.

+ pub fn tags_error(&self) -> ::std::option::Option<&crate::types::TagsError> { + self.tags_error.as_ref() + } ///

The function's reserved concurrency.

pub fn concurrency(&self) -> ::std::option::Option<&crate::types::Concurrency> { self.concurrency.as_ref() @@ -50,6 +56,7 @@ pub struct GetFunctionOutputBuilder { pub(crate) configuration: ::std::option::Option, pub(crate) code: ::std::option::Option, pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>, + pub(crate) tags_error: ::std::option::Option, pub(crate) concurrency: ::std::option::Option, _request_id: Option, } @@ -86,22 +93,36 @@ impl GetFunctionOutputBuilder { /// /// To override the contents of this collection use [`set_tags`](Self::set_tags). /// - ///

The function's tags.

+ ///

The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.

pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self { let mut hash_map = self.tags.unwrap_or_default(); hash_map.insert(k.into(), v.into()); self.tags = ::std::option::Option::Some(hash_map); self } - ///

The function's tags.

+ ///

The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.

pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self { self.tags = input; self } - ///

The function's tags.

+ ///

The function's tags. Lambda returns tag data only if you have explicit allow permissions for lambda:ListTags.

pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> { &self.tags } + ///

An object that contains details about an error related to retrieving tags.

+ pub fn tags_error(mut self, input: crate::types::TagsError) -> Self { + self.tags_error = ::std::option::Option::Some(input); + self + } + ///

An object that contains details about an error related to retrieving tags.

+ pub fn set_tags_error(mut self, input: ::std::option::Option) -> Self { + self.tags_error = input; + self + } + ///

An object that contains details about an error related to retrieving tags.

+ pub fn get_tags_error(&self) -> &::std::option::Option { + &self.tags_error + } ///

The function's reserved concurrency.

pub fn concurrency(mut self, input: crate::types::Concurrency) -> Self { self.concurrency = ::std::option::Option::Some(input); @@ -131,6 +152,7 @@ impl GetFunctionOutputBuilder { configuration: self.configuration, code: self.code, tags: self.tags, + tags_error: self.tags_error, concurrency: self.concurrency, _request_id: self._request_id, } diff --git a/sdk/lambda/src/protocol_serde.rs b/sdk/lambda/src/protocol_serde.rs index ec233b8fa9bb..3145d2ae84a6 100644 --- a/sdk/lambda/src/protocol_serde.rs +++ b/sdk/lambda/src/protocol_serde.rs @@ -409,6 +409,8 @@ pub(crate) mod shape_source_access_configurations; pub(crate) mod shape_tags; +pub(crate) mod shape_tags_error; + pub(crate) mod shape_topics; pub(crate) mod shape_tracing_config; diff --git a/sdk/lambda/src/protocol_serde/shape_get_function.rs b/sdk/lambda/src/protocol_serde/shape_get_function.rs index d64f6b57bd24..4302da3782e1 100644 --- a/sdk/lambda/src/protocol_serde/shape_get_function.rs +++ b/sdk/lambda/src/protocol_serde/shape_get_function.rs @@ -128,6 +128,9 @@ pub(crate) fn de_get_function( "Tags" => { builder = builder.set_tags(crate::protocol_serde::shape_tags::de_tags(tokens)?); } + "TagsError" => { + builder = builder.set_tags_error(crate::protocol_serde::shape_tags_error::de_tags_error(tokens)?); + } _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, }, other => { diff --git a/sdk/lambda/src/protocol_serde/shape_tags_error.rs b/sdk/lambda/src/protocol_serde/shape_tags_error.rs new file mode 100644 index 000000000000..5dcc92e9a0b6 --- /dev/null +++ b/sdk/lambda/src/protocol_serde/shape_tags_error.rs @@ -0,0 +1,49 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. +pub(crate) fn de_tags_error<'a, I>( + tokens: &mut ::std::iter::Peekable, +) -> Result, ::aws_smithy_json::deserialize::error::DeserializeError> +where + I: Iterator, ::aws_smithy_json::deserialize::error::DeserializeError>>, +{ + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None), + Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => { + #[allow(unused_mut)] + let mut builder = crate::types::builders::TagsErrorBuilder::default(); + loop { + match tokens.next().transpose()? { + Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break, + Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() { + "ErrorCode" => { + builder = builder.set_error_code( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + "Message" => { + builder = builder.set_message( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } + _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, + }, + other => { + return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!( + "expected object key or end object, found: {:?}", + other + ))) + } + } + } + Ok(Some(crate::serde_util::tags_error_correct_errors(builder).build().map_err(|err| { + ::aws_smithy_json::deserialize::error::DeserializeError::custom_source("Response was invalid", err) + })?)) + } + _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom( + "expected start object or null", + )), + } +} diff --git a/sdk/lambda/src/serde_util.rs b/sdk/lambda/src/serde_util.rs index ce994251431d..0011b4b0c96e 100644 --- a/sdk/lambda/src/serde_util.rs +++ b/sdk/lambda/src/serde_util.rs @@ -176,6 +176,16 @@ pub(crate) fn ephemeral_storage_correct_errors( builder } +pub(crate) fn tags_error_correct_errors(mut builder: crate::types::builders::TagsErrorBuilder) -> crate::types::builders::TagsErrorBuilder { + if builder.error_code.is_none() { + builder.error_code = Some(Default::default()) + } + if builder.message.is_none() { + builder.message = Some(Default::default()) + } + builder +} + pub(crate) fn allowed_publishers_correct_errors( mut builder: crate::types::builders::AllowedPublishersBuilder, ) -> crate::types::builders::AllowedPublishersBuilder { diff --git a/sdk/lambda/src/types.rs b/sdk/lambda/src/types.rs index 4d22476ba30c..61e9b8d59a5f 100644 --- a/sdk/lambda/src/types.rs +++ b/sdk/lambda/src/types.rs @@ -157,6 +157,8 @@ pub use crate::types::_invocation_type::InvocationType; pub use crate::types::_concurrency::Concurrency; +pub use crate::types::_tags_error::TagsError; + pub use crate::types::_function_code_location::FunctionCodeLocation; pub use crate::types::_account_usage::AccountUsage; @@ -317,6 +319,8 @@ mod _state_reason_code; mod _system_log_level; +mod _tags_error; + mod _throttle_reason; mod _tracing_config; diff --git a/sdk/lambda/src/types/_tags_error.rs b/sdk/lambda/src/types/_tags_error.rs new file mode 100644 index 000000000000..7f68e6106906 --- /dev/null +++ b/sdk/lambda/src/types/_tags_error.rs @@ -0,0 +1,89 @@ +// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. + +///

An object that contains details about an error related to retrieving tags.

+#[non_exhaustive] +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] +pub struct TagsError { + ///

The error code.

+ pub error_code: ::std::string::String, + ///

The error message.

+ pub message: ::std::string::String, +} +impl TagsError { + ///

The error code.

+ pub fn error_code(&self) -> &str { + use std::ops::Deref; + self.error_code.deref() + } + ///

The error message.

+ pub fn message(&self) -> &str { + use std::ops::Deref; + self.message.deref() + } +} +impl TagsError { + /// Creates a new builder-style object to manufacture [`TagsError`](crate::types::TagsError). + pub fn builder() -> crate::types::builders::TagsErrorBuilder { + crate::types::builders::TagsErrorBuilder::default() + } +} + +/// A builder for [`TagsError`](crate::types::TagsError). +#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] +#[non_exhaustive] +pub struct TagsErrorBuilder { + pub(crate) error_code: ::std::option::Option<::std::string::String>, + pub(crate) message: ::std::option::Option<::std::string::String>, +} +impl TagsErrorBuilder { + ///

The error code.

+ /// This field is required. + pub fn error_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.error_code = ::std::option::Option::Some(input.into()); + self + } + ///

The error code.

+ pub fn set_error_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.error_code = input; + self + } + ///

The error code.

+ pub fn get_error_code(&self) -> &::std::option::Option<::std::string::String> { + &self.error_code + } + ///

The error message.

+ /// This field is required. + pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.message = ::std::option::Option::Some(input.into()); + self + } + ///

The error message.

+ pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.message = input; + self + } + ///

The error message.

+ pub fn get_message(&self) -> &::std::option::Option<::std::string::String> { + &self.message + } + /// Consumes the builder and constructs a [`TagsError`](crate::types::TagsError). + /// This method will fail if any of the following fields are not set: + /// - [`error_code`](crate::types::builders::TagsErrorBuilder::error_code) + /// - [`message`](crate::types::builders::TagsErrorBuilder::message) + pub fn build(self) -> ::std::result::Result { + ::std::result::Result::Ok(crate::types::TagsError { + error_code: self.error_code.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "error_code", + "error_code was not specified but it is required when building TagsError", + ) + })?, + message: self.message.ok_or_else(|| { + ::aws_smithy_types::error::operation::BuildError::missing_field( + "message", + "message was not specified but it is required when building TagsError", + ) + })?, + }) + } +} diff --git a/sdk/lambda/src/types/builders.rs b/sdk/lambda/src/types/builders.rs index 557aa4f92842..30f9483a07e1 100644 --- a/sdk/lambda/src/types/builders.rs +++ b/sdk/lambda/src/types/builders.rs @@ -97,6 +97,8 @@ pub use crate::types::_invoke_response_stream_update::InvokeResponseStreamUpdate pub use crate::types::_concurrency::ConcurrencyBuilder; +pub use crate::types::_tags_error::TagsErrorBuilder; + pub use crate::types::_function_code_location::FunctionCodeLocationBuilder; pub use crate::types::_account_usage::AccountUsageBuilder; diff --git a/sdk/supplychain/src/operation/create_data_integration_flow/builders.rs b/sdk/supplychain/src/operation/create_data_integration_flow/builders.rs index b71b819b9196..d322ce6d3774 100644 --- a/sdk/supplychain/src/operation/create_data_integration_flow/builders.rs +++ b/sdk/supplychain/src/operation/create_data_integration_flow/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::create_data_integration_flow::builders::CreateDataIntegra } /// Fluent builder constructing a request to `CreateDataIntegrationFlow`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct CreateDataIntegrationFlowFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/create_data_lake_dataset/builders.rs b/sdk/supplychain/src/operation/create_data_lake_dataset/builders.rs index a22707e5f41d..993ab4b89021 100644 --- a/sdk/supplychain/src/operation/create_data_lake_dataset/builders.rs +++ b/sdk/supplychain/src/operation/create_data_lake_dataset/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::create_data_lake_dataset::builders::CreateDataLakeDataset } /// Fluent builder constructing a request to `CreateDataLakeDataset`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct CreateDataLakeDatasetFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/create_instance/builders.rs b/sdk/supplychain/src/operation/create_instance/builders.rs index 253cbe1653b2..4298d350c92a 100644 --- a/sdk/supplychain/src/operation/create_instance/builders.rs +++ b/sdk/supplychain/src/operation/create_instance/builders.rs @@ -22,7 +22,8 @@ impl crate::operation::create_instance::builders::CreateInstanceInputBuilder { } /// Fluent builder constructing a request to `CreateInstance`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct CreateInstanceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/delete_data_integration_flow/builders.rs b/sdk/supplychain/src/operation/delete_data_integration_flow/builders.rs index f3f4614167d7..2849c81fb77b 100644 --- a/sdk/supplychain/src/operation/delete_data_integration_flow/builders.rs +++ b/sdk/supplychain/src/operation/delete_data_integration_flow/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::delete_data_integration_flow::builders::DeleteDataIntegra } /// Fluent builder constructing a request to `DeleteDataIntegrationFlow`. /// -///

Delete the DataIntegrationFlow.

+///

Enable you to programmatically delete an existing data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct DeleteDataIntegrationFlowFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/delete_data_lake_dataset/builders.rs b/sdk/supplychain/src/operation/delete_data_lake_dataset/builders.rs index d94f0ad1a87e..5b61b13338f8 100644 --- a/sdk/supplychain/src/operation/delete_data_lake_dataset/builders.rs +++ b/sdk/supplychain/src/operation/delete_data_lake_dataset/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::delete_data_lake_dataset::builders::DeleteDataLakeDataset } /// Fluent builder constructing a request to `DeleteDataLakeDataset`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct DeleteDataLakeDatasetFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/delete_instance/builders.rs b/sdk/supplychain/src/operation/delete_instance/builders.rs index b1358b33de9a..84412d2f2a9a 100644 --- a/sdk/supplychain/src/operation/delete_instance/builders.rs +++ b/sdk/supplychain/src/operation/delete_instance/builders.rs @@ -22,7 +22,8 @@ impl crate::operation::delete_instance::builders::DeleteInstanceInputBuilder { } /// Fluent builder constructing a request to `DeleteInstance`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct DeleteInstanceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/get_data_integration_flow/builders.rs b/sdk/supplychain/src/operation/get_data_integration_flow/builders.rs index 3f1375d74709..fd90a31ac509 100644 --- a/sdk/supplychain/src/operation/get_data_integration_flow/builders.rs +++ b/sdk/supplychain/src/operation/get_data_integration_flow/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::get_data_integration_flow::builders::GetDataIntegrationFl } /// Fluent builder constructing a request to `GetDataIntegrationFlow`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct GetDataIntegrationFlowFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/get_data_lake_dataset/builders.rs b/sdk/supplychain/src/operation/get_data_lake_dataset/builders.rs index 6f3e2947fc3e..6461d79e4152 100644 --- a/sdk/supplychain/src/operation/get_data_lake_dataset/builders.rs +++ b/sdk/supplychain/src/operation/get_data_lake_dataset/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::get_data_lake_dataset::builders::GetDataLakeDatasetInputB } /// Fluent builder constructing a request to `GetDataLakeDataset`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct GetDataLakeDatasetFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/get_instance/builders.rs b/sdk/supplychain/src/operation/get_instance/builders.rs index 8e54ea8957ab..80d7b3df00e4 100644 --- a/sdk/supplychain/src/operation/get_instance/builders.rs +++ b/sdk/supplychain/src/operation/get_instance/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::get_instance::builders::GetInstanceInputBuilder { } /// Fluent builder constructing a request to `GetInstance`. /// -///

Get the AWS Supply Chain instance details.

+///

Enables you to programmatically retrieve the information related to an Amazon Web Services Supply Chain instance ID.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct GetInstanceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/list_data_integration_flows/builders.rs b/sdk/supplychain/src/operation/list_data_integration_flows/builders.rs index 6b775a7f75af..3cb725e5f64b 100644 --- a/sdk/supplychain/src/operation/list_data_integration_flows/builders.rs +++ b/sdk/supplychain/src/operation/list_data_integration_flows/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_data_integration_flows::builders::ListDataIntegratio } /// Fluent builder constructing a request to `ListDataIntegrationFlows`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListDataIntegrationFlowsFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/list_data_lake_datasets/builders.rs b/sdk/supplychain/src/operation/list_data_lake_datasets/builders.rs index dca815366368..37f55e5ddb79 100644 --- a/sdk/supplychain/src/operation/list_data_lake_datasets/builders.rs +++ b/sdk/supplychain/src/operation/list_data_lake_datasets/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_data_lake_datasets::builders::ListDataLakeDatasetsIn } /// Fluent builder constructing a request to `ListDataLakeDatasets`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListDataLakeDatasetsFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/list_instances/builders.rs b/sdk/supplychain/src/operation/list_instances/builders.rs index c758a7af9f12..258d4ac60776 100644 --- a/sdk/supplychain/src/operation/list_instances/builders.rs +++ b/sdk/supplychain/src/operation/list_instances/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_instances::builders::ListInstancesInputBuilder { } /// Fluent builder constructing a request to `ListInstances`. /// -///

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).

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListInstancesFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/list_tags_for_resource/builders.rs b/sdk/supplychain/src/operation/list_tags_for_resource/builders.rs index 639952b253ac..dc0686e38bcd 100644 --- a/sdk/supplychain/src/operation/list_tags_for_resource/builders.rs +++ b/sdk/supplychain/src/operation/list_tags_for_resource/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::list_tags_for_resource::builders::ListTagsForResourceInpu } /// Fluent builder constructing a request to `ListTagsForResource`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct ListTagsForResourceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/tag_resource/builders.rs b/sdk/supplychain/src/operation/tag_resource/builders.rs index 49ea71461034..e4df2599bb18 100644 --- a/sdk/supplychain/src/operation/tag_resource/builders.rs +++ b/sdk/supplychain/src/operation/tag_resource/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::tag_resource::builders::TagResourceInputBuilder { } /// Fluent builder constructing a request to `TagResource`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct TagResourceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/untag_resource/builders.rs b/sdk/supplychain/src/operation/untag_resource/builders.rs index c00a6ed81726..94796cd42603 100644 --- a/sdk/supplychain/src/operation/untag_resource/builders.rs +++ b/sdk/supplychain/src/operation/untag_resource/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::untag_resource::builders::UntagResourceInputBuilder { } /// Fluent builder constructing a request to `UntagResource`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct UntagResourceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/update_data_integration_flow/builders.rs b/sdk/supplychain/src/operation/update_data_integration_flow/builders.rs index 2081f31d333e..e15dc6477cbf 100644 --- a/sdk/supplychain/src/operation/update_data_integration_flow/builders.rs +++ b/sdk/supplychain/src/operation/update_data_integration_flow/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::update_data_integration_flow::builders::UpdateDataIntegra } /// Fluent builder constructing a request to `UpdateDataIntegrationFlow`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct UpdateDataIntegrationFlowFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/update_data_lake_dataset/builders.rs b/sdk/supplychain/src/operation/update_data_lake_dataset/builders.rs index 204d1d405800..58a427440a23 100644 --- a/sdk/supplychain/src/operation/update_data_lake_dataset/builders.rs +++ b/sdk/supplychain/src/operation/update_data_lake_dataset/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::update_data_lake_dataset::builders::UpdateDataLakeDataset } /// Fluent builder constructing a request to `UpdateDataLakeDataset`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct UpdateDataLakeDatasetFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/operation/update_instance/builders.rs b/sdk/supplychain/src/operation/update_instance/builders.rs index 6a79f09ae055..d9b4fe7324e1 100644 --- a/sdk/supplychain/src/operation/update_instance/builders.rs +++ b/sdk/supplychain/src/operation/update_instance/builders.rs @@ -22,7 +22,7 @@ impl crate::operation::update_instance::builders::UpdateInstanceInputBuilder { } /// Fluent builder constructing a request to `UpdateInstance`. /// -///

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.

#[derive(::std::clone::Clone, ::std::fmt::Debug)] pub struct UpdateInstanceFluentBuilder { handle: ::std::sync::Arc, diff --git a/sdk/supplychain/src/protocol_serde/shape_instance.rs b/sdk/supplychain/src/protocol_serde/shape_instance.rs index 65551602e959..c11bd110c876 100644 --- a/sdk/supplychain/src/protocol_serde/shape_instance.rs +++ b/sdk/supplychain/src/protocol_serde/shape_instance.rs @@ -35,6 +35,13 @@ where .transpose()?, ); } + "errorMessage" => { + builder = builder.set_error_message( + ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? + .map(|s| s.to_unescaped().map(|u| u.into_owned())) + .transpose()?, + ); + } "webAppDnsDomain" => { builder = builder.set_web_app_dns_domain( ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())? diff --git a/sdk/supplychain/src/types/_instance.rs b/sdk/supplychain/src/types/_instance.rs index 4b50f22d22cc..30072bc4bde3 100644 --- a/sdk/supplychain/src/types/_instance.rs +++ b/sdk/supplychain/src/types/_instance.rs @@ -10,6 +10,8 @@ pub struct Instance { pub aws_account_id: ::std::string::String, ///

The state of the instance.

pub state: crate::types::InstanceState, + ///

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.

+ pub error_message: ::std::option::Option<::std::string::String>, ///

The WebApp DNS domain name of the instance.

pub web_app_dns_domain: ::std::option::Option<::std::string::String>, ///

The instance creation timestamp.

@@ -40,6 +42,10 @@ impl Instance { pub fn state(&self) -> &crate::types::InstanceState { &self.state } + ///

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.

+ pub fn error_message(&self) -> ::std::option::Option<&str> { + self.error_message.as_deref() + } ///

The WebApp DNS domain name of the instance.

pub fn web_app_dns_domain(&self) -> ::std::option::Option<&str> { self.web_app_dns_domain.as_deref() @@ -83,6 +89,7 @@ pub struct InstanceBuilder { pub(crate) instance_id: ::std::option::Option<::std::string::String>, pub(crate) aws_account_id: ::std::option::Option<::std::string::String>, pub(crate) state: ::std::option::Option, + pub(crate) error_message: ::std::option::Option<::std::string::String>, pub(crate) web_app_dns_domain: ::std::option::Option<::std::string::String>, pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>, pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>, @@ -137,6 +144,20 @@ impl InstanceBuilder { pub fn get_state(&self) -> &::std::option::Option { &self.state } + ///

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.

+ pub fn error_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { + self.error_message = ::std::option::Option::Some(input.into()); + self + } + ///

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.

+ pub fn set_error_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self { + self.error_message = input; + self + } + ///

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.

+ pub fn get_error_message(&self) -> &::std::option::Option<::std::string::String> { + &self.error_message + } ///

The WebApp DNS domain name of the instance.

pub fn web_app_dns_domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.web_app_dns_domain = ::std::option::Option::Some(input.into()); @@ -260,6 +281,7 @@ impl InstanceBuilder { "state was not specified but it is required when building Instance", ) })?, + error_message: self.error_message, web_app_dns_domain: self.web_app_dns_domain, created_time: self.created_time, last_modified_time: self.last_modified_time, diff --git a/versions.toml b/versions.toml index 425f21f03170..e85428ad578b 100644 --- a/versions.toml +++ b/versions.toml @@ -1,4 +1,4 @@ -smithy_rs_revision = '42751e5dbf4d51c06c085e4193bf013a7333a6f5' +smithy_rs_revision = 'dd7432478e9b03ef0bf991cfcec67df36f27232f' aws_doc_sdk_examples_revision = '57182851d05524aeb4750e7245f8c5a541e6e02c' [manual_interventions] @@ -269,8 +269,8 @@ model_hash = 'd2aeed99ad2d08a87c01f7b6cf515b26c4d43e74fc12e36f3441e946c89aa436' [crates.aws-sdk-bedrockagent] category = 'AwsSdk' version = '1.58.0' -source_hash = '2a90c3964985b88ca3bc04f3336f567be50445aab6d15dd92b8d0e28e5bb4995' -model_hash = '8ed07db5517b82bd71d06c7552f0bbfef1a1f64cabba3d189583dec41c8e48bf' +source_hash = '4ef24b75dd1b8915af4e65ee56348fae3ca34ce603da0287a7a49436ab4914ec' +model_hash = '3c6a822d17c5815df0cacbdfe46e0b39f7d8ac7b5a7896196213e370424fdd69' [crates.aws-sdk-bedrockagentruntime] category = 'AwsSdk' @@ -443,8 +443,8 @@ model_hash = '5497d1b84409af6543689f08c00475dd0942c86b4e575186d7c587da07ec97a0' [crates.aws-sdk-cloudwatchlogs] category = 'AwsSdk' version = '1.53.0' -source_hash = 'e58c7f31331c0bd821c30c8ec031e7373fc99651d7315c9f74e5127ec4446a82' -model_hash = '482e7e24cc72eb1e503dbf493b8e9b8de103aa731879ed652845184f4a6e3707' +source_hash = 'ff68643d5bcaa266e948ce9df0c39a76810ad9d1c874e2ec3d6ad26cf18873bf' +model_hash = 'b735490b8dccbfbcf592ab21b28a0b55b927bebcfafe1b07bcfeaf1f85449020' [crates.aws-sdk-codeartifact] category = 'AwsSdk' @@ -455,8 +455,8 @@ model_hash = 'b4b741370ba8961708abf7da89928b5db646fa8d605805dbd8d0138d0ff1955f' [crates.aws-sdk-codebuild] category = 'AwsSdk' version = '1.59.0' -source_hash = '29ca99af83ca0ce03ebb71e22df3489cf01c3cade2bb9218344b4794a6fa0e47' -model_hash = '61d2a654a3dada7395b0b960f7f0d1092beccdfff179749de68d8e1d1496d2af' +source_hash = 'a36e6179289e3c6fa1ecd33fa91768c62379e47d4c6e4aa77d8e050c1b727507' +model_hash = '0c972740c8c8efd27c55a1fe376c5729de7072f8c394aaf2609063dfd7eaa2a2' [crates.aws-sdk-codecatalyst] category = 'AwsSdk' @@ -1253,8 +1253,8 @@ model_hash = '1ac04b59a5e828393dfbaf53d353cd7615e325048e93c609a907b449a90e623c' [crates.aws-sdk-lambda] category = 'AwsSdk' version = '1.52.0' -source_hash = '02bb7ebf24f0f4dff745ad4e3b0ca08881e3dca3b66a899acaa835ddc91918a3' -model_hash = '00136aa5b8cfefdafb7e2f9a8573dae3eba572ebb1431b2a10cc472b8e3efdba' +source_hash = 'e95e0d16b3c5e4794b9b6c84271e0920d61db3c17930a432f5bd0ebabfdd7752' +model_hash = 'dd35a2fbd5fac74042bfa0da0423a8867fd76a1c702069bbda08342d0c0073b6' [crates.aws-sdk-launchwizard] category = 'AwsSdk' @@ -2171,8 +2171,8 @@ model_hash = 'ab8d3824f81b0cb119625a47f0eaa5474ff2b8d551f26c63dc0a3d68343519e3' [crates.aws-sdk-supplychain] category = 'AwsSdk' version = '1.40.0' -source_hash = '342ea6ef8f3f4e69891346542b47d012e8780c6aa1223072963bbe738a00eded' -model_hash = '54aef978615b6fcd7903e91e52d9a34ea5c66285b5f1373cb15397bd2b2d932c' +source_hash = '32e33c8dc94af304c707683b43e5218bc7a122a0758e550183840edcdc172a53' +model_hash = '67f9f592af804b1f5ee597f2c336385f1e6ffb22c32c80741ac3a1d6b3bd4aa7' [crates.aws-sdk-support] category = 'AwsSdk'