diff --git a/VERSION b/VERSION index c735fbb9e89..224970f7b3a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.389 \ No newline at end of file +1.11.390 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/AutoScalingClient.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/AutoScalingClient.h index f754da4154b..58d3e87707c 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/AutoScalingClient.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/AutoScalingClient.h @@ -2067,9 +2067,9 @@ namespace AutoScaling /** *

Sets the health status of the specified instance.

For more * information, see Health - * checks for instances in an Auto Scaling group in the Amazon EC2 Auto - * Scaling User Guide.

See Also:

Set + * up a custom health check for your Auto Scaling group in the Amazon EC2 + * Auto Scaling User Guide.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h index dff11169abc..9e844ba7e09 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateAutoScalingGroupRequest.h @@ -251,7 +251,7 @@ namespace Model ///@{ /** *

A comma-separated value string of one or more health check types.

The - * valid values are EC2, ELB, and + * valid values are EC2, EBS, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health diff --git a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h index ba487fc976b..9006c47cc7d 100644 --- a/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h +++ b/generated/src/aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/UpdateAutoScalingGroupRequest.h @@ -170,7 +170,7 @@ namespace Model ///@{ /** *

A comma-separated value string of one or more health check types.

The - * valid values are EC2, ELB, and + * valid values are EC2, EBS, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockClient.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockClient.h index f76657d96c8..780e292adde 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockClient.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockClient.h @@ -77,6 +77,34 @@ namespace Bedrock /* End of legacy constructors due deprecation */ virtual ~BedrockClient(); + /** + *

Creates a batch deletion job. A model evaluation job can only be deleted if + * it has following status FAILED, COMPLETED, and + * STOPPED. You can request up to 25 model evaluation jobs be deleted + * in a single request.

See Also:

AWS + * API Reference

+ */ + virtual Model::BatchDeleteEvaluationJobOutcome BatchDeleteEvaluationJob(const Model::BatchDeleteEvaluationJobRequest& request) const; + + /** + * A Callable wrapper for BatchDeleteEvaluationJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::BatchDeleteEvaluationJobOutcomeCallable BatchDeleteEvaluationJobCallable(const BatchDeleteEvaluationJobRequestT& request) const + { + return SubmitCallable(&BedrockClient::BatchDeleteEvaluationJob, request); + } + + /** + * An Async wrapper for BatchDeleteEvaluationJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void BatchDeleteEvaluationJobAsync(const BatchDeleteEvaluationJobRequestT& request, const BatchDeleteEvaluationJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&BedrockClient::BatchDeleteEvaluationJob, request, handler, context); + } + /** *

API operation for creating and managing Amazon Bedrock automatic model * evaluation jobs and model evaluation jobs that use human workers. To learn more @@ -246,6 +274,34 @@ namespace Bedrock return SubmitAsync(&BedrockClient::CreateModelCustomizationJob, request, handler, context); } + /** + *

Creates a model import job to import model that you have customized in other + * environments, such as Amazon SageMaker. For more information, see Import + * a customized model

See Also:

AWS + * API Reference

+ */ + virtual Model::CreateModelImportJobOutcome CreateModelImportJob(const Model::CreateModelImportJobRequest& request) const; + + /** + * A Callable wrapper for CreateModelImportJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateModelImportJobOutcomeCallable CreateModelImportJobCallable(const CreateModelImportJobRequestT& request) const + { + return SubmitCallable(&BedrockClient::CreateModelImportJob, request); + } + + /** + * An Async wrapper for CreateModelImportJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateModelImportJobAsync(const CreateModelImportJobRequestT& request, const CreateModelImportJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&BedrockClient::CreateModelImportJob, request, handler, context); + } + /** *

Creates a job to invoke a model on multiple prompts (batch inference). Format * your data according to Deletes a custom model that you imported earlier. For more information, see + * Import + * a customized model in the Amazon + * Bedrock User Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::DeleteImportedModelOutcome DeleteImportedModel(const Model::DeleteImportedModelRequest& request) const; + + /** + * A Callable wrapper for DeleteImportedModel that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteImportedModelOutcomeCallable DeleteImportedModelCallable(const DeleteImportedModelRequestT& request) const + { + return SubmitCallable(&BedrockClient::DeleteImportedModel, request); + } + + /** + * An Async wrapper for DeleteImportedModel that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteImportedModelAsync(const DeleteImportedModelRequestT& request, const DeleteImportedModelResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&BedrockClient::DeleteImportedModel, request, handler, context); + } + /** *

Delete the invocation logging.

See Also:

AWS @@ -538,6 +624,32 @@ namespace Bedrock return SubmitAsync(&BedrockClient::GetGuardrail, request, handler, context); } + /** + *

Gets properties associated with a customized model you imported. + *

See Also:

AWS + * API Reference

+ */ + virtual Model::GetImportedModelOutcome GetImportedModel(const Model::GetImportedModelRequest& request) const; + + /** + * A Callable wrapper for GetImportedModel that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetImportedModelOutcomeCallable GetImportedModelCallable(const GetImportedModelRequestT& request) const + { + return SubmitCallable(&BedrockClient::GetImportedModel, request); + } + + /** + * An Async wrapper for GetImportedModel that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetImportedModelAsync(const GetImportedModelRequestT& request, const GetImportedModelResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&BedrockClient::GetImportedModel, request, handler, context); + } + /** *

Retrieves information about a model copy job. For more information, see Copy @@ -597,6 +709,36 @@ namespace Bedrock return SubmitAsync(&BedrockClient::GetModelCustomizationJob, request, handler, context); } + /** + *

Retrieves the properties associated with import model job, including the + * status of the job. For more information, see Import + * a customized model in the Amazon + * Bedrock User Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetModelImportJobOutcome GetModelImportJob(const Model::GetModelImportJobRequest& request) const; + + /** + * A Callable wrapper for GetModelImportJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetModelImportJobOutcomeCallable GetModelImportJobCallable(const GetModelImportJobRequestT& request) const + { + return SubmitCallable(&BedrockClient::GetModelImportJob, request); + } + + /** + * An Async wrapper for GetModelImportJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetModelImportJobAsync(const GetModelImportJobRequestT& request, const GetModelImportJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&BedrockClient::GetModelImportJob, request, handler, context); + } + /** *

Gets details about a batch inference job. For more information, see View @@ -798,6 +940,36 @@ namespace Bedrock return SubmitAsync(&BedrockClient::ListGuardrails, request, handler, context); } + /** + *

Returns a list of models you've imported. You can filter the results to + * return based on one or more criteria. For more information, see Import + * a customized model in the Amazon + * Bedrock User Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListImportedModelsOutcome ListImportedModels(const Model::ListImportedModelsRequest& request = {}) const; + + /** + * A Callable wrapper for ListImportedModels that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListImportedModelsOutcomeCallable ListImportedModelsCallable(const ListImportedModelsRequestT& request = {}) const + { + return SubmitCallable(&BedrockClient::ListImportedModels, request); + } + + /** + * An Async wrapper for ListImportedModels that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListImportedModelsAsync(const ListImportedModelsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListImportedModelsRequestT& request = {}) const + { + return SubmitAsync(&BedrockClient::ListImportedModels, request, handler, context); + } + /** *

Returns a list of model copy jobs that you have submitted. You can filter the * jobs to return based on one or more criteria. For more information, see Returns a list of import jobs you've submitted. You can filter the results to + * return based on one or more criteria. For more information, see Import + * a customized model in the Amazon + * Bedrock User Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListModelImportJobsOutcome ListModelImportJobs(const Model::ListModelImportJobsRequest& request = {}) const; + + /** + * A Callable wrapper for ListModelImportJobs that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListModelImportJobsOutcomeCallable ListModelImportJobsCallable(const ListModelImportJobsRequestT& request = {}) const + { + return SubmitCallable(&BedrockClient::ListModelImportJobs, request); + } + + /** + * An Async wrapper for ListModelImportJobs that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListModelImportJobsAsync(const ListModelImportJobsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListModelImportJobsRequestT& request = {}) const + { + return SubmitAsync(&BedrockClient::ListModelImportJobs, request, handler, context); + } + /** *

Lists all batch inference jobs in the account. For more information, see View diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockServiceClientModel.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockServiceClientModel.h index 186090c0dfe..c1e868bf931 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/BedrockServiceClientModel.h @@ -18,23 +18,28 @@ /* End of generic header includes */ /* Service model headers required in BedrockClient header */ +#include #include #include #include #include #include +#include #include #include #include #include +#include #include #include #include #include #include #include +#include #include #include +#include #include #include #include @@ -42,8 +47,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -57,12 +64,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include /* End of service model headers required in BedrockClient header */ @@ -105,23 +114,28 @@ namespace Aws namespace Model { /* Service model forward declarations required in BedrockClient header */ + class BatchDeleteEvaluationJobRequest; class CreateEvaluationJobRequest; class CreateGuardrailRequest; class CreateGuardrailVersionRequest; class CreateModelCopyJobRequest; class CreateModelCustomizationJobRequest; + class CreateModelImportJobRequest; class CreateModelInvocationJobRequest; class CreateProvisionedModelThroughputRequest; class DeleteCustomModelRequest; class DeleteGuardrailRequest; + class DeleteImportedModelRequest; class DeleteModelInvocationLoggingConfigurationRequest; class DeleteProvisionedModelThroughputRequest; class GetCustomModelRequest; class GetEvaluationJobRequest; class GetFoundationModelRequest; class GetGuardrailRequest; + class GetImportedModelRequest; class GetModelCopyJobRequest; class GetModelCustomizationJobRequest; + class GetModelImportJobRequest; class GetModelInvocationJobRequest; class GetModelInvocationLoggingConfigurationRequest; class GetProvisionedModelThroughputRequest; @@ -129,8 +143,10 @@ namespace Aws class ListEvaluationJobsRequest; class ListFoundationModelsRequest; class ListGuardrailsRequest; + class ListImportedModelsRequest; class ListModelCopyJobsRequest; class ListModelCustomizationJobsRequest; + class ListModelImportJobsRequest; class ListModelInvocationJobsRequest; class ListProvisionedModelThroughputsRequest; class ListTagsForResourceRequest; @@ -145,23 +161,28 @@ namespace Aws /* End of service model forward declarations required in BedrockClient header */ /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome BatchDeleteEvaluationJobOutcome; typedef Aws::Utils::Outcome CreateEvaluationJobOutcome; typedef Aws::Utils::Outcome CreateGuardrailOutcome; typedef Aws::Utils::Outcome CreateGuardrailVersionOutcome; typedef Aws::Utils::Outcome CreateModelCopyJobOutcome; typedef Aws::Utils::Outcome CreateModelCustomizationJobOutcome; + typedef Aws::Utils::Outcome CreateModelImportJobOutcome; typedef Aws::Utils::Outcome CreateModelInvocationJobOutcome; typedef Aws::Utils::Outcome CreateProvisionedModelThroughputOutcome; typedef Aws::Utils::Outcome DeleteCustomModelOutcome; typedef Aws::Utils::Outcome DeleteGuardrailOutcome; + typedef Aws::Utils::Outcome DeleteImportedModelOutcome; typedef Aws::Utils::Outcome DeleteModelInvocationLoggingConfigurationOutcome; typedef Aws::Utils::Outcome DeleteProvisionedModelThroughputOutcome; typedef Aws::Utils::Outcome GetCustomModelOutcome; typedef Aws::Utils::Outcome GetEvaluationJobOutcome; typedef Aws::Utils::Outcome GetFoundationModelOutcome; typedef Aws::Utils::Outcome GetGuardrailOutcome; + typedef Aws::Utils::Outcome GetImportedModelOutcome; typedef Aws::Utils::Outcome GetModelCopyJobOutcome; typedef Aws::Utils::Outcome GetModelCustomizationJobOutcome; + typedef Aws::Utils::Outcome GetModelImportJobOutcome; typedef Aws::Utils::Outcome GetModelInvocationJobOutcome; typedef Aws::Utils::Outcome GetModelInvocationLoggingConfigurationOutcome; typedef Aws::Utils::Outcome GetProvisionedModelThroughputOutcome; @@ -169,8 +190,10 @@ namespace Aws typedef Aws::Utils::Outcome ListEvaluationJobsOutcome; typedef Aws::Utils::Outcome ListFoundationModelsOutcome; typedef Aws::Utils::Outcome ListGuardrailsOutcome; + typedef Aws::Utils::Outcome ListImportedModelsOutcome; typedef Aws::Utils::Outcome ListModelCopyJobsOutcome; typedef Aws::Utils::Outcome ListModelCustomizationJobsOutcome; + typedef Aws::Utils::Outcome ListModelImportJobsOutcome; typedef Aws::Utils::Outcome ListModelInvocationJobsOutcome; typedef Aws::Utils::Outcome ListProvisionedModelThroughputsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; @@ -185,23 +208,28 @@ namespace Aws /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ + typedef std::future BatchDeleteEvaluationJobOutcomeCallable; typedef std::future CreateEvaluationJobOutcomeCallable; typedef std::future CreateGuardrailOutcomeCallable; typedef std::future CreateGuardrailVersionOutcomeCallable; typedef std::future CreateModelCopyJobOutcomeCallable; typedef std::future CreateModelCustomizationJobOutcomeCallable; + typedef std::future CreateModelImportJobOutcomeCallable; typedef std::future CreateModelInvocationJobOutcomeCallable; typedef std::future CreateProvisionedModelThroughputOutcomeCallable; typedef std::future DeleteCustomModelOutcomeCallable; typedef std::future DeleteGuardrailOutcomeCallable; + typedef std::future DeleteImportedModelOutcomeCallable; typedef std::future DeleteModelInvocationLoggingConfigurationOutcomeCallable; typedef std::future DeleteProvisionedModelThroughputOutcomeCallable; typedef std::future GetCustomModelOutcomeCallable; typedef std::future GetEvaluationJobOutcomeCallable; typedef std::future GetFoundationModelOutcomeCallable; typedef std::future GetGuardrailOutcomeCallable; + typedef std::future GetImportedModelOutcomeCallable; typedef std::future GetModelCopyJobOutcomeCallable; typedef std::future GetModelCustomizationJobOutcomeCallable; + typedef std::future GetModelImportJobOutcomeCallable; typedef std::future GetModelInvocationJobOutcomeCallable; typedef std::future GetModelInvocationLoggingConfigurationOutcomeCallable; typedef std::future GetProvisionedModelThroughputOutcomeCallable; @@ -209,8 +237,10 @@ namespace Aws typedef std::future ListEvaluationJobsOutcomeCallable; typedef std::future ListFoundationModelsOutcomeCallable; typedef std::future ListGuardrailsOutcomeCallable; + typedef std::future ListImportedModelsOutcomeCallable; typedef std::future ListModelCopyJobsOutcomeCallable; typedef std::future ListModelCustomizationJobsOutcomeCallable; + typedef std::future ListModelImportJobsOutcomeCallable; typedef std::future ListModelInvocationJobsOutcomeCallable; typedef std::future ListProvisionedModelThroughputsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; @@ -228,23 +258,28 @@ namespace Aws class BedrockClient; /* Service model async handlers definitions */ + typedef std::function&) > BatchDeleteEvaluationJobResponseReceivedHandler; typedef std::function&) > CreateEvaluationJobResponseReceivedHandler; typedef std::function&) > CreateGuardrailResponseReceivedHandler; typedef std::function&) > CreateGuardrailVersionResponseReceivedHandler; typedef std::function&) > CreateModelCopyJobResponseReceivedHandler; typedef std::function&) > CreateModelCustomizationJobResponseReceivedHandler; + typedef std::function&) > CreateModelImportJobResponseReceivedHandler; typedef std::function&) > CreateModelInvocationJobResponseReceivedHandler; typedef std::function&) > CreateProvisionedModelThroughputResponseReceivedHandler; typedef std::function&) > DeleteCustomModelResponseReceivedHandler; typedef std::function&) > DeleteGuardrailResponseReceivedHandler; + typedef std::function&) > DeleteImportedModelResponseReceivedHandler; typedef std::function&) > DeleteModelInvocationLoggingConfigurationResponseReceivedHandler; typedef std::function&) > DeleteProvisionedModelThroughputResponseReceivedHandler; typedef std::function&) > GetCustomModelResponseReceivedHandler; typedef std::function&) > GetEvaluationJobResponseReceivedHandler; typedef std::function&) > GetFoundationModelResponseReceivedHandler; typedef std::function&) > GetGuardrailResponseReceivedHandler; + typedef std::function&) > GetImportedModelResponseReceivedHandler; typedef std::function&) > GetModelCopyJobResponseReceivedHandler; typedef std::function&) > GetModelCustomizationJobResponseReceivedHandler; + typedef std::function&) > GetModelImportJobResponseReceivedHandler; typedef std::function&) > GetModelInvocationJobResponseReceivedHandler; typedef std::function&) > GetModelInvocationLoggingConfigurationResponseReceivedHandler; typedef std::function&) > GetProvisionedModelThroughputResponseReceivedHandler; @@ -252,8 +287,10 @@ namespace Aws typedef std::function&) > ListEvaluationJobsResponseReceivedHandler; typedef std::function&) > ListFoundationModelsResponseReceivedHandler; typedef std::function&) > ListGuardrailsResponseReceivedHandler; + typedef std::function&) > ListImportedModelsResponseReceivedHandler; typedef std::function&) > ListModelCopyJobsResponseReceivedHandler; typedef std::function&) > ListModelCustomizationJobsResponseReceivedHandler; + typedef std::function&) > ListModelImportJobsResponseReceivedHandler; typedef std::function&) > ListModelInvocationJobsResponseReceivedHandler; typedef std::function&) > ListProvisionedModelThroughputsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobError.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobError.h new file mode 100644 index 00000000000..3ed3c6273d4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobError.h @@ -0,0 +1,96 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + + /** + *

A JSON array that provides the status of the model evaluation jobs being + * deleted.

See Also:

AWS + * API Reference

+ */ + class BatchDeleteEvaluationJobError + { + public: + AWS_BEDROCK_API BatchDeleteEvaluationJobError(); + AWS_BEDROCK_API BatchDeleteEvaluationJobError(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API BatchDeleteEvaluationJobError& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The ARN of the model evaluation job being deleted.

+ */ + inline const Aws::String& GetJobIdentifier() const{ return m_jobIdentifier; } + inline bool JobIdentifierHasBeenSet() const { return m_jobIdentifierHasBeenSet; } + inline void SetJobIdentifier(const Aws::String& value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier = value; } + inline void SetJobIdentifier(Aws::String&& value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier = std::move(value); } + inline void SetJobIdentifier(const char* value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier.assign(value); } + inline BatchDeleteEvaluationJobError& WithJobIdentifier(const Aws::String& value) { SetJobIdentifier(value); return *this;} + inline BatchDeleteEvaluationJobError& WithJobIdentifier(Aws::String&& value) { SetJobIdentifier(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobError& WithJobIdentifier(const char* value) { SetJobIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

A HTTP status code of the model evaluation job being deleted.

+ */ + inline const Aws::String& GetCode() const{ return m_code; } + inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } + inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } + inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } + inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } + inline BatchDeleteEvaluationJobError& WithCode(const Aws::String& value) { SetCode(value); return *this;} + inline BatchDeleteEvaluationJobError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobError& WithCode(const char* value) { SetCode(value); return *this;} + ///@} + + ///@{ + /** + *

A status message about the model evaluation job deletion.

+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + inline BatchDeleteEvaluationJobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + inline BatchDeleteEvaluationJobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobError& WithMessage(const char* value) { SetMessage(value); return *this;} + ///@} + private: + + Aws::String m_jobIdentifier; + bool m_jobIdentifierHasBeenSet = false; + + Aws::String m_code; + bool m_codeHasBeenSet = false; + + Aws::String m_message; + bool m_messageHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobItem.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobItem.h new file mode 100644 index 00000000000..62127ae3b28 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobItem.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + + /** + *

An array of model evaluation jobs to be deleted, and their associated + * statuses.

See Also:

AWS + * API Reference

+ */ + class BatchDeleteEvaluationJobItem + { + public: + AWS_BEDROCK_API BatchDeleteEvaluationJobItem(); + AWS_BEDROCK_API BatchDeleteEvaluationJobItem(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API BatchDeleteEvaluationJobItem& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The ARN of model evaluation job to be deleted.

+ */ + inline const Aws::String& GetJobIdentifier() const{ return m_jobIdentifier; } + inline bool JobIdentifierHasBeenSet() const { return m_jobIdentifierHasBeenSet; } + inline void SetJobIdentifier(const Aws::String& value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier = value; } + inline void SetJobIdentifier(Aws::String&& value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier = std::move(value); } + inline void SetJobIdentifier(const char* value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier.assign(value); } + inline BatchDeleteEvaluationJobItem& WithJobIdentifier(const Aws::String& value) { SetJobIdentifier(value); return *this;} + inline BatchDeleteEvaluationJobItem& WithJobIdentifier(Aws::String&& value) { SetJobIdentifier(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobItem& WithJobIdentifier(const char* value) { SetJobIdentifier(value); return *this;} + ///@} + + ///@{ + /** + *

The status of the job's deletion.

+ */ + inline const EvaluationJobStatus& GetJobStatus() const{ return m_jobStatus; } + inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; } + inline void SetJobStatus(const EvaluationJobStatus& value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; } + inline void SetJobStatus(EvaluationJobStatus&& value) { m_jobStatusHasBeenSet = true; m_jobStatus = std::move(value); } + inline BatchDeleteEvaluationJobItem& WithJobStatus(const EvaluationJobStatus& value) { SetJobStatus(value); return *this;} + inline BatchDeleteEvaluationJobItem& WithJobStatus(EvaluationJobStatus&& value) { SetJobStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_jobIdentifier; + bool m_jobIdentifierHasBeenSet = false; + + EvaluationJobStatus m_jobStatus; + bool m_jobStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobRequest.h new file mode 100644 index 00000000000..dff5d5e20ff --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobRequest.h @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class BatchDeleteEvaluationJobRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API BatchDeleteEvaluationJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "BatchDeleteEvaluationJob"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

An array of model evaluation job ARNs to be deleted.

+ */ + inline const Aws::Vector& GetJobIdentifiers() const{ return m_jobIdentifiers; } + inline bool JobIdentifiersHasBeenSet() const { return m_jobIdentifiersHasBeenSet; } + inline void SetJobIdentifiers(const Aws::Vector& value) { m_jobIdentifiersHasBeenSet = true; m_jobIdentifiers = value; } + inline void SetJobIdentifiers(Aws::Vector&& value) { m_jobIdentifiersHasBeenSet = true; m_jobIdentifiers = std::move(value); } + inline BatchDeleteEvaluationJobRequest& WithJobIdentifiers(const Aws::Vector& value) { SetJobIdentifiers(value); return *this;} + inline BatchDeleteEvaluationJobRequest& WithJobIdentifiers(Aws::Vector&& value) { SetJobIdentifiers(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobRequest& AddJobIdentifiers(const Aws::String& value) { m_jobIdentifiersHasBeenSet = true; m_jobIdentifiers.push_back(value); return *this; } + inline BatchDeleteEvaluationJobRequest& AddJobIdentifiers(Aws::String&& value) { m_jobIdentifiersHasBeenSet = true; m_jobIdentifiers.push_back(std::move(value)); return *this; } + inline BatchDeleteEvaluationJobRequest& AddJobIdentifiers(const char* value) { m_jobIdentifiersHasBeenSet = true; m_jobIdentifiers.push_back(value); return *this; } + ///@} + private: + + Aws::Vector m_jobIdentifiers; + bool m_jobIdentifiersHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobResult.h new file mode 100644 index 00000000000..d870df53803 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/BatchDeleteEvaluationJobResult.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class BatchDeleteEvaluationJobResult + { + public: + AWS_BEDROCK_API BatchDeleteEvaluationJobResult(); + AWS_BEDROCK_API BatchDeleteEvaluationJobResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API BatchDeleteEvaluationJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

A JSON object containing the HTTP status codes and the ARNs of model + * evaluation jobs that failed to be deleted.

+ */ + inline const Aws::Vector& GetErrors() const{ return m_errors; } + inline void SetErrors(const Aws::Vector& value) { m_errors = value; } + inline void SetErrors(Aws::Vector&& value) { m_errors = std::move(value); } + inline BatchDeleteEvaluationJobResult& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} + inline BatchDeleteEvaluationJobResult& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobResult& AddErrors(const BatchDeleteEvaluationJobError& value) { m_errors.push_back(value); return *this; } + inline BatchDeleteEvaluationJobResult& AddErrors(BatchDeleteEvaluationJobError&& value) { m_errors.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

The list of model evaluation jobs to be deleted.

+ */ + inline const Aws::Vector& GetEvaluationJobs() const{ return m_evaluationJobs; } + inline void SetEvaluationJobs(const Aws::Vector& value) { m_evaluationJobs = value; } + inline void SetEvaluationJobs(Aws::Vector&& value) { m_evaluationJobs = std::move(value); } + inline BatchDeleteEvaluationJobResult& WithEvaluationJobs(const Aws::Vector& value) { SetEvaluationJobs(value); return *this;} + inline BatchDeleteEvaluationJobResult& WithEvaluationJobs(Aws::Vector&& value) { SetEvaluationJobs(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobResult& AddEvaluationJobs(const BatchDeleteEvaluationJobItem& value) { m_evaluationJobs.push_back(value); return *this; } + inline BatchDeleteEvaluationJobResult& AddEvaluationJobs(BatchDeleteEvaluationJobItem&& value) { m_evaluationJobs.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline BatchDeleteEvaluationJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline BatchDeleteEvaluationJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline BatchDeleteEvaluationJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_errors; + + Aws::Vector m_evaluationJobs; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateModelImportJobRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateModelImportJobRequest.h new file mode 100644 index 00000000000..52c6ff32255 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateModelImportJobRequest.h @@ -0,0 +1,197 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class CreateModelImportJobRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API CreateModelImportJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateModelImportJob"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The name of the import job.

+ */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } + inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } + inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } + inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } + inline CreateModelImportJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + inline CreateModelImportJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + inline CreateModelImportJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the imported model.

+ */ + inline const Aws::String& GetImportedModelName() const{ return m_importedModelName; } + inline bool ImportedModelNameHasBeenSet() const { return m_importedModelNameHasBeenSet; } + inline void SetImportedModelName(const Aws::String& value) { m_importedModelNameHasBeenSet = true; m_importedModelName = value; } + inline void SetImportedModelName(Aws::String&& value) { m_importedModelNameHasBeenSet = true; m_importedModelName = std::move(value); } + inline void SetImportedModelName(const char* value) { m_importedModelNameHasBeenSet = true; m_importedModelName.assign(value); } + inline CreateModelImportJobRequest& WithImportedModelName(const Aws::String& value) { SetImportedModelName(value); return *this;} + inline CreateModelImportJobRequest& WithImportedModelName(Aws::String&& value) { SetImportedModelName(std::move(value)); return *this;} + inline CreateModelImportJobRequest& WithImportedModelName(const char* value) { SetImportedModelName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the model import job.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + inline CreateModelImportJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + inline CreateModelImportJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + inline CreateModelImportJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + ///@} + + ///@{ + /** + *

The data source for the imported model.

+ */ + inline const ModelDataSource& GetModelDataSource() const{ return m_modelDataSource; } + inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; } + inline void SetModelDataSource(const ModelDataSource& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = value; } + inline void SetModelDataSource(ModelDataSource&& value) { m_modelDataSourceHasBeenSet = true; m_modelDataSource = std::move(value); } + inline CreateModelImportJobRequest& WithModelDataSource(const ModelDataSource& value) { SetModelDataSource(value); return *this;} + inline CreateModelImportJobRequest& WithModelDataSource(ModelDataSource&& value) { SetModelDataSource(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Tags to attach to this import job.

+ */ + inline const Aws::Vector& GetJobTags() const{ return m_jobTags; } + inline bool JobTagsHasBeenSet() const { return m_jobTagsHasBeenSet; } + inline void SetJobTags(const Aws::Vector& value) { m_jobTagsHasBeenSet = true; m_jobTags = value; } + inline void SetJobTags(Aws::Vector&& value) { m_jobTagsHasBeenSet = true; m_jobTags = std::move(value); } + inline CreateModelImportJobRequest& WithJobTags(const Aws::Vector& value) { SetJobTags(value); return *this;} + inline CreateModelImportJobRequest& WithJobTags(Aws::Vector&& value) { SetJobTags(std::move(value)); return *this;} + inline CreateModelImportJobRequest& AddJobTags(const Tag& value) { m_jobTagsHasBeenSet = true; m_jobTags.push_back(value); return *this; } + inline CreateModelImportJobRequest& AddJobTags(Tag&& value) { m_jobTagsHasBeenSet = true; m_jobTags.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

Tags to attach to the imported model.

+ */ + inline const Aws::Vector& GetImportedModelTags() const{ return m_importedModelTags; } + inline bool ImportedModelTagsHasBeenSet() const { return m_importedModelTagsHasBeenSet; } + inline void SetImportedModelTags(const Aws::Vector& value) { m_importedModelTagsHasBeenSet = true; m_importedModelTags = value; } + inline void SetImportedModelTags(Aws::Vector&& value) { m_importedModelTagsHasBeenSet = true; m_importedModelTags = std::move(value); } + inline CreateModelImportJobRequest& WithImportedModelTags(const Aws::Vector& value) { SetImportedModelTags(value); return *this;} + inline CreateModelImportJobRequest& WithImportedModelTags(Aws::Vector&& value) { SetImportedModelTags(std::move(value)); return *this;} + inline CreateModelImportJobRequest& AddImportedModelTags(const Tag& value) { m_importedModelTagsHasBeenSet = true; m_importedModelTags.push_back(value); return *this; } + inline CreateModelImportJobRequest& AddImportedModelTags(Tag&& value) { m_importedModelTagsHasBeenSet = true; m_importedModelTags.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

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.

+ */ + inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } + inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } + inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } + inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } + inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } + inline CreateModelImportJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} + inline CreateModelImportJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} + inline CreateModelImportJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} + ///@} + + ///@{ + /** + *

VPC configuration parameters for the private Virtual Private Cloud (VPC) that + * contains the resources you are using for the import job.

+ */ + inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } + inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } + inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } + inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } + inline CreateModelImportJobRequest& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} + inline CreateModelImportJobRequest& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The imported model is encrypted at rest using this key.

+ */ + inline const Aws::String& GetImportedModelKmsKeyId() const{ return m_importedModelKmsKeyId; } + inline bool ImportedModelKmsKeyIdHasBeenSet() const { return m_importedModelKmsKeyIdHasBeenSet; } + inline void SetImportedModelKmsKeyId(const Aws::String& value) { m_importedModelKmsKeyIdHasBeenSet = true; m_importedModelKmsKeyId = value; } + inline void SetImportedModelKmsKeyId(Aws::String&& value) { m_importedModelKmsKeyIdHasBeenSet = true; m_importedModelKmsKeyId = std::move(value); } + inline void SetImportedModelKmsKeyId(const char* value) { m_importedModelKmsKeyIdHasBeenSet = true; m_importedModelKmsKeyId.assign(value); } + inline CreateModelImportJobRequest& WithImportedModelKmsKeyId(const Aws::String& value) { SetImportedModelKmsKeyId(value); return *this;} + inline CreateModelImportJobRequest& WithImportedModelKmsKeyId(Aws::String&& value) { SetImportedModelKmsKeyId(std::move(value)); return *this;} + inline CreateModelImportJobRequest& WithImportedModelKmsKeyId(const char* value) { SetImportedModelKmsKeyId(value); return *this;} + ///@} + private: + + Aws::String m_jobName; + bool m_jobNameHasBeenSet = false; + + Aws::String m_importedModelName; + bool m_importedModelNameHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + + ModelDataSource m_modelDataSource; + bool m_modelDataSourceHasBeenSet = false; + + Aws::Vector m_jobTags; + bool m_jobTagsHasBeenSet = false; + + Aws::Vector m_importedModelTags; + bool m_importedModelTagsHasBeenSet = false; + + Aws::String m_clientRequestToken; + bool m_clientRequestTokenHasBeenSet = false; + + VpcConfig m_vpcConfig; + bool m_vpcConfigHasBeenSet = false; + + Aws::String m_importedModelKmsKeyId; + bool m_importedModelKmsKeyIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateModelImportJobResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateModelImportJobResult.h new file mode 100644 index 00000000000..8347e7121e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/CreateModelImportJobResult.h @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class CreateModelImportJobResult + { + public: + AWS_BEDROCK_API CreateModelImportJobResult(); + AWS_BEDROCK_API CreateModelImportJobResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API CreateModelImportJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the model import job.

+ */ + inline const Aws::String& GetJobArn() const{ return m_jobArn; } + inline void SetJobArn(const Aws::String& value) { m_jobArn = value; } + inline void SetJobArn(Aws::String&& value) { m_jobArn = std::move(value); } + inline void SetJobArn(const char* value) { m_jobArn.assign(value); } + inline CreateModelImportJobResult& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} + inline CreateModelImportJobResult& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} + inline CreateModelImportJobResult& WithJobArn(const char* value) { SetJobArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateModelImportJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateModelImportJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateModelImportJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_jobArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/DeleteImportedModelRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/DeleteImportedModelRequest.h new file mode 100644 index 00000000000..deb7028ed91 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/DeleteImportedModelRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class DeleteImportedModelRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API DeleteImportedModelRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteImportedModel"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

Name of the imported model to delete.

+ */ + inline const Aws::String& GetModelIdentifier() const{ return m_modelIdentifier; } + inline bool ModelIdentifierHasBeenSet() const { return m_modelIdentifierHasBeenSet; } + inline void SetModelIdentifier(const Aws::String& value) { m_modelIdentifierHasBeenSet = true; m_modelIdentifier = value; } + inline void SetModelIdentifier(Aws::String&& value) { m_modelIdentifierHasBeenSet = true; m_modelIdentifier = std::move(value); } + inline void SetModelIdentifier(const char* value) { m_modelIdentifierHasBeenSet = true; m_modelIdentifier.assign(value); } + inline DeleteImportedModelRequest& WithModelIdentifier(const Aws::String& value) { SetModelIdentifier(value); return *this;} + inline DeleteImportedModelRequest& WithModelIdentifier(Aws::String&& value) { SetModelIdentifier(std::move(value)); return *this;} + inline DeleteImportedModelRequest& WithModelIdentifier(const char* value) { SetModelIdentifier(value); return *this;} + ///@} + private: + + Aws::String m_modelIdentifier; + bool m_modelIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/DeleteImportedModelResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/DeleteImportedModelResult.h new file mode 100644 index 00000000000..c8b7034aac0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/DeleteImportedModelResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class DeleteImportedModelResult + { + public: + AWS_BEDROCK_API DeleteImportedModelResult(); + AWS_BEDROCK_API DeleteImportedModelResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API DeleteImportedModelResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteImportedModelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteImportedModelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteImportedModelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h index c7e7bd6b7ea..0a2f9679210 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationBedrockModel.h @@ -28,7 +28,7 @@ namespace Model * evaluation job. Each Amazon Bedrock model supports different * inferenceParams. To learn more about supported inference parameters * for Amazon Bedrock models, see Inference + * href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference * parameters for foundation models.

The inferenceParams * are specified using JSON. To successfully insert JSON as string make sure that * all quotations are properly escaped. For example, diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationDataset.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationDataset.h index f7ac315dbf1..364990efa86 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationDataset.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationDataset.h @@ -45,7 +45,7 @@ namespace Model *

Used to specify supported built-in prompt datasets. Valid values are * Builtin.Bold, Builtin.BoolQ, * Builtin.NaturalQuestions, Builtin.Gigaword, - * Builtin.RealToxicityPrompts, Builtin.TriviaQa, + * Builtin.RealToxicityPrompts, Builtin.TriviaQA, * Builtin.T-Rex, Builtin.WomensEcommerceClothingReviews * and Builtin.Wikitext2.

*/ diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationJobStatus.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationJobStatus.h index 94f8b08ae99..71f1f65f2a9 100644 --- a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationJobStatus.h +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/EvaluationJobStatus.h @@ -20,7 +20,8 @@ namespace Model Completed, Failed, Stopping, - Stopped + Stopped, + Deleting }; namespace EvaluationJobStatusMapper diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetImportedModelRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetImportedModelRequest.h new file mode 100644 index 00000000000..393777ca9f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetImportedModelRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class GetImportedModelRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API GetImportedModelRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetImportedModel"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

Name or Amazon Resource Name (ARN) of the imported model.

+ */ + inline const Aws::String& GetModelIdentifier() const{ return m_modelIdentifier; } + inline bool ModelIdentifierHasBeenSet() const { return m_modelIdentifierHasBeenSet; } + inline void SetModelIdentifier(const Aws::String& value) { m_modelIdentifierHasBeenSet = true; m_modelIdentifier = value; } + inline void SetModelIdentifier(Aws::String&& value) { m_modelIdentifierHasBeenSet = true; m_modelIdentifier = std::move(value); } + inline void SetModelIdentifier(const char* value) { m_modelIdentifierHasBeenSet = true; m_modelIdentifier.assign(value); } + inline GetImportedModelRequest& WithModelIdentifier(const Aws::String& value) { SetModelIdentifier(value); return *this;} + inline GetImportedModelRequest& WithModelIdentifier(Aws::String&& value) { SetModelIdentifier(std::move(value)); return *this;} + inline GetImportedModelRequest& WithModelIdentifier(const char* value) { SetModelIdentifier(value); return *this;} + ///@} + private: + + Aws::String m_modelIdentifier; + bool m_modelIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetImportedModelResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetImportedModelResult.h new file mode 100644 index 00000000000..b56772336da --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetImportedModelResult.h @@ -0,0 +1,170 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class GetImportedModelResult + { + public: + AWS_BEDROCK_API GetImportedModelResult(); + AWS_BEDROCK_API GetImportedModelResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API GetImportedModelResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The Amazon Resource Name (ARN) associated with this imported model.

+ */ + inline const Aws::String& GetModelArn() const{ return m_modelArn; } + inline void SetModelArn(const Aws::String& value) { m_modelArn = value; } + inline void SetModelArn(Aws::String&& value) { m_modelArn = std::move(value); } + inline void SetModelArn(const char* value) { m_modelArn.assign(value); } + inline GetImportedModelResult& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;} + inline GetImportedModelResult& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;} + inline GetImportedModelResult& WithModelArn(const char* value) { SetModelArn(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the imported model.

+ */ + inline const Aws::String& GetModelName() const{ return m_modelName; } + inline void SetModelName(const Aws::String& value) { m_modelName = value; } + inline void SetModelName(Aws::String&& value) { m_modelName = std::move(value); } + inline void SetModelName(const char* value) { m_modelName.assign(value); } + inline GetImportedModelResult& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} + inline GetImportedModelResult& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} + inline GetImportedModelResult& WithModelName(const char* value) { SetModelName(value); return *this;} + ///@} + + ///@{ + /** + *

Job name associated with the imported model.

+ */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + inline void SetJobName(const Aws::String& value) { m_jobName = value; } + inline void SetJobName(Aws::String&& value) { m_jobName = std::move(value); } + inline void SetJobName(const char* value) { m_jobName.assign(value); } + inline GetImportedModelResult& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + inline GetImportedModelResult& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + inline GetImportedModelResult& WithJobName(const char* value) { SetJobName(value); return *this;} + ///@} + + ///@{ + /** + *

Job Amazon Resource Name (ARN) associated with the imported model.

+ */ + inline const Aws::String& GetJobArn() const{ return m_jobArn; } + inline void SetJobArn(const Aws::String& value) { m_jobArn = value; } + inline void SetJobArn(Aws::String&& value) { m_jobArn = std::move(value); } + inline void SetJobArn(const char* value) { m_jobArn.assign(value); } + inline GetImportedModelResult& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} + inline GetImportedModelResult& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} + inline GetImportedModelResult& WithJobArn(const char* value) { SetJobArn(value); return *this;} + ///@} + + ///@{ + /** + *

The data source for this imported model.

+ */ + inline const ModelDataSource& GetModelDataSource() const{ return m_modelDataSource; } + inline void SetModelDataSource(const ModelDataSource& value) { m_modelDataSource = value; } + inline void SetModelDataSource(ModelDataSource&& value) { m_modelDataSource = std::move(value); } + inline GetImportedModelResult& WithModelDataSource(const ModelDataSource& value) { SetModelDataSource(value); return *this;} + inline GetImportedModelResult& WithModelDataSource(ModelDataSource&& value) { SetModelDataSource(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Creation time of the imported model.

+ */ + inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } + inline GetImportedModelResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline GetImportedModelResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The architecture of the imported model.

+ */ + inline const Aws::String& GetModelArchitecture() const{ return m_modelArchitecture; } + inline void SetModelArchitecture(const Aws::String& value) { m_modelArchitecture = value; } + inline void SetModelArchitecture(Aws::String&& value) { m_modelArchitecture = std::move(value); } + inline void SetModelArchitecture(const char* value) { m_modelArchitecture.assign(value); } + inline GetImportedModelResult& WithModelArchitecture(const Aws::String& value) { SetModelArchitecture(value); return *this;} + inline GetImportedModelResult& WithModelArchitecture(Aws::String&& value) { SetModelArchitecture(std::move(value)); return *this;} + inline GetImportedModelResult& WithModelArchitecture(const char* value) { SetModelArchitecture(value); return *this;} + ///@} + + ///@{ + /** + *

The imported model is encrypted at rest using this key.

+ */ + inline const Aws::String& GetModelKmsKeyArn() const{ return m_modelKmsKeyArn; } + inline void SetModelKmsKeyArn(const Aws::String& value) { m_modelKmsKeyArn = value; } + inline void SetModelKmsKeyArn(Aws::String&& value) { m_modelKmsKeyArn = std::move(value); } + inline void SetModelKmsKeyArn(const char* value) { m_modelKmsKeyArn.assign(value); } + inline GetImportedModelResult& WithModelKmsKeyArn(const Aws::String& value) { SetModelKmsKeyArn(value); return *this;} + inline GetImportedModelResult& WithModelKmsKeyArn(Aws::String&& value) { SetModelKmsKeyArn(std::move(value)); return *this;} + inline GetImportedModelResult& WithModelKmsKeyArn(const char* value) { SetModelKmsKeyArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetImportedModelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetImportedModelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetImportedModelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_modelArn; + + Aws::String m_modelName; + + Aws::String m_jobName; + + Aws::String m_jobArn; + + ModelDataSource m_modelDataSource; + + Aws::Utils::DateTime m_creationTime; + + Aws::String m_modelArchitecture; + + Aws::String m_modelKmsKeyArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetModelImportJobRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetModelImportJobRequest.h new file mode 100644 index 00000000000..86ea79ae0b2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetModelImportJobRequest.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class GetModelImportJobRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API GetModelImportJobRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetModelImportJob"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

The identifier of the import job.

+ */ + inline const Aws::String& GetJobIdentifier() const{ return m_jobIdentifier; } + inline bool JobIdentifierHasBeenSet() const { return m_jobIdentifierHasBeenSet; } + inline void SetJobIdentifier(const Aws::String& value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier = value; } + inline void SetJobIdentifier(Aws::String&& value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier = std::move(value); } + inline void SetJobIdentifier(const char* value) { m_jobIdentifierHasBeenSet = true; m_jobIdentifier.assign(value); } + inline GetModelImportJobRequest& WithJobIdentifier(const Aws::String& value) { SetJobIdentifier(value); return *this;} + inline GetModelImportJobRequest& WithJobIdentifier(Aws::String&& value) { SetJobIdentifier(std::move(value)); return *this;} + inline GetModelImportJobRequest& WithJobIdentifier(const char* value) { SetJobIdentifier(value); return *this;} + ///@} + private: + + Aws::String m_jobIdentifier; + bool m_jobIdentifierHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetModelImportJobResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetModelImportJobResult.h new file mode 100644 index 00000000000..bdb78d6f95e --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/GetModelImportJobResult.h @@ -0,0 +1,241 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class GetModelImportJobResult + { + public: + AWS_BEDROCK_API GetModelImportJobResult(); + AWS_BEDROCK_API GetModelImportJobResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API GetModelImportJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the import job.

+ */ + inline const Aws::String& GetJobArn() const{ return m_jobArn; } + inline void SetJobArn(const Aws::String& value) { m_jobArn = value; } + inline void SetJobArn(Aws::String&& value) { m_jobArn = std::move(value); } + inline void SetJobArn(const char* value) { m_jobArn.assign(value); } + inline GetModelImportJobResult& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} + inline GetModelImportJobResult& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} + inline GetModelImportJobResult& WithJobArn(const char* value) { SetJobArn(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the import job.

+ */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + inline void SetJobName(const Aws::String& value) { m_jobName = value; } + inline void SetJobName(Aws::String&& value) { m_jobName = std::move(value); } + inline void SetJobName(const char* value) { m_jobName.assign(value); } + inline GetModelImportJobResult& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + inline GetModelImportJobResult& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + inline GetModelImportJobResult& WithJobName(const char* value) { SetJobName(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the imported model.

+ */ + inline const Aws::String& GetImportedModelName() const{ return m_importedModelName; } + inline void SetImportedModelName(const Aws::String& value) { m_importedModelName = value; } + inline void SetImportedModelName(Aws::String&& value) { m_importedModelName = std::move(value); } + inline void SetImportedModelName(const char* value) { m_importedModelName.assign(value); } + inline GetModelImportJobResult& WithImportedModelName(const Aws::String& value) { SetImportedModelName(value); return *this;} + inline GetModelImportJobResult& WithImportedModelName(Aws::String&& value) { SetImportedModelName(std::move(value)); return *this;} + inline GetModelImportJobResult& WithImportedModelName(const char* value) { SetImportedModelName(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the imported model.

+ */ + inline const Aws::String& GetImportedModelArn() const{ return m_importedModelArn; } + inline void SetImportedModelArn(const Aws::String& value) { m_importedModelArn = value; } + inline void SetImportedModelArn(Aws::String&& value) { m_importedModelArn = std::move(value); } + inline void SetImportedModelArn(const char* value) { m_importedModelArn.assign(value); } + inline GetModelImportJobResult& WithImportedModelArn(const Aws::String& value) { SetImportedModelArn(value); return *this;} + inline GetModelImportJobResult& WithImportedModelArn(Aws::String&& value) { SetImportedModelArn(std::move(value)); return *this;} + inline GetModelImportJobResult& WithImportedModelArn(const char* value) { SetImportedModelArn(value); return *this;} + ///@} + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the IAM role associated with this job.

+ */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; } + inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); } + inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } + inline GetModelImportJobResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + inline GetModelImportJobResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + inline GetModelImportJobResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + ///@} + + ///@{ + /** + *

The data source for the imported model.

+ */ + inline const ModelDataSource& GetModelDataSource() const{ return m_modelDataSource; } + inline void SetModelDataSource(const ModelDataSource& value) { m_modelDataSource = value; } + inline void SetModelDataSource(ModelDataSource&& value) { m_modelDataSource = std::move(value); } + inline GetModelImportJobResult& WithModelDataSource(const ModelDataSource& value) { SetModelDataSource(value); return *this;} + inline GetModelImportJobResult& WithModelDataSource(ModelDataSource&& value) { SetModelDataSource(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The status of the job. A successful job transitions from in-progress to + * completed when the imported model is ready to use. If the job failed, the + * failure message contains information about why the job failed.

+ */ + inline const ModelImportJobStatus& GetStatus() const{ return m_status; } + inline void SetStatus(const ModelImportJobStatus& value) { m_status = value; } + inline void SetStatus(ModelImportJobStatus&& value) { m_status = std::move(value); } + inline GetModelImportJobResult& WithStatus(const ModelImportJobStatus& value) { SetStatus(value); return *this;} + inline GetModelImportJobResult& WithStatus(ModelImportJobStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Information about why the import job failed.

+ */ + inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; } + inline void SetFailureMessage(const Aws::String& value) { m_failureMessage = value; } + inline void SetFailureMessage(Aws::String&& value) { m_failureMessage = std::move(value); } + inline void SetFailureMessage(const char* value) { m_failureMessage.assign(value); } + inline GetModelImportJobResult& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;} + inline GetModelImportJobResult& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;} + inline GetModelImportJobResult& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;} + ///@} + + ///@{ + /** + *

The time the resource was created.

+ */ + inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } + inline GetModelImportJobResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline GetModelImportJobResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Time the resource was last modified.

+ */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } + inline GetModelImportJobResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline GetModelImportJobResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Time that the resource transitioned to terminal state.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; } + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); } + inline GetModelImportJobResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + inline GetModelImportJobResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The Virtual Private Cloud (VPC) configuration of the import model job.

+ */ + inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } + inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfig = value; } + inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfig = std::move(value); } + inline GetModelImportJobResult& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} + inline GetModelImportJobResult& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The imported model is encrypted at rest using this key.

+ */ + inline const Aws::String& GetImportedModelKmsKeyArn() const{ return m_importedModelKmsKeyArn; } + inline void SetImportedModelKmsKeyArn(const Aws::String& value) { m_importedModelKmsKeyArn = value; } + inline void SetImportedModelKmsKeyArn(Aws::String&& value) { m_importedModelKmsKeyArn = std::move(value); } + inline void SetImportedModelKmsKeyArn(const char* value) { m_importedModelKmsKeyArn.assign(value); } + inline GetModelImportJobResult& WithImportedModelKmsKeyArn(const Aws::String& value) { SetImportedModelKmsKeyArn(value); return *this;} + inline GetModelImportJobResult& WithImportedModelKmsKeyArn(Aws::String&& value) { SetImportedModelKmsKeyArn(std::move(value)); return *this;} + inline GetModelImportJobResult& WithImportedModelKmsKeyArn(const char* value) { SetImportedModelKmsKeyArn(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetModelImportJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetModelImportJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetModelImportJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_jobArn; + + Aws::String m_jobName; + + Aws::String m_importedModelName; + + Aws::String m_importedModelArn; + + Aws::String m_roleArn; + + ModelDataSource m_modelDataSource; + + ModelImportJobStatus m_status; + + Aws::String m_failureMessage; + + Aws::Utils::DateTime m_creationTime; + + Aws::Utils::DateTime m_lastModifiedTime; + + Aws::Utils::DateTime m_endTime; + + VpcConfig m_vpcConfig; + + Aws::String m_importedModelKmsKeyArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ImportedModelSummary.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ImportedModelSummary.h new file mode 100644 index 00000000000..3003f1e9fa9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ImportedModelSummary.h @@ -0,0 +1,94 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + + /** + *

Information about tne imported model.

See Also:

AWS + * API Reference

+ */ + class ImportedModelSummary + { + public: + AWS_BEDROCK_API ImportedModelSummary(); + AWS_BEDROCK_API ImportedModelSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API ImportedModelSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the imported model.

+ */ + inline const Aws::String& GetModelArn() const{ return m_modelArn; } + inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; } + inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; } + inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); } + inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); } + inline ImportedModelSummary& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;} + inline ImportedModelSummary& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;} + inline ImportedModelSummary& WithModelArn(const char* value) { SetModelArn(value); return *this;} + ///@} + + ///@{ + /** + *

Name of the imported model.

+ */ + inline const Aws::String& GetModelName() const{ return m_modelName; } + inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } + inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } + inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } + inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } + inline ImportedModelSummary& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} + inline ImportedModelSummary& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} + inline ImportedModelSummary& WithModelName(const char* value) { SetModelName(value); return *this;} + ///@} + + ///@{ + /** + *

Creation time of the imported model.

+ */ + inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + inline ImportedModelSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline ImportedModelSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_modelArn; + bool m_modelArnHasBeenSet = false; + + Aws::String m_modelName; + bool m_modelNameHasBeenSet = false; + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListImportedModelsRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListImportedModelsRequest.h new file mode 100644 index 00000000000..d5e7fe52bde --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListImportedModelsRequest.h @@ -0,0 +1,161 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class ListImportedModelsRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API ListImportedModelsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListImportedModels"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

Return imported models that created before the specified time.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; } + inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; } + inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; } + inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); } + inline ListImportedModelsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;} + inline ListImportedModelsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Return imported models that were created after the specified time.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; } + inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; } + inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; } + inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); } + inline ListImportedModelsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;} + inline ListImportedModelsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Return imported models only if the model name contains these characters.

+ */ + inline const Aws::String& GetNameContains() const{ return m_nameContains; } + inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; } + inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; } + inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); } + inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); } + inline ListImportedModelsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;} + inline ListImportedModelsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;} + inline ListImportedModelsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;} + ///@} + + ///@{ + /** + *

The maximum number of results to return in the response. If the total number + * of results is greater than this value, use the token returned in the response in + * the nextToken field when making another request to return the next + * batch of results.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListImportedModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

If the total number of results is greater than the maxResults + * value provided in the request, enter the token returned in the + * nextToken field in the response in this field to return the next + * batch of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListImportedModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListImportedModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListImportedModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The field to sort by in the returned list of imported models.

+ */ + inline const SortModelsBy& GetSortBy() const{ return m_sortBy; } + inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } + inline void SetSortBy(const SortModelsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } + inline void SetSortBy(SortModelsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } + inline ListImportedModelsRequest& WithSortBy(const SortModelsBy& value) { SetSortBy(value); return *this;} + inline ListImportedModelsRequest& WithSortBy(SortModelsBy&& value) { SetSortBy(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Specifies whetehr to sort the results in ascending or descending order.

+ */ + inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } + inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } + inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } + inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } + inline ListImportedModelsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} + inline ListImportedModelsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_creationTimeBefore; + bool m_creationTimeBeforeHasBeenSet = false; + + Aws::Utils::DateTime m_creationTimeAfter; + bool m_creationTimeAfterHasBeenSet = false; + + Aws::String m_nameContains; + bool m_nameContainsHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + SortModelsBy m_sortBy; + bool m_sortByHasBeenSet = false; + + SortOrder m_sortOrder; + bool m_sortOrderHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListImportedModelsResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListImportedModelsResult.h new file mode 100644 index 00000000000..dcceeb1dfb0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListImportedModelsResult.h @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class ListImportedModelsResult + { + public: + AWS_BEDROCK_API ListImportedModelsResult(); + AWS_BEDROCK_API ListImportedModelsResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API ListImportedModelsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

If the total number of results is greater than the maxResults + * value provided in the request, use this token when making another request in the + * nextToken field to return the next batch of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListImportedModelsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListImportedModelsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListImportedModelsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

Model summaries.

+ */ + inline const Aws::Vector& GetModelSummaries() const{ return m_modelSummaries; } + inline void SetModelSummaries(const Aws::Vector& value) { m_modelSummaries = value; } + inline void SetModelSummaries(Aws::Vector&& value) { m_modelSummaries = std::move(value); } + inline ListImportedModelsResult& WithModelSummaries(const Aws::Vector& value) { SetModelSummaries(value); return *this;} + inline ListImportedModelsResult& WithModelSummaries(Aws::Vector&& value) { SetModelSummaries(std::move(value)); return *this;} + inline ListImportedModelsResult& AddModelSummaries(const ImportedModelSummary& value) { m_modelSummaries.push_back(value); return *this; } + inline ListImportedModelsResult& AddModelSummaries(ImportedModelSummary&& value) { m_modelSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListImportedModelsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListImportedModelsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListImportedModelsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_modelSummaries; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListModelImportJobsRequest.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListModelImportJobsRequest.h new file mode 100644 index 00000000000..d4acd052d5d --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListModelImportJobsRequest.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace Bedrock +{ +namespace Model +{ + + /** + */ + class ListModelImportJobsRequest : public BedrockRequest + { + public: + AWS_BEDROCK_API ListModelImportJobsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListModelImportJobs"; } + + AWS_BEDROCK_API Aws::String SerializePayload() const override; + + AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

Return import jobs that were created after the specified time.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimeAfter() const{ return m_creationTimeAfter; } + inline bool CreationTimeAfterHasBeenSet() const { return m_creationTimeAfterHasBeenSet; } + inline void SetCreationTimeAfter(const Aws::Utils::DateTime& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = value; } + inline void SetCreationTimeAfter(Aws::Utils::DateTime&& value) { m_creationTimeAfterHasBeenSet = true; m_creationTimeAfter = std::move(value); } + inline ListModelImportJobsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;} + inline ListModelImportJobsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Return import jobs that were created before the specified time.

+ */ + inline const Aws::Utils::DateTime& GetCreationTimeBefore() const{ return m_creationTimeBefore; } + inline bool CreationTimeBeforeHasBeenSet() const { return m_creationTimeBeforeHasBeenSet; } + inline void SetCreationTimeBefore(const Aws::Utils::DateTime& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = value; } + inline void SetCreationTimeBefore(Aws::Utils::DateTime&& value) { m_creationTimeBeforeHasBeenSet = true; m_creationTimeBefore = std::move(value); } + inline ListModelImportJobsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;} + inline ListModelImportJobsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Return imported jobs with the specified status.

+ */ + inline const ModelImportJobStatus& GetStatusEquals() const{ return m_statusEquals; } + inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; } + inline void SetStatusEquals(const ModelImportJobStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; } + inline void SetStatusEquals(ModelImportJobStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); } + inline ListModelImportJobsRequest& WithStatusEquals(const ModelImportJobStatus& value) { SetStatusEquals(value); return *this;} + inline ListModelImportJobsRequest& WithStatusEquals(ModelImportJobStatus&& value) { SetStatusEquals(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Return imported jobs only if the job name contains these characters.

+ */ + inline const Aws::String& GetNameContains() const{ return m_nameContains; } + inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; } + inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; } + inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); } + inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); } + inline ListModelImportJobsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;} + inline ListModelImportJobsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;} + inline ListModelImportJobsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;} + ///@} + + ///@{ + /** + *

The maximum number of results to return in the response. If the total number + * of results is greater than this value, use the token returned in the response in + * the nextToken field when making another request to return the next + * batch of results.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListModelImportJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

If the total number of results is greater than the maxResults + * value provided in the request, enter the token returned in the + * nextToken field in the response in this field to return the next + * batch of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListModelImportJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListModelImportJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListModelImportJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The field to sort by in the returned list of imported jobs.

+ */ + inline const SortJobsBy& GetSortBy() const{ return m_sortBy; } + inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } + inline void SetSortBy(const SortJobsBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } + inline void SetSortBy(SortJobsBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } + inline ListModelImportJobsRequest& WithSortBy(const SortJobsBy& value) { SetSortBy(value); return *this;} + inline ListModelImportJobsRequest& WithSortBy(SortJobsBy&& value) { SetSortBy(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

Specifies whether to sort the results in ascending or descending order.

+ */ + inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } + inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } + inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } + inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } + inline ListModelImportJobsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} + inline ListModelImportJobsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} + ///@} + private: + + Aws::Utils::DateTime m_creationTimeAfter; + bool m_creationTimeAfterHasBeenSet = false; + + Aws::Utils::DateTime m_creationTimeBefore; + bool m_creationTimeBeforeHasBeenSet = false; + + ModelImportJobStatus m_statusEquals; + bool m_statusEqualsHasBeenSet = false; + + Aws::String m_nameContains; + bool m_nameContainsHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + SortJobsBy m_sortBy; + bool m_sortByHasBeenSet = false; + + SortOrder m_sortOrder; + bool m_sortOrderHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListModelImportJobsResult.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListModelImportJobsResult.h new file mode 100644 index 00000000000..bc8f004b350 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ListModelImportJobsResult.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + class ListModelImportJobsResult + { + public: + AWS_BEDROCK_API ListModelImportJobsResult(); + AWS_BEDROCK_API ListModelImportJobsResult(const Aws::AmazonWebServiceResult& result); + AWS_BEDROCK_API ListModelImportJobsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

If the total number of results is greater than the maxResults + * value provided in the request, enter the token returned in the + * nextToken field in the response in this field to return the next + * batch of results.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListModelImportJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListModelImportJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListModelImportJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

Import job summaries.

+ */ + inline const Aws::Vector& GetModelImportJobSummaries() const{ return m_modelImportJobSummaries; } + inline void SetModelImportJobSummaries(const Aws::Vector& value) { m_modelImportJobSummaries = value; } + inline void SetModelImportJobSummaries(Aws::Vector&& value) { m_modelImportJobSummaries = std::move(value); } + inline ListModelImportJobsResult& WithModelImportJobSummaries(const Aws::Vector& value) { SetModelImportJobSummaries(value); return *this;} + inline ListModelImportJobsResult& WithModelImportJobSummaries(Aws::Vector&& value) { SetModelImportJobSummaries(std::move(value)); return *this;} + inline ListModelImportJobsResult& AddModelImportJobSummaries(const ModelImportJobSummary& value) { m_modelImportJobSummaries.push_back(value); return *this; } + inline ListModelImportJobsResult& AddModelImportJobSummaries(ModelImportJobSummary&& value) { m_modelImportJobSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListModelImportJobsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListModelImportJobsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListModelImportJobsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_nextToken; + + Aws::Vector m_modelImportJobSummaries; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelDataSource.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelDataSource.h new file mode 100644 index 00000000000..a0afdd95a31 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelDataSource.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + + /** + *

Data source for the imported model.

See Also:

AWS + * API Reference

+ */ + class ModelDataSource + { + public: + AWS_BEDROCK_API ModelDataSource(); + AWS_BEDROCK_API ModelDataSource(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API ModelDataSource& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The Amazon S3 data source of the imported model.

+ */ + inline const S3DataSource& GetS3DataSource() const{ return m_s3DataSource; } + inline bool S3DataSourceHasBeenSet() const { return m_s3DataSourceHasBeenSet; } + inline void SetS3DataSource(const S3DataSource& value) { m_s3DataSourceHasBeenSet = true; m_s3DataSource = value; } + inline void SetS3DataSource(S3DataSource&& value) { m_s3DataSourceHasBeenSet = true; m_s3DataSource = std::move(value); } + inline ModelDataSource& WithS3DataSource(const S3DataSource& value) { SetS3DataSource(value); return *this;} + inline ModelDataSource& WithS3DataSource(S3DataSource&& value) { SetS3DataSource(std::move(value)); return *this;} + ///@} + private: + + S3DataSource m_s3DataSource; + bool m_s3DataSourceHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelImportJobStatus.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelImportJobStatus.h new file mode 100644 index 00000000000..93716cedf1b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelImportJobStatus.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + enum class ModelImportJobStatus + { + NOT_SET, + InProgress, + Completed, + Failed + }; + +namespace ModelImportJobStatusMapper +{ +AWS_BEDROCK_API ModelImportJobStatus GetModelImportJobStatusForName(const Aws::String& name); + +AWS_BEDROCK_API Aws::String GetNameForModelImportJobStatus(ModelImportJobStatus value); +} // namespace ModelImportJobStatusMapper +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelImportJobSummary.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelImportJobSummary.h new file mode 100644 index 00000000000..cb8ff12fd1b --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/ModelImportJobSummary.h @@ -0,0 +1,174 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + + /** + *

Information about the import job.

See Also:

AWS + * API Reference

+ */ + class ModelImportJobSummary + { + public: + AWS_BEDROCK_API ModelImportJobSummary(); + AWS_BEDROCK_API ModelImportJobSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API ModelImportJobSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The Amazon Resource Name (ARN) of the import job.

+ */ + inline const Aws::String& GetJobArn() const{ return m_jobArn; } + inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; } + inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; } + inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); } + inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); } + inline ModelImportJobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} + inline ModelImportJobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} + inline ModelImportJobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the import job.

+ */ + inline const Aws::String& GetJobName() const{ return m_jobName; } + inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } + inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } + inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } + inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } + inline ModelImportJobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} + inline ModelImportJobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} + inline ModelImportJobSummary& WithJobName(const char* value) { SetJobName(value); return *this;} + ///@} + + ///@{ + /** + *

The status of the imported job.

+ */ + inline const ModelImportJobStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const ModelImportJobStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(ModelImportJobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline ModelImportJobSummary& WithStatus(const ModelImportJobStatus& value) { SetStatus(value); return *this;} + inline ModelImportJobSummary& WithStatus(ModelImportJobStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The time when the import job was last modified.

+ */ + inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } + inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } + inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } + inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } + inline ModelImportJobSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline ModelImportJobSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The time import job was created.

+ */ + inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } + inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } + inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } + inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } + inline ModelImportJobSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline ModelImportJobSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The time when import job ended.

+ */ + inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } + inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } + inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } + inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } + inline ModelImportJobSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} + inline ModelImportJobSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

The Amazon resource Name (ARN) of the imported model.

+ */ + inline const Aws::String& GetImportedModelArn() const{ return m_importedModelArn; } + inline bool ImportedModelArnHasBeenSet() const { return m_importedModelArnHasBeenSet; } + inline void SetImportedModelArn(const Aws::String& value) { m_importedModelArnHasBeenSet = true; m_importedModelArn = value; } + inline void SetImportedModelArn(Aws::String&& value) { m_importedModelArnHasBeenSet = true; m_importedModelArn = std::move(value); } + inline void SetImportedModelArn(const char* value) { m_importedModelArnHasBeenSet = true; m_importedModelArn.assign(value); } + inline ModelImportJobSummary& WithImportedModelArn(const Aws::String& value) { SetImportedModelArn(value); return *this;} + inline ModelImportJobSummary& WithImportedModelArn(Aws::String&& value) { SetImportedModelArn(std::move(value)); return *this;} + inline ModelImportJobSummary& WithImportedModelArn(const char* value) { SetImportedModelArn(value); return *this;} + ///@} + + ///@{ + /** + *

The name of the imported model.

+ */ + inline const Aws::String& GetImportedModelName() const{ return m_importedModelName; } + inline bool ImportedModelNameHasBeenSet() const { return m_importedModelNameHasBeenSet; } + inline void SetImportedModelName(const Aws::String& value) { m_importedModelNameHasBeenSet = true; m_importedModelName = value; } + inline void SetImportedModelName(Aws::String&& value) { m_importedModelNameHasBeenSet = true; m_importedModelName = std::move(value); } + inline void SetImportedModelName(const char* value) { m_importedModelNameHasBeenSet = true; m_importedModelName.assign(value); } + inline ModelImportJobSummary& WithImportedModelName(const Aws::String& value) { SetImportedModelName(value); return *this;} + inline ModelImportJobSummary& WithImportedModelName(Aws::String&& value) { SetImportedModelName(std::move(value)); return *this;} + inline ModelImportJobSummary& WithImportedModelName(const char* value) { SetImportedModelName(value); return *this;} + ///@} + private: + + Aws::String m_jobArn; + bool m_jobArnHasBeenSet = false; + + Aws::String m_jobName; + bool m_jobNameHasBeenSet = false; + + ModelImportJobStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTime; + bool m_lastModifiedTimeHasBeenSet = false; + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + Aws::Utils::DateTime m_endTime; + bool m_endTimeHasBeenSet = false; + + Aws::String m_importedModelArn; + bool m_importedModelArnHasBeenSet = false; + + Aws::String m_importedModelName; + bool m_importedModelNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/S3DataSource.h b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/S3DataSource.h new file mode 100644 index 00000000000..827e3acbb96 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/include/aws/bedrock/model/S3DataSource.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace Bedrock +{ +namespace Model +{ + + /** + *

The Amazon S3 data source of the imported job.

See Also:

AWS + * API Reference

+ */ + class S3DataSource + { + public: + AWS_BEDROCK_API S3DataSource(); + AWS_BEDROCK_API S3DataSource(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API S3DataSource& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The URI of the Amazon S3 data source.

+ */ + inline const Aws::String& GetS3Uri() const{ return m_s3Uri; } + inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; } + inline void SetS3Uri(const Aws::String& value) { m_s3UriHasBeenSet = true; m_s3Uri = value; } + inline void SetS3Uri(Aws::String&& value) { m_s3UriHasBeenSet = true; m_s3Uri = std::move(value); } + inline void SetS3Uri(const char* value) { m_s3UriHasBeenSet = true; m_s3Uri.assign(value); } + inline S3DataSource& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;} + inline S3DataSource& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;} + inline S3DataSource& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} + ///@} + private: + + Aws::String m_s3Uri; + bool m_s3UriHasBeenSet = false; + }; + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp b/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp index 143c99e040d..ea93311793c 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/BedrockClient.cpp @@ -21,23 +21,28 @@ #include #include #include +#include #include #include #include #include #include +#include #include #include #include #include +#include #include #include #include #include #include #include +#include #include #include +#include #include #include #include @@ -45,8 +50,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -199,6 +206,33 @@ void BedrockClient::OverrideEndpoint(const Aws::String& endpoint) m_endpointProvider->OverrideEndpoint(endpoint); } +BatchDeleteEvaluationJobOutcome BedrockClient::BatchDeleteEvaluationJob(const BatchDeleteEvaluationJobRequest& request) const +{ + AWS_OPERATION_GUARD(BatchDeleteEvaluationJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, BatchDeleteEvaluationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, BatchDeleteEvaluationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, BatchDeleteEvaluationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".BatchDeleteEvaluationJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> BatchDeleteEvaluationJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, BatchDeleteEvaluationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/evaluation-jobs/batch-delete"); + return BatchDeleteEvaluationJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateEvaluationJobOutcome BedrockClient::CreateEvaluationJob(const CreateEvaluationJobRequest& request) const { AWS_OPERATION_GUARD(CreateEvaluationJob); @@ -340,6 +374,33 @@ CreateModelCustomizationJobOutcome BedrockClient::CreateModelCustomizationJob(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateModelImportJobOutcome BedrockClient::CreateModelImportJob(const CreateModelImportJobRequest& request) const +{ + AWS_OPERATION_GUARD(CreateModelImportJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateModelImportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateModelImportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateModelImportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateModelImportJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateModelImportJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateModelImportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/model-import-jobs"); + return CreateModelImportJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateModelInvocationJobOutcome BedrockClient::CreateModelInvocationJob(const CreateModelInvocationJobRequest& request) const { AWS_OPERATION_GUARD(CreateModelInvocationJob); @@ -460,6 +521,39 @@ DeleteGuardrailOutcome BedrockClient::DeleteGuardrail(const DeleteGuardrailReque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteImportedModelOutcome BedrockClient::DeleteImportedModel(const DeleteImportedModelRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteImportedModel); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteImportedModel, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ModelIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteImportedModel", "Required field: ModelIdentifier, is not set"); + return DeleteImportedModelOutcome(Aws::Client::AWSError(BedrockErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ModelIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteImportedModel, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteImportedModel, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteImportedModel", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteImportedModelOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteImportedModel, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/imported-models/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetModelIdentifier()); + return DeleteImportedModelOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteModelInvocationLoggingConfigurationOutcome BedrockClient::DeleteModelInvocationLoggingConfiguration(const DeleteModelInvocationLoggingConfigurationRequest& request) const { AWS_OPERATION_GUARD(DeleteModelInvocationLoggingConfiguration); @@ -652,6 +746,39 @@ GetGuardrailOutcome BedrockClient::GetGuardrail(const GetGuardrailRequest& reque {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetImportedModelOutcome BedrockClient::GetImportedModel(const GetImportedModelRequest& request) const +{ + AWS_OPERATION_GUARD(GetImportedModel); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetImportedModel, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ModelIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetImportedModel", "Required field: ModelIdentifier, is not set"); + return GetImportedModelOutcome(Aws::Client::AWSError(BedrockErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ModelIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetImportedModel, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetImportedModel, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetImportedModel", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetImportedModelOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetImportedModel, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/imported-models/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetModelIdentifier()); + return GetImportedModelOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetModelCopyJobOutcome BedrockClient::GetModelCopyJob(const GetModelCopyJobRequest& request) const { AWS_OPERATION_GUARD(GetModelCopyJob); @@ -718,6 +845,39 @@ GetModelCustomizationJobOutcome BedrockClient::GetModelCustomizationJob(const Ge {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetModelImportJobOutcome BedrockClient::GetModelImportJob(const GetModelImportJobRequest& request) const +{ + AWS_OPERATION_GUARD(GetModelImportJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetModelImportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.JobIdentifierHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetModelImportJob", "Required field: JobIdentifier, is not set"); + return GetModelImportJobOutcome(Aws::Client::AWSError(BedrockErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobIdentifier]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetModelImportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetModelImportJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetModelImportJob", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetModelImportJobOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetModelImportJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/model-import-jobs/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobIdentifier()); + return GetModelImportJobOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetModelInvocationJobOutcome BedrockClient::GetModelInvocationJob(const GetModelInvocationJobRequest& request) const { AWS_OPERATION_GUARD(GetModelInvocationJob); @@ -919,6 +1079,33 @@ ListGuardrailsOutcome BedrockClient::ListGuardrails(const ListGuardrailsRequest& {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListImportedModelsOutcome BedrockClient::ListImportedModels(const ListImportedModelsRequest& request) const +{ + AWS_OPERATION_GUARD(ListImportedModels); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListImportedModels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListImportedModels, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListImportedModels, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListImportedModels", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListImportedModelsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListImportedModels, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/imported-models"); + return ListImportedModelsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListModelCopyJobsOutcome BedrockClient::ListModelCopyJobs(const ListModelCopyJobsRequest& request) const { AWS_OPERATION_GUARD(ListModelCopyJobs); @@ -973,6 +1160,33 @@ ListModelCustomizationJobsOutcome BedrockClient::ListModelCustomizationJobs(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListModelImportJobsOutcome BedrockClient::ListModelImportJobs(const ListModelImportJobsRequest& request) const +{ + AWS_OPERATION_GUARD(ListModelImportJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelImportJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelImportJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListModelImportJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelImportJobs", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListModelImportJobsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListModelImportJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/model-import-jobs"); + return ListModelImportJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListModelInvocationJobsOutcome BedrockClient::ListModelInvocationJobs(const ListModelInvocationJobsRequest& request) const { AWS_OPERATION_GUARD(ListModelInvocationJobs); diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobError.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobError.cpp new file mode 100644 index 00000000000..6c892aaafc6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobError.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + +BatchDeleteEvaluationJobError::BatchDeleteEvaluationJobError() : + m_jobIdentifierHasBeenSet(false), + m_codeHasBeenSet(false), + m_messageHasBeenSet(false) +{ +} + +BatchDeleteEvaluationJobError::BatchDeleteEvaluationJobError(JsonView jsonValue) + : BatchDeleteEvaluationJobError() +{ + *this = jsonValue; +} + +BatchDeleteEvaluationJobError& BatchDeleteEvaluationJobError::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("jobIdentifier")) + { + m_jobIdentifier = jsonValue.GetString("jobIdentifier"); + + m_jobIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("code")) + { + m_code = jsonValue.GetString("code"); + + m_codeHasBeenSet = true; + } + + if(jsonValue.ValueExists("message")) + { + m_message = jsonValue.GetString("message"); + + m_messageHasBeenSet = true; + } + + return *this; +} + +JsonValue BatchDeleteEvaluationJobError::Jsonize() const +{ + JsonValue payload; + + if(m_jobIdentifierHasBeenSet) + { + payload.WithString("jobIdentifier", m_jobIdentifier); + + } + + if(m_codeHasBeenSet) + { + payload.WithString("code", m_code); + + } + + if(m_messageHasBeenSet) + { + payload.WithString("message", m_message); + + } + + return payload; +} + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobItem.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobItem.cpp new file mode 100644 index 00000000000..28eac00d11c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobItem.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + +BatchDeleteEvaluationJobItem::BatchDeleteEvaluationJobItem() : + m_jobIdentifierHasBeenSet(false), + m_jobStatus(EvaluationJobStatus::NOT_SET), + m_jobStatusHasBeenSet(false) +{ +} + +BatchDeleteEvaluationJobItem::BatchDeleteEvaluationJobItem(JsonView jsonValue) + : BatchDeleteEvaluationJobItem() +{ + *this = jsonValue; +} + +BatchDeleteEvaluationJobItem& BatchDeleteEvaluationJobItem::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("jobIdentifier")) + { + m_jobIdentifier = jsonValue.GetString("jobIdentifier"); + + m_jobIdentifierHasBeenSet = true; + } + + if(jsonValue.ValueExists("jobStatus")) + { + m_jobStatus = EvaluationJobStatusMapper::GetEvaluationJobStatusForName(jsonValue.GetString("jobStatus")); + + m_jobStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue BatchDeleteEvaluationJobItem::Jsonize() const +{ + JsonValue payload; + + if(m_jobIdentifierHasBeenSet) + { + payload.WithString("jobIdentifier", m_jobIdentifier); + + } + + if(m_jobStatusHasBeenSet) + { + payload.WithString("jobStatus", EvaluationJobStatusMapper::GetNameForEvaluationJobStatus(m_jobStatus)); + } + + return payload; +} + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobRequest.cpp new file mode 100644 index 00000000000..37bd01cf9f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobRequest.cpp @@ -0,0 +1,40 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +BatchDeleteEvaluationJobRequest::BatchDeleteEvaluationJobRequest() : + m_jobIdentifiersHasBeenSet(false) +{ +} + +Aws::String BatchDeleteEvaluationJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_jobIdentifiersHasBeenSet) + { + Aws::Utils::Array jobIdentifiersJsonList(m_jobIdentifiers.size()); + for(unsigned jobIdentifiersIndex = 0; jobIdentifiersIndex < jobIdentifiersJsonList.GetLength(); ++jobIdentifiersIndex) + { + jobIdentifiersJsonList[jobIdentifiersIndex].AsString(m_jobIdentifiers[jobIdentifiersIndex]); + } + payload.WithArray("jobIdentifiers", std::move(jobIdentifiersJsonList)); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobResult.cpp new file mode 100644 index 00000000000..bf7cabd45c0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/BatchDeleteEvaluationJobResult.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +BatchDeleteEvaluationJobResult::BatchDeleteEvaluationJobResult() +{ +} + +BatchDeleteEvaluationJobResult::BatchDeleteEvaluationJobResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +BatchDeleteEvaluationJobResult& BatchDeleteEvaluationJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("errors")) + { + Aws::Utils::Array errorsJsonList = jsonValue.GetArray("errors"); + for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex) + { + m_errors.push_back(errorsJsonList[errorsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("evaluationJobs")) + { + Aws::Utils::Array evaluationJobsJsonList = jsonValue.GetArray("evaluationJobs"); + for(unsigned evaluationJobsIndex = 0; evaluationJobsIndex < evaluationJobsJsonList.GetLength(); ++evaluationJobsIndex) + { + m_evaluationJobs.push_back(evaluationJobsJsonList[evaluationJobsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/CreateModelImportJobRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/CreateModelImportJobRequest.cpp new file mode 100644 index 00000000000..88f7196af92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/CreateModelImportJobRequest.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateModelImportJobRequest::CreateModelImportJobRequest() : + m_jobNameHasBeenSet(false), + m_importedModelNameHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_modelDataSourceHasBeenSet(false), + m_jobTagsHasBeenSet(false), + m_importedModelTagsHasBeenSet(false), + m_clientRequestTokenHasBeenSet(false), + m_vpcConfigHasBeenSet(false), + m_importedModelKmsKeyIdHasBeenSet(false) +{ +} + +Aws::String CreateModelImportJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_jobNameHasBeenSet) + { + payload.WithString("jobName", m_jobName); + + } + + if(m_importedModelNameHasBeenSet) + { + payload.WithString("importedModelName", m_importedModelName); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("roleArn", m_roleArn); + + } + + if(m_modelDataSourceHasBeenSet) + { + payload.WithObject("modelDataSource", m_modelDataSource.Jsonize()); + + } + + if(m_jobTagsHasBeenSet) + { + Aws::Utils::Array jobTagsJsonList(m_jobTags.size()); + for(unsigned jobTagsIndex = 0; jobTagsIndex < jobTagsJsonList.GetLength(); ++jobTagsIndex) + { + jobTagsJsonList[jobTagsIndex].AsObject(m_jobTags[jobTagsIndex].Jsonize()); + } + payload.WithArray("jobTags", std::move(jobTagsJsonList)); + + } + + if(m_importedModelTagsHasBeenSet) + { + Aws::Utils::Array importedModelTagsJsonList(m_importedModelTags.size()); + for(unsigned importedModelTagsIndex = 0; importedModelTagsIndex < importedModelTagsJsonList.GetLength(); ++importedModelTagsIndex) + { + importedModelTagsJsonList[importedModelTagsIndex].AsObject(m_importedModelTags[importedModelTagsIndex].Jsonize()); + } + payload.WithArray("importedModelTags", std::move(importedModelTagsJsonList)); + + } + + if(m_clientRequestTokenHasBeenSet) + { + payload.WithString("clientRequestToken", m_clientRequestToken); + + } + + if(m_vpcConfigHasBeenSet) + { + payload.WithObject("vpcConfig", m_vpcConfig.Jsonize()); + + } + + if(m_importedModelKmsKeyIdHasBeenSet) + { + payload.WithString("importedModelKmsKeyId", m_importedModelKmsKeyId); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/CreateModelImportJobResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/CreateModelImportJobResult.cpp new file mode 100644 index 00000000000..6d88a9a337a --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/CreateModelImportJobResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateModelImportJobResult::CreateModelImportJobResult() +{ +} + +CreateModelImportJobResult::CreateModelImportJobResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateModelImportJobResult& CreateModelImportJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("jobArn")) + { + m_jobArn = jsonValue.GetString("jobArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/DeleteImportedModelRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/DeleteImportedModelRequest.cpp new file mode 100644 index 00000000000..9d63bd83150 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/DeleteImportedModelRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteImportedModelRequest::DeleteImportedModelRequest() : + m_modelIdentifierHasBeenSet(false) +{ +} + +Aws::String DeleteImportedModelRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/DeleteImportedModelResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/DeleteImportedModelResult.cpp new file mode 100644 index 00000000000..f24ae4ad286 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/DeleteImportedModelResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteImportedModelResult::DeleteImportedModelResult() +{ +} + +DeleteImportedModelResult::DeleteImportedModelResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteImportedModelResult& DeleteImportedModelResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/EvaluationJobStatus.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/EvaluationJobStatus.cpp index 3075b6da6cd..201c6690cc3 100644 --- a/generated/src/aws-cpp-sdk-bedrock/source/model/EvaluationJobStatus.cpp +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/EvaluationJobStatus.cpp @@ -25,6 +25,7 @@ namespace Aws static const int Failed_HASH = HashingUtils::HashString("Failed"); static const int Stopping_HASH = HashingUtils::HashString("Stopping"); static const int Stopped_HASH = HashingUtils::HashString("Stopped"); + static const int Deleting_HASH = HashingUtils::HashString("Deleting"); EvaluationJobStatus GetEvaluationJobStatusForName(const Aws::String& name) @@ -50,6 +51,10 @@ namespace Aws { return EvaluationJobStatus::Stopped; } + else if (hashCode == Deleting_HASH) + { + return EvaluationJobStatus::Deleting; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -76,6 +81,8 @@ namespace Aws return "Stopping"; case EvaluationJobStatus::Stopped: return "Stopped"; + case EvaluationJobStatus::Deleting: + return "Deleting"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/GetImportedModelRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/GetImportedModelRequest.cpp new file mode 100644 index 00000000000..c6e73a7bcca --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/GetImportedModelRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetImportedModelRequest::GetImportedModelRequest() : + m_modelIdentifierHasBeenSet(false) +{ +} + +Aws::String GetImportedModelRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/GetImportedModelResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/GetImportedModelResult.cpp new file mode 100644 index 00000000000..1e7df584cee --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/GetImportedModelResult.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetImportedModelResult::GetImportedModelResult() +{ +} + +GetImportedModelResult::GetImportedModelResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetImportedModelResult& GetImportedModelResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("modelArn")) + { + m_modelArn = jsonValue.GetString("modelArn"); + + } + + if(jsonValue.ValueExists("modelName")) + { + m_modelName = jsonValue.GetString("modelName"); + + } + + if(jsonValue.ValueExists("jobName")) + { + m_jobName = jsonValue.GetString("jobName"); + + } + + if(jsonValue.ValueExists("jobArn")) + { + m_jobArn = jsonValue.GetString("jobArn"); + + } + + if(jsonValue.ValueExists("modelDataSource")) + { + m_modelDataSource = jsonValue.GetObject("modelDataSource"); + + } + + if(jsonValue.ValueExists("creationTime")) + { + m_creationTime = jsonValue.GetString("creationTime"); + + } + + if(jsonValue.ValueExists("modelArchitecture")) + { + m_modelArchitecture = jsonValue.GetString("modelArchitecture"); + + } + + if(jsonValue.ValueExists("modelKmsKeyArn")) + { + m_modelKmsKeyArn = jsonValue.GetString("modelKmsKeyArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/GetModelImportJobRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/GetModelImportJobRequest.cpp new file mode 100644 index 00000000000..d90b7d547de --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/GetModelImportJobRequest.cpp @@ -0,0 +1,27 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetModelImportJobRequest::GetModelImportJobRequest() : + m_jobIdentifierHasBeenSet(false) +{ +} + +Aws::String GetModelImportJobRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/GetModelImportJobResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/GetModelImportJobResult.cpp new file mode 100644 index 00000000000..43c1eb2c534 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/GetModelImportJobResult.cpp @@ -0,0 +1,122 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetModelImportJobResult::GetModelImportJobResult() : + m_status(ModelImportJobStatus::NOT_SET) +{ +} + +GetModelImportJobResult::GetModelImportJobResult(const Aws::AmazonWebServiceResult& result) + : GetModelImportJobResult() +{ + *this = result; +} + +GetModelImportJobResult& GetModelImportJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("jobArn")) + { + m_jobArn = jsonValue.GetString("jobArn"); + + } + + if(jsonValue.ValueExists("jobName")) + { + m_jobName = jsonValue.GetString("jobName"); + + } + + if(jsonValue.ValueExists("importedModelName")) + { + m_importedModelName = jsonValue.GetString("importedModelName"); + + } + + if(jsonValue.ValueExists("importedModelArn")) + { + m_importedModelArn = jsonValue.GetString("importedModelArn"); + + } + + if(jsonValue.ValueExists("roleArn")) + { + m_roleArn = jsonValue.GetString("roleArn"); + + } + + if(jsonValue.ValueExists("modelDataSource")) + { + m_modelDataSource = jsonValue.GetObject("modelDataSource"); + + } + + if(jsonValue.ValueExists("status")) + { + m_status = ModelImportJobStatusMapper::GetModelImportJobStatusForName(jsonValue.GetString("status")); + + } + + if(jsonValue.ValueExists("failureMessage")) + { + m_failureMessage = jsonValue.GetString("failureMessage"); + + } + + if(jsonValue.ValueExists("creationTime")) + { + m_creationTime = jsonValue.GetString("creationTime"); + + } + + if(jsonValue.ValueExists("lastModifiedTime")) + { + m_lastModifiedTime = jsonValue.GetString("lastModifiedTime"); + + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetString("endTime"); + + } + + if(jsonValue.ValueExists("vpcConfig")) + { + m_vpcConfig = jsonValue.GetObject("vpcConfig"); + + } + + if(jsonValue.ValueExists("importedModelKmsKeyArn")) + { + m_importedModelKmsKeyArn = jsonValue.GetString("importedModelKmsKeyArn"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ImportedModelSummary.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ImportedModelSummary.cpp new file mode 100644 index 00000000000..90897a1ccd5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ImportedModelSummary.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + +ImportedModelSummary::ImportedModelSummary() : + m_modelArnHasBeenSet(false), + m_modelNameHasBeenSet(false), + m_creationTimeHasBeenSet(false) +{ +} + +ImportedModelSummary::ImportedModelSummary(JsonView jsonValue) + : ImportedModelSummary() +{ + *this = jsonValue; +} + +ImportedModelSummary& ImportedModelSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("modelArn")) + { + m_modelArn = jsonValue.GetString("modelArn"); + + m_modelArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("modelName")) + { + m_modelName = jsonValue.GetString("modelName"); + + m_modelNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationTime")) + { + m_creationTime = jsonValue.GetString("creationTime"); + + m_creationTimeHasBeenSet = true; + } + + return *this; +} + +JsonValue ImportedModelSummary::Jsonize() const +{ + JsonValue payload; + + if(m_modelArnHasBeenSet) + { + payload.WithString("modelArn", m_modelArn); + + } + + if(m_modelNameHasBeenSet) + { + payload.WithString("modelName", m_modelName); + + } + + if(m_creationTimeHasBeenSet) + { + payload.WithString("creationTime", m_creationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + return payload; +} + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ListImportedModelsRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ListImportedModelsRequest.cpp new file mode 100644 index 00000000000..3355b525a5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ListImportedModelsRequest.cpp @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListImportedModelsRequest::ListImportedModelsRequest() : + m_creationTimeBeforeHasBeenSet(false), + m_creationTimeAfterHasBeenSet(false), + m_nameContainsHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_sortBy(SortModelsBy::NOT_SET), + m_sortByHasBeenSet(false), + m_sortOrder(SortOrder::NOT_SET), + m_sortOrderHasBeenSet(false) +{ +} + +Aws::String ListImportedModelsRequest::SerializePayload() const +{ + return {}; +} + +void ListImportedModelsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_creationTimeBeforeHasBeenSet) + { + ss << m_creationTimeBefore.ToGmtString(Aws::Utils::DateFormat::ISO_8601); + uri.AddQueryStringParameter("creationTimeBefore", ss.str()); + ss.str(""); + } + + if(m_creationTimeAfterHasBeenSet) + { + ss << m_creationTimeAfter.ToGmtString(Aws::Utils::DateFormat::ISO_8601); + uri.AddQueryStringParameter("creationTimeAfter", ss.str()); + ss.str(""); + } + + if(m_nameContainsHasBeenSet) + { + ss << m_nameContains; + uri.AddQueryStringParameter("nameContains", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_sortByHasBeenSet) + { + ss << SortModelsByMapper::GetNameForSortModelsBy(m_sortBy); + uri.AddQueryStringParameter("sortBy", ss.str()); + ss.str(""); + } + + if(m_sortOrderHasBeenSet) + { + ss << SortOrderMapper::GetNameForSortOrder(m_sortOrder); + uri.AddQueryStringParameter("sortOrder", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ListImportedModelsResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ListImportedModelsResult.cpp new file mode 100644 index 00000000000..51d5c30b523 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ListImportedModelsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListImportedModelsResult::ListImportedModelsResult() +{ +} + +ListImportedModelsResult::ListImportedModelsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListImportedModelsResult& ListImportedModelsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("modelSummaries")) + { + Aws::Utils::Array modelSummariesJsonList = jsonValue.GetArray("modelSummaries"); + for(unsigned modelSummariesIndex = 0; modelSummariesIndex < modelSummariesJsonList.GetLength(); ++modelSummariesIndex) + { + m_modelSummaries.push_back(modelSummariesJsonList[modelSummariesIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ListModelImportJobsRequest.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ListModelImportJobsRequest.cpp new file mode 100644 index 00000000000..bb98921fd10 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ListModelImportJobsRequest.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListModelImportJobsRequest::ListModelImportJobsRequest() : + m_creationTimeAfterHasBeenSet(false), + m_creationTimeBeforeHasBeenSet(false), + m_statusEquals(ModelImportJobStatus::NOT_SET), + m_statusEqualsHasBeenSet(false), + m_nameContainsHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_sortBy(SortJobsBy::NOT_SET), + m_sortByHasBeenSet(false), + m_sortOrder(SortOrder::NOT_SET), + m_sortOrderHasBeenSet(false) +{ +} + +Aws::String ListModelImportJobsRequest::SerializePayload() const +{ + return {}; +} + +void ListModelImportJobsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_creationTimeAfterHasBeenSet) + { + ss << m_creationTimeAfter.ToGmtString(Aws::Utils::DateFormat::ISO_8601); + uri.AddQueryStringParameter("creationTimeAfter", ss.str()); + ss.str(""); + } + + if(m_creationTimeBeforeHasBeenSet) + { + ss << m_creationTimeBefore.ToGmtString(Aws::Utils::DateFormat::ISO_8601); + uri.AddQueryStringParameter("creationTimeBefore", ss.str()); + ss.str(""); + } + + if(m_statusEqualsHasBeenSet) + { + ss << ModelImportJobStatusMapper::GetNameForModelImportJobStatus(m_statusEquals); + uri.AddQueryStringParameter("statusEquals", ss.str()); + ss.str(""); + } + + if(m_nameContainsHasBeenSet) + { + ss << m_nameContains; + uri.AddQueryStringParameter("nameContains", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_sortByHasBeenSet) + { + ss << SortJobsByMapper::GetNameForSortJobsBy(m_sortBy); + uri.AddQueryStringParameter("sortBy", ss.str()); + ss.str(""); + } + + if(m_sortOrderHasBeenSet) + { + ss << SortOrderMapper::GetNameForSortOrder(m_sortOrder); + uri.AddQueryStringParameter("sortOrder", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ListModelImportJobsResult.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ListModelImportJobsResult.cpp new file mode 100644 index 00000000000..cb59a51ba7c --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ListModelImportJobsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::Bedrock::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListModelImportJobsResult::ListModelImportJobsResult() +{ +} + +ListModelImportJobsResult::ListModelImportJobsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListModelImportJobsResult& ListModelImportJobsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + if(jsonValue.ValueExists("modelImportJobSummaries")) + { + Aws::Utils::Array modelImportJobSummariesJsonList = jsonValue.GetArray("modelImportJobSummaries"); + for(unsigned modelImportJobSummariesIndex = 0; modelImportJobSummariesIndex < modelImportJobSummariesJsonList.GetLength(); ++modelImportJobSummariesIndex) + { + m_modelImportJobSummaries.push_back(modelImportJobSummariesJsonList[modelImportJobSummariesIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelDataSource.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelDataSource.cpp new file mode 100644 index 00000000000..587a857ad08 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelDataSource.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + +ModelDataSource::ModelDataSource() : + m_s3DataSourceHasBeenSet(false) +{ +} + +ModelDataSource::ModelDataSource(JsonView jsonValue) + : ModelDataSource() +{ + *this = jsonValue; +} + +ModelDataSource& ModelDataSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("s3DataSource")) + { + m_s3DataSource = jsonValue.GetObject("s3DataSource"); + + m_s3DataSourceHasBeenSet = true; + } + + return *this; +} + +JsonValue ModelDataSource::Jsonize() const +{ + JsonValue payload; + + if(m_s3DataSourceHasBeenSet) + { + payload.WithObject("s3DataSource", m_s3DataSource.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelImportJobStatus.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelImportJobStatus.cpp new file mode 100644 index 00000000000..0cd2a8a80c4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelImportJobStatus.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace Bedrock + { + namespace Model + { + namespace ModelImportJobStatusMapper + { + + static const int InProgress_HASH = HashingUtils::HashString("InProgress"); + static const int Completed_HASH = HashingUtils::HashString("Completed"); + static const int Failed_HASH = HashingUtils::HashString("Failed"); + + + ModelImportJobStatus GetModelImportJobStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == InProgress_HASH) + { + return ModelImportJobStatus::InProgress; + } + else if (hashCode == Completed_HASH) + { + return ModelImportJobStatus::Completed; + } + else if (hashCode == Failed_HASH) + { + return ModelImportJobStatus::Failed; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ModelImportJobStatus::NOT_SET; + } + + Aws::String GetNameForModelImportJobStatus(ModelImportJobStatus enumValue) + { + switch(enumValue) + { + case ModelImportJobStatus::NOT_SET: + return {}; + case ModelImportJobStatus::InProgress: + return "InProgress"; + case ModelImportJobStatus::Completed: + return "Completed"; + case ModelImportJobStatus::Failed: + return "Failed"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ModelImportJobStatusMapper + } // namespace Model + } // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/ModelImportJobSummary.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelImportJobSummary.cpp new file mode 100644 index 00000000000..debc8c23f62 --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/ModelImportJobSummary.cpp @@ -0,0 +1,154 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + +ModelImportJobSummary::ModelImportJobSummary() : + m_jobArnHasBeenSet(false), + m_jobNameHasBeenSet(false), + m_status(ModelImportJobStatus::NOT_SET), + m_statusHasBeenSet(false), + m_lastModifiedTimeHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_endTimeHasBeenSet(false), + m_importedModelArnHasBeenSet(false), + m_importedModelNameHasBeenSet(false) +{ +} + +ModelImportJobSummary::ModelImportJobSummary(JsonView jsonValue) + : ModelImportJobSummary() +{ + *this = jsonValue; +} + +ModelImportJobSummary& ModelImportJobSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("jobArn")) + { + m_jobArn = jsonValue.GetString("jobArn"); + + m_jobArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("jobName")) + { + m_jobName = jsonValue.GetString("jobName"); + + m_jobNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = ModelImportJobStatusMapper::GetModelImportJobStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastModifiedTime")) + { + m_lastModifiedTime = jsonValue.GetString("lastModifiedTime"); + + m_lastModifiedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("creationTime")) + { + m_creationTime = jsonValue.GetString("creationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("endTime")) + { + m_endTime = jsonValue.GetString("endTime"); + + m_endTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("importedModelArn")) + { + m_importedModelArn = jsonValue.GetString("importedModelArn"); + + m_importedModelArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("importedModelName")) + { + m_importedModelName = jsonValue.GetString("importedModelName"); + + m_importedModelNameHasBeenSet = true; + } + + return *this; +} + +JsonValue ModelImportJobSummary::Jsonize() const +{ + JsonValue payload; + + if(m_jobArnHasBeenSet) + { + payload.WithString("jobArn", m_jobArn); + + } + + if(m_jobNameHasBeenSet) + { + payload.WithString("jobName", m_jobName); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", ModelImportJobStatusMapper::GetNameForModelImportJobStatus(m_status)); + } + + if(m_lastModifiedTimeHasBeenSet) + { + payload.WithString("lastModifiedTime", m_lastModifiedTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_creationTimeHasBeenSet) + { + payload.WithString("creationTime", m_creationTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_endTimeHasBeenSet) + { + payload.WithString("endTime", m_endTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); + } + + if(m_importedModelArnHasBeenSet) + { + payload.WithString("importedModelArn", m_importedModelArn); + + } + + if(m_importedModelNameHasBeenSet) + { + payload.WithString("importedModelName", m_importedModelName); + + } + + return payload; +} + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-bedrock/source/model/S3DataSource.cpp b/generated/src/aws-cpp-sdk-bedrock/source/model/S3DataSource.cpp new file mode 100644 index 00000000000..65763a8c04e --- /dev/null +++ b/generated/src/aws-cpp-sdk-bedrock/source/model/S3DataSource.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace Bedrock +{ +namespace Model +{ + +S3DataSource::S3DataSource() : + m_s3UriHasBeenSet(false) +{ +} + +S3DataSource::S3DataSource(JsonView jsonValue) + : S3DataSource() +{ + *this = jsonValue; +} + +S3DataSource& S3DataSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("s3Uri")) + { + m_s3Uri = jsonValue.GetString("s3Uri"); + + m_s3UriHasBeenSet = true; + } + + return *this; +} + +JsonValue S3DataSource::Jsonize() const +{ + JsonValue payload; + + if(m_s3UriHasBeenSet) + { + payload.WithString("s3Uri", m_s3Uri); + + } + + return payload; +} + +} // namespace Model +} // namespace Bedrock +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-emr-containers/include/aws/emr-containers/model/GetManagedEndpointSessionCredentialsRequest.h b/generated/src/aws-cpp-sdk-emr-containers/include/aws/emr-containers/model/GetManagedEndpointSessionCredentialsRequest.h index 8843e30e698..7d4bb0ad71e 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/include/aws/emr-containers/model/GetManagedEndpointSessionCredentialsRequest.h +++ b/generated/src/aws-cpp-sdk-emr-containers/include/aws/emr-containers/model/GetManagedEndpointSessionCredentialsRequest.h @@ -78,7 +78,7 @@ namespace Model ///@{ /** *

Type of the token requested. Currently supported and default value of this - * field is ���TOKEN.”

+ * field is “TOKEN.”

*/ inline const Aws::String& GetCredentialType() const{ return m_credentialType; } inline bool CredentialTypeHasBeenSet() const { return m_credentialTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersEndpointRules.cpp b/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersEndpointRules.cpp index f441b66fd10..447a3a2692b 100644 --- a/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersEndpointRules.cpp +++ b/generated/src/aws-cpp-sdk-emr-containers/source/EMRContainersEndpointRules.cpp @@ -10,8 +10,8 @@ namespace Aws { namespace EMRContainers { -const size_t EMRContainersEndpointRules::RulesBlobStrLen = 3504; -const size_t EMRContainersEndpointRules::RulesBlobSize = 3505; +const size_t EMRContainersEndpointRules::RulesBlobStrLen = 3904; +const size_t EMRContainersEndpointRules::RulesBlobSize = 3905; using RulesBlobT = Aws::Array; static constexpr RulesBlobT RulesBlob = {{ @@ -113,6 +113,22 @@ static constexpr RulesBlobT RulesBlob = {{ '"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i', 'o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"', ']','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n', +'d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','s','t','r','i','n','g','E','q', +'u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g', +'i','o','n','"','}',',','"','u','s','-','g','o','v','-','e','a','s','t','-','1','"',']','}',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':', +'/','/','e','m','r','-','c','o','n','t','a','i','n','e','r','s','.','u','s','-','g','o','v','-','e', +'a','s','t','-','1','.','a','m','a','z','o','n','a','w','s','.','c','o','m','"',',','"','p','r','o', +'p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}', +',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',',','{','"','c','o','n', +'d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','s','t','r','i','n','g','E','q', +'u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g', +'i','o','n','"','}',',','"','u','s','-','g','o','v','-','w','e','s','t','-','1','"',']','}',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':', +'/','/','e','m','r','-','c','o','n','t','a','i','n','e','r','s','.','u','s','-','g','o','v','-','w', +'e','s','t','-','1','.','a','m','a','z','o','n','a','w','s','.','c','o','m','"',',','"','p','r','o', +'p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}', +',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',',','{','"','c','o','n', 'd','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"', 'u','r','l','"',':','"','h','t','t','p','s',':','/','/','e','m','r','-','c','o','n','t','a','i','n', 'e','r','s','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t', diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/AccountAggregationResponse.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/AccountAggregationResponse.h index cd3146ac74a..b82cc03e8b6 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/AccountAggregationResponse.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/AccountAggregationResponse.h @@ -53,6 +53,26 @@ namespace Model inline AccountAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} ///@} + ///@{ + /** + *

The number of findings that have an exploit available.

+ */ + inline long long GetExploitAvailableCount() const{ return m_exploitAvailableCount; } + inline bool ExploitAvailableCountHasBeenSet() const { return m_exploitAvailableCountHasBeenSet; } + inline void SetExploitAvailableCount(long long value) { m_exploitAvailableCountHasBeenSet = true; m_exploitAvailableCount = value; } + inline AccountAggregationResponse& WithExploitAvailableCount(long long value) { SetExploitAvailableCount(value); return *this;} + ///@} + + ///@{ + /** + *

Details about the number of fixes.

+ */ + inline long long GetFixAvailableCount() const{ return m_fixAvailableCount; } + inline bool FixAvailableCountHasBeenSet() const { return m_fixAvailableCountHasBeenSet; } + inline void SetFixAvailableCount(long long value) { m_fixAvailableCountHasBeenSet = true; m_fixAvailableCount = value; } + inline AccountAggregationResponse& WithFixAvailableCount(long long value) { SetFixAvailableCount(value); return *this;} + ///@} + ///@{ /** *

The number of findings by severity.

@@ -69,6 +89,12 @@ namespace Model Aws::String m_accountId; bool m_accountIdHasBeenSet = false; + long long m_exploitAvailableCount; + bool m_exploitAvailableCountHasBeenSet = false; + + long long m_fixAvailableCount; + bool m_fixAvailableCountHasBeenSet = false; + SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ErrorCode.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ErrorCode.h index a242e04fc14..842177139b7 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ErrorCode.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ErrorCode.h @@ -29,7 +29,9 @@ namespace Model EVENTBRIDGE_THROTTLED, RESOURCE_SCAN_NOT_DISABLED, DISASSOCIATE_ALL_MEMBERS, - ACCOUNT_IS_ISOLATED + ACCOUNT_IS_ISOLATED, + EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED, + EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED }; namespace ErrorCodeMapper diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingTypeAggregationResponse.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingTypeAggregationResponse.h index 85b95b493a5..0188090aff4 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingTypeAggregationResponse.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/FindingTypeAggregationResponse.h @@ -53,6 +53,26 @@ namespace Model inline FindingTypeAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;} ///@} + ///@{ + /** + *

The number of findings that have an exploit available.

+ */ + inline long long GetExploitAvailableCount() const{ return m_exploitAvailableCount; } + inline bool ExploitAvailableCountHasBeenSet() const { return m_exploitAvailableCountHasBeenSet; } + inline void SetExploitAvailableCount(long long value) { m_exploitAvailableCountHasBeenSet = true; m_exploitAvailableCount = value; } + inline FindingTypeAggregationResponse& WithExploitAvailableCount(long long value) { SetExploitAvailableCount(value); return *this;} + ///@} + + ///@{ + /** + *

Details about the number of fixes.

+ */ + inline long long GetFixAvailableCount() const{ return m_fixAvailableCount; } + inline bool FixAvailableCountHasBeenSet() const { return m_fixAvailableCountHasBeenSet; } + inline void SetFixAvailableCount(long long value) { m_fixAvailableCountHasBeenSet = true; m_fixAvailableCount = value; } + inline FindingTypeAggregationResponse& WithFixAvailableCount(long long value) { SetFixAvailableCount(value); return *this;} + ///@} + ///@{ /** *

The value to sort results by.

@@ -69,6 +89,12 @@ namespace Model Aws::String m_accountId; bool m_accountIdHasBeenSet = false; + long long m_exploitAvailableCount; + bool m_exploitAvailableCountHasBeenSet = false; + + long long m_fixAvailableCount; + bool m_fixAvailableCountHasBeenSet = false; + SeverityCounts m_severityCounts; bool m_severityCountsHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ScanStatusReason.h b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ScanStatusReason.h index 43557433cd4..86aea7deced 100644 --- a/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ScanStatusReason.h +++ b/generated/src/aws-cpp-sdk-inspector2/include/aws/inspector2/model/ScanStatusReason.h @@ -39,7 +39,9 @@ namespace Model DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED, DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED, DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED, - DEEP_INSPECTION_NO_INVENTORY + DEEP_INSPECTION_NO_INVENTORY, + AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED, + AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED }; namespace ScanStatusReasonMapper diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/AccountAggregationResponse.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/AccountAggregationResponse.cpp index 1af4b706da5..d7b08a05dc4 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/AccountAggregationResponse.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/AccountAggregationResponse.cpp @@ -20,6 +20,10 @@ namespace Model AccountAggregationResponse::AccountAggregationResponse() : m_accountIdHasBeenSet(false), + m_exploitAvailableCount(0), + m_exploitAvailableCountHasBeenSet(false), + m_fixAvailableCount(0), + m_fixAvailableCountHasBeenSet(false), m_severityCountsHasBeenSet(false) { } @@ -39,6 +43,20 @@ AccountAggregationResponse& AccountAggregationResponse::operator =(JsonView json m_accountIdHasBeenSet = true; } + if(jsonValue.ValueExists("exploitAvailableCount")) + { + m_exploitAvailableCount = jsonValue.GetInt64("exploitAvailableCount"); + + m_exploitAvailableCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("fixAvailableCount")) + { + m_fixAvailableCount = jsonValue.GetInt64("fixAvailableCount"); + + m_fixAvailableCountHasBeenSet = true; + } + if(jsonValue.ValueExists("severityCounts")) { m_severityCounts = jsonValue.GetObject("severityCounts"); @@ -59,6 +77,18 @@ JsonValue AccountAggregationResponse::Jsonize() const } + if(m_exploitAvailableCountHasBeenSet) + { + payload.WithInt64("exploitAvailableCount", m_exploitAvailableCount); + + } + + if(m_fixAvailableCountHasBeenSet) + { + payload.WithInt64("fixAvailableCount", m_fixAvailableCount); + + } + if(m_severityCountsHasBeenSet) { payload.WithObject("severityCounts", m_severityCounts.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp index 0fac70be5de..f50253deaa1 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ErrorCode.cpp @@ -34,6 +34,8 @@ namespace Aws static const int RESOURCE_SCAN_NOT_DISABLED_HASH = HashingUtils::HashString("RESOURCE_SCAN_NOT_DISABLED"); static const int DISASSOCIATE_ALL_MEMBERS_HASH = HashingUtils::HashString("DISASSOCIATE_ALL_MEMBERS"); static const int ACCOUNT_IS_ISOLATED_HASH = HashingUtils::HashString("ACCOUNT_IS_ISOLATED"); + static const int EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"); + static const int EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"); ErrorCode GetErrorCodeForName(const Aws::String& name) @@ -95,6 +97,14 @@ namespace Aws { return ErrorCode::ACCOUNT_IS_ISOLATED; } + else if (hashCode == EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED_HASH) + { + return ErrorCode::EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED; + } + else if (hashCode == EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED_HASH) + { + return ErrorCode::EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -139,6 +149,10 @@ namespace Aws return "DISASSOCIATE_ALL_MEMBERS"; case ErrorCode::ACCOUNT_IS_ISOLATED: return "ACCOUNT_IS_ISOLATED"; + case ErrorCode::EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED: + return "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED"; + case ErrorCode::EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED: + return "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeAggregationResponse.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeAggregationResponse.cpp index 905b2d641d7..5d074ac2f60 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeAggregationResponse.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/FindingTypeAggregationResponse.cpp @@ -20,6 +20,10 @@ namespace Model FindingTypeAggregationResponse::FindingTypeAggregationResponse() : m_accountIdHasBeenSet(false), + m_exploitAvailableCount(0), + m_exploitAvailableCountHasBeenSet(false), + m_fixAvailableCount(0), + m_fixAvailableCountHasBeenSet(false), m_severityCountsHasBeenSet(false) { } @@ -39,6 +43,20 @@ FindingTypeAggregationResponse& FindingTypeAggregationResponse::operator =(JsonV m_accountIdHasBeenSet = true; } + if(jsonValue.ValueExists("exploitAvailableCount")) + { + m_exploitAvailableCount = jsonValue.GetInt64("exploitAvailableCount"); + + m_exploitAvailableCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("fixAvailableCount")) + { + m_fixAvailableCount = jsonValue.GetInt64("fixAvailableCount"); + + m_fixAvailableCountHasBeenSet = true; + } + if(jsonValue.ValueExists("severityCounts")) { m_severityCounts = jsonValue.GetObject("severityCounts"); @@ -59,6 +77,18 @@ JsonValue FindingTypeAggregationResponse::Jsonize() const } + if(m_exploitAvailableCountHasBeenSet) + { + payload.WithInt64("exploitAvailableCount", m_exploitAvailableCount); + + } + + if(m_fixAvailableCountHasBeenSet) + { + payload.WithInt64("fixAvailableCount", m_fixAvailableCount); + + } + if(m_severityCountsHasBeenSet) { payload.WithObject("severityCounts", m_severityCounts.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp index 918524a8f29..ff9a8f58741 100644 --- a/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp +++ b/generated/src/aws-cpp-sdk-inspector2/source/model/ScanStatusReason.cpp @@ -44,6 +44,8 @@ namespace Aws static const int DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED"); static const int DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED"); static const int DEEP_INSPECTION_NO_INVENTORY_HASH = HashingUtils::HashString("DEEP_INSPECTION_NO_INVENTORY"); + static const int AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED"); + static const int AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED"); ScanStatusReason GetScanStatusReasonForName(const Aws::String& name) @@ -145,6 +147,14 @@ namespace Aws { return ScanStatusReason::DEEP_INSPECTION_NO_INVENTORY; } + else if (hashCode == AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED_HASH) + { + return ScanStatusReason::AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED; + } + else if (hashCode == AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED_HASH) + { + return ScanStatusReason::AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -209,6 +219,10 @@ namespace Aws return "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED"; case ScanStatusReason::DEEP_INSPECTION_NO_INVENTORY: return "DEEP_INSPECTION_NO_INVENTORY"; + case ScanStatusReason::AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: + return "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED"; + case ScanStatusReason::AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: + return "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnalysisDefinition.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnalysisDefinition.h index 4561dee3213..aa9c0eeddef 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnalysisDefinition.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnalysisDefinition.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -162,6 +163,16 @@ namespace Model inline AnalysisDefinition& WithOptions(const AssetOptions& value) { SetOptions(value); return *this;} inline AnalysisDefinition& WithOptions(AssetOptions&& value) { SetOptions(std::move(value)); return *this;} ///@} + + ///@{ + + inline const QueryExecutionOptions& GetQueryExecutionOptions() const{ return m_queryExecutionOptions; } + inline bool QueryExecutionOptionsHasBeenSet() const { return m_queryExecutionOptionsHasBeenSet; } + inline void SetQueryExecutionOptions(const QueryExecutionOptions& value) { m_queryExecutionOptionsHasBeenSet = true; m_queryExecutionOptions = value; } + inline void SetQueryExecutionOptions(QueryExecutionOptions&& value) { m_queryExecutionOptionsHasBeenSet = true; m_queryExecutionOptions = std::move(value); } + inline AnalysisDefinition& WithQueryExecutionOptions(const QueryExecutionOptions& value) { SetQueryExecutionOptions(value); return *this;} + inline AnalysisDefinition& WithQueryExecutionOptions(QueryExecutionOptions&& value) { SetQueryExecutionOptions(std::move(value)); return *this;} + ///@} private: Aws::Vector m_dataSetIdentifierDeclarations; @@ -187,6 +198,9 @@ namespace Model AssetOptions m_options; bool m_optionsHasBeenSet = false; + + QueryExecutionOptions m_queryExecutionOptions; + bool m_queryExecutionOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfiguration.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfiguration.h index 19fb6f40c86..fb61e6e2497 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfiguration.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfiguration.h @@ -6,6 +6,10 @@ #pragma once #include #include +#include +#include +#include +#include #include namespace Aws @@ -56,10 +60,59 @@ namespace Model inline AnonymousUserDashboardEmbeddingConfiguration& WithInitialDashboardId(Aws::String&& value) { SetInitialDashboardId(std::move(value)); return *this;} inline AnonymousUserDashboardEmbeddingConfiguration& WithInitialDashboardId(const char* value) { SetInitialDashboardId(value); return *this;} ///@} + + ///@{ + /** + *

A list of all enabled features of a specified anonymous dashboard.

+ */ + inline const Aws::Vector& GetEnabledFeatures() const{ return m_enabledFeatures; } + inline bool EnabledFeaturesHasBeenSet() const { return m_enabledFeaturesHasBeenSet; } + inline void SetEnabledFeatures(const Aws::Vector& value) { m_enabledFeaturesHasBeenSet = true; m_enabledFeatures = value; } + inline void SetEnabledFeatures(Aws::Vector&& value) { m_enabledFeaturesHasBeenSet = true; m_enabledFeatures = std::move(value); } + inline AnonymousUserDashboardEmbeddingConfiguration& WithEnabledFeatures(const Aws::Vector& value) { SetEnabledFeatures(value); return *this;} + inline AnonymousUserDashboardEmbeddingConfiguration& WithEnabledFeatures(Aws::Vector&& value) { SetEnabledFeatures(std::move(value)); return *this;} + inline AnonymousUserDashboardEmbeddingConfiguration& AddEnabledFeatures(const AnonymousUserDashboardEmbeddingConfigurationEnabledFeature& value) { m_enabledFeaturesHasBeenSet = true; m_enabledFeatures.push_back(value); return *this; } + inline AnonymousUserDashboardEmbeddingConfiguration& AddEnabledFeatures(AnonymousUserDashboardEmbeddingConfigurationEnabledFeature&& value) { m_enabledFeaturesHasBeenSet = true; m_enabledFeatures.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

A list of all disabled features of a specified anonymous dashboard.

+ */ + inline const Aws::Vector& GetDisabledFeatures() const{ return m_disabledFeatures; } + inline bool DisabledFeaturesHasBeenSet() const { return m_disabledFeaturesHasBeenSet; } + inline void SetDisabledFeatures(const Aws::Vector& value) { m_disabledFeaturesHasBeenSet = true; m_disabledFeatures = value; } + inline void SetDisabledFeatures(Aws::Vector&& value) { m_disabledFeaturesHasBeenSet = true; m_disabledFeatures = std::move(value); } + inline AnonymousUserDashboardEmbeddingConfiguration& WithDisabledFeatures(const Aws::Vector& value) { SetDisabledFeatures(value); return *this;} + inline AnonymousUserDashboardEmbeddingConfiguration& WithDisabledFeatures(Aws::Vector&& value) { SetDisabledFeatures(std::move(value)); return *this;} + inline AnonymousUserDashboardEmbeddingConfiguration& AddDisabledFeatures(const AnonymousUserDashboardEmbeddingConfigurationDisabledFeature& value) { m_disabledFeaturesHasBeenSet = true; m_disabledFeatures.push_back(value); return *this; } + inline AnonymousUserDashboardEmbeddingConfiguration& AddDisabledFeatures(AnonymousUserDashboardEmbeddingConfigurationDisabledFeature&& value) { m_disabledFeaturesHasBeenSet = true; m_disabledFeatures.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

The feature configuration for an embedded dashboard.

+ */ + inline const AnonymousUserDashboardFeatureConfigurations& GetFeatureConfigurations() const{ return m_featureConfigurations; } + inline bool FeatureConfigurationsHasBeenSet() const { return m_featureConfigurationsHasBeenSet; } + inline void SetFeatureConfigurations(const AnonymousUserDashboardFeatureConfigurations& value) { m_featureConfigurationsHasBeenSet = true; m_featureConfigurations = value; } + inline void SetFeatureConfigurations(AnonymousUserDashboardFeatureConfigurations&& value) { m_featureConfigurationsHasBeenSet = true; m_featureConfigurations = std::move(value); } + inline AnonymousUserDashboardEmbeddingConfiguration& WithFeatureConfigurations(const AnonymousUserDashboardFeatureConfigurations& value) { SetFeatureConfigurations(value); return *this;} + inline AnonymousUserDashboardEmbeddingConfiguration& WithFeatureConfigurations(AnonymousUserDashboardFeatureConfigurations&& value) { SetFeatureConfigurations(std::move(value)); return *this;} + ///@} private: Aws::String m_initialDashboardId; bool m_initialDashboardIdHasBeenSet = false; + + Aws::Vector m_enabledFeatures; + bool m_enabledFeaturesHasBeenSet = false; + + Aws::Vector m_disabledFeatures; + bool m_disabledFeaturesHasBeenSet = false; + + AnonymousUserDashboardFeatureConfigurations m_featureConfigurations; + bool m_featureConfigurationsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfigurationDisabledFeature.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfigurationDisabledFeature.h new file mode 100644 index 00000000000..3c51f3afc80 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfigurationDisabledFeature.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + enum class AnonymousUserDashboardEmbeddingConfigurationDisabledFeature + { + NOT_SET, + SHARED_VIEW + }; + +namespace AnonymousUserDashboardEmbeddingConfigurationDisabledFeatureMapper +{ +AWS_QUICKSIGHT_API AnonymousUserDashboardEmbeddingConfigurationDisabledFeature GetAnonymousUserDashboardEmbeddingConfigurationDisabledFeatureForName(const Aws::String& name); + +AWS_QUICKSIGHT_API Aws::String GetNameForAnonymousUserDashboardEmbeddingConfigurationDisabledFeature(AnonymousUserDashboardEmbeddingConfigurationDisabledFeature value); +} // namespace AnonymousUserDashboardEmbeddingConfigurationDisabledFeatureMapper +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfigurationEnabledFeature.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfigurationEnabledFeature.h new file mode 100644 index 00000000000..cc0b9172243 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardEmbeddingConfigurationEnabledFeature.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + enum class AnonymousUserDashboardEmbeddingConfigurationEnabledFeature + { + NOT_SET, + SHARED_VIEW + }; + +namespace AnonymousUserDashboardEmbeddingConfigurationEnabledFeatureMapper +{ +AWS_QUICKSIGHT_API AnonymousUserDashboardEmbeddingConfigurationEnabledFeature GetAnonymousUserDashboardEmbeddingConfigurationEnabledFeatureForName(const Aws::String& name); + +AWS_QUICKSIGHT_API Aws::String GetNameForAnonymousUserDashboardEmbeddingConfigurationEnabledFeature(AnonymousUserDashboardEmbeddingConfigurationEnabledFeature value); +} // namespace AnonymousUserDashboardEmbeddingConfigurationEnabledFeatureMapper +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardFeatureConfigurations.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardFeatureConfigurations.h new file mode 100644 index 00000000000..f35e34124e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AnonymousUserDashboardFeatureConfigurations.h @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + + /** + *

The feature configuration for an embedded dashboard.

See Also:

+ * AWS + * API Reference

+ */ + class AnonymousUserDashboardFeatureConfigurations + { + public: + AWS_QUICKSIGHT_API AnonymousUserDashboardFeatureConfigurations(); + AWS_QUICKSIGHT_API AnonymousUserDashboardFeatureConfigurations(Aws::Utils::Json::JsonView jsonValue); + AWS_QUICKSIGHT_API AnonymousUserDashboardFeatureConfigurations& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The shared view settings of an embedded dashboard.

+ */ + inline const SharedViewConfigurations& GetSharedView() const{ return m_sharedView; } + inline bool SharedViewHasBeenSet() const { return m_sharedViewHasBeenSet; } + inline void SetSharedView(const SharedViewConfigurations& value) { m_sharedViewHasBeenSet = true; m_sharedView = value; } + inline void SetSharedView(SharedViewConfigurations&& value) { m_sharedViewHasBeenSet = true; m_sharedView = std::move(value); } + inline AnonymousUserDashboardFeatureConfigurations& WithSharedView(const SharedViewConfigurations& value) { SetSharedView(value); return *this;} + inline AnonymousUserDashboardFeatureConfigurations& WithSharedView(SharedViewConfigurations&& value) { SetSharedView(std::move(value)); return *this;} + ///@} + private: + + SharedViewConfigurations m_sharedView; + bool m_sharedViewHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/QueryExecutionMode.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/QueryExecutionMode.h new file mode 100644 index 00000000000..686bd1938d2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/QueryExecutionMode.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + enum class QueryExecutionMode + { + NOT_SET, + AUTO, + MANUAL + }; + +namespace QueryExecutionModeMapper +{ +AWS_QUICKSIGHT_API QueryExecutionMode GetQueryExecutionModeForName(const Aws::String& name); + +AWS_QUICKSIGHT_API Aws::String GetNameForQueryExecutionMode(QueryExecutionMode value); +} // namespace QueryExecutionModeMapper +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/QueryExecutionOptions.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/QueryExecutionOptions.h new file mode 100644 index 00000000000..ef3b26cc0bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/QueryExecutionOptions.h @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + + /** + *

A structure that describes the query execution options.

See + * Also:

AWS + * API Reference

+ */ + class QueryExecutionOptions + { + public: + AWS_QUICKSIGHT_API QueryExecutionOptions(); + AWS_QUICKSIGHT_API QueryExecutionOptions(Aws::Utils::Json::JsonView jsonValue); + AWS_QUICKSIGHT_API QueryExecutionOptions& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

A structure that describes the query execution mode.

+ */ + inline const QueryExecutionMode& GetQueryExecutionMode() const{ return m_queryExecutionMode; } + inline bool QueryExecutionModeHasBeenSet() const { return m_queryExecutionModeHasBeenSet; } + inline void SetQueryExecutionMode(const QueryExecutionMode& value) { m_queryExecutionModeHasBeenSet = true; m_queryExecutionMode = value; } + inline void SetQueryExecutionMode(QueryExecutionMode&& value) { m_queryExecutionModeHasBeenSet = true; m_queryExecutionMode = std::move(value); } + inline QueryExecutionOptions& WithQueryExecutionMode(const QueryExecutionMode& value) { SetQueryExecutionMode(value); return *this;} + inline QueryExecutionOptions& WithQueryExecutionMode(QueryExecutionMode&& value) { SetQueryExecutionMode(std::move(value)); return *this;} + ///@} + private: + + QueryExecutionMode m_queryExecutionMode; + bool m_queryExecutionModeHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserConsoleFeatureConfigurations.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserConsoleFeatureConfigurations.h index c3bdf3de08c..4344ca5d4ea 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserConsoleFeatureConfigurations.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserConsoleFeatureConfigurations.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -50,10 +51,25 @@ namespace Model inline RegisteredUserConsoleFeatureConfigurations& WithStatePersistence(const StatePersistenceConfigurations& value) { SetStatePersistence(value); return *this;} inline RegisteredUserConsoleFeatureConfigurations& WithStatePersistence(StatePersistenceConfigurations&& value) { SetStatePersistence(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

The shared view settings of an embedded dashboard.

+ */ + inline const SharedViewConfigurations& GetSharedView() const{ return m_sharedView; } + inline bool SharedViewHasBeenSet() const { return m_sharedViewHasBeenSet; } + inline void SetSharedView(const SharedViewConfigurations& value) { m_sharedViewHasBeenSet = true; m_sharedView = value; } + inline void SetSharedView(SharedViewConfigurations&& value) { m_sharedViewHasBeenSet = true; m_sharedView = std::move(value); } + inline RegisteredUserConsoleFeatureConfigurations& WithSharedView(const SharedViewConfigurations& value) { SetSharedView(value); return *this;} + inline RegisteredUserConsoleFeatureConfigurations& WithSharedView(SharedViewConfigurations&& value) { SetSharedView(std::move(value)); return *this;} + ///@} private: StatePersistenceConfigurations m_statePersistence; bool m_statePersistenceHasBeenSet = false; + + SharedViewConfigurations m_sharedView; + bool m_sharedViewHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserDashboardFeatureConfigurations.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserDashboardFeatureConfigurations.h index cb1a2819353..fd9a664ad9f 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserDashboardFeatureConfigurations.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/RegisteredUserDashboardFeatureConfigurations.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include @@ -51,6 +52,18 @@ namespace Model inline RegisteredUserDashboardFeatureConfigurations& WithStatePersistence(StatePersistenceConfigurations&& value) { SetStatePersistence(std::move(value)); return *this;} ///@} + ///@{ + /** + *

The shared view settings of an embedded dashboard.

+ */ + inline const SharedViewConfigurations& GetSharedView() const{ return m_sharedView; } + inline bool SharedViewHasBeenSet() const { return m_sharedViewHasBeenSet; } + inline void SetSharedView(const SharedViewConfigurations& value) { m_sharedViewHasBeenSet = true; m_sharedView = value; } + inline void SetSharedView(SharedViewConfigurations&& value) { m_sharedViewHasBeenSet = true; m_sharedView = std::move(value); } + inline RegisteredUserDashboardFeatureConfigurations& WithSharedView(const SharedViewConfigurations& value) { SetSharedView(value); return *this;} + inline RegisteredUserDashboardFeatureConfigurations& WithSharedView(SharedViewConfigurations&& value) { SetSharedView(std::move(value)); return *this;} + ///@} + ///@{ /** *

The bookmarks configuration for an embedded dashboard in Amazon @@ -68,6 +81,9 @@ namespace Model StatePersistenceConfigurations m_statePersistence; bool m_statePersistenceHasBeenSet = false; + SharedViewConfigurations m_sharedView; + bool m_sharedViewHasBeenSet = false; + BookmarksConfigurations m_bookmarks; bool m_bookmarksHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/SharedViewConfigurations.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/SharedViewConfigurations.h new file mode 100644 index 00000000000..43ad3a78e08 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/SharedViewConfigurations.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QuickSight +{ +namespace Model +{ + + /** + *

The shared view settings of an embedded dashboard.

See Also:

+ * AWS + * API Reference

+ */ + class SharedViewConfigurations + { + public: + AWS_QUICKSIGHT_API SharedViewConfigurations(); + AWS_QUICKSIGHT_API SharedViewConfigurations(Aws::Utils::Json::JsonView jsonValue); + AWS_QUICKSIGHT_API SharedViewConfigurations& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

The shared view settings of an embedded dashboard.

+ */ + inline bool GetEnabled() const{ return m_enabled; } + inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } + inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } + inline SharedViewConfigurations& WithEnabled(bool value) { SetEnabled(value); return *this;} + ///@} + private: + + bool m_enabled; + bool m_enabledHasBeenSet = false; + }; + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TemplateVersionDefinition.h b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TemplateVersionDefinition.h index 0703dbf4282..1e8aa602439 100644 --- a/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TemplateVersionDefinition.h +++ b/generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/TemplateVersionDefinition.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -159,6 +160,16 @@ namespace Model inline TemplateVersionDefinition& WithOptions(const AssetOptions& value) { SetOptions(value); return *this;} inline TemplateVersionDefinition& WithOptions(AssetOptions&& value) { SetOptions(std::move(value)); return *this;} ///@} + + ///@{ + + inline const QueryExecutionOptions& GetQueryExecutionOptions() const{ return m_queryExecutionOptions; } + inline bool QueryExecutionOptionsHasBeenSet() const { return m_queryExecutionOptionsHasBeenSet; } + inline void SetQueryExecutionOptions(const QueryExecutionOptions& value) { m_queryExecutionOptionsHasBeenSet = true; m_queryExecutionOptions = value; } + inline void SetQueryExecutionOptions(QueryExecutionOptions&& value) { m_queryExecutionOptionsHasBeenSet = true; m_queryExecutionOptions = std::move(value); } + inline TemplateVersionDefinition& WithQueryExecutionOptions(const QueryExecutionOptions& value) { SetQueryExecutionOptions(value); return *this;} + inline TemplateVersionDefinition& WithQueryExecutionOptions(QueryExecutionOptions&& value) { SetQueryExecutionOptions(std::move(value)); return *this;} + ///@} private: Aws::Vector m_dataSetConfigurations; @@ -184,6 +195,9 @@ namespace Model AssetOptions m_options; bool m_optionsHasBeenSet = false; + + QueryExecutionOptions m_queryExecutionOptions; + bool m_queryExecutionOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisDefinition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisDefinition.cpp index 413dea4a0f7..5f67937a0a5 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisDefinition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnalysisDefinition.cpp @@ -26,7 +26,8 @@ AnalysisDefinition::AnalysisDefinition() : m_filterGroupsHasBeenSet(false), m_columnConfigurationsHasBeenSet(false), m_analysisDefaultsHasBeenSet(false), - m_optionsHasBeenSet(false) + m_optionsHasBeenSet(false), + m_queryExecutionOptionsHasBeenSet(false) { } @@ -112,6 +113,13 @@ AnalysisDefinition& AnalysisDefinition::operator =(JsonView jsonValue) m_optionsHasBeenSet = true; } + if(jsonValue.ValueExists("QueryExecutionOptions")) + { + m_queryExecutionOptions = jsonValue.GetObject("QueryExecutionOptions"); + + m_queryExecutionOptionsHasBeenSet = true; + } + return *this; } @@ -197,6 +205,12 @@ JsonValue AnalysisDefinition::Jsonize() const } + if(m_queryExecutionOptionsHasBeenSet) + { + payload.WithObject("QueryExecutionOptions", m_queryExecutionOptions.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfiguration.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfiguration.cpp index 84c054ceb10..1004c68a6ed 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfiguration.cpp @@ -19,7 +19,10 @@ namespace Model { AnonymousUserDashboardEmbeddingConfiguration::AnonymousUserDashboardEmbeddingConfiguration() : - m_initialDashboardIdHasBeenSet(false) + m_initialDashboardIdHasBeenSet(false), + m_enabledFeaturesHasBeenSet(false), + m_disabledFeaturesHasBeenSet(false), + m_featureConfigurationsHasBeenSet(false) { } @@ -38,6 +41,33 @@ AnonymousUserDashboardEmbeddingConfiguration& AnonymousUserDashboardEmbeddingCon m_initialDashboardIdHasBeenSet = true; } + if(jsonValue.ValueExists("EnabledFeatures")) + { + Aws::Utils::Array enabledFeaturesJsonList = jsonValue.GetArray("EnabledFeatures"); + for(unsigned enabledFeaturesIndex = 0; enabledFeaturesIndex < enabledFeaturesJsonList.GetLength(); ++enabledFeaturesIndex) + { + m_enabledFeatures.push_back(AnonymousUserDashboardEmbeddingConfigurationEnabledFeatureMapper::GetAnonymousUserDashboardEmbeddingConfigurationEnabledFeatureForName(enabledFeaturesJsonList[enabledFeaturesIndex].AsString())); + } + m_enabledFeaturesHasBeenSet = true; + } + + if(jsonValue.ValueExists("DisabledFeatures")) + { + Aws::Utils::Array disabledFeaturesJsonList = jsonValue.GetArray("DisabledFeatures"); + for(unsigned disabledFeaturesIndex = 0; disabledFeaturesIndex < disabledFeaturesJsonList.GetLength(); ++disabledFeaturesIndex) + { + m_disabledFeatures.push_back(AnonymousUserDashboardEmbeddingConfigurationDisabledFeatureMapper::GetAnonymousUserDashboardEmbeddingConfigurationDisabledFeatureForName(disabledFeaturesJsonList[disabledFeaturesIndex].AsString())); + } + m_disabledFeaturesHasBeenSet = true; + } + + if(jsonValue.ValueExists("FeatureConfigurations")) + { + m_featureConfigurations = jsonValue.GetObject("FeatureConfigurations"); + + m_featureConfigurationsHasBeenSet = true; + } + return *this; } @@ -51,6 +81,34 @@ JsonValue AnonymousUserDashboardEmbeddingConfiguration::Jsonize() const } + if(m_enabledFeaturesHasBeenSet) + { + Aws::Utils::Array enabledFeaturesJsonList(m_enabledFeatures.size()); + for(unsigned enabledFeaturesIndex = 0; enabledFeaturesIndex < enabledFeaturesJsonList.GetLength(); ++enabledFeaturesIndex) + { + enabledFeaturesJsonList[enabledFeaturesIndex].AsString(AnonymousUserDashboardEmbeddingConfigurationEnabledFeatureMapper::GetNameForAnonymousUserDashboardEmbeddingConfigurationEnabledFeature(m_enabledFeatures[enabledFeaturesIndex])); + } + payload.WithArray("EnabledFeatures", std::move(enabledFeaturesJsonList)); + + } + + if(m_disabledFeaturesHasBeenSet) + { + Aws::Utils::Array disabledFeaturesJsonList(m_disabledFeatures.size()); + for(unsigned disabledFeaturesIndex = 0; disabledFeaturesIndex < disabledFeaturesJsonList.GetLength(); ++disabledFeaturesIndex) + { + disabledFeaturesJsonList[disabledFeaturesIndex].AsString(AnonymousUserDashboardEmbeddingConfigurationDisabledFeatureMapper::GetNameForAnonymousUserDashboardEmbeddingConfigurationDisabledFeature(m_disabledFeatures[disabledFeaturesIndex])); + } + payload.WithArray("DisabledFeatures", std::move(disabledFeaturesJsonList)); + + } + + if(m_featureConfigurationsHasBeenSet) + { + payload.WithObject("FeatureConfigurations", m_featureConfigurations.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfigurationDisabledFeature.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfigurationDisabledFeature.cpp new file mode 100644 index 00000000000..be2c025edd5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfigurationDisabledFeature.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QuickSight + { + namespace Model + { + namespace AnonymousUserDashboardEmbeddingConfigurationDisabledFeatureMapper + { + + static const int SHARED_VIEW_HASH = HashingUtils::HashString("SHARED_VIEW"); + + + AnonymousUserDashboardEmbeddingConfigurationDisabledFeature GetAnonymousUserDashboardEmbeddingConfigurationDisabledFeatureForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SHARED_VIEW_HASH) + { + return AnonymousUserDashboardEmbeddingConfigurationDisabledFeature::SHARED_VIEW; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AnonymousUserDashboardEmbeddingConfigurationDisabledFeature::NOT_SET; + } + + Aws::String GetNameForAnonymousUserDashboardEmbeddingConfigurationDisabledFeature(AnonymousUserDashboardEmbeddingConfigurationDisabledFeature enumValue) + { + switch(enumValue) + { + case AnonymousUserDashboardEmbeddingConfigurationDisabledFeature::NOT_SET: + return {}; + case AnonymousUserDashboardEmbeddingConfigurationDisabledFeature::SHARED_VIEW: + return "SHARED_VIEW"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AnonymousUserDashboardEmbeddingConfigurationDisabledFeatureMapper + } // namespace Model + } // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfigurationEnabledFeature.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfigurationEnabledFeature.cpp new file mode 100644 index 00000000000..c1316ed59ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardEmbeddingConfigurationEnabledFeature.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QuickSight + { + namespace Model + { + namespace AnonymousUserDashboardEmbeddingConfigurationEnabledFeatureMapper + { + + static const int SHARED_VIEW_HASH = HashingUtils::HashString("SHARED_VIEW"); + + + AnonymousUserDashboardEmbeddingConfigurationEnabledFeature GetAnonymousUserDashboardEmbeddingConfigurationEnabledFeatureForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SHARED_VIEW_HASH) + { + return AnonymousUserDashboardEmbeddingConfigurationEnabledFeature::SHARED_VIEW; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AnonymousUserDashboardEmbeddingConfigurationEnabledFeature::NOT_SET; + } + + Aws::String GetNameForAnonymousUserDashboardEmbeddingConfigurationEnabledFeature(AnonymousUserDashboardEmbeddingConfigurationEnabledFeature enumValue) + { + switch(enumValue) + { + case AnonymousUserDashboardEmbeddingConfigurationEnabledFeature::NOT_SET: + return {}; + case AnonymousUserDashboardEmbeddingConfigurationEnabledFeature::SHARED_VIEW: + return "SHARED_VIEW"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AnonymousUserDashboardEmbeddingConfigurationEnabledFeatureMapper + } // namespace Model + } // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardFeatureConfigurations.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardFeatureConfigurations.cpp new file mode 100644 index 00000000000..fb9ae70c962 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/AnonymousUserDashboardFeatureConfigurations.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + +AnonymousUserDashboardFeatureConfigurations::AnonymousUserDashboardFeatureConfigurations() : + m_sharedViewHasBeenSet(false) +{ +} + +AnonymousUserDashboardFeatureConfigurations::AnonymousUserDashboardFeatureConfigurations(JsonView jsonValue) + : AnonymousUserDashboardFeatureConfigurations() +{ + *this = jsonValue; +} + +AnonymousUserDashboardFeatureConfigurations& AnonymousUserDashboardFeatureConfigurations::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SharedView")) + { + m_sharedView = jsonValue.GetObject("SharedView"); + + m_sharedViewHasBeenSet = true; + } + + return *this; +} + +JsonValue AnonymousUserDashboardFeatureConfigurations::Jsonize() const +{ + JsonValue payload; + + if(m_sharedViewHasBeenSet) + { + payload.WithObject("SharedView", m_sharedView.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/QueryExecutionMode.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/QueryExecutionMode.cpp new file mode 100644 index 00000000000..6478867845a --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/QueryExecutionMode.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QuickSight + { + namespace Model + { + namespace QueryExecutionModeMapper + { + + static const int AUTO_HASH = HashingUtils::HashString("AUTO"); + static const int MANUAL_HASH = HashingUtils::HashString("MANUAL"); + + + QueryExecutionMode GetQueryExecutionModeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == AUTO_HASH) + { + return QueryExecutionMode::AUTO; + } + else if (hashCode == MANUAL_HASH) + { + return QueryExecutionMode::MANUAL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return QueryExecutionMode::NOT_SET; + } + + Aws::String GetNameForQueryExecutionMode(QueryExecutionMode enumValue) + { + switch(enumValue) + { + case QueryExecutionMode::NOT_SET: + return {}; + case QueryExecutionMode::AUTO: + return "AUTO"; + case QueryExecutionMode::MANUAL: + return "MANUAL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace QueryExecutionModeMapper + } // namespace Model + } // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/QueryExecutionOptions.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/QueryExecutionOptions.cpp new file mode 100644 index 00000000000..f966882a79b --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/QueryExecutionOptions.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + +QueryExecutionOptions::QueryExecutionOptions() : + m_queryExecutionMode(QueryExecutionMode::NOT_SET), + m_queryExecutionModeHasBeenSet(false) +{ +} + +QueryExecutionOptions::QueryExecutionOptions(JsonView jsonValue) + : QueryExecutionOptions() +{ + *this = jsonValue; +} + +QueryExecutionOptions& QueryExecutionOptions::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("QueryExecutionMode")) + { + m_queryExecutionMode = QueryExecutionModeMapper::GetQueryExecutionModeForName(jsonValue.GetString("QueryExecutionMode")); + + m_queryExecutionModeHasBeenSet = true; + } + + return *this; +} + +JsonValue QueryExecutionOptions::Jsonize() const +{ + JsonValue payload; + + if(m_queryExecutionModeHasBeenSet) + { + payload.WithString("QueryExecutionMode", QueryExecutionModeMapper::GetNameForQueryExecutionMode(m_queryExecutionMode)); + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserConsoleFeatureConfigurations.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserConsoleFeatureConfigurations.cpp index e6accdbfda0..3393e561947 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserConsoleFeatureConfigurations.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserConsoleFeatureConfigurations.cpp @@ -19,7 +19,8 @@ namespace Model { RegisteredUserConsoleFeatureConfigurations::RegisteredUserConsoleFeatureConfigurations() : - m_statePersistenceHasBeenSet(false) + m_statePersistenceHasBeenSet(false), + m_sharedViewHasBeenSet(false) { } @@ -38,6 +39,13 @@ RegisteredUserConsoleFeatureConfigurations& RegisteredUserConsoleFeatureConfigur m_statePersistenceHasBeenSet = true; } + if(jsonValue.ValueExists("SharedView")) + { + m_sharedView = jsonValue.GetObject("SharedView"); + + m_sharedViewHasBeenSet = true; + } + return *this; } @@ -51,6 +59,12 @@ JsonValue RegisteredUserConsoleFeatureConfigurations::Jsonize() const } + if(m_sharedViewHasBeenSet) + { + payload.WithObject("SharedView", m_sharedView.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserDashboardFeatureConfigurations.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserDashboardFeatureConfigurations.cpp index 28c758685fd..6c186c41ca6 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserDashboardFeatureConfigurations.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/RegisteredUserDashboardFeatureConfigurations.cpp @@ -20,6 +20,7 @@ namespace Model RegisteredUserDashboardFeatureConfigurations::RegisteredUserDashboardFeatureConfigurations() : m_statePersistenceHasBeenSet(false), + m_sharedViewHasBeenSet(false), m_bookmarksHasBeenSet(false) { } @@ -39,6 +40,13 @@ RegisteredUserDashboardFeatureConfigurations& RegisteredUserDashboardFeatureConf m_statePersistenceHasBeenSet = true; } + if(jsonValue.ValueExists("SharedView")) + { + m_sharedView = jsonValue.GetObject("SharedView"); + + m_sharedViewHasBeenSet = true; + } + if(jsonValue.ValueExists("Bookmarks")) { m_bookmarks = jsonValue.GetObject("Bookmarks"); @@ -59,6 +67,12 @@ JsonValue RegisteredUserDashboardFeatureConfigurations::Jsonize() const } + if(m_sharedViewHasBeenSet) + { + payload.WithObject("SharedView", m_sharedView.Jsonize()); + + } + if(m_bookmarksHasBeenSet) { payload.WithObject("Bookmarks", m_bookmarks.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/SharedViewConfigurations.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/SharedViewConfigurations.cpp new file mode 100644 index 00000000000..04220f6db21 --- /dev/null +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/SharedViewConfigurations.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QuickSight +{ +namespace Model +{ + +SharedViewConfigurations::SharedViewConfigurations() : + m_enabled(false), + m_enabledHasBeenSet(false) +{ +} + +SharedViewConfigurations::SharedViewConfigurations(JsonView jsonValue) + : SharedViewConfigurations() +{ + *this = jsonValue; +} + +SharedViewConfigurations& SharedViewConfigurations::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Enabled")) + { + m_enabled = jsonValue.GetBool("Enabled"); + + m_enabledHasBeenSet = true; + } + + return *this; +} + +JsonValue SharedViewConfigurations::Jsonize() const +{ + JsonValue payload; + + if(m_enabledHasBeenSet) + { + payload.WithBool("Enabled", m_enabled); + + } + + return payload; +} + +} // namespace Model +} // namespace QuickSight +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateVersionDefinition.cpp b/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateVersionDefinition.cpp index 8f571ae9a8b..1dd41d21f14 100644 --- a/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateVersionDefinition.cpp +++ b/generated/src/aws-cpp-sdk-quicksight/source/model/TemplateVersionDefinition.cpp @@ -26,7 +26,8 @@ TemplateVersionDefinition::TemplateVersionDefinition() : m_filterGroupsHasBeenSet(false), m_columnConfigurationsHasBeenSet(false), m_analysisDefaultsHasBeenSet(false), - m_optionsHasBeenSet(false) + m_optionsHasBeenSet(false), + m_queryExecutionOptionsHasBeenSet(false) { } @@ -112,6 +113,13 @@ TemplateVersionDefinition& TemplateVersionDefinition::operator =(JsonView jsonVa m_optionsHasBeenSet = true; } + if(jsonValue.ValueExists("QueryExecutionOptions")) + { + m_queryExecutionOptions = jsonValue.GetObject("QueryExecutionOptions"); + + m_queryExecutionOptionsHasBeenSet = true; + } + return *this; } @@ -197,6 +205,12 @@ JsonValue TemplateVersionDefinition::Jsonize() const } + if(m_queryExecutionOptionsHasBeenSet) + { + payload.WithObject("QueryExecutionOptions", m_queryExecutionOptions.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h index 187cdece3c0..8384fcc2bc5 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h @@ -51,7 +51,8 @@ namespace Model us_isob_east_1, ap_southeast_4, il_central_1, - ca_west_1 + ca_west_1, + ap_southeast_5 }; namespace CloudWatchRegionMapper diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h index cec7932623b..eada5768dbd 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h @@ -46,7 +46,8 @@ namespace Model eu_south_2, ap_southeast_4, il_central_1, - ca_west_1 + ca_west_1, + ap_southeast_5 }; namespace ResourceRecordSetRegionMapper diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h index eba8060d1ab..d32eacb29f7 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h @@ -50,7 +50,8 @@ namespace Model eu_south_2, ap_southeast_4, il_central_1, - ca_west_1 + ca_west_1, + ap_southeast_5 }; namespace VPCRegionMapper diff --git a/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp index c7a03f7bb7a..a98f4e2fe68 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp @@ -56,6 +56,7 @@ namespace Aws static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); static const int ca_west_1_HASH = HashingUtils::HashString("ca-west-1"); + static const int ap_southeast_5_HASH = HashingUtils::HashString("ap-southeast-5"); CloudWatchRegion GetCloudWatchRegionForName(const Aws::String& name) @@ -205,6 +206,10 @@ namespace Aws { return CloudWatchRegion::ca_west_1; } + else if (hashCode == ap_southeast_5_HASH) + { + return CloudWatchRegion::ap_southeast_5; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -293,6 +298,8 @@ namespace Aws return "il-central-1"; case CloudWatchRegion::ca_west_1: return "ca-west-1"; + case CloudWatchRegion::ap_southeast_5: + return "ap-southeast-5"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp index 90cfc416c47..63098062eb3 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp @@ -51,6 +51,7 @@ namespace Aws static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); static const int ca_west_1_HASH = HashingUtils::HashString("ca-west-1"); + static const int ap_southeast_5_HASH = HashingUtils::HashString("ap-southeast-5"); ResourceRecordSetRegion GetResourceRecordSetRegionForName(const Aws::String& name) @@ -180,6 +181,10 @@ namespace Aws { return ResourceRecordSetRegion::ca_west_1; } + else if (hashCode == ap_southeast_5_HASH) + { + return ResourceRecordSetRegion::ap_southeast_5; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -258,6 +263,8 @@ namespace Aws return "il-central-1"; case ResourceRecordSetRegion::ca_west_1: return "ca-west-1"; + case ResourceRecordSetRegion::ap_southeast_5: + return "ap-southeast-5"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp index 71a9bb86689..c403462620e 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp @@ -55,6 +55,7 @@ namespace Aws static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); static const int ca_west_1_HASH = HashingUtils::HashString("ca-west-1"); + static const int ap_southeast_5_HASH = HashingUtils::HashString("ap-southeast-5"); VPCRegion GetVPCRegionForName(const Aws::String& name) @@ -200,6 +201,10 @@ namespace Aws { return VPCRegion::ca_west_1; } + else if (hashCode == ap_southeast_5_HASH) + { + return VPCRegion::ap_southeast_5; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -286,6 +291,8 @@ namespace Aws return "il-central-1"; case VPCRegion::ca_west_1: return "ca-west-1"; + case VPCRegion::ap_southeast_5: + return "ap-southeast-5"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/tests/emr-containers-gen-tests/EMRContainersEndpointProviderTests.cpp b/generated/tests/emr-containers-gen-tests/EMRContainersEndpointProviderTests.cpp index 669d3a4aae2..2027f0ea7ab 100644 --- a/generated/tests/emr-containers-gen-tests/EMRContainersEndpointProviderTests.cpp +++ b/generated/tests/emr-containers-gen-tests/EMRContainersEndpointProviderTests.cpp @@ -74,7 +74,7 @@ class EMRContainersEndpointProviderTests : public ::testing::TestWithParam> EMRContainersEndpointProviderTests::TEST_CASES; -const size_t EMRContainersEndpointProviderTests::TEST_CASES_SZ = 45; +const size_t EMRContainersEndpointProviderTests::TEST_CASES_SZ = 47; Aws::Vector EMRContainersEndpointProviderTests::getTestCase() { @@ -332,10 +332,10 @@ Aws::Vector EMRContainersEndpoint {/*headers*/}}, {/*No error*/}} // expect }, /*TEST CASE 28*/ - {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags - {{/*epUrl*/"https://emr-containers-fips.us-gov-east-1.api.aws", + {{/*epUrl*/"https://emr-containers.us-gov-east-1.amazonaws.com", {/*authScheme*/}, {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect @@ -344,36 +344,54 @@ Aws::Vector EMRContainersEndpoint {"For region us-gov-east-1 with FIPS enabled and DualStack disabled", // documentation {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags - {{/*epUrl*/"https://emr-containers-fips.us-gov-east-1.amazonaws.com", + {{/*epUrl*/"https://emr-containers.us-gov-east-1.amazonaws.com", {/*authScheme*/}, {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, /*TEST CASE 30*/ - {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {"For region us-gov-west-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-west-1"), EpParam("UseDualStack", false)}, // params {}, // tags - {{/*epUrl*/"https://emr-containers.us-gov-east-1.api.aws", + {{/*epUrl*/"https://emr-containers.us-gov-west-1.amazonaws.com", {/*authScheme*/}, {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, /*TEST CASE 31*/ - {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {"For region us-gov-west-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-west-1"), EpParam("UseDualStack", false)}, // params {}, // tags - {{/*epUrl*/"https://emr-containers.us-gov-east-1.amazonaws.com", + {{/*epUrl*/"https://emr-containers.us-gov-west-1.amazonaws.com", {/*authScheme*/}, {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, /*TEST CASE 32*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://emr-containers-fips.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 33*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://emr-containers.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 34*/ {"For region us-iso-east-1 with FIPS enabled and DualStack enabled", // documentation {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect }, - /*TEST CASE 33*/ + /*TEST CASE 35*/ {"For region us-iso-east-1 with FIPS enabled and DualStack disabled", // documentation {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -382,13 +400,13 @@ Aws::Vector EMRContainersEndpoint {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 34*/ + /*TEST CASE 36*/ {"For region us-iso-east-1 with FIPS disabled and DualStack enabled", // documentation {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect }, - /*TEST CASE 35*/ + /*TEST CASE 37*/ {"For region us-iso-east-1 with FIPS disabled and DualStack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -397,13 +415,13 @@ Aws::Vector EMRContainersEndpoint {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 36*/ + /*TEST CASE 38*/ {"For region us-isob-east-1 with FIPS enabled and DualStack enabled", // documentation {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect }, - /*TEST CASE 37*/ + /*TEST CASE 39*/ {"For region us-isob-east-1 with FIPS enabled and DualStack disabled", // documentation {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -412,13 +430,13 @@ Aws::Vector EMRContainersEndpoint {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 38*/ + /*TEST CASE 40*/ {"For region us-isob-east-1 with FIPS disabled and DualStack enabled", // documentation {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect }, - /*TEST CASE 39*/ + /*TEST CASE 41*/ {"For region us-isob-east-1 with FIPS disabled and DualStack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -427,7 +445,7 @@ Aws::Vector EMRContainersEndpoint {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 40*/ + /*TEST CASE 42*/ {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -436,7 +454,7 @@ Aws::Vector EMRContainersEndpoint {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 41*/ + /*TEST CASE 43*/ {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -445,19 +463,19 @@ Aws::Vector EMRContainersEndpoint {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 42*/ + /*TEST CASE 44*/ {"For custom endpoint with fips enabled and dualstack disabled", // documentation {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect }, - /*TEST CASE 43*/ + /*TEST CASE 45*/ {"For custom endpoint with fips disabled and dualstack enabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect }, - /*TEST CASE 44*/ + /*TEST CASE 46*/ {"Missing region", // documentation {}, // params {}, // tags diff --git a/src/aws-cpp-sdk-core/include/aws/core/Region.h b/src/aws-cpp-sdk-core/include/aws/core/Region.h index 0746948a06f..45b1faef33b 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/Region.h +++ b/src/aws-cpp-sdk-core/include/aws/core/Region.h @@ -26,6 +26,7 @@ namespace Aws static const char AP_SOUTHEAST_2[] = "ap-southeast-2"; // Asia Pacific (Sydney) static const char AP_SOUTHEAST_3[] = "ap-southeast-3"; // Asia Pacific (Jakarta) static const char AP_SOUTHEAST_4[] = "ap-southeast-4"; // Asia Pacific (Melbourne) + static const char AP_SOUTHEAST_5[] = "ap-southeast-5"; // Asia Pacific (Malaysia) static const char AWS_CN_GLOBAL[] = "aws-cn-global"; // AWS China global region static const char AWS_GLOBAL[] = "aws-global"; // AWS Standard global region static const char AWS_ISO_B_GLOBAL[] = "aws-iso-b-global"; // AWS ISOB (US) global region diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 4e4d7a59b79..b58c4516b54 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.389" +#define AWS_SDK_VERSION_STRING "1.11.390" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 389 +#define AWS_SDK_VERSION_PATCH 390 diff --git a/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp b/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp index 99a43aa6af3..c8cbab2db08 100644 --- a/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp +++ b/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp @@ -10,8 +10,8 @@ namespace Aws { namespace Endpoint { -const size_t AWSPartitions::PartitionsBlobStrLen = 2544; -const size_t AWSPartitions::PartitionsBlobSize = 2545; +const size_t AWSPartitions::PartitionsBlobStrLen = 2564; +const size_t AWSPartitions::PartitionsBlobSize = 2565; using PartitionsBlobT = Aws::Array; static constexpr PartitionsBlobT PartitionsBlob = {{ @@ -33,90 +33,91 @@ static constexpr PartitionsBlobT PartitionsBlob = {{ 'h','-','2','"',':','{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','1','"',':', '{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','2','"',':','{','}',',','"','a', 'p','-','s','o','u','t','h','e','a','s','t','-','3','"',':','{','}',',','"','a','p','-','s','o','u', -'t','h','e','a','s','t','-','4','"',':','{','}',',','"','a','w','s','-','g','l','o','b','a','l','"', -':','{','}',',','"','c','a','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','c','a', -'-','w','e','s','t','-','1','"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','1', -'"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','2','"',':','{','}',',','"','e', -'u','-','n','o','r','t','h','-','1','"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','1', -'"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','2','"',':','{','}',',','"','e','u','-', -'w','e','s','t','-','1','"',':','{','}',',','"','e','u','-','w','e','s','t','-','2','"',':','{','}', -',','"','e','u','-','w','e','s','t','-','3','"',':','{','}',',','"','i','l','-','c','e','n','t','r', -'a','l','-','1','"',':','{','}',',','"','m','e','-','c','e','n','t','r','a','l','-','1','"',':','{', -'}',',','"','m','e','-','s','o','u','t','h','-','1','"',':','{','}',',','"','s','a','-','e','a','s', -'t','-','1','"',':','{','}',',','"','u','s','-','e','a','s','t','-','1','"',':','{','}',',','"','u', -'s','-','e','a','s','t','-','2','"',':','{','}',',','"','u','s','-','w','e','s','t','-','1','"',':', -'{','}',',','"','u','s','-','w','e','s','t','-','2','"',':','{','}','}','}',',','{','"','i','d','"', -':','"','a','w','s','-','c','n','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s', -'S','u','f','f','i','x','"',':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','.','c','n', -'"',',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','a', -'p','i','.','a','m','a','z','o','n','w','e','b','s','e','r','v','i','c','e','s','.','c','o','m','.', -'c','n','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n', -'"',':','"','c','n','-','n','o','r','t','h','w','e','s','t','-','1','"',',','"','n','a','m','e','"', -':','"','a','w','s','-','c','n','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t', -'a','c','k','"',':','t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':', -'t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','c','n','\\', -'\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"', -':','{','"','a','w','s','-','c','n','-','g','l','o','b','a','l','"',':','{','}',',','"','c','n','-', -'n','o','r','t','h','-','1','"',':','{','}',',','"','c','n','-','n','o','r','t','h','w','e','s','t', -'-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','u','s','-','g','o', -'v','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"', -':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','"',',','"','d','u','a','l','S','t','a', -'c','k','D','n','s','S','u','f','f','i','x','"',':','"','a','p','i','.','a','w','s','"',',','"','i', -'m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-', -'g','o','v','-','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','u', -'s','-','g','o','v','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k', -'"',':','t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u', -'e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','g', -'o','v','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o', -'n','s','"',':','{','"','a','w','s','-','u','s','-','g','o','v','-','g','l','o','b','a','l','"',':', -'{','}',',','"','u','s','-','g','o','v','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s', -'-','g','o','v','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"', -'a','w','s','-','i','s','o','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S', -'u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"','d','u','a','l', -'S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g', -'o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n', -'"',':','"','u','s','-','i','s','o','-','e','a','s','t','-','1','"',',','"','n','a','m','e','"',':', -'"','a','w','s','-','i','s','o','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t', -'a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"', -':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s', -'\\','\\','-','i','s','o','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r', -'e','g','i','o','n','s','"',':','{','"','a','w','s','-','i','s','o','-','g','l','o','b','a','l','"', -':','{','}',',','"','u','s','-','i','s','o','-','e','a','s','t','-','1','"',':','{','}',',','"','u', -'s','-','i','s','o','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':', -'"','a','w','s','-','i','s','o','-','b','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d', -'n','s','S','u','f','f','i','x','"',':','"','s','c','2','s','.','s','g','o','v','.','g','o','v','"', -',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','s','c', -'2','s','.','s','g','o','v','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o', -'b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','b','-','e','a','s','t','-', -'1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','b','"',',','"','s','u', -'p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s', -'u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o', -'n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','b','\\','\\','-','\\','\\','w', +'t','h','e','a','s','t','-','4','"',':','{','}',',','"','a','p','-','s','o','u','t','h','e','a','s', +'t','-','5','"',':','{','}',',','"','a','w','s','-','g','l','o','b','a','l','"',':','{','}',',','"', +'c','a','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','c','a','-','w','e','s','t', +'-','1','"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',', +'"','e','u','-','c','e','n','t','r','a','l','-','2','"',':','{','}',',','"','e','u','-','n','o','r', +'t','h','-','1','"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','1','"',':','{','}',',', +'"','e','u','-','s','o','u','t','h','-','2','"',':','{','}',',','"','e','u','-','w','e','s','t','-', +'1','"',':','{','}',',','"','e','u','-','w','e','s','t','-','2','"',':','{','}',',','"','e','u','-', +'w','e','s','t','-','3','"',':','{','}',',','"','i','l','-','c','e','n','t','r','a','l','-','1','"', +':','{','}',',','"','m','e','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','m','e', +'-','s','o','u','t','h','-','1','"',':','{','}',',','"','s','a','-','e','a','s','t','-','1','"',':', +'{','}',',','"','u','s','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','e','a','s', +'t','-','2','"',':','{','}',',','"','u','s','-','w','e','s','t','-','1','"',':','{','}',',','"','u', +'s','-','w','e','s','t','-','2','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s', +'-','c','n','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i', +'x','"',':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','.','c','n','"',',','"','d','u', +'a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','a','p','i','.','a','m', +'a','z','o','n','w','e','b','s','e','r','v','i','c','e','s','.','c','o','m','.','c','n','"',',','"', +'i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','c','n', +'-','n','o','r','t','h','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s', +'-','c','n','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':', +'t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}', +',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','c','n','\\','\\','-','\\','\\','w', '+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w', -'s','-','i','s','o','-','b','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','i','s', -'o','b','-','e','a','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w', -'s','-','i','s','o','-','e','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S', -'u','f','f','i','x','"',':','"','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"', -'d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','l','o','u', -'d','.','a','d','c','-','e','.','u','k','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b', -'a','l','R','e','g','i','o','n','"',':','"','e','u','-','i','s','o','e','-','w','e','s','t','-','1', -'"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','e','"',',','"','s','u','p', -'p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u', -'p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n', -'R','e','g','e','x','"',':','"','^','e','u','\\','\\','-','i','s','o','e','\\','\\','-','\\','\\','w','+', -'\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','e','u','-', -'i','s','o','e','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"', -'a','w','s','-','i','s','o','-','f','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n', -'s','S','u','f','f','i','x','"',':','"','c','s','p','.','h','c','i','.','i','c','.','g','o','v','"', -',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','s', -'p','.','h','c','i','.','i','c','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l', -'o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','f','-','s','o','u','t', -'h','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','f','"',',','"', -'s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',', -'"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g', -'i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','f','\\','\\','-','\\', -'\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','}', -'}',']',',','"','v','e','r','s','i','o','n','"',':','"','1','.','1','"','}','\0' +'s','-','c','n','-','g','l','o','b','a','l','"',':','{','}',',','"','c','n','-','n','o','r','t','h', +'-','1','"',':','{','}',',','"','c','n','-','n','o','r','t','h','w','e','s','t','-','1','"',':','{', +'}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','u','s','-','g','o','v','"',',','"','o', +'u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','a','m','a', +'z','o','n','a','w','s','.','c','o','m','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s', +'S','u','f','f','i','x','"',':','"','a','p','i','.','a','w','s','"',',','"','i','m','p','l','i','c', +'i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','g','o','v','-','w', +'e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','u','s','-','g','o','v', +'"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','t','r','u', +'e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r', +'e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','g','o','v','\\','\\','-', +'\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{', +'"','a','w','s','-','u','s','-','g','o','v','-','g','l','o','b','a','l','"',':','{','}',',','"','u', +'s','-','g','o','v','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','g','o','v','-', +'w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i', +'s','o','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x', +'"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"','d','u','a','l','S','t','a','c','k', +'D','n','s','S','u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"', +'i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s', +'-','i','s','o','-','e','a','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-', +'i','s','o','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':', +'f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e', +'}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s', +'o','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n', +'s','"',':','{','"','a','w','s','-','i','s','o','-','g','l','o','b','a','l','"',':','{','}',',','"', +'u','s','-','i','s','o','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','i','s','o', +'-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-', +'i','s','o','-','b','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f', +'f','i','x','"',':','"','s','c','2','s','.','s','g','o','v','.','g','o','v','"',',','"','d','u','a', +'l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','s','c','2','s','.','s','g', +'o','v','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e', +'g','i','o','n','"',':','"','u','s','-','i','s','o','b','-','e','a','s','t','-','1','"',',','"','n', +'a','m','e','"',':','"','a','w','s','-','i','s','o','-','b','"',',','"','s','u','p','p','o','r','t', +'s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r', +'t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e', +'x','"',':','"','^','u','s','\\','\\','-','i','s','o','b','\\','\\','-','\\','\\','w','+','\\','\\','-','\\', +'\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w','s','-','i','s','o', +'-','b','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','i','s','o','b','-','e','a', +'s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i','s','o', +'-','e','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x', +'"',':','"','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"','d','u','a','l','S', +'t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','l','o','u','d','.','a','d','c', +'-','e','.','u','k','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g', +'i','o','n','"',':','"','e','u','-','i','s','o','e','-','w','e','s','t','-','1','"',',','"','n','a', +'m','e','"',':','"','a','w','s','-','i','s','o','-','e','"',',','"','s','u','p','p','o','r','t','s', +'D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t', +'s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x', +'"',':','"','^','e','u','\\','\\','-','i','s','o','e','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\', +'d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','e','u','-','i','s','o','e','-', +'w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i', +'s','o','-','f','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f', +'i','x','"',':','"','c','s','p','.','h','c','i','.','i','c','.','g','o','v','"',',','"','d','u','a', +'l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','s','p','.','h','c','i', +'.','i','c','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R', +'e','g','i','o','n','"',':','"','u','s','-','i','s','o','f','-','s','o','u','t','h','-','1','"',',', +'"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','f','"',',','"','s','u','p','p','o', +'r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p', +'o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e', +'g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','f','\\','\\','-','\\','\\','w','+','\\','\\', +'-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','}','}',']',',','"','v', +'e','r','s','i','o','n','"',':','"','1','.','1','"','}','\0' }}; const char* AWSPartitions::GetPartitionsBlob() diff --git a/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json b/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json index 423d48a1efe..d9b4c75eecd 100644 --- a/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json +++ b/tools/code-generation/api-descriptions/autoscaling-2011-01-01.normal.json @@ -945,7 +945,7 @@ "errors":[ {"shape":"ResourceContentionFault"} ], - "documentation":"

Sets the health status of the specified instance.

For more information, see Health checks for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

" + "documentation":"

Sets the health status of the specified instance.

For more information, see Set up a custom health check for your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

" }, "SetInstanceProtection":{ "name":"SetInstanceProtection", @@ -1945,7 +1945,7 @@ }, "HealthCheckType":{ "shape":"XmlStringMaxLen32", - "documentation":"

A comma-separated value string of one or more health check types.

The valid values are EC2, ELB, and VPC_LATTICE. EC2 is the default health check and cannot be disabled. For more information, see Health checks for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Only specify EC2 if you must clear a value that was previously set.

" + "documentation":"

A comma-separated value string of one or more health check types.

The valid values are EC2, EBS, ELB, and VPC_LATTICE. EC2 is the default health check and cannot be disabled. For more information, see Health checks for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Only specify EC2 if you must clear a value that was previously set.

" }, "HealthCheckGracePeriod":{ "shape":"HealthCheckGracePeriod", @@ -5598,7 +5598,7 @@ }, "HealthCheckType":{ "shape":"XmlStringMaxLen32", - "documentation":"

A comma-separated value string of one or more health check types.

The valid values are EC2, ELB, and VPC_LATTICE. EC2 is the default health check and cannot be disabled. For more information, see Health checks for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Only specify EC2 if you must clear a value that was previously set.

" + "documentation":"

A comma-separated value string of one or more health check types.

The valid values are EC2, EBS, ELB, and VPC_LATTICE. EC2 is the default health check and cannot be disabled. For more information, see Health checks for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Only specify EC2 if you must clear a value that was previously set.

" }, "HealthCheckGracePeriod":{ "shape":"HealthCheckGracePeriod", diff --git a/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json b/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json index 4509dc60683..867091cd392 100644 --- a/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json +++ b/tools/code-generation/api-descriptions/bedrock-2023-04-20.normal.json @@ -13,6 +13,25 @@ "uid":"bedrock-2023-04-20" }, "operations":{ + "BatchDeleteEvaluationJob":{ + "name":"BatchDeleteEvaluationJob", + "http":{ + "method":"POST", + "requestUri":"/evaluation-jobs/batch-delete", + "responseCode":202 + }, + "input":{"shape":"BatchDeleteEvaluationJobRequest"}, + "output":{"shape":"BatchDeleteEvaluationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Creates a batch deletion job. A model evaluation job can only be deleted if it has following status FAILED, COMPLETED, and STOPPED. You can request up to 25 model evaluation jobs be deleted in a single request.

" + }, "CreateEvaluationJob":{ "name":"CreateEvaluationJob", "http":{ @@ -115,6 +134,28 @@ "documentation":"

Creates a fine-tuning job to customize a base model.

You specify the base foundation model and the location of the training data. After the model-customization job completes successfully, your custom model resource will be ready to use. Amazon Bedrock returns validation loss metrics and output generations after the job completes.

For information on the format of training and validation data, see Prepare the datasets.

Model-customization jobs are asynchronous and the completion time depends on the base model and the training/validation data size. To monitor a job, use the GetModelCustomizationJob operation to retrieve the job status.

For more information, see Custom models in the Amazon Bedrock User Guide.

", "idempotent":true }, + "CreateModelImportJob":{ + "name":"CreateModelImportJob", + "http":{ + "method":"POST", + "requestUri":"/model-import-jobs", + "responseCode":201 + }, + "input":{"shape":"CreateModelImportJobRequest"}, + "output":{"shape":"CreateModelImportJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model

", + "idempotent":true + }, "CreateModelInvocationJob":{ "name":"CreateModelInvocationJob", "http":{ @@ -197,6 +238,26 @@ "documentation":"

Deletes a guardrail.

  • To delete a guardrail, only specify the ARN of the guardrail in the guardrailIdentifier field. If you delete a guardrail, all of its versions will be deleted.

  • To delete a version of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field and the version in the guardrailVersion field.

", "idempotent":true }, + "DeleteImportedModel":{ + "name":"DeleteImportedModel", + "http":{ + "method":"DELETE", + "requestUri":"/imported-models/{modelIdentifier}", + "responseCode":200 + }, + "input":{"shape":"DeleteImportedModelRequest"}, + "output":{"shape":"DeleteImportedModelResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Deletes a custom model that you imported earlier. For more information, see Import a customized model in the Amazon Bedrock User Guide.

", + "idempotent":true + }, "DeleteModelInvocationLoggingConfiguration":{ "name":"DeleteModelInvocationLoggingConfiguration", "http":{ @@ -306,6 +367,24 @@ ], "documentation":"

Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.

" }, + "GetImportedModel":{ + "name":"GetImportedModel", + "http":{ + "method":"GET", + "requestUri":"/imported-models/{modelIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetImportedModelRequest"}, + "output":{"shape":"GetImportedModelResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Gets properties associated with a customized model you imported.

" + }, "GetModelCopyJob":{ "name":"GetModelCopyJob", "http":{ @@ -342,6 +421,24 @@ ], "documentation":"

Retrieves the properties associated with a model-customization job, including the status of the job. For more information, see Custom models in the Amazon Bedrock User Guide.

" }, + "GetModelImportJob":{ + "name":"GetModelImportJob", + "http":{ + "method":"GET", + "requestUri":"/model-import-jobs/{jobIdentifier}", + "responseCode":200 + }, + "input":{"shape":"GetModelImportJobRequest"}, + "output":{"shape":"GetModelImportJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Retrieves the properties associated with import model job, including the status of the job. For more information, see Import a customized model in the Amazon Bedrock User Guide.

" + }, "GetModelInvocationJob":{ "name":"GetModelInvocationJob", "http":{ @@ -463,6 +560,23 @@ ], "documentation":"

Lists details about all the guardrails in an account. To list the DRAFT version of all your guardrails, don't specify the guardrailIdentifier field. To list all versions of a guardrail, specify the ARN of the guardrail in the guardrailIdentifier field.

You can set the maximum number of results to return in a response in the maxResults field. If there are more results than the number you set, the response returns a nextToken that you can send in another ListGuardrails request to see the next batch of results.

" }, + "ListImportedModels":{ + "name":"ListImportedModels", + "http":{ + "method":"GET", + "requestUri":"/imported-models", + "responseCode":200 + }, + "input":{"shape":"ListImportedModelsRequest"}, + "output":{"shape":"ListImportedModelsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns a list of models you've imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.

" + }, "ListModelCopyJobs":{ "name":"ListModelCopyJobs", "http":{ @@ -498,6 +612,23 @@ ], "documentation":"

Returns a list of model customization jobs that you have submitted. You can filter the jobs to return based on one or more criteria.

For more information, see Custom models in the Amazon Bedrock User Guide.

" }, + "ListModelImportJobs":{ + "name":"ListModelImportJobs", + "http":{ + "method":"GET", + "requestUri":"/model-import-jobs", + "responseCode":200 + }, + "input":{"shape":"ListModelImportJobsRequest"}, + "output":{"shape":"ListModelImportJobsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.

" + }, "ListModelInvocationJobs":{ "name":"ListModelInvocationJobs", "http":{ @@ -738,6 +869,83 @@ "min":1, "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})([:][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}){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][_-]?)+)" }, + "BatchDeleteEvaluationJobError":{ + "type":"structure", + "required":[ + "jobIdentifier", + "code" + ], + "members":{ + "jobIdentifier":{ + "shape":"EvaluationJobIdentifier", + "documentation":"

The ARN of the model evaluation job being deleted.

" + }, + "code":{ + "shape":"String", + "documentation":"

A HTTP status code of the model evaluation job being deleted.

" + }, + "message":{ + "shape":"String", + "documentation":"

A status message about the model evaluation job deletion.

" + } + }, + "documentation":"

A JSON array that provides the status of the model evaluation jobs being deleted.

" + }, + "BatchDeleteEvaluationJobErrors":{ + "type":"list", + "member":{"shape":"BatchDeleteEvaluationJobError"}, + "max":25, + "min":0 + }, + "BatchDeleteEvaluationJobItem":{ + "type":"structure", + "required":[ + "jobIdentifier", + "jobStatus" + ], + "members":{ + "jobIdentifier":{ + "shape":"EvaluationJobIdentifier", + "documentation":"

The ARN of model evaluation job to be deleted.

" + }, + "jobStatus":{ + "shape":"EvaluationJobStatus", + "documentation":"

The status of the job's deletion.

" + } + }, + "documentation":"

An array of model evaluation jobs to be deleted, and their associated statuses.

" + }, + "BatchDeleteEvaluationJobItems":{ + "type":"list", + "member":{"shape":"BatchDeleteEvaluationJobItem"} + }, + "BatchDeleteEvaluationJobRequest":{ + "type":"structure", + "required":["jobIdentifiers"], + "members":{ + "jobIdentifiers":{ + "shape":"EvaluationJobIdentifiers", + "documentation":"

An array of model evaluation job ARNs to be deleted.

" + } + } + }, + "BatchDeleteEvaluationJobResponse":{ + "type":"structure", + "required":[ + "errors", + "evaluationJobs" + ], + "members":{ + "errors":{ + "shape":"BatchDeleteEvaluationJobErrors", + "documentation":"

A JSON object containing the HTTP status codes and the ARNs of model evaluation jobs that failed to be deleted.

" + }, + "evaluationJobs":{ + "shape":"BatchDeleteEvaluationJobItems", + "documentation":"

The list of model evaluation jobs to be deleted.

" + } + } + }, "BedrockModelId":{ "type":"string", "max":140, @@ -1104,6 +1312,63 @@ } } }, + "CreateModelImportJobRequest":{ + "type":"structure", + "required":[ + "jobName", + "importedModelName", + "roleArn", + "modelDataSource" + ], + "members":{ + "jobName":{ + "shape":"JobName", + "documentation":"

The name of the import job.

" + }, + "importedModelName":{ + "shape":"ImportedModelName", + "documentation":"

The name of the imported model.

" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"

The Amazon Resource Name (ARN) of the model import job.

" + }, + "modelDataSource":{ + "shape":"ModelDataSource", + "documentation":"

The data source for the imported model.

" + }, + "jobTags":{ + "shape":"TagList", + "documentation":"

Tags to attach to this import job.

" + }, + "importedModelTags":{ + "shape":"TagList", + "documentation":"

Tags to attach to the imported model.

" + }, + "clientRequestToken":{ + "shape":"IdempotencyToken", + "documentation":"

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.

" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"

VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.

" + }, + "importedModelKmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"

The imported model is encrypted at rest using this key.

" + } + } + }, + "CreateModelImportJobResponse":{ + "type":"structure", + "required":["jobArn"], + "members":{ + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"

The Amazon Resource Name (ARN) of the model import job.

" + } + } + }, "CreateModelInvocationJobRequest":{ "type":"structure", "required":[ @@ -1308,6 +1573,23 @@ "members":{ } }, + "DeleteImportedModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ImportedModelIdentifier", + "documentation":"

Name of the imported model to delete.

", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "DeleteImportedModelResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteModelInvocationLoggingConfigurationRequest":{ "type":"structure", "members":{ @@ -1362,7 +1644,7 @@ "documentation":"

Each Amazon Bedrock support different inference parameters that change how the model behaves during inference.

" } }, - "documentation":"

Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.

The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.

" + "documentation":"

Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model supports different inferenceParams. To learn more about supported inference parameters for Amazon Bedrock models, see Inference parameters for foundation models.

The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all quotations are properly escaped. For example, \"temperature\":\"0.25\" key value pair would need to be formatted as \\\"temperature\\\":\\\"0.25\\\" to successfully accepted in the request.

" }, "EvaluationConfig":{ "type":"structure", @@ -1385,7 +1667,7 @@ "members":{ "name":{ "shape":"EvaluationDatasetName", - "documentation":"

Used to specify supported built-in prompt datasets. Valid values are Builtin.Bold, Builtin.BoolQ, Builtin.NaturalQuestions, Builtin.Gigaword, Builtin.RealToxicityPrompts, Builtin.TriviaQa, Builtin.T-Rex, Builtin.WomensEcommerceClothingReviews and Builtin.Wikitext2.

" + "documentation":"

Used to specify supported built-in prompt datasets. Valid values are Builtin.Bold, Builtin.BoolQ, Builtin.NaturalQuestions, Builtin.Gigaword, Builtin.RealToxicityPrompts, Builtin.TriviaQA, Builtin.T-Rex, Builtin.WomensEcommerceClothingReviews and Builtin.Wikitext2.

" }, "datasetLocation":{ "shape":"EvaluationDatasetLocation", @@ -1472,6 +1754,12 @@ "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:evaluation-job/[a-z0-9]{12})", "sensitive":true }, + "EvaluationJobIdentifiers":{ + "type":"list", + "member":{"shape":"EvaluationJobIdentifier"}, + "max":25, + "min":1 + }, "EvaluationJobName":{ "type":"string", "max":63, @@ -1485,7 +1773,8 @@ "Completed", "Failed", "Stopping", - "Stopped" + "Stopped", + "Deleting" ] }, "EvaluationJobType":{ @@ -2060,6 +2349,55 @@ } } }, + "GetImportedModelRequest":{ + "type":"structure", + "required":["modelIdentifier"], + "members":{ + "modelIdentifier":{ + "shape":"ImportedModelIdentifier", + "documentation":"

Name or Amazon Resource Name (ARN) of the imported model.

", + "location":"uri", + "locationName":"modelIdentifier" + } + } + }, + "GetImportedModelResponse":{ + "type":"structure", + "members":{ + "modelArn":{ + "shape":"ImportedModelArn", + "documentation":"

The Amazon Resource Name (ARN) associated with this imported model.

" + }, + "modelName":{ + "shape":"ImportedModelName", + "documentation":"

The name of the imported model.

" + }, + "jobName":{ + "shape":"JobName", + "documentation":"

Job name associated with the imported model.

" + }, + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"

Job Amazon Resource Name (ARN) associated with the imported model.

" + }, + "modelDataSource":{ + "shape":"ModelDataSource", + "documentation":"

The data source for this imported model.

" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"

Creation time of the imported model.

" + }, + "modelArchitecture":{ + "shape":"String", + "documentation":"

The architecture of the imported model.

" + }, + "modelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"

The imported model is encrypted at rest using this key.

" + } + } + }, "GetModelCopyJobRequest":{ "type":"structure", "required":["jobArn"], @@ -2242,6 +2580,75 @@ } } }, + "GetModelImportJobRequest":{ + "type":"structure", + "required":["jobIdentifier"], + "members":{ + "jobIdentifier":{ + "shape":"ModelImportJobIdentifier", + "documentation":"

The identifier of the import job.

", + "location":"uri", + "locationName":"jobIdentifier" + } + } + }, + "GetModelImportJobResponse":{ + "type":"structure", + "members":{ + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"

The Amazon Resource Name (ARN) of the import job.

" + }, + "jobName":{ + "shape":"JobName", + "documentation":"

The name of the import job.

" + }, + "importedModelName":{ + "shape":"ImportedModelName", + "documentation":"

The name of the imported model.

" + }, + "importedModelArn":{ + "shape":"ImportedModelArn", + "documentation":"

The Amazon Resource Name (ARN) of the imported model.

" + }, + "roleArn":{ + "shape":"RoleArn", + "documentation":"

The Amazon Resource Name (ARN) of the IAM role associated with this job.

" + }, + "modelDataSource":{ + "shape":"ModelDataSource", + "documentation":"

The data source for the imported model.

" + }, + "status":{ + "shape":"ModelImportJobStatus", + "documentation":"

The status of the job. A successful job transitions from in-progress to completed when the imported model is ready to use. If the job failed, the failure message contains information about why the job failed.

" + }, + "failureMessage":{ + "shape":"ErrorMessage", + "documentation":"

Information about why the import job failed.

" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"

The time the resource was created.

" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"

Time the resource was last modified.

" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

Time that the resource transitioned to terminal state.

" + }, + "vpcConfig":{ + "shape":"VpcConfig", + "documentation":"

The Virtual Private Cloud (VPC) configuration of the import model job.

" + }, + "importedModelKmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"

The imported model is encrypted at rest using this key.

" + } + } + }, "GetModelInvocationJobRequest":{ "type":"structure", "required":["jobIdentifier"], @@ -3249,6 +3656,51 @@ "min":1, "pattern":"[a-zA-Z0-9](-*[a-zA-Z0-9])*" }, + "ImportedModelArn":{ + "type":"string", + "max":1011, + "min":20, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:imported-model/[a-z0-9]{12}" + }, + "ImportedModelIdentifier":{ + "type":"string", + "max":1011, + "min":1, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:imported-model/[a-z0-9]{12})|(([0-9a-zA-Z][_-]?)+)" + }, + "ImportedModelName":{ + "type":"string", + "max":63, + "min":1, + "pattern":"([0-9a-zA-Z][_-]?)+" + }, + "ImportedModelSummary":{ + "type":"structure", + "required":[ + "modelArn", + "modelName", + "creationTime" + ], + "members":{ + "modelArn":{ + "shape":"ImportedModelArn", + "documentation":"

The Amazon Resource Name (ARN) of the imported model.

" + }, + "modelName":{ + "shape":"ImportedModelName", + "documentation":"

Name of the imported model.

" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"

Creation time of the imported model.

" + } + }, + "documentation":"

Information about tne imported model.

" + }, + "ImportedModelSummaryList":{ + "type":"list", + "member":{"shape":"ImportedModelSummary"} + }, "InferenceType":{ "type":"string", "enum":[ @@ -3291,7 +3743,7 @@ "type":"string", "max":2048, "min":1, - "pattern":"arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:((key/[a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-_/]+))" + "pattern":"(arn:aws(-[^:]+)?:kms:[a-zA-Z0-9-]*:[0-9]{12}:((key/[a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-_/]+)))|([a-zA-Z0-9-]{36})|(alias/[a-zA-Z0-9-_/]+)" }, "ListCustomModelsRequest":{ "type":"structure", @@ -3512,6 +3964,66 @@ } } }, + "ListImportedModelsRequest":{ + "type":"structure", + "members":{ + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"

Return imported models that created before the specified time.

", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"

Return imported models that were created after the specified time.

", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "nameContains":{ + "shape":"ImportedModelName", + "documentation":"

Return imported models only if the model name contains these characters.

", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

", + "location":"querystring", + "locationName":"nextToken" + }, + "sortBy":{ + "shape":"SortModelsBy", + "documentation":"

The field to sort by in the returned list of imported models.

", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"

Specifies whetehr to sort the results in ascending or descending order.

", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListImportedModelsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.

" + }, + "modelSummaries":{ + "shape":"ImportedModelSummaryList", + "documentation":"

Model summaries.

" + } + } + }, "ListModelCopyJobsRequest":{ "type":"structure", "members":{ @@ -3656,6 +4168,72 @@ } } }, + "ListModelImportJobsRequest":{ + "type":"structure", + "members":{ + "creationTimeAfter":{ + "shape":"Timestamp", + "documentation":"

Return import jobs that were created after the specified time.

", + "location":"querystring", + "locationName":"creationTimeAfter" + }, + "creationTimeBefore":{ + "shape":"Timestamp", + "documentation":"

Return import jobs that were created before the specified time.

", + "location":"querystring", + "locationName":"creationTimeBefore" + }, + "statusEquals":{ + "shape":"ModelImportJobStatus", + "documentation":"

Return imported jobs with the specified status.

", + "location":"querystring", + "locationName":"statusEquals" + }, + "nameContains":{ + "shape":"JobName", + "documentation":"

Return imported jobs only if the job name contains these characters.

", + "location":"querystring", + "locationName":"nameContains" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.

", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

", + "location":"querystring", + "locationName":"nextToken" + }, + "sortBy":{ + "shape":"SortJobsBy", + "documentation":"

The field to sort by in the returned list of imported jobs.

", + "location":"querystring", + "locationName":"sortBy" + }, + "sortOrder":{ + "shape":"SortOrder", + "documentation":"

Specifies whether to sort the results in ascending or descending order.

", + "location":"querystring", + "locationName":"sortOrder" + } + } + }, + "ListModelImportJobsResponse":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"PaginationToken", + "documentation":"

If the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

" + }, + "modelImportJobSummaries":{ + "shape":"ModelImportJobSummaries", + "documentation":"

Import job summaries.

" + } + } + }, "ListModelInvocationJobsRequest":{ "type":"structure", "members":{ @@ -4037,6 +4615,17 @@ "type":"list", "member":{"shape":"ModelCustomization"} }, + "ModelDataSource":{ + "type":"structure", + "members":{ + "s3DataSource":{ + "shape":"S3DataSource", + "documentation":"

The Amazon S3 data source of the imported model.

" + } + }, + "documentation":"

Data source for the imported model.

", + "union":true + }, "ModelId":{ "type":"string", "max":2048, @@ -4049,6 +4638,74 @@ "min":1, "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][_-]?)+)" }, + "ModelImportJobArn":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-import-job/[a-z0-9]{12}" + }, + "ModelImportJobIdentifier":{ + "type":"string", + "max":1011, + "min":0, + "pattern":"(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:model-import-job/[a-z0-9]{12})|([a-zA-Z0-9](-*[a-zA-Z0-9\\+\\-\\.])*)" + }, + "ModelImportJobStatus":{ + "type":"string", + "enum":[ + "InProgress", + "Completed", + "Failed" + ] + }, + "ModelImportJobSummaries":{ + "type":"list", + "member":{"shape":"ModelImportJobSummary"} + }, + "ModelImportJobSummary":{ + "type":"structure", + "required":[ + "jobArn", + "jobName", + "status", + "creationTime" + ], + "members":{ + "jobArn":{ + "shape":"ModelImportJobArn", + "documentation":"

The Amazon Resource Name (ARN) of the import job.

" + }, + "jobName":{ + "shape":"JobName", + "documentation":"

The name of the import job.

" + }, + "status":{ + "shape":"ModelImportJobStatus", + "documentation":"

The status of the imported job.

" + }, + "lastModifiedTime":{ + "shape":"Timestamp", + "documentation":"

The time when the import job was last modified.

" + }, + "creationTime":{ + "shape":"Timestamp", + "documentation":"

The time import job was created.

" + }, + "endTime":{ + "shape":"Timestamp", + "documentation":"

The time when import job ended.

" + }, + "importedModelArn":{ + "shape":"ImportedModelArn", + "documentation":"

The Amazon resource Name (ARN) of the imported model.

" + }, + "importedModelName":{ + "shape":"ImportedModelName", + "documentation":"

The name of the imported model.

" + } + }, + "documentation":"

Information about the import job.

" + }, "ModelInvocationIdempotencyToken":{ "type":"string", "max":256, @@ -4411,6 +5068,17 @@ }, "documentation":"

S3 configuration for storing log data.

" }, + "S3DataSource":{ + "type":"structure", + "required":["s3Uri"], + "members":{ + "s3Uri":{ + "shape":"S3Uri", + "documentation":"

The URI of the Amazon S3 data source.

" + } + }, + "documentation":"

The Amazon S3 data source of the imported job.

" + }, "S3InputFormat":{ "type":"string", "enum":["JSONL"] @@ -4419,7 +5087,7 @@ "type":"string", "max":1024, "min":1, - "pattern":"s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?" + "pattern":"s3://[a-z0-9][-.a-z0-9]{1,61}(?:/[-!_*'().a-z0-9A-Z]+(?:/[-!_*'().a-z0-9A-Z]+)*)?/?" }, "SageMakerFlowDefinitionArn":{ "type":"string", diff --git a/tools/code-generation/api-descriptions/emr-containers-2020-10-01.normal.json b/tools/code-generation/api-descriptions/emr-containers-2020-10-01.normal.json index 7a05bd0b1dc..1b43d1018d4 100644 --- a/tools/code-generation/api-descriptions/emr-containers-2020-10-01.normal.json +++ b/tools/code-generation/api-descriptions/emr-containers-2020-10-01.normal.json @@ -5,11 +5,13 @@ "endpointPrefix":"emr-containers", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Amazon EMR Containers", "serviceId":"EMR containers", "signatureVersion":"v4", "signingName":"emr-containers", - "uid":"emr-containers-2020-10-01" + "uid":"emr-containers-2020-10-01", + "auth":["aws.auth#sigv4"] }, "operations":{ "CancelJobRun":{ diff --git a/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json b/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json index 6e1551274f6..fe597885bc2 100644 --- a/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json +++ b/tools/code-generation/api-descriptions/inspector2-2020-06-08.normal.json @@ -11,7 +11,8 @@ "serviceId":"Inspector2", "signatureVersion":"v4", "signingName":"inspector2", - "uid":"inspector2-2020-06-08" + "uid":"inspector2-2020-06-08", + "auth":["aws.auth#sigv4"] }, "operations":{ "AssociateMember":{ @@ -1060,7 +1061,7 @@ "members":{ "message":{"shape":"String"} }, - "documentation":"

You do not have sufficient access to perform this action.

", + "documentation":"

You do not have sufficient access to perform this action.

For Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region.

", "error":{ "httpStatusCode":403, "senderFault":true @@ -1119,6 +1120,14 @@ "shape":"AccountId", "documentation":"

The Amazon Web Services account ID.

" }, + "exploitAvailableCount":{ + "shape":"Long", + "documentation":"

The number of findings that have an exploit available.

" + }, + "fixAvailableCount":{ + "shape":"Long", + "documentation":"

Details about the number of fixes.

" + }, "severityCounts":{ "shape":"SeverityCounts", "documentation":"

The number of findings by severity.

" @@ -4125,7 +4134,9 @@ "EVENTBRIDGE_THROTTLED", "RESOURCE_SCAN_NOT_DISABLED", "DISASSOCIATE_ALL_MEMBERS", - "ACCOUNT_IS_ISOLATED" + "ACCOUNT_IS_ISOLATED", + "EC2_SSM_RESOURCE_DATA_SYNC_LIMIT_EXCEEDED", + "EC2_SSM_ASSOCIATION_VERSION_LIMIT_EXCEEDED" ] }, "ErrorMessage":{"type":"string"}, @@ -4794,6 +4805,14 @@ "shape":"AccountId", "documentation":"

The ID of the Amazon Web Services account associated with the findings.

" }, + "exploitAvailableCount":{ + "shape":"Long", + "documentation":"

The number of findings that have an exploit available.

" + }, + "fixAvailableCount":{ + "shape":"Long", + "documentation":"

Details about the number of fixes.

" + }, "severityCounts":{ "shape":"SeverityCounts", "documentation":"

The value to sort results by.

" @@ -7230,7 +7249,9 @@ "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED", "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED", "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED", - "DEEP_INSPECTION_NO_INVENTORY" + "DEEP_INSPECTION_NO_INVENTORY", + "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED", + "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED" ] }, "ScanType":{ diff --git a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json index 4e7264dca52..23bd0af6f83 100644 --- a/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json +++ b/tools/code-generation/api-descriptions/quicksight-2018-04-01.normal.json @@ -3715,7 +3715,8 @@ "Options":{ "shape":"AssetOptions", "documentation":"

An array of option definitions for an analysis.

" - } + }, + "QueryExecutionOptions":{"shape":"QueryExecutionOptions"} }, "documentation":"

The definition of an analysis.

" }, @@ -3908,10 +3909,48 @@ "InitialDashboardId":{ "shape":"ShortRestrictiveResourceId", "documentation":"

The dashboard ID for the dashboard that you want the user to see first. This ID is included in the output URL. When the URL in response is accessed, Amazon QuickSight renders this dashboard.

The Amazon Resource Name (ARN) of this dashboard must be included in the AuthorizedResourceArns parameter. Otherwise, the request will fail with InvalidParameterValueException.

" + }, + "EnabledFeatures":{ + "shape":"AnonymousUserDashboardEmbeddingConfigurationEnabledFeatures", + "documentation":"

A list of all enabled features of a specified anonymous dashboard.

" + }, + "DisabledFeatures":{ + "shape":"AnonymousUserDashboardEmbeddingConfigurationDisabledFeatures", + "documentation":"

A list of all disabled features of a specified anonymous dashboard.

" + }, + "FeatureConfigurations":{ + "shape":"AnonymousUserDashboardFeatureConfigurations", + "documentation":"

The feature configuration for an embedded dashboard.

" } }, "documentation":"

Information about the dashboard that you want to embed.

" }, + "AnonymousUserDashboardEmbeddingConfigurationDisabledFeature":{ + "type":"string", + "enum":["SHARED_VIEW"] + }, + "AnonymousUserDashboardEmbeddingConfigurationDisabledFeatures":{ + "type":"list", + "member":{"shape":"AnonymousUserDashboardEmbeddingConfigurationDisabledFeature"} + }, + "AnonymousUserDashboardEmbeddingConfigurationEnabledFeature":{ + "type":"string", + "enum":["SHARED_VIEW"] + }, + "AnonymousUserDashboardEmbeddingConfigurationEnabledFeatures":{ + "type":"list", + "member":{"shape":"AnonymousUserDashboardEmbeddingConfigurationEnabledFeature"} + }, + "AnonymousUserDashboardFeatureConfigurations":{ + "type":"structure", + "members":{ + "SharedView":{ + "shape":"SharedViewConfigurations", + "documentation":"

The shared view settings of an embedded dashboard.

" + } + }, + "documentation":"

The feature configuration for an embedded dashboard.

" + }, "AnonymousUserDashboardVisualEmbeddingConfiguration":{ "type":"structure", "required":["InitialDashboardVisualId"], @@ -24152,6 +24191,23 @@ "max":256, "min":1 }, + "QueryExecutionMode":{ + "type":"string", + "enum":[ + "AUTO", + "MANUAL" + ] + }, + "QueryExecutionOptions":{ + "type":"structure", + "members":{ + "QueryExecutionMode":{ + "shape":"QueryExecutionMode", + "documentation":"

A structure that describes the query execution mode.

" + } + }, + "documentation":"

A structure that describes the query execution options.

" + }, "QueueInfo":{ "type":"structure", "required":[ @@ -24872,6 +24928,10 @@ "StatePersistence":{ "shape":"StatePersistenceConfigurations", "documentation":"

The state persistence configurations of an embedded Amazon QuickSight console.

" + }, + "SharedView":{ + "shape":"SharedViewConfigurations", + "documentation":"

The shared view settings of an embedded dashboard.

" } }, "documentation":"

The feature configurations of an embedded Amazon QuickSight console.

" @@ -24898,6 +24958,10 @@ "shape":"StatePersistenceConfigurations", "documentation":"

The state persistence settings of an embedded dashboard.

" }, + "SharedView":{ + "shape":"SharedViewConfigurations", + "documentation":"

The shared view settings of an embedded dashboard.

" + }, "Bookmarks":{ "shape":"BookmarksConfigurations", "documentation":"

The bookmarks configuration for an embedded dashboard in Amazon QuickSight.

" @@ -26573,6 +26637,17 @@ }, "documentation":"

The shape conditional formatting of a filled map visual.

" }, + "SharedViewConfigurations":{ + "type":"structure", + "required":["Enabled"], + "members":{ + "Enabled":{ + "shape":"Boolean", + "documentation":"

The shared view settings of an embedded dashboard.

" + } + }, + "documentation":"

The shared view settings of an embedded dashboard.

" + }, "SharingModel":{ "type":"string", "enum":[ @@ -28853,7 +28928,8 @@ "Options":{ "shape":"AssetOptions", "documentation":"

An array of option definitions for a template.

" - } + }, + "QueryExecutionOptions":{"shape":"QueryExecutionOptions"} }, "documentation":"

The detailed definition of a template.

" }, diff --git a/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json b/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json index fcb3fac736f..590e550071d 100644 --- a/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json +++ b/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json @@ -1795,7 +1795,8 @@ "us-isob-east-1", "ap-southeast-4", "il-central-1", - "ca-west-1" + "ca-west-1", + "ap-southeast-5" ], "max":64, "min":1 @@ -5556,7 +5557,8 @@ "eu-south-2", "ap-southeast-4", "il-central-1", - "ca-west-1" + "ca-west-1", + "ap-southeast-5" ], "max":64, "min":1 @@ -6433,7 +6435,8 @@ "eu-south-2", "ap-southeast-4", "il-central-1", - "ca-west-1" + "ca-west-1", + "ap-southeast-5" ], "max":64, "min":1 diff --git a/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-rule-set.json b/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-rule-set.json index 8bbec487bab..89a0b7aa03c 100644 --- a/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-rule-set.json @@ -218,6 +218,44 @@ } ], "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://emr-containers.us-gov-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://emr-containers.us-gov-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [], "endpoint": { diff --git a/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-tests.json b/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-tests.json index a2542059e07..d648a7291ec 100644 --- a/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-tests.json +++ b/tools/code-generation/endpoints/emr-containers-2020-10-01.endpoint-tests.json @@ -365,23 +365,23 @@ } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://emr-containers-fips.us-gov-east-1.api.aws" + "url": "https://emr-containers.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true + "UseFIPS": false, + "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://emr-containers-fips.us-gov-east-1.amazonaws.com" + "url": "https://emr-containers.us-gov-east-1.amazonaws.com" } }, "params": { @@ -391,29 +391,55 @@ } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://emr-containers.us-gov-east-1.api.aws" + "url": "https://emr-containers.us-gov-west-1.amazonaws.com" } }, "params": { - "Region": "us-gov-east-1", + "Region": "us-gov-west-1", "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://emr-containers.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-west-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://emr-containers-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://emr-containers.us-gov-east-1.amazonaws.com" + "url": "https://emr-containers.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, - "UseDualStack": false + "UseDualStack": true } }, { diff --git a/tools/code-generation/partitions/partitions.json b/tools/code-generation/partitions/partitions.json index 7a28569c3de..712d31e3fe5 100644 --- a/tools/code-generation/partitions/partitions.json +++ b/tools/code-generation/partitions/partitions.json @@ -44,6 +44,9 @@ "ap-southeast-4" : { "description" : "Asia Pacific (Melbourne)" }, + "ap-southeast-5" : { + "description" : "Asia Pacific (Malaysia)" + }, "aws-global" : { "description" : "AWS Standard global region" },