diff --git a/VERSION b/VERSION index 7823d68a1e0..72df85d444c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.364 \ No newline at end of file +1.11.365 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DataProductSummary.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DataProductSummary.h deleted file mode 100644 index 535200b4402..00000000000 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/DataProductSummary.h +++ /dev/null @@ -1,231 +0,0 @@ -/** - * 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 -{ -namespace Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace DataZone -{ -namespace Model -{ - - /** - *

See Also:

AWS - * API Reference

- */ - class DataProductSummary - { - public: - AWS_DATAZONE_API DataProductSummary(); - AWS_DATAZONE_API DataProductSummary(Aws::Utils::Json::JsonView jsonValue); - AWS_DATAZONE_API DataProductSummary& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - /** - *

- */ - inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } - inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } - inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } - inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } - inline DataProductSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} - inline DataProductSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } - inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } - inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } - inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } - inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } - inline DataProductSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} - inline DataProductSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} - inline DataProductSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::Vector& GetDataProductItems() const{ return m_dataProductItems; } - inline bool DataProductItemsHasBeenSet() const { return m_dataProductItemsHasBeenSet; } - inline void SetDataProductItems(const Aws::Vector& value) { m_dataProductItemsHasBeenSet = true; m_dataProductItems = value; } - inline void SetDataProductItems(Aws::Vector&& value) { m_dataProductItemsHasBeenSet = true; m_dataProductItems = std::move(value); } - inline DataProductSummary& WithDataProductItems(const Aws::Vector& value) { SetDataProductItems(value); return *this;} - inline DataProductSummary& WithDataProductItems(Aws::Vector&& value) { SetDataProductItems(std::move(value)); return *this;} - inline DataProductSummary& AddDataProductItems(const DataProductItem& value) { m_dataProductItemsHasBeenSet = true; m_dataProductItems.push_back(value); return *this; } - inline DataProductSummary& AddDataProductItems(DataProductItem&& value) { m_dataProductItemsHasBeenSet = true; m_dataProductItems.push_back(std::move(value)); return *this; } - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetDescription() const{ return m_description; } - inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } - inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } - inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } - inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } - inline DataProductSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} - inline DataProductSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} - inline DataProductSummary& WithDescription(const char* value) { SetDescription(value); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetDomainId() const{ return m_domainId; } - inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } - inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } - inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } - inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } - inline DataProductSummary& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} - inline DataProductSummary& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} - inline DataProductSummary& WithDomainId(const char* value) { SetDomainId(value); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::Vector& GetGlossaryTerms() const{ return m_glossaryTerms; } - inline bool GlossaryTermsHasBeenSet() const { return m_glossaryTermsHasBeenSet; } - inline void SetGlossaryTerms(const Aws::Vector& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms = value; } - inline void SetGlossaryTerms(Aws::Vector&& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms = std::move(value); } - inline DataProductSummary& WithGlossaryTerms(const Aws::Vector& value) { SetGlossaryTerms(value); return *this;} - inline DataProductSummary& WithGlossaryTerms(Aws::Vector&& value) { SetGlossaryTerms(std::move(value)); return *this;} - inline DataProductSummary& AddGlossaryTerms(const Aws::String& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms.push_back(value); return *this; } - inline DataProductSummary& AddGlossaryTerms(Aws::String&& value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms.push_back(std::move(value)); return *this; } - inline DataProductSummary& AddGlossaryTerms(const char* value) { m_glossaryTermsHasBeenSet = true; m_glossaryTerms.push_back(value); return *this; } - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetId() const{ return m_id; } - inline bool IdHasBeenSet() const { return m_idHasBeenSet; } - inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } - inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } - inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } - inline DataProductSummary& WithId(const Aws::String& value) { SetId(value); return *this;} - inline DataProductSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} - inline DataProductSummary& WithId(const char* value) { SetId(value); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetName() const{ return m_name; } - inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } - inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } - inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } - inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } - inline DataProductSummary& WithName(const Aws::String& value) { SetName(value); return *this;} - inline DataProductSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} - inline DataProductSummary& WithName(const char* value) { SetName(value); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetOwningProjectId() const{ return m_owningProjectId; } - inline bool OwningProjectIdHasBeenSet() const { return m_owningProjectIdHasBeenSet; } - inline void SetOwningProjectId(const Aws::String& value) { m_owningProjectIdHasBeenSet = true; m_owningProjectId = value; } - inline void SetOwningProjectId(Aws::String&& value) { m_owningProjectIdHasBeenSet = true; m_owningProjectId = std::move(value); } - inline void SetOwningProjectId(const char* value) { m_owningProjectIdHasBeenSet = true; m_owningProjectId.assign(value); } - inline DataProductSummary& WithOwningProjectId(const Aws::String& value) { SetOwningProjectId(value); return *this;} - inline DataProductSummary& WithOwningProjectId(Aws::String&& value) { SetOwningProjectId(std::move(value)); return *this;} - inline DataProductSummary& WithOwningProjectId(const char* value) { SetOwningProjectId(value); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } - inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } - inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } - inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } - inline DataProductSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} - inline DataProductSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} - ///@} - - ///@{ - /** - *

- */ - inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; } - inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; } - inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; } - inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); } - inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); } - inline DataProductSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;} - inline DataProductSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;} - inline DataProductSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;} - ///@} - private: - - Aws::Utils::DateTime m_createdAt; - bool m_createdAtHasBeenSet = false; - - Aws::String m_createdBy; - bool m_createdByHasBeenSet = false; - - Aws::Vector m_dataProductItems; - bool m_dataProductItemsHasBeenSet = false; - - Aws::String m_description; - bool m_descriptionHasBeenSet = false; - - Aws::String m_domainId; - bool m_domainIdHasBeenSet = false; - - Aws::Vector m_glossaryTerms; - bool m_glossaryTermsHasBeenSet = false; - - Aws::String m_id; - bool m_idHasBeenSet = false; - - Aws::String m_name; - bool m_nameHasBeenSet = false; - - Aws::String m_owningProjectId; - bool m_owningProjectIdHasBeenSet = false; - - Aws::Utils::DateTime m_updatedAt; - bool m_updatedAtHasBeenSet = false; - - Aws::String m_updatedBy; - bool m_updatedByHasBeenSet = false; - }; - -} // namespace Model -} // namespace DataZone -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SearchInventoryResultItem.h b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SearchInventoryResultItem.h index 5274501e576..09c26e482e3 100644 --- a/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SearchInventoryResultItem.h +++ b/generated/src/aws-cpp-sdk-datazone/include/aws/datazone/model/SearchInventoryResultItem.h @@ -6,7 +6,6 @@ #pragma once #include #include -#include #include #include #include @@ -52,18 +51,6 @@ namespace Model inline SearchInventoryResultItem& WithAssetItem(AssetItem&& value) { SetAssetItem(std::move(value)); return *this;} ///@} - ///@{ - /** - *

The data product item included in the search results.

- */ - inline const DataProductSummary& GetDataProductItem() const{ return m_dataProductItem; } - inline bool DataProductItemHasBeenSet() const { return m_dataProductItemHasBeenSet; } - inline void SetDataProductItem(const DataProductSummary& value) { m_dataProductItemHasBeenSet = true; m_dataProductItem = value; } - inline void SetDataProductItem(DataProductSummary&& value) { m_dataProductItemHasBeenSet = true; m_dataProductItem = std::move(value); } - inline SearchInventoryResultItem& WithDataProductItem(const DataProductSummary& value) { SetDataProductItem(value); return *this;} - inline SearchInventoryResultItem& WithDataProductItem(DataProductSummary&& value) { SetDataProductItem(std::move(value)); return *this;} - ///@} - ///@{ /** *

The glossary item included in the search results.

@@ -92,9 +79,6 @@ namespace Model AssetItem m_assetItem; bool m_assetItemHasBeenSet = false; - DataProductSummary m_dataProductItem; - bool m_dataProductItemHasBeenSet = false; - GlossaryItem m_glossaryItem; bool m_glossaryItemHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/DataProductSummary.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/DataProductSummary.cpp deleted file mode 100644 index bf45cf254ee..00000000000 --- a/generated/src/aws-cpp-sdk-datazone/source/model/DataProductSummary.cpp +++ /dev/null @@ -1,213 +0,0 @@ -/** - * 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 DataZone -{ -namespace Model -{ - -DataProductSummary::DataProductSummary() : - m_createdAtHasBeenSet(false), - m_createdByHasBeenSet(false), - m_dataProductItemsHasBeenSet(false), - m_descriptionHasBeenSet(false), - m_domainIdHasBeenSet(false), - m_glossaryTermsHasBeenSet(false), - m_idHasBeenSet(false), - m_nameHasBeenSet(false), - m_owningProjectIdHasBeenSet(false), - m_updatedAtHasBeenSet(false), - m_updatedByHasBeenSet(false) -{ -} - -DataProductSummary::DataProductSummary(JsonView jsonValue) - : DataProductSummary() -{ - *this = jsonValue; -} - -DataProductSummary& DataProductSummary::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("createdAt")) - { - m_createdAt = jsonValue.GetDouble("createdAt"); - - m_createdAtHasBeenSet = true; - } - - if(jsonValue.ValueExists("createdBy")) - { - m_createdBy = jsonValue.GetString("createdBy"); - - m_createdByHasBeenSet = true; - } - - if(jsonValue.ValueExists("dataProductItems")) - { - Aws::Utils::Array dataProductItemsJsonList = jsonValue.GetArray("dataProductItems"); - for(unsigned dataProductItemsIndex = 0; dataProductItemsIndex < dataProductItemsJsonList.GetLength(); ++dataProductItemsIndex) - { - m_dataProductItems.push_back(dataProductItemsJsonList[dataProductItemsIndex].AsObject()); - } - m_dataProductItemsHasBeenSet = true; - } - - if(jsonValue.ValueExists("description")) - { - m_description = jsonValue.GetString("description"); - - m_descriptionHasBeenSet = true; - } - - if(jsonValue.ValueExists("domainId")) - { - m_domainId = jsonValue.GetString("domainId"); - - m_domainIdHasBeenSet = true; - } - - if(jsonValue.ValueExists("glossaryTerms")) - { - Aws::Utils::Array glossaryTermsJsonList = jsonValue.GetArray("glossaryTerms"); - for(unsigned glossaryTermsIndex = 0; glossaryTermsIndex < glossaryTermsJsonList.GetLength(); ++glossaryTermsIndex) - { - m_glossaryTerms.push_back(glossaryTermsJsonList[glossaryTermsIndex].AsString()); - } - m_glossaryTermsHasBeenSet = true; - } - - if(jsonValue.ValueExists("id")) - { - m_id = jsonValue.GetString("id"); - - m_idHasBeenSet = true; - } - - if(jsonValue.ValueExists("name")) - { - m_name = jsonValue.GetString("name"); - - m_nameHasBeenSet = true; - } - - if(jsonValue.ValueExists("owningProjectId")) - { - m_owningProjectId = jsonValue.GetString("owningProjectId"); - - m_owningProjectIdHasBeenSet = true; - } - - if(jsonValue.ValueExists("updatedAt")) - { - m_updatedAt = jsonValue.GetDouble("updatedAt"); - - m_updatedAtHasBeenSet = true; - } - - if(jsonValue.ValueExists("updatedBy")) - { - m_updatedBy = jsonValue.GetString("updatedBy"); - - m_updatedByHasBeenSet = true; - } - - return *this; -} - -JsonValue DataProductSummary::Jsonize() const -{ - JsonValue payload; - - if(m_createdAtHasBeenSet) - { - payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); - } - - if(m_createdByHasBeenSet) - { - payload.WithString("createdBy", m_createdBy); - - } - - if(m_dataProductItemsHasBeenSet) - { - Aws::Utils::Array dataProductItemsJsonList(m_dataProductItems.size()); - for(unsigned dataProductItemsIndex = 0; dataProductItemsIndex < dataProductItemsJsonList.GetLength(); ++dataProductItemsIndex) - { - dataProductItemsJsonList[dataProductItemsIndex].AsObject(m_dataProductItems[dataProductItemsIndex].Jsonize()); - } - payload.WithArray("dataProductItems", std::move(dataProductItemsJsonList)); - - } - - if(m_descriptionHasBeenSet) - { - payload.WithString("description", m_description); - - } - - if(m_domainIdHasBeenSet) - { - payload.WithString("domainId", m_domainId); - - } - - if(m_glossaryTermsHasBeenSet) - { - Aws::Utils::Array glossaryTermsJsonList(m_glossaryTerms.size()); - for(unsigned glossaryTermsIndex = 0; glossaryTermsIndex < glossaryTermsJsonList.GetLength(); ++glossaryTermsIndex) - { - glossaryTermsJsonList[glossaryTermsIndex].AsString(m_glossaryTerms[glossaryTermsIndex]); - } - payload.WithArray("glossaryTerms", std::move(glossaryTermsJsonList)); - - } - - if(m_idHasBeenSet) - { - payload.WithString("id", m_id); - - } - - if(m_nameHasBeenSet) - { - payload.WithString("name", m_name); - - } - - if(m_owningProjectIdHasBeenSet) - { - payload.WithString("owningProjectId", m_owningProjectId); - - } - - if(m_updatedAtHasBeenSet) - { - payload.WithDouble("updatedAt", m_updatedAt.SecondsWithMSPrecision()); - } - - if(m_updatedByHasBeenSet) - { - payload.WithString("updatedBy", m_updatedBy); - - } - - return payload; -} - -} // namespace Model -} // namespace DataZone -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-datazone/source/model/SearchInventoryResultItem.cpp b/generated/src/aws-cpp-sdk-datazone/source/model/SearchInventoryResultItem.cpp index 769f884e6de..be50acdca1d 100644 --- a/generated/src/aws-cpp-sdk-datazone/source/model/SearchInventoryResultItem.cpp +++ b/generated/src/aws-cpp-sdk-datazone/source/model/SearchInventoryResultItem.cpp @@ -20,7 +20,6 @@ namespace Model SearchInventoryResultItem::SearchInventoryResultItem() : m_assetItemHasBeenSet(false), - m_dataProductItemHasBeenSet(false), m_glossaryItemHasBeenSet(false), m_glossaryTermItemHasBeenSet(false) { @@ -41,13 +40,6 @@ SearchInventoryResultItem& SearchInventoryResultItem::operator =(JsonView jsonVa m_assetItemHasBeenSet = true; } - if(jsonValue.ValueExists("dataProductItem")) - { - m_dataProductItem = jsonValue.GetObject("dataProductItem"); - - m_dataProductItemHasBeenSet = true; - } - if(jsonValue.ValueExists("glossaryItem")) { m_glossaryItem = jsonValue.GetObject("glossaryItem"); @@ -75,12 +67,6 @@ JsonValue SearchInventoryResultItem::Jsonize() const } - if(m_dataProductItemHasBeenSet) - { - payload.WithObject("dataProductItem", m_dataProductItem.Jsonize()); - - } - if(m_glossaryItemHasBeenSet) { payload.WithObject("glossaryItem", m_glossaryItem.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeAction.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeAction.h index 0a88359720d..58d086539b0 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeAction.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeAction.h @@ -58,9 +58,9 @@ namespace Model ///@{ /** - *

The percentage-complete status of a STORAGE_OPTIMIZATION - * administrative action. Does not apply to any other administrative action - * type.

+ *

The percentage-complete status of a STORAGE_OPTIMIZATION or + * DOWNLOAD_DATA_FROM_BACKUP administrative action. Does not apply to + * any other administrative action type.

*/ inline int GetProgressPercent() const{ return m_progressPercent; } inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; } @@ -88,10 +88,20 @@ namespace Model * processing the administrative action.

  • PENDING - * Amazon FSx is waiting to process the administrative action.

  • * COMPLETED - Amazon FSx has finished processing the administrative - * task.

  • UPDATED_OPTIMIZING - For a - * storage-capacity increase update, Amazon FSx has updated the file system with - * the new storage capacity, and is now performing the storage-optimization - * process.

  • + * task.

    For a backup restore to a second-generation FSx for ONTAP file + * system, indicates that all data has been downloaded to the volume, and clients + * now have read-write access to volume.

  • + * UPDATED_OPTIMIZING - For a storage-capacity increase update, Amazon + * FSx has updated the file system with the new storage capacity, and is now + * performing the storage-optimization process.

  • + * PENDING - For a backup restore to a second-generation FSx for ONTAP + * file system, indicates that the file metadata is being downloaded onto the + * volume. The volume's Lifecycle state is CREATING.

  • + * IN_PROGRESS - For a backup restore to a second-generation FSx for + * ONTAP file system, indicates that all metadata has been downloaded to the new + * volume and client can access data with read-only access while Amazon FSx + * downloads the file data to the volume. Track the progress of this process with + * the ProgressPercent element.

  • */ inline const Status& GetStatus() const{ return m_status; } inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeActionType.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeActionType.h index 5d4c001b20c..d3d4146312f 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeActionType.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AdministrativeActionType.h @@ -29,7 +29,8 @@ namespace Model STORAGE_TYPE_OPTIMIZATION, MISCONFIGURED_STATE_RECOVERY, VOLUME_UPDATE_WITH_SNAPSHOT, - VOLUME_INITIALIZE_WITH_SNAPSHOT + VOLUME_INITIALIZE_WITH_SNAPSHOT, + DOWNLOAD_DATA_FROM_BACKUP }; namespace AdministrativeActionTypeMapper diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AggregateConfiguration.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AggregateConfiguration.h index 51fc346a363..daaf3da43cc 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AggregateConfiguration.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/AggregateConfiguration.h @@ -48,7 +48,7 @@ namespace Model * single entry.

    Amazon FSx responds with an HTTP status code 400 (Bad * Request) for the following conditions:

    • The strings in the value * of Aggregates are not are not formatted as aggrX, - * where X is a number between 1 and 6.

    • The value of + * where X is a number between 1 and 12.

    • The value of * Aggregates contains aggregates that are not present.

    • *

      One or more of the aggregates supplied are too close to the volume limit to * support adding more volumes.

    diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOntapConfiguration.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOntapConfiguration.h index 38be77580b8..a6c9791dd0e 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOntapConfiguration.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOntapConfiguration.h @@ -64,14 +64,18 @@ namespace Model ///@{ /** *

    Specifies the FSx for ONTAP file system deployment type to use in creating - * the file system.

    For information + * about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing * a file system deployment type.

    */ @@ -134,9 +138,9 @@ namespace Model ///@{ /** - *

    Required when DeploymentType is set to MULTI_AZ_1. - * This specifies the subnet in which you want the preferred file server to be - * located.

    + *

    Required when DeploymentType is set to MULTI_AZ_1 + * or MULTI_AZ_2. This specifies the subnet in which you want the + * preferred file server to be located.

    */ inline const Aws::String& GetPreferredSubnetId() const{ return m_preferredSubnetId; } inline bool PreferredSubnetIdHasBeenSet() const { return m_preferredSubnetIdHasBeenSet; } @@ -205,18 +209,23 @@ namespace Model ///@{ /** *

    Specifies how many high-availability (HA) pairs of file servers will power - * your file system. Scale-up file systems are powered by 1 HA pair. The default - * value is 1. FSx for ONTAP scale-out file systems are powered by up to 12 HA - * pairs. The value of this property affects the values of + * your file system. First-generation file systems are powered by 1 HA pair. + * Second-generation multi-AZ file systems are powered by 1 HA pair. Second + * generation single-AZ file systems are powered by up to 12 HA pairs. The default + * value is 1. The value of this property affects the values of * StorageCapacity, Iops, and * ThroughputCapacity. For more information, see High-availability - * (HA) pairs in the FSx for ONTAP user guide.

    Amazon FSx responds with - * an HTTP status code 400 (Bad Request) for the following conditions:

      - *
    • The value of HAPairs is less than 1 or greater than 12.

      - *
    • The value of HAPairs is greater than 1 and the value - * of DeploymentType is SINGLE_AZ_1 or - * MULTI_AZ_1.

    + * (HA) pairs in the FSx for ONTAP user guide. Block storage protocol support + * (iSCSI and NVMe over TCP) is disabled on file systems with more than 6 HA pairs. + * For more information, see Using + * block storage protocols.

    Amazon FSx responds with an HTTP status + * code 400 (Bad Request) for the following conditions:

    • The value + * of HAPairs is less than 1 or greater than 12.

    • The + * value of HAPairs is greater than 1 and the value of + * DeploymentType is SINGLE_AZ_1, + * MULTI_AZ_1, or MULTI_AZ_2.

    */ inline int GetHAPairs() const{ return m_hAPairs; } inline bool HAPairsHasBeenSet() const { return m_hAPairsHasBeenSet; } @@ -230,19 +239,20 @@ namespace Model * throughput for the file system.

    You can define either the * ThroughputCapacityPerHAPair or the ThroughputCapacity * when creating a file system, but not both.

    This field and - * ThroughputCapacity are the same for scale-up file systems powered - * by one HA pair.

    • For SINGLE_AZ_1 and - * MULTI_AZ_1 file systems, valid values are 128, 256, 512, 1024, - * 2048, or 4096 MBps.

    • For SINGLE_AZ_2 file systems, - * valid values are 3072 or 6144 MBps.

    Amazon FSx responds with - * an HTTP status code 400 (Bad Request) for the following conditions:

      - *
    • The value of ThroughputCapacity and + * ThroughputCapacity are the same for file systems powered by one HA + * pair.

      • For SINGLE_AZ_1 and MULTI_AZ_1 + * file systems, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

        + *
      • For SINGLE_AZ_2, valid values are 1536, 3072, or 6144 + * MBps.

      • For MULTI_AZ_2, valid values are 384, 768, + * 1536, 3072, or 6144 MBps.

      Amazon FSx responds with an HTTP + * status code 400 (Bad Request) for the following conditions:

      • The + * value of ThroughputCapacity and * ThroughputCapacityPerHAPair are not the same value for file systems * with one HA pair.

      • The value of deployment type is * SINGLE_AZ_2 and ThroughputCapacity / - * ThroughputCapacityPerHAPair is a valid HA pair (a value between 2 - * and 12).

      • The value of ThroughputCapacityPerHAPair - * is not a valid value.

      + * ThroughputCapacityPerHAPair is not a valid HA pair (a value between + * 1 and 12).

    • The value of + * ThroughputCapacityPerHAPair is not a valid value.

    */ inline int GetThroughputCapacityPerHAPair() const{ return m_throughputCapacityPerHAPair; } inline bool ThroughputCapacityPerHAPairHasBeenSet() const { return m_throughputCapacityPerHAPairHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOpenZFSConfiguration.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOpenZFSConfiguration.h index 9ee2f032e58..9c09f78a545 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOpenZFSConfiguration.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/CreateFileSystemOpenZFSConfiguration.h @@ -97,25 +97,26 @@ namespace Model ///@{ /** - *

    Specifies the file system deployment type. Single AZ deployment types are - * configured for redundancy within a single Availability Zone in an Amazon Web - * Services Region . Valid values are the following:

    • - * MULTI_AZ_1- Creates file systems with high availability that are - * configured for Multi-AZ redundancy to tolerate temporary unavailability in - * Availability Zones (AZs). Multi_AZ_1 is available only in the US - * East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Singapore), - * Asia Pacific (Tokyo), and Europe (Ireland) Amazon Web Services Regions.

      - *
    • SINGLE_AZ_1- Creates file systems with throughput - * capacities of 64 - 4,096 MB/s. Single_AZ_1 is available in all - * Amazon Web Services Regions where Amazon FSx for OpenZFS is available.

    • - *
    • SINGLE_AZ_2- Creates file systems with throughput - * capacities of 160 - 10,240 MB/s using an NVMe L2ARC cache. - * Single_AZ_2 is available only in the US East (N. Virginia), US East - * (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and - * Europe (Ireland) Amazon Web Services Regions.

    For more - * information, see Specifies the file system deployment type. Valid values are the + * following:

    • MULTI_AZ_1- Creates file systems with + * high availability and durability by replicating your data and supporting + * failover across multiple Availability Zones in the same Amazon Web Services + * Region.

    • SINGLE_AZ_HA_2- Creates file systems + * with high availability and throughput capacities of 160 - 10,240 MB/s using an + * NVMe L2ARC cache by deploying a primary and standby file system within the same + * Availability Zone.

    • SINGLE_AZ_HA_1- Creates file + * systems with high availability and throughput capacities of 64 - 4,096 MB/s by + * deploying a primary and standby file system within the same Availability + * Zone.

    • SINGLE_AZ_2- Creates file systems with + * throughput capacities of 160 - 10,240 MB/s using an NVMe L2ARC cache that + * automatically recover within a single Availability Zone.

    • + * SINGLE_AZ_1- Creates file systems with throughput capacities of 64 + * - 4,096 MBs that automatically recover within a single Availability Zone.

      + *

    For a list of which Amazon Web Services Regions each deployment + * type is available in, see Deployment - * type availability and . For more information on the differences in performance + * between deployment types, see File * system performance in the Amazon FSx for OpenZFS User Guide.

    */ diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/FileCacheCreating.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/FileCacheCreating.h index 127c32ef1a1..84259a604e5 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/FileCacheCreating.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/FileCacheCreating.h @@ -129,7 +129,8 @@ namespace Model ///@{ /** - *

    A structure providing details of any failures that occurred.

    + *

    A structure providing details of any failures that occurred in creating a + * cache.

    */ inline const FileCacheFailureDetails& GetFailureDetails() const{ return m_failureDetails; } inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapDeploymentType.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapDeploymentType.h index 7a933255a49..44ceb138c82 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapDeploymentType.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapDeploymentType.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, MULTI_AZ_1, SINGLE_AZ_1, - SINGLE_AZ_2 + SINGLE_AZ_2, + MULTI_AZ_2 }; namespace OntapDeploymentTypeMapper diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapFileSystemConfiguration.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapFileSystemConfiguration.h index a9b634ac884..b241b822bc2 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapFileSystemConfiguration.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OntapFileSystemConfiguration.h @@ -65,14 +65,18 @@ namespace Model ///@{ /** *

    Specifies the FSx for ONTAP file system deployment type in use in the file - * system.

    • MULTI_AZ_1 - (Default) A high - * availability file system configured for Multi-AZ redundancy to tolerate - * temporary Availability Zone (AZ) unavailability.

    • - * SINGLE_AZ_1 - A file system configured for Single-AZ - * redundancy.

    • SINGLE_AZ_2 - A file system - * configured with multiple high-availability (HA) pairs for Single-AZ - * redundancy.

    For information about the use cases for Multi-AZ - * and Single-AZ deployments, refer to

    For information + * about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing * Multi-AZ or Single-AZ file system deployment.

    */ @@ -205,8 +209,8 @@ namespace Model * an HTTP status code 400 (Bad Request) for the following conditions:

      *
    • The value of HAPairs is less than 1 or greater than 12.

      *
    • The value of HAPairs is greater than 1 and the value - * of DeploymentType is SINGLE_AZ_1 or - * MULTI_AZ_1.

    + * of DeploymentType is SINGLE_AZ_1, + * MULTI_AZ_1, or MULTI_AZ_2.

    */ inline int GetHAPairs() const{ return m_hAPairs; } inline bool HAPairsHasBeenSet() const { return m_hAPairsHasBeenSet; } @@ -222,17 +226,18 @@ namespace Model * system.

    This field and ThroughputCapacity cannot be defined * in the same API call, but one is required.

    This field and * ThroughputCapacity are the same for file systems with one HA - * pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1, - * valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For - * SINGLE_AZ_2, valid values are 3072 or 6144 MBps.

    - *

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the - * following conditions:

    • The value of - * ThroughputCapacity and ThroughputCapacityPerHAPair are - * not the same value.

    • The value of deployment type is - * SINGLE_AZ_2 and ThroughputCapacity / - * ThroughputCapacityPerHAPair is a valid HA pair (a value between 2 - * and 12).

    • The value of ThroughputCapacityPerHAPair - * is not a valid value.

    + * pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1 + * file systems, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

      + *
    • For SINGLE_AZ_2, valid values are 1536, 3072, or 6144 + * MBps.

    • For MULTI_AZ_2, valid values are 384, 768, + * 1536, 3072, or 6144 MBps.

    Amazon FSx responds with an HTTP + * status code 400 (Bad Request) for the following conditions:

    • The + * value of ThroughputCapacity and + * ThroughputCapacityPerHAPair are not the same value.

    • + *

      The value of deployment type is SINGLE_AZ_2 and + * ThroughputCapacity / ThroughputCapacityPerHAPair is + * not a valid HA pair (a value between 1 and 12).

    • The value of + * ThroughputCapacityPerHAPair is not a valid value.

    */ inline int GetThroughputCapacityPerHAPair() const{ return m_throughputCapacityPerHAPair; } inline bool ThroughputCapacityPerHAPairHasBeenSet() const { return m_throughputCapacityPerHAPairHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSDeploymentType.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSDeploymentType.h index d75fca9219d..c18b519a3a4 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSDeploymentType.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSDeploymentType.h @@ -18,6 +18,8 @@ namespace Model NOT_SET, SINGLE_AZ_1, SINGLE_AZ_2, + SINGLE_AZ_HA_1, + SINGLE_AZ_HA_2, MULTI_AZ_1 }; diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSFileSystemConfiguration.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSFileSystemConfiguration.h index 39069c06eb5..dedad3f6688 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSFileSystemConfiguration.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/OpenZFSFileSystemConfiguration.h @@ -96,8 +96,9 @@ namespace Model ///@{ /** *

    Specifies the file-system deployment type. Amazon FSx for OpenZFS - * supports
 MULTI_AZ_1, SINGLE_AZ_1, and - * SINGLE_AZ_2.

    + * supports
 MULTI_AZ_1, SINGLE_AZ_HA_2, + * SINGLE_AZ_HA_1, SINGLE_AZ_2, and + * SINGLE_AZ_1.

    */ inline const OpenZFSDeploymentType& GetDeploymentType() const{ return m_deploymentType; } inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; } diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/Status.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/Status.h index 84cc536b00a..297518863f5 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/Status.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/Status.h @@ -20,7 +20,8 @@ namespace Model IN_PROGRESS, PENDING, COMPLETED, - UPDATED_OPTIMIZING + UPDATED_OPTIMIZING, + OPTIMIZING }; namespace StatusMapper diff --git a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/UpdateFileSystemOntapConfiguration.h b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/UpdateFileSystemOntapConfiguration.h index 4a9ca599abe..d777b9b848a 100644 --- a/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/UpdateFileSystemOntapConfiguration.h +++ b/generated/src/aws-cpp-sdk-fsx/include/aws/fsx/model/UpdateFileSystemOntapConfiguration.h @@ -169,15 +169,17 @@ namespace Model * ThroughputCapacity cannot be defined in the same API call, but one * is required.

    This field and ThroughputCapacity are the same * for file systems with one HA pair.

    • For SINGLE_AZ_1 - * and MULTI_AZ_1, valid values are 128, 256, 512, 1024, 2048, or 4096 - * MBps.

    • For SINGLE_AZ_2, valid values are 3072 or - * 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 - * (Bad Request) for the following conditions:

    • The value of - * ThroughputCapacity and ThroughputCapacityPerHAPair are - * not the same value for file systems with one HA pair.

    • The - * value of deployment type is SINGLE_AZ_2 and - * ThroughputCapacity / ThroughputCapacityPerHAPair is a - * valid HA pair (a value between 2 and 12).

    • The value of + * and MULTI_AZ_1 file systems, valid values are 128, 256, 512, 1024, + * 2048, or 4096 MBps.

    • For SINGLE_AZ_2, valid values + * are 1536, 3072, or 6144 MBps.

    • For MULTI_AZ_2, + * valid values are 384, 768, 1536, 3072, or 6144 MBps.

    Amazon + * FSx responds with an HTTP status code 400 (Bad Request) for the following + * conditions:

    • The value of ThroughputCapacity and + * ThroughputCapacityPerHAPair are not the same value for file systems + * with one HA pair.

    • The value of deployment type is + * SINGLE_AZ_2 and ThroughputCapacity / + * ThroughputCapacityPerHAPair is not a valid HA pair (a value between + * 1 and 12).

    • The value of * ThroughputCapacityPerHAPair is not a valid value.

    */ inline int GetThroughputCapacityPerHAPair() const{ return m_throughputCapacityPerHAPair; } @@ -185,6 +187,26 @@ namespace Model inline void SetThroughputCapacityPerHAPair(int value) { m_throughputCapacityPerHAPairHasBeenSet = true; m_throughputCapacityPerHAPair = value; } inline UpdateFileSystemOntapConfiguration& WithThroughputCapacityPerHAPair(int value) { SetThroughputCapacityPerHAPair(value); return *this;} ///@} + + ///@{ + /** + *

    Use to update the number of high-availability (HA) pairs for a + * second-generation single-AZ file system. If you increase the number of HA pairs + * for your file system, you must specify proportional increases for + * StorageCapacity, Iops, and + * ThroughputCapacity. For more information, see High-availability + * (HA) pairs in the FSx for ONTAP user guide. Block storage protocol support + * (iSCSI and NVMe over TCP) is disabled on file systems with more than 6 HA pairs. + * For more information, see Using + * block storage protocols.

    + */ + inline int GetHAPairs() const{ return m_hAPairs; } + inline bool HAPairsHasBeenSet() const { return m_hAPairsHasBeenSet; } + inline void SetHAPairs(int value) { m_hAPairsHasBeenSet = true; m_hAPairs = value; } + inline UpdateFileSystemOntapConfiguration& WithHAPairs(int value) { SetHAPairs(value); return *this;} + ///@} private: int m_automaticBackupRetentionDays; @@ -213,6 +235,9 @@ namespace Model int m_throughputCapacityPerHAPair; bool m_throughputCapacityPerHAPairHasBeenSet = false; + + int m_hAPairs; + bool m_hAPairsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp index 182b4ad0099..e3e8922f19c 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/AdministrativeActionType.cpp @@ -34,6 +34,7 @@ namespace Aws static const int MISCONFIGURED_STATE_RECOVERY_HASH = HashingUtils::HashString("MISCONFIGURED_STATE_RECOVERY"); static const int VOLUME_UPDATE_WITH_SNAPSHOT_HASH = HashingUtils::HashString("VOLUME_UPDATE_WITH_SNAPSHOT"); static const int VOLUME_INITIALIZE_WITH_SNAPSHOT_HASH = HashingUtils::HashString("VOLUME_INITIALIZE_WITH_SNAPSHOT"); + static const int DOWNLOAD_DATA_FROM_BACKUP_HASH = HashingUtils::HashString("DOWNLOAD_DATA_FROM_BACKUP"); AdministrativeActionType GetAdministrativeActionTypeForName(const Aws::String& name) @@ -95,6 +96,10 @@ namespace Aws { return AdministrativeActionType::VOLUME_INITIALIZE_WITH_SNAPSHOT; } + else if (hashCode == DOWNLOAD_DATA_FROM_BACKUP_HASH) + { + return AdministrativeActionType::DOWNLOAD_DATA_FROM_BACKUP; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -139,6 +144,8 @@ namespace Aws return "VOLUME_UPDATE_WITH_SNAPSHOT"; case AdministrativeActionType::VOLUME_INITIALIZE_WITH_SNAPSHOT: return "VOLUME_INITIALIZE_WITH_SNAPSHOT"; + case AdministrativeActionType::DOWNLOAD_DATA_FROM_BACKUP: + return "DOWNLOAD_DATA_FROM_BACKUP"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp index afc24061494..34c891e1403 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OntapDeploymentType.cpp @@ -23,6 +23,7 @@ namespace Aws static const int MULTI_AZ_1_HASH = HashingUtils::HashString("MULTI_AZ_1"); static const int SINGLE_AZ_1_HASH = HashingUtils::HashString("SINGLE_AZ_1"); static const int SINGLE_AZ_2_HASH = HashingUtils::HashString("SINGLE_AZ_2"); + static const int MULTI_AZ_2_HASH = HashingUtils::HashString("MULTI_AZ_2"); OntapDeploymentType GetOntapDeploymentTypeForName(const Aws::String& name) @@ -40,6 +41,10 @@ namespace Aws { return OntapDeploymentType::SINGLE_AZ_2; } + else if (hashCode == MULTI_AZ_2_HASH) + { + return OntapDeploymentType::MULTI_AZ_2; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +67,8 @@ namespace Aws return "SINGLE_AZ_1"; case OntapDeploymentType::SINGLE_AZ_2: return "SINGLE_AZ_2"; + case OntapDeploymentType::MULTI_AZ_2: + return "MULTI_AZ_2"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp index cc4bea6ba0a..785e473ac53 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/OpenZFSDeploymentType.cpp @@ -22,6 +22,8 @@ namespace Aws static const int SINGLE_AZ_1_HASH = HashingUtils::HashString("SINGLE_AZ_1"); static const int SINGLE_AZ_2_HASH = HashingUtils::HashString("SINGLE_AZ_2"); + static const int SINGLE_AZ_HA_1_HASH = HashingUtils::HashString("SINGLE_AZ_HA_1"); + static const int SINGLE_AZ_HA_2_HASH = HashingUtils::HashString("SINGLE_AZ_HA_2"); static const int MULTI_AZ_1_HASH = HashingUtils::HashString("MULTI_AZ_1"); @@ -36,6 +38,14 @@ namespace Aws { return OpenZFSDeploymentType::SINGLE_AZ_2; } + else if (hashCode == SINGLE_AZ_HA_1_HASH) + { + return OpenZFSDeploymentType::SINGLE_AZ_HA_1; + } + else if (hashCode == SINGLE_AZ_HA_2_HASH) + { + return OpenZFSDeploymentType::SINGLE_AZ_HA_2; + } else if (hashCode == MULTI_AZ_1_HASH) { return OpenZFSDeploymentType::MULTI_AZ_1; @@ -60,6 +70,10 @@ namespace Aws return "SINGLE_AZ_1"; case OpenZFSDeploymentType::SINGLE_AZ_2: return "SINGLE_AZ_2"; + case OpenZFSDeploymentType::SINGLE_AZ_HA_1: + return "SINGLE_AZ_HA_1"; + case OpenZFSDeploymentType::SINGLE_AZ_HA_2: + return "SINGLE_AZ_HA_2"; case OpenZFSDeploymentType::MULTI_AZ_1: return "MULTI_AZ_1"; default: diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp index 13c826d785f..11f5b783f73 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/Status.cpp @@ -25,6 +25,7 @@ namespace Aws static const int PENDING_HASH = HashingUtils::HashString("PENDING"); static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); static const int UPDATED_OPTIMIZING_HASH = HashingUtils::HashString("UPDATED_OPTIMIZING"); + static const int OPTIMIZING_HASH = HashingUtils::HashString("OPTIMIZING"); Status GetStatusForName(const Aws::String& name) @@ -50,6 +51,10 @@ namespace Aws { return Status::UPDATED_OPTIMIZING; } + else if (hashCode == OPTIMIZING_HASH) + { + return Status::OPTIMIZING; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -76,6 +81,8 @@ namespace Aws return "COMPLETED"; case Status::UPDATED_OPTIMIZING: return "UPDATED_OPTIMIZING"; + case Status::OPTIMIZING: + return "OPTIMIZING"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-fsx/source/model/UpdateFileSystemOntapConfiguration.cpp b/generated/src/aws-cpp-sdk-fsx/source/model/UpdateFileSystemOntapConfiguration.cpp index 5ea429181e2..9e4ad1fc15e 100644 --- a/generated/src/aws-cpp-sdk-fsx/source/model/UpdateFileSystemOntapConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-fsx/source/model/UpdateFileSystemOntapConfiguration.cpp @@ -30,7 +30,9 @@ UpdateFileSystemOntapConfiguration::UpdateFileSystemOntapConfiguration() : m_addRouteTableIdsHasBeenSet(false), m_removeRouteTableIdsHasBeenSet(false), m_throughputCapacityPerHAPair(0), - m_throughputCapacityPerHAPairHasBeenSet(false) + m_throughputCapacityPerHAPairHasBeenSet(false), + m_hAPairs(0), + m_hAPairsHasBeenSet(false) { } @@ -111,6 +113,13 @@ UpdateFileSystemOntapConfiguration& UpdateFileSystemOntapConfiguration::operator m_throughputCapacityPerHAPairHasBeenSet = true; } + if(jsonValue.ValueExists("HAPairs")) + { + m_hAPairs = jsonValue.GetInteger("HAPairs"); + + m_hAPairsHasBeenSet = true; + } + return *this; } @@ -182,6 +191,12 @@ JsonValue UpdateFileSystemOntapConfiguration::Jsonize() const } + if(m_hAPairsHasBeenSet) + { + payload.WithInteger("HAPairs", m_hAPairs); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsInput.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsInput.h new file mode 100644 index 00000000000..2b52961eb32 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsInput.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 OpenSearchService +{ +namespace Model +{ + + /** + *

    Container for parameters required to enable all machine learning + * features.

    See Also:

    AWS + * API Reference

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

    Container for parameters required for natural language query generation on + * the specified domain.

    + */ + inline const NaturalLanguageQueryGenerationOptionsInput& GetNaturalLanguageQueryGenerationOptions() const{ return m_naturalLanguageQueryGenerationOptions; } + inline bool NaturalLanguageQueryGenerationOptionsHasBeenSet() const { return m_naturalLanguageQueryGenerationOptionsHasBeenSet; } + inline void SetNaturalLanguageQueryGenerationOptions(const NaturalLanguageQueryGenerationOptionsInput& value) { m_naturalLanguageQueryGenerationOptionsHasBeenSet = true; m_naturalLanguageQueryGenerationOptions = value; } + inline void SetNaturalLanguageQueryGenerationOptions(NaturalLanguageQueryGenerationOptionsInput&& value) { m_naturalLanguageQueryGenerationOptionsHasBeenSet = true; m_naturalLanguageQueryGenerationOptions = std::move(value); } + inline AIMLOptionsInput& WithNaturalLanguageQueryGenerationOptions(const NaturalLanguageQueryGenerationOptionsInput& value) { SetNaturalLanguageQueryGenerationOptions(value); return *this;} + inline AIMLOptionsInput& WithNaturalLanguageQueryGenerationOptions(NaturalLanguageQueryGenerationOptionsInput&& value) { SetNaturalLanguageQueryGenerationOptions(std::move(value)); return *this;} + ///@} + private: + + NaturalLanguageQueryGenerationOptionsInput m_naturalLanguageQueryGenerationOptions; + bool m_naturalLanguageQueryGenerationOptionsHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsOutput.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsOutput.h new file mode 100644 index 00000000000..cc0c236268a --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsOutput.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 OpenSearchService +{ +namespace Model +{ + + /** + *

    Container for parameters representing the state of machine learning features + * on the specified domain.

    See Also:

    AWS + * API Reference

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

    Container for parameters required for natural language query generation on + * the specified domain.

    + */ + inline const NaturalLanguageQueryGenerationOptionsOutput& GetNaturalLanguageQueryGenerationOptions() const{ return m_naturalLanguageQueryGenerationOptions; } + inline bool NaturalLanguageQueryGenerationOptionsHasBeenSet() const { return m_naturalLanguageQueryGenerationOptionsHasBeenSet; } + inline void SetNaturalLanguageQueryGenerationOptions(const NaturalLanguageQueryGenerationOptionsOutput& value) { m_naturalLanguageQueryGenerationOptionsHasBeenSet = true; m_naturalLanguageQueryGenerationOptions = value; } + inline void SetNaturalLanguageQueryGenerationOptions(NaturalLanguageQueryGenerationOptionsOutput&& value) { m_naturalLanguageQueryGenerationOptionsHasBeenSet = true; m_naturalLanguageQueryGenerationOptions = std::move(value); } + inline AIMLOptionsOutput& WithNaturalLanguageQueryGenerationOptions(const NaturalLanguageQueryGenerationOptionsOutput& value) { SetNaturalLanguageQueryGenerationOptions(value); return *this;} + inline AIMLOptionsOutput& WithNaturalLanguageQueryGenerationOptions(NaturalLanguageQueryGenerationOptionsOutput&& value) { SetNaturalLanguageQueryGenerationOptions(std::move(value)); return *this;} + ///@} + private: + + NaturalLanguageQueryGenerationOptionsOutput m_naturalLanguageQueryGenerationOptions; + bool m_naturalLanguageQueryGenerationOptionsHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsStatus.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsStatus.h new file mode 100644 index 00000000000..3aef3cc875c --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/AIMLOptionsStatus.h @@ -0,0 +1,74 @@ +/** + * 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 OpenSearchService +{ +namespace Model +{ + + /** + *

    The status of machine learning options on the specified domain.

    See + * Also:

    AWS + * API Reference

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

    Machine learning options on the specified domain.

    + */ + inline const AIMLOptionsOutput& GetOptions() const{ return m_options; } + inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } + inline void SetOptions(const AIMLOptionsOutput& value) { m_optionsHasBeenSet = true; m_options = value; } + inline void SetOptions(AIMLOptionsOutput&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } + inline AIMLOptionsStatus& WithOptions(const AIMLOptionsOutput& value) { SetOptions(value); return *this;} + inline AIMLOptionsStatus& WithOptions(AIMLOptionsOutput&& value) { SetOptions(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const OptionStatus& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline AIMLOptionsStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;} + inline AIMLOptionsStatus& WithStatus(OptionStatus&& value) { SetStatus(std::move(value)); return *this;} + ///@} + private: + + AIMLOptionsOutput m_options; + bool m_optionsHasBeenSet = false; + + OptionStatus m_status; + bool m_statusHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreateDomainRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreateDomainRequest.h index c8a0a813b10..3a66a82a27f 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreateDomainRequest.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/CreateDomainRequest.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -340,6 +341,18 @@ namespace Model inline CreateDomainRequest& WithSoftwareUpdateOptions(const SoftwareUpdateOptions& value) { SetSoftwareUpdateOptions(value); return *this;} inline CreateDomainRequest& WithSoftwareUpdateOptions(SoftwareUpdateOptions&& value) { SetSoftwareUpdateOptions(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    Options for all machine learning features for the specified domain.

    + */ + inline const AIMLOptionsInput& GetAIMLOptions() const{ return m_aIMLOptions; } + inline bool AIMLOptionsHasBeenSet() const { return m_aIMLOptionsHasBeenSet; } + inline void SetAIMLOptions(const AIMLOptionsInput& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = value; } + inline void SetAIMLOptions(AIMLOptionsInput&& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = std::move(value); } + inline CreateDomainRequest& WithAIMLOptions(const AIMLOptionsInput& value) { SetAIMLOptions(value); return *this;} + inline CreateDomainRequest& WithAIMLOptions(AIMLOptionsInput&& value) { SetAIMLOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_domainName; @@ -398,6 +411,9 @@ namespace Model SoftwareUpdateOptions m_softwareUpdateOptions; bool m_softwareUpdateOptionsHasBeenSet = false; + + AIMLOptionsInput m_aIMLOptions; + bool m_aIMLOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainConfig.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainConfig.h index 3a2f0244aa3..49412d5a09b 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainConfig.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainConfig.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -297,6 +298,19 @@ namespace Model inline DomainConfig& AddModifyingProperties(const ModifyingProperties& value) { m_modifyingPropertiesHasBeenSet = true; m_modifyingProperties.push_back(value); return *this; } inline DomainConfig& AddModifyingProperties(ModifyingProperties&& value) { m_modifyingPropertiesHasBeenSet = true; m_modifyingProperties.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

    Container for parameters required to enable all machine learning + * features.

    + */ + inline const AIMLOptionsStatus& GetAIMLOptions() const{ return m_aIMLOptions; } + inline bool AIMLOptionsHasBeenSet() const { return m_aIMLOptionsHasBeenSet; } + inline void SetAIMLOptions(const AIMLOptionsStatus& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = value; } + inline void SetAIMLOptions(AIMLOptionsStatus&& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = std::move(value); } + inline DomainConfig& WithAIMLOptions(const AIMLOptionsStatus& value) { SetAIMLOptions(value); return *this;} + inline DomainConfig& WithAIMLOptions(AIMLOptionsStatus&& value) { SetAIMLOptions(std::move(value)); return *this;} + ///@} private: VersionStatus m_engineVersion; @@ -355,6 +369,9 @@ namespace Model Aws::Vector m_modifyingProperties; bool m_modifyingPropertiesHasBeenSet = false; + + AIMLOptionsStatus m_aIMLOptions; + bool m_aIMLOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainStatus.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainStatus.h index bc4029ceb36..41cc2d929dc 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainStatus.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/DomainStatus.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -496,6 +497,19 @@ namespace Model inline DomainStatus& AddModifyingProperties(const ModifyingProperties& value) { m_modifyingPropertiesHasBeenSet = true; m_modifyingProperties.push_back(value); return *this; } inline DomainStatus& AddModifyingProperties(ModifyingProperties&& value) { m_modifyingPropertiesHasBeenSet = true; m_modifyingProperties.push_back(std::move(value)); return *this; } ///@} + + ///@{ + /** + *

    Container for parameters required to enable all machine learning + * features.

    + */ + inline const AIMLOptionsOutput& GetAIMLOptions() const{ return m_aIMLOptions; } + inline bool AIMLOptionsHasBeenSet() const { return m_aIMLOptionsHasBeenSet; } + inline void SetAIMLOptions(const AIMLOptionsOutput& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = value; } + inline void SetAIMLOptions(AIMLOptionsOutput&& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = std::move(value); } + inline DomainStatus& WithAIMLOptions(const AIMLOptionsOutput& value) { SetAIMLOptions(value); return *this;} + inline DomainStatus& WithAIMLOptions(AIMLOptionsOutput&& value) { SetAIMLOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_domainId; @@ -593,6 +607,9 @@ namespace Model Aws::Vector m_modifyingProperties; bool m_modifyingPropertiesHasBeenSet = false; + + AIMLOptionsOutput m_aIMLOptions; + bool m_aIMLOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationCurrentState.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationCurrentState.h new file mode 100644 index 00000000000..cbf85f9b6f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationCurrentState.h @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace OpenSearchService +{ +namespace Model +{ + enum class NaturalLanguageQueryGenerationCurrentState + { + NOT_SET, + NOT_ENABLED, + ENABLE_COMPLETE, + ENABLE_IN_PROGRESS, + ENABLE_FAILED, + DISABLE_COMPLETE, + DISABLE_IN_PROGRESS, + DISABLE_FAILED + }; + +namespace NaturalLanguageQueryGenerationCurrentStateMapper +{ +AWS_OPENSEARCHSERVICE_API NaturalLanguageQueryGenerationCurrentState GetNaturalLanguageQueryGenerationCurrentStateForName(const Aws::String& name); + +AWS_OPENSEARCHSERVICE_API Aws::String GetNameForNaturalLanguageQueryGenerationCurrentState(NaturalLanguageQueryGenerationCurrentState value); +} // namespace NaturalLanguageQueryGenerationCurrentStateMapper +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationDesiredState.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationDesiredState.h new file mode 100644 index 00000000000..06da790ef36 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationDesiredState.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 OpenSearchService +{ +namespace Model +{ + enum class NaturalLanguageQueryGenerationDesiredState + { + NOT_SET, + ENABLED, + DISABLED + }; + +namespace NaturalLanguageQueryGenerationDesiredStateMapper +{ +AWS_OPENSEARCHSERVICE_API NaturalLanguageQueryGenerationDesiredState GetNaturalLanguageQueryGenerationDesiredStateForName(const Aws::String& name); + +AWS_OPENSEARCHSERVICE_API Aws::String GetNameForNaturalLanguageQueryGenerationDesiredState(NaturalLanguageQueryGenerationDesiredState value); +} // namespace NaturalLanguageQueryGenerationDesiredStateMapper +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationOptionsInput.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationOptionsInput.h new file mode 100644 index 00000000000..30346740dcd --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationOptionsInput.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 OpenSearchService +{ +namespace Model +{ + + /** + *

    Container for parameters required to enable the natural language query + * generation feature.

    See Also:

    AWS + * API Reference

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

    The desired state of the natural language query generation feature. Valid + * values are ENABLED and DISABLED.

    + */ + inline const NaturalLanguageQueryGenerationDesiredState& GetDesiredState() const{ return m_desiredState; } + inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; } + inline void SetDesiredState(const NaturalLanguageQueryGenerationDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; } + inline void SetDesiredState(NaturalLanguageQueryGenerationDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); } + inline NaturalLanguageQueryGenerationOptionsInput& WithDesiredState(const NaturalLanguageQueryGenerationDesiredState& value) { SetDesiredState(value); return *this;} + inline NaturalLanguageQueryGenerationOptionsInput& WithDesiredState(NaturalLanguageQueryGenerationDesiredState&& value) { SetDesiredState(std::move(value)); return *this;} + ///@} + private: + + NaturalLanguageQueryGenerationDesiredState m_desiredState; + bool m_desiredStateHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationOptionsOutput.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationOptionsOutput.h new file mode 100644 index 00000000000..85157907bbb --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/NaturalLanguageQueryGenerationOptionsOutput.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 OpenSearchService +{ +namespace Model +{ + + /** + *

    Container for parameters representing the state of the natural language query + * generation feature on the specified domain.

    See Also:

    AWS + * API Reference

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

    The desired state of the natural language query generation feature. Valid + * values are ENABLED and DISABLED.

    + */ + inline const NaturalLanguageQueryGenerationDesiredState& GetDesiredState() const{ return m_desiredState; } + inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; } + inline void SetDesiredState(const NaturalLanguageQueryGenerationDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; } + inline void SetDesiredState(NaturalLanguageQueryGenerationDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); } + inline NaturalLanguageQueryGenerationOptionsOutput& WithDesiredState(const NaturalLanguageQueryGenerationDesiredState& value) { SetDesiredState(value); return *this;} + inline NaturalLanguageQueryGenerationOptionsOutput& WithDesiredState(NaturalLanguageQueryGenerationDesiredState&& value) { SetDesiredState(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The current state of the natural language query generation feature, + * indicating completion, in progress, or failure.

    + */ + inline const NaturalLanguageQueryGenerationCurrentState& GetCurrentState() const{ return m_currentState; } + inline bool CurrentStateHasBeenSet() const { return m_currentStateHasBeenSet; } + inline void SetCurrentState(const NaturalLanguageQueryGenerationCurrentState& value) { m_currentStateHasBeenSet = true; m_currentState = value; } + inline void SetCurrentState(NaturalLanguageQueryGenerationCurrentState&& value) { m_currentStateHasBeenSet = true; m_currentState = std::move(value); } + inline NaturalLanguageQueryGenerationOptionsOutput& WithCurrentState(const NaturalLanguageQueryGenerationCurrentState& value) { SetCurrentState(value); return *this;} + inline NaturalLanguageQueryGenerationOptionsOutput& WithCurrentState(NaturalLanguageQueryGenerationCurrentState&& value) { SetCurrentState(std::move(value)); return *this;} + ///@} + private: + + NaturalLanguageQueryGenerationDesiredState m_desiredState; + bool m_desiredStateHasBeenSet = false; + + NaturalLanguageQueryGenerationCurrentState m_currentState; + bool m_currentStateHasBeenSet = false; + }; + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdateDomainConfigRequest.h b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdateDomainConfigRequest.h index 193d78c0e1d..eaf0def674c 100644 --- a/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdateDomainConfigRequest.h +++ b/generated/src/aws-cpp-sdk-opensearch/include/aws/opensearch/model/UpdateDomainConfigRequest.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -328,6 +329,18 @@ namespace Model inline UpdateDomainConfigRequest& WithSoftwareUpdateOptions(const SoftwareUpdateOptions& value) { SetSoftwareUpdateOptions(value); return *this;} inline UpdateDomainConfigRequest& WithSoftwareUpdateOptions(SoftwareUpdateOptions&& value) { SetSoftwareUpdateOptions(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    Options for all machine learning features for the specified domain.

    + */ + inline const AIMLOptionsInput& GetAIMLOptions() const{ return m_aIMLOptions; } + inline bool AIMLOptionsHasBeenSet() const { return m_aIMLOptionsHasBeenSet; } + inline void SetAIMLOptions(const AIMLOptionsInput& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = value; } + inline void SetAIMLOptions(AIMLOptionsInput&& value) { m_aIMLOptionsHasBeenSet = true; m_aIMLOptions = std::move(value); } + inline UpdateDomainConfigRequest& WithAIMLOptions(const AIMLOptionsInput& value) { SetAIMLOptions(value); return *this;} + inline UpdateDomainConfigRequest& WithAIMLOptions(AIMLOptionsInput&& value) { SetAIMLOptions(std::move(value)); return *this;} + ///@} private: Aws::String m_domainName; @@ -386,6 +399,9 @@ namespace Model SoftwareUpdateOptions m_softwareUpdateOptions; bool m_softwareUpdateOptionsHasBeenSet = false; + + AIMLOptionsInput m_aIMLOptions; + bool m_aIMLOptionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsInput.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsInput.cpp new file mode 100644 index 00000000000..2aead05e1d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsInput.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 OpenSearchService +{ +namespace Model +{ + +AIMLOptionsInput::AIMLOptionsInput() : + m_naturalLanguageQueryGenerationOptionsHasBeenSet(false) +{ +} + +AIMLOptionsInput::AIMLOptionsInput(JsonView jsonValue) + : AIMLOptionsInput() +{ + *this = jsonValue; +} + +AIMLOptionsInput& AIMLOptionsInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("NaturalLanguageQueryGenerationOptions")) + { + m_naturalLanguageQueryGenerationOptions = jsonValue.GetObject("NaturalLanguageQueryGenerationOptions"); + + m_naturalLanguageQueryGenerationOptionsHasBeenSet = true; + } + + return *this; +} + +JsonValue AIMLOptionsInput::Jsonize() const +{ + JsonValue payload; + + if(m_naturalLanguageQueryGenerationOptionsHasBeenSet) + { + payload.WithObject("NaturalLanguageQueryGenerationOptions", m_naturalLanguageQueryGenerationOptions.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsOutput.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsOutput.cpp new file mode 100644 index 00000000000..4e7d01cee24 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsOutput.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 OpenSearchService +{ +namespace Model +{ + +AIMLOptionsOutput::AIMLOptionsOutput() : + m_naturalLanguageQueryGenerationOptionsHasBeenSet(false) +{ +} + +AIMLOptionsOutput::AIMLOptionsOutput(JsonView jsonValue) + : AIMLOptionsOutput() +{ + *this = jsonValue; +} + +AIMLOptionsOutput& AIMLOptionsOutput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("NaturalLanguageQueryGenerationOptions")) + { + m_naturalLanguageQueryGenerationOptions = jsonValue.GetObject("NaturalLanguageQueryGenerationOptions"); + + m_naturalLanguageQueryGenerationOptionsHasBeenSet = true; + } + + return *this; +} + +JsonValue AIMLOptionsOutput::Jsonize() const +{ + JsonValue payload; + + if(m_naturalLanguageQueryGenerationOptionsHasBeenSet) + { + payload.WithObject("NaturalLanguageQueryGenerationOptions", m_naturalLanguageQueryGenerationOptions.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsStatus.cpp new file mode 100644 index 00000000000..94284293c52 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/AIMLOptionsStatus.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 OpenSearchService +{ +namespace Model +{ + +AIMLOptionsStatus::AIMLOptionsStatus() : + m_optionsHasBeenSet(false), + m_statusHasBeenSet(false) +{ +} + +AIMLOptionsStatus::AIMLOptionsStatus(JsonView jsonValue) + : AIMLOptionsStatus() +{ + *this = jsonValue; +} + +AIMLOptionsStatus& AIMLOptionsStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Options")) + { + m_options = jsonValue.GetObject("Options"); + + m_optionsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = jsonValue.GetObject("Status"); + + m_statusHasBeenSet = true; + } + + return *this; +} + +JsonValue AIMLOptionsStatus::Jsonize() const +{ + JsonValue payload; + + if(m_optionsHasBeenSet) + { + payload.WithObject("Options", m_options.Jsonize()); + + } + + if(m_statusHasBeenSet) + { + payload.WithObject("Status", m_status.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/CreateDomainRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/CreateDomainRequest.cpp index 4a0be1b7d7b..f584f364a06 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/CreateDomainRequest.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/CreateDomainRequest.cpp @@ -32,7 +32,8 @@ CreateDomainRequest::CreateDomainRequest() : m_tagListHasBeenSet(false), m_autoTuneOptionsHasBeenSet(false), m_offPeakWindowOptionsHasBeenSet(false), - m_softwareUpdateOptionsHasBeenSet(false) + m_softwareUpdateOptionsHasBeenSet(false), + m_aIMLOptionsHasBeenSet(false) { } @@ -168,6 +169,12 @@ Aws::String CreateDomainRequest::SerializePayload() const } + if(m_aIMLOptionsHasBeenSet) + { + payload.WithObject("AIMLOptions", m_aIMLOptions.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainConfig.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainConfig.cpp index a32bf678a51..18b96c9623f 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainConfig.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainConfig.cpp @@ -37,7 +37,8 @@ DomainConfig::DomainConfig() : m_changeProgressDetailsHasBeenSet(false), m_offPeakWindowOptionsHasBeenSet(false), m_softwareUpdateOptionsHasBeenSet(false), - m_modifyingPropertiesHasBeenSet(false) + m_modifyingPropertiesHasBeenSet(false), + m_aIMLOptionsHasBeenSet(false) { } @@ -185,6 +186,13 @@ DomainConfig& DomainConfig::operator =(JsonView jsonValue) m_modifyingPropertiesHasBeenSet = true; } + if(jsonValue.ValueExists("AIMLOptions")) + { + m_aIMLOptions = jsonValue.GetObject("AIMLOptions"); + + m_aIMLOptionsHasBeenSet = true; + } + return *this; } @@ -311,6 +319,12 @@ JsonValue DomainConfig::Jsonize() const } + if(m_aIMLOptionsHasBeenSet) + { + payload.WithObject("AIMLOptions", m_aIMLOptions.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainStatus.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainStatus.cpp index f485dda5be4..0fba62b0087 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/DomainStatus.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/DomainStatus.cpp @@ -56,7 +56,8 @@ DomainStatus::DomainStatus() : m_softwareUpdateOptionsHasBeenSet(false), m_domainProcessingStatus(DomainProcessingStatusType::NOT_SET), m_domainProcessingStatusHasBeenSet(false), - m_modifyingPropertiesHasBeenSet(false) + m_modifyingPropertiesHasBeenSet(false), + m_aIMLOptionsHasBeenSet(false) { } @@ -304,6 +305,13 @@ DomainStatus& DomainStatus::operator =(JsonView jsonValue) m_modifyingPropertiesHasBeenSet = true; } + if(jsonValue.ValueExists("AIMLOptions")) + { + m_aIMLOptions = jsonValue.GetObject("AIMLOptions"); + + m_aIMLOptionsHasBeenSet = true; + } + return *this; } @@ -521,6 +529,12 @@ JsonValue DomainStatus::Jsonize() const } + if(m_aIMLOptionsHasBeenSet) + { + payload.WithObject("AIMLOptions", m_aIMLOptions.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationCurrentState.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationCurrentState.cpp new file mode 100644 index 00000000000..25fe7bbbe67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationCurrentState.cpp @@ -0,0 +1,107 @@ +/** + * 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 OpenSearchService + { + namespace Model + { + namespace NaturalLanguageQueryGenerationCurrentStateMapper + { + + static const int NOT_ENABLED_HASH = HashingUtils::HashString("NOT_ENABLED"); + static const int ENABLE_COMPLETE_HASH = HashingUtils::HashString("ENABLE_COMPLETE"); + static const int ENABLE_IN_PROGRESS_HASH = HashingUtils::HashString("ENABLE_IN_PROGRESS"); + static const int ENABLE_FAILED_HASH = HashingUtils::HashString("ENABLE_FAILED"); + static const int DISABLE_COMPLETE_HASH = HashingUtils::HashString("DISABLE_COMPLETE"); + static const int DISABLE_IN_PROGRESS_HASH = HashingUtils::HashString("DISABLE_IN_PROGRESS"); + static const int DISABLE_FAILED_HASH = HashingUtils::HashString("DISABLE_FAILED"); + + + NaturalLanguageQueryGenerationCurrentState GetNaturalLanguageQueryGenerationCurrentStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == NOT_ENABLED_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::NOT_ENABLED; + } + else if (hashCode == ENABLE_COMPLETE_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::ENABLE_COMPLETE; + } + else if (hashCode == ENABLE_IN_PROGRESS_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::ENABLE_IN_PROGRESS; + } + else if (hashCode == ENABLE_FAILED_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::ENABLE_FAILED; + } + else if (hashCode == DISABLE_COMPLETE_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::DISABLE_COMPLETE; + } + else if (hashCode == DISABLE_IN_PROGRESS_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::DISABLE_IN_PROGRESS; + } + else if (hashCode == DISABLE_FAILED_HASH) + { + return NaturalLanguageQueryGenerationCurrentState::DISABLE_FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return NaturalLanguageQueryGenerationCurrentState::NOT_SET; + } + + Aws::String GetNameForNaturalLanguageQueryGenerationCurrentState(NaturalLanguageQueryGenerationCurrentState enumValue) + { + switch(enumValue) + { + case NaturalLanguageQueryGenerationCurrentState::NOT_SET: + return {}; + case NaturalLanguageQueryGenerationCurrentState::NOT_ENABLED: + return "NOT_ENABLED"; + case NaturalLanguageQueryGenerationCurrentState::ENABLE_COMPLETE: + return "ENABLE_COMPLETE"; + case NaturalLanguageQueryGenerationCurrentState::ENABLE_IN_PROGRESS: + return "ENABLE_IN_PROGRESS"; + case NaturalLanguageQueryGenerationCurrentState::ENABLE_FAILED: + return "ENABLE_FAILED"; + case NaturalLanguageQueryGenerationCurrentState::DISABLE_COMPLETE: + return "DISABLE_COMPLETE"; + case NaturalLanguageQueryGenerationCurrentState::DISABLE_IN_PROGRESS: + return "DISABLE_IN_PROGRESS"; + case NaturalLanguageQueryGenerationCurrentState::DISABLE_FAILED: + return "DISABLE_FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace NaturalLanguageQueryGenerationCurrentStateMapper + } // namespace Model + } // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationDesiredState.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationDesiredState.cpp new file mode 100644 index 00000000000..b9657fab5c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationDesiredState.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 OpenSearchService + { + namespace Model + { + namespace NaturalLanguageQueryGenerationDesiredStateMapper + { + + static const int ENABLED_HASH = HashingUtils::HashString("ENABLED"); + static const int DISABLED_HASH = HashingUtils::HashString("DISABLED"); + + + NaturalLanguageQueryGenerationDesiredState GetNaturalLanguageQueryGenerationDesiredStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ENABLED_HASH) + { + return NaturalLanguageQueryGenerationDesiredState::ENABLED; + } + else if (hashCode == DISABLED_HASH) + { + return NaturalLanguageQueryGenerationDesiredState::DISABLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return NaturalLanguageQueryGenerationDesiredState::NOT_SET; + } + + Aws::String GetNameForNaturalLanguageQueryGenerationDesiredState(NaturalLanguageQueryGenerationDesiredState enumValue) + { + switch(enumValue) + { + case NaturalLanguageQueryGenerationDesiredState::NOT_SET: + return {}; + case NaturalLanguageQueryGenerationDesiredState::ENABLED: + return "ENABLED"; + case NaturalLanguageQueryGenerationDesiredState::DISABLED: + return "DISABLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace NaturalLanguageQueryGenerationDesiredStateMapper + } // namespace Model + } // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationOptionsInput.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationOptionsInput.cpp new file mode 100644 index 00000000000..c76c1d53404 --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationOptionsInput.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 OpenSearchService +{ +namespace Model +{ + +NaturalLanguageQueryGenerationOptionsInput::NaturalLanguageQueryGenerationOptionsInput() : + m_desiredState(NaturalLanguageQueryGenerationDesiredState::NOT_SET), + m_desiredStateHasBeenSet(false) +{ +} + +NaturalLanguageQueryGenerationOptionsInput::NaturalLanguageQueryGenerationOptionsInput(JsonView jsonValue) + : NaturalLanguageQueryGenerationOptionsInput() +{ + *this = jsonValue; +} + +NaturalLanguageQueryGenerationOptionsInput& NaturalLanguageQueryGenerationOptionsInput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DesiredState")) + { + m_desiredState = NaturalLanguageQueryGenerationDesiredStateMapper::GetNaturalLanguageQueryGenerationDesiredStateForName(jsonValue.GetString("DesiredState")); + + m_desiredStateHasBeenSet = true; + } + + return *this; +} + +JsonValue NaturalLanguageQueryGenerationOptionsInput::Jsonize() const +{ + JsonValue payload; + + if(m_desiredStateHasBeenSet) + { + payload.WithString("DesiredState", NaturalLanguageQueryGenerationDesiredStateMapper::GetNameForNaturalLanguageQueryGenerationDesiredState(m_desiredState)); + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationOptionsOutput.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationOptionsOutput.cpp new file mode 100644 index 00000000000..35dd5f7d85c --- /dev/null +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/NaturalLanguageQueryGenerationOptionsOutput.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 OpenSearchService +{ +namespace Model +{ + +NaturalLanguageQueryGenerationOptionsOutput::NaturalLanguageQueryGenerationOptionsOutput() : + m_desiredState(NaturalLanguageQueryGenerationDesiredState::NOT_SET), + m_desiredStateHasBeenSet(false), + m_currentState(NaturalLanguageQueryGenerationCurrentState::NOT_SET), + m_currentStateHasBeenSet(false) +{ +} + +NaturalLanguageQueryGenerationOptionsOutput::NaturalLanguageQueryGenerationOptionsOutput(JsonView jsonValue) + : NaturalLanguageQueryGenerationOptionsOutput() +{ + *this = jsonValue; +} + +NaturalLanguageQueryGenerationOptionsOutput& NaturalLanguageQueryGenerationOptionsOutput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DesiredState")) + { + m_desiredState = NaturalLanguageQueryGenerationDesiredStateMapper::GetNaturalLanguageQueryGenerationDesiredStateForName(jsonValue.GetString("DesiredState")); + + m_desiredStateHasBeenSet = true; + } + + if(jsonValue.ValueExists("CurrentState")) + { + m_currentState = NaturalLanguageQueryGenerationCurrentStateMapper::GetNaturalLanguageQueryGenerationCurrentStateForName(jsonValue.GetString("CurrentState")); + + m_currentStateHasBeenSet = true; + } + + return *this; +} + +JsonValue NaturalLanguageQueryGenerationOptionsOutput::Jsonize() const +{ + JsonValue payload; + + if(m_desiredStateHasBeenSet) + { + payload.WithString("DesiredState", NaturalLanguageQueryGenerationDesiredStateMapper::GetNameForNaturalLanguageQueryGenerationDesiredState(m_desiredState)); + } + + if(m_currentStateHasBeenSet) + { + payload.WithString("CurrentState", NaturalLanguageQueryGenerationCurrentStateMapper::GetNameForNaturalLanguageQueryGenerationCurrentState(m_currentState)); + } + + return payload; +} + +} // namespace Model +} // namespace OpenSearchService +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-opensearch/source/model/UpdateDomainConfigRequest.cpp b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdateDomainConfigRequest.cpp index 08ac6e36509..40ad8d13b99 100644 --- a/generated/src/aws-cpp-sdk-opensearch/source/model/UpdateDomainConfigRequest.cpp +++ b/generated/src/aws-cpp-sdk-opensearch/source/model/UpdateDomainConfigRequest.cpp @@ -34,7 +34,8 @@ UpdateDomainConfigRequest::UpdateDomainConfigRequest() : m_dryRunMode(DryRunMode::NOT_SET), m_dryRunModeHasBeenSet(false), m_offPeakWindowOptionsHasBeenSet(false), - m_softwareUpdateOptionsHasBeenSet(false) + m_softwareUpdateOptionsHasBeenSet(false), + m_aIMLOptionsHasBeenSet(false) { } @@ -158,6 +159,12 @@ Aws::String UpdateDomainConfigRequest::SerializePayload() const } + if(m_aIMLOptionsHasBeenSet) + { + payload.WithObject("AIMLOptions", m_aIMLOptions.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerClient.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerClient.h index 7169dba1a08..5047d71024a 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerClient.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerClient.h @@ -1742,6 +1742,38 @@ namespace SageMaker return SubmitAsync(&SageMakerClient::CreateNotebookInstanceLifecycleConfig, request, handler, context); } + /** + *

    Creates a job that optimizes a model for inference performance. To create the + * job, you provide the location of a source model, and you provide the settings + * for the optimization techniques that you want the job to apply. When the job + * completes successfully, SageMaker uploads the new optimized model to the output + * destination that you specify.

    For more information about how to use this + * action, and about the supported optimization techniques, see Optimize + * model inference with Amazon SageMaker.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateOptimizationJobOutcome CreateOptimizationJob(const Model::CreateOptimizationJobRequest& request) const; + + /** + * A Callable wrapper for CreateOptimizationJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateOptimizationJobOutcomeCallable CreateOptimizationJobCallable(const CreateOptimizationJobRequestT& request) const + { + return SubmitCallable(&SageMakerClient::CreateOptimizationJob, request); + } + + /** + * An Async wrapper for CreateOptimizationJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateOptimizationJobAsync(const CreateOptimizationJobRequestT& request, const CreateOptimizationJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&SageMakerClient::CreateOptimizationJob, request, handler, context); + } + /** *

    Creates a pipeline using a JSON pipeline definition.

    See Also:

    * Deletes an optimization job.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteOptimizationJobOutcome DeleteOptimizationJob(const Model::DeleteOptimizationJobRequest& request) const; + + /** + * A Callable wrapper for DeleteOptimizationJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteOptimizationJobOutcomeCallable DeleteOptimizationJobCallable(const DeleteOptimizationJobRequestT& request) const + { + return SubmitCallable(&SageMakerClient::DeleteOptimizationJob, request); + } + + /** + * An Async wrapper for DeleteOptimizationJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteOptimizationJobAsync(const DeleteOptimizationJobRequestT& request, const DeleteOptimizationJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&SageMakerClient::DeleteOptimizationJob, request, handler, context); + } + /** *

    Deletes a pipeline if there are no running instances of the pipeline. To * delete a pipeline, you must stop all running instances of the pipeline using the @@ -4920,6 +4977,32 @@ namespace SageMaker return SubmitAsync(&SageMakerClient::DescribeNotebookInstanceLifecycleConfig, request, handler, context); } + /** + *

    Provides the properties of the specified optimization job.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::DescribeOptimizationJobOutcome DescribeOptimizationJob(const Model::DescribeOptimizationJobRequest& request) const; + + /** + * A Callable wrapper for DescribeOptimizationJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeOptimizationJobOutcomeCallable DescribeOptimizationJobCallable(const DescribeOptimizationJobRequestT& request) const + { + return SubmitCallable(&SageMakerClient::DescribeOptimizationJob, request); + } + + /** + * An Async wrapper for DescribeOptimizationJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeOptimizationJobAsync(const DescribeOptimizationJobRequestT& request, const DescribeOptimizationJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&SageMakerClient::DescribeOptimizationJob, request, handler, context); + } + /** *

    Describes the details of a pipeline.

    See Also:

    AWS @@ -7039,6 +7122,32 @@ namespace SageMaker return SubmitAsync(&SageMakerClient::ListNotebookInstances, request, handler, context); } + /** + *

    Lists the optimization jobs in your account and their + * properties.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListOptimizationJobsOutcome ListOptimizationJobs(const Model::ListOptimizationJobsRequest& request = {}) const; + + /** + * A Callable wrapper for ListOptimizationJobs that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListOptimizationJobsOutcomeCallable ListOptimizationJobsCallable(const ListOptimizationJobsRequestT& request = {}) const + { + return SubmitCallable(&SageMakerClient::ListOptimizationJobs, request); + } + + /** + * An Async wrapper for ListOptimizationJobs that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListOptimizationJobsAsync(const ListOptimizationJobsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListOptimizationJobsRequestT& request = {}) const + { + return SubmitAsync(&SageMakerClient::ListOptimizationJobs, request, handler, context); + } + /** *

    Gets a list of PipeLineExecutionStep objects.

    See * Also:

    Ends a running inference optimization job.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::StopOptimizationJobOutcome StopOptimizationJob(const Model::StopOptimizationJobRequest& request) const; + + /** + * A Callable wrapper for StopOptimizationJob that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StopOptimizationJobOutcomeCallable StopOptimizationJobCallable(const StopOptimizationJobRequestT& request) const + { + return SubmitCallable(&SageMakerClient::StopOptimizationJob, request); + } + + /** + * An Async wrapper for StopOptimizationJob that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StopOptimizationJobAsync(const StopOptimizationJobRequestT& request, const StopOptimizationJobResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&SageMakerClient::StopOptimizationJob, request, handler, context); + } + /** *

    Stops a pipeline execution.

    Callback Step

    A pipeline * execution won't stop while a callback step is running. When you call diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerServiceClientModel.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerServiceClientModel.h index b6bff1d6f37..f2e6ed43231 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/SageMakerServiceClientModel.h @@ -63,6 +63,7 @@ #include #include #include +#include #include #include #include @@ -143,6 +144,7 @@ #include #include #include +#include #include #include #include @@ -224,6 +226,7 @@ #include #include #include +#include #include #include #include @@ -344,6 +347,7 @@ #include #include #include +#include #include #include #include @@ -447,6 +451,7 @@ namespace Aws class CreateMonitoringScheduleRequest; class CreateNotebookInstanceRequest; class CreateNotebookInstanceLifecycleConfigRequest; + class CreateOptimizationJobRequest; class CreatePipelineRequest; class CreatePresignedDomainUrlRequest; class CreatePresignedMlflowTrackingServerUrlRequest; @@ -503,6 +508,7 @@ namespace Aws class DeleteMonitoringScheduleRequest; class DeleteNotebookInstanceRequest; class DeleteNotebookInstanceLifecycleConfigRequest; + class DeleteOptimizationJobRequest; class DeletePipelineRequest; class DeleteProjectRequest; class DeleteSpaceRequest; @@ -561,6 +567,7 @@ namespace Aws class DescribeMonitoringScheduleRequest; class DescribeNotebookInstanceRequest; class DescribeNotebookInstanceLifecycleConfigRequest; + class DescribeOptimizationJobRequest; class DescribePipelineRequest; class DescribePipelineDefinitionForExecutionRequest; class DescribePipelineExecutionRequest; @@ -642,6 +649,7 @@ namespace Aws class ListMonitoringSchedulesRequest; class ListNotebookInstanceLifecycleConfigsRequest; class ListNotebookInstancesRequest; + class ListOptimizationJobsRequest; class ListPipelineExecutionStepsRequest; class ListPipelineExecutionsRequest; class ListPipelineParametersForExecutionRequest; @@ -687,6 +695,7 @@ namespace Aws class StopMlflowTrackingServerRequest; class StopMonitoringScheduleRequest; class StopNotebookInstanceRequest; + class StopOptimizationJobRequest; class StopPipelineExecutionRequest; class StopProcessingJobRequest; class StopTrainingJobRequest; @@ -780,6 +789,7 @@ namespace Aws typedef Aws::Utils::Outcome CreateMonitoringScheduleOutcome; typedef Aws::Utils::Outcome CreateNotebookInstanceOutcome; typedef Aws::Utils::Outcome CreateNotebookInstanceLifecycleConfigOutcome; + typedef Aws::Utils::Outcome CreateOptimizationJobOutcome; typedef Aws::Utils::Outcome CreatePipelineOutcome; typedef Aws::Utils::Outcome CreatePresignedDomainUrlOutcome; typedef Aws::Utils::Outcome CreatePresignedMlflowTrackingServerUrlOutcome; @@ -836,6 +846,7 @@ namespace Aws typedef Aws::Utils::Outcome DeleteMonitoringScheduleOutcome; typedef Aws::Utils::Outcome DeleteNotebookInstanceOutcome; typedef Aws::Utils::Outcome DeleteNotebookInstanceLifecycleConfigOutcome; + typedef Aws::Utils::Outcome DeleteOptimizationJobOutcome; typedef Aws::Utils::Outcome DeletePipelineOutcome; typedef Aws::Utils::Outcome DeleteProjectOutcome; typedef Aws::Utils::Outcome DeleteSpaceOutcome; @@ -894,6 +905,7 @@ namespace Aws typedef Aws::Utils::Outcome DescribeMonitoringScheduleOutcome; typedef Aws::Utils::Outcome DescribeNotebookInstanceOutcome; typedef Aws::Utils::Outcome DescribeNotebookInstanceLifecycleConfigOutcome; + typedef Aws::Utils::Outcome DescribeOptimizationJobOutcome; typedef Aws::Utils::Outcome DescribePipelineOutcome; typedef Aws::Utils::Outcome DescribePipelineDefinitionForExecutionOutcome; typedef Aws::Utils::Outcome DescribePipelineExecutionOutcome; @@ -975,6 +987,7 @@ namespace Aws typedef Aws::Utils::Outcome ListMonitoringSchedulesOutcome; typedef Aws::Utils::Outcome ListNotebookInstanceLifecycleConfigsOutcome; typedef Aws::Utils::Outcome ListNotebookInstancesOutcome; + typedef Aws::Utils::Outcome ListOptimizationJobsOutcome; typedef Aws::Utils::Outcome ListPipelineExecutionStepsOutcome; typedef Aws::Utils::Outcome ListPipelineExecutionsOutcome; typedef Aws::Utils::Outcome ListPipelineParametersForExecutionOutcome; @@ -1020,6 +1033,7 @@ namespace Aws typedef Aws::Utils::Outcome StopMlflowTrackingServerOutcome; typedef Aws::Utils::Outcome StopMonitoringScheduleOutcome; typedef Aws::Utils::Outcome StopNotebookInstanceOutcome; + typedef Aws::Utils::Outcome StopOptimizationJobOutcome; typedef Aws::Utils::Outcome StopPipelineExecutionOutcome; typedef Aws::Utils::Outcome StopProcessingJobOutcome; typedef Aws::Utils::Outcome StopTrainingJobOutcome; @@ -1113,6 +1127,7 @@ namespace Aws typedef std::future CreateMonitoringScheduleOutcomeCallable; typedef std::future CreateNotebookInstanceOutcomeCallable; typedef std::future CreateNotebookInstanceLifecycleConfigOutcomeCallable; + typedef std::future CreateOptimizationJobOutcomeCallable; typedef std::future CreatePipelineOutcomeCallable; typedef std::future CreatePresignedDomainUrlOutcomeCallable; typedef std::future CreatePresignedMlflowTrackingServerUrlOutcomeCallable; @@ -1169,6 +1184,7 @@ namespace Aws typedef std::future DeleteMonitoringScheduleOutcomeCallable; typedef std::future DeleteNotebookInstanceOutcomeCallable; typedef std::future DeleteNotebookInstanceLifecycleConfigOutcomeCallable; + typedef std::future DeleteOptimizationJobOutcomeCallable; typedef std::future DeletePipelineOutcomeCallable; typedef std::future DeleteProjectOutcomeCallable; typedef std::future DeleteSpaceOutcomeCallable; @@ -1227,6 +1243,7 @@ namespace Aws typedef std::future DescribeMonitoringScheduleOutcomeCallable; typedef std::future DescribeNotebookInstanceOutcomeCallable; typedef std::future DescribeNotebookInstanceLifecycleConfigOutcomeCallable; + typedef std::future DescribeOptimizationJobOutcomeCallable; typedef std::future DescribePipelineOutcomeCallable; typedef std::future DescribePipelineDefinitionForExecutionOutcomeCallable; typedef std::future DescribePipelineExecutionOutcomeCallable; @@ -1308,6 +1325,7 @@ namespace Aws typedef std::future ListMonitoringSchedulesOutcomeCallable; typedef std::future ListNotebookInstanceLifecycleConfigsOutcomeCallable; typedef std::future ListNotebookInstancesOutcomeCallable; + typedef std::future ListOptimizationJobsOutcomeCallable; typedef std::future ListPipelineExecutionStepsOutcomeCallable; typedef std::future ListPipelineExecutionsOutcomeCallable; typedef std::future ListPipelineParametersForExecutionOutcomeCallable; @@ -1353,6 +1371,7 @@ namespace Aws typedef std::future StopMlflowTrackingServerOutcomeCallable; typedef std::future StopMonitoringScheduleOutcomeCallable; typedef std::future StopNotebookInstanceOutcomeCallable; + typedef std::future StopOptimizationJobOutcomeCallable; typedef std::future StopPipelineExecutionOutcomeCallable; typedef std::future StopProcessingJobOutcomeCallable; typedef std::future StopTrainingJobOutcomeCallable; @@ -1449,6 +1468,7 @@ namespace Aws typedef std::function&) > CreateMonitoringScheduleResponseReceivedHandler; typedef std::function&) > CreateNotebookInstanceResponseReceivedHandler; typedef std::function&) > CreateNotebookInstanceLifecycleConfigResponseReceivedHandler; + typedef std::function&) > CreateOptimizationJobResponseReceivedHandler; typedef std::function&) > CreatePipelineResponseReceivedHandler; typedef std::function&) > CreatePresignedDomainUrlResponseReceivedHandler; typedef std::function&) > CreatePresignedMlflowTrackingServerUrlResponseReceivedHandler; @@ -1505,6 +1525,7 @@ namespace Aws typedef std::function&) > DeleteMonitoringScheduleResponseReceivedHandler; typedef std::function&) > DeleteNotebookInstanceResponseReceivedHandler; typedef std::function&) > DeleteNotebookInstanceLifecycleConfigResponseReceivedHandler; + typedef std::function&) > DeleteOptimizationJobResponseReceivedHandler; typedef std::function&) > DeletePipelineResponseReceivedHandler; typedef std::function&) > DeleteProjectResponseReceivedHandler; typedef std::function&) > DeleteSpaceResponseReceivedHandler; @@ -1563,6 +1584,7 @@ namespace Aws typedef std::function&) > DescribeMonitoringScheduleResponseReceivedHandler; typedef std::function&) > DescribeNotebookInstanceResponseReceivedHandler; typedef std::function&) > DescribeNotebookInstanceLifecycleConfigResponseReceivedHandler; + typedef std::function&) > DescribeOptimizationJobResponseReceivedHandler; typedef std::function&) > DescribePipelineResponseReceivedHandler; typedef std::function&) > DescribePipelineDefinitionForExecutionResponseReceivedHandler; typedef std::function&) > DescribePipelineExecutionResponseReceivedHandler; @@ -1644,6 +1666,7 @@ namespace Aws typedef std::function&) > ListMonitoringSchedulesResponseReceivedHandler; typedef std::function&) > ListNotebookInstanceLifecycleConfigsResponseReceivedHandler; typedef std::function&) > ListNotebookInstancesResponseReceivedHandler; + typedef std::function&) > ListOptimizationJobsResponseReceivedHandler; typedef std::function&) > ListPipelineExecutionStepsResponseReceivedHandler; typedef std::function&) > ListPipelineExecutionsResponseReceivedHandler; typedef std::function&) > ListPipelineParametersForExecutionResponseReceivedHandler; @@ -1689,6 +1712,7 @@ namespace Aws typedef std::function&) > StopMlflowTrackingServerResponseReceivedHandler; typedef std::function&) > StopMonitoringScheduleResponseReceivedHandler; typedef std::function&) > StopNotebookInstanceResponseReceivedHandler; + typedef std::function&) > StopOptimizationJobResponseReceivedHandler; typedef std::function&) > StopPipelineExecutionResponseReceivedHandler; typedef std::function&) > StopProcessingJobResponseReceivedHandler; typedef std::function&) > StopTrainingJobResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AdditionalModelDataSource.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AdditionalModelDataSource.h new file mode 100644 index 00000000000..fa338f06b65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AdditionalModelDataSource.h @@ -0,0 +1,77 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    Data sources that are available to your model in addition to the one that you + * specify for ModelDataSource when you use the + * CreateModel action.

    See Also:

    AWS + * API Reference

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

    A custom name for this AdditionalModelDataSource object.

    + */ + inline const Aws::String& GetChannelName() const{ return m_channelName; } + inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } + inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } + inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } + inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } + inline AdditionalModelDataSource& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} + inline AdditionalModelDataSource& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} + inline AdditionalModelDataSource& WithChannelName(const char* value) { SetChannelName(value); return *this;} + ///@} + + ///@{ + + inline const S3ModelDataSource& GetS3DataSource() const{ return m_s3DataSource; } + inline bool S3DataSourceHasBeenSet() const { return m_s3DataSourceHasBeenSet; } + inline void SetS3DataSource(const S3ModelDataSource& value) { m_s3DataSourceHasBeenSet = true; m_s3DataSource = value; } + inline void SetS3DataSource(S3ModelDataSource&& value) { m_s3DataSourceHasBeenSet = true; m_s3DataSource = std::move(value); } + inline AdditionalModelDataSource& WithS3DataSource(const S3ModelDataSource& value) { SetS3DataSource(value); return *this;} + inline AdditionalModelDataSource& WithS3DataSource(S3ModelDataSource&& value) { SetS3DataSource(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_channelName; + bool m_channelNameHasBeenSet = false; + + S3ModelDataSource m_s3DataSource; + bool m_s3DataSourceHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AmazonQSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AmazonQSettings.h new file mode 100644 index 00000000000..9b2eda910a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/AmazonQSettings.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 SageMaker +{ +namespace Model +{ + + /** + *

    A collection of settings that configure the Amazon Q experience within the + * domain.

    See Also:

    AWS + * API Reference

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

    Whether Amazon Q has been enabled within the domain.

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

    The ARN of the Amazon Q profile used within the domain.

    + */ + inline const Aws::String& GetQProfileArn() const{ return m_qProfileArn; } + inline bool QProfileArnHasBeenSet() const { return m_qProfileArnHasBeenSet; } + inline void SetQProfileArn(const Aws::String& value) { m_qProfileArnHasBeenSet = true; m_qProfileArn = value; } + inline void SetQProfileArn(Aws::String&& value) { m_qProfileArnHasBeenSet = true; m_qProfileArn = std::move(value); } + inline void SetQProfileArn(const char* value) { m_qProfileArnHasBeenSet = true; m_qProfileArn.assign(value); } + inline AmazonQSettings& WithQProfileArn(const Aws::String& value) { SetQProfileArn(value); return *this;} + inline AmazonQSettings& WithQProfileArn(Aws::String&& value) { SetQProfileArn(std::move(value)); return *this;} + inline AmazonQSettings& WithQProfileArn(const char* value) { SetQProfileArn(value); return *this;} + ///@} + private: + + FeatureStatus m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_qProfileArn; + bool m_qProfileArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerDefinition.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerDefinition.h index 30a0de1a18a..81b110e6074 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerDefinition.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ContainerDefinition.h @@ -9,8 +9,10 @@ #include #include #include +#include #include #include +#include #include namespace Aws @@ -173,6 +175,22 @@ namespace Model inline ContainerDefinition& WithModelDataSource(ModelDataSource&& value) { SetModelDataSource(std::move(value)); return *this;} ///@} + ///@{ + /** + *

    Data sources that are available to your model in addition to the one that you + * specify for ModelDataSource when you use the + * CreateModel action.

    + */ + inline const Aws::Vector& GetAdditionalModelDataSources() const{ return m_additionalModelDataSources; } + inline bool AdditionalModelDataSourcesHasBeenSet() const { return m_additionalModelDataSourcesHasBeenSet; } + inline void SetAdditionalModelDataSources(const Aws::Vector& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources = value; } + inline void SetAdditionalModelDataSources(Aws::Vector&& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources = std::move(value); } + inline ContainerDefinition& WithAdditionalModelDataSources(const Aws::Vector& value) { SetAdditionalModelDataSources(value); return *this;} + inline ContainerDefinition& WithAdditionalModelDataSources(Aws::Vector&& value) { SetAdditionalModelDataSources(std::move(value)); return *this;} + inline ContainerDefinition& AddAdditionalModelDataSources(const AdditionalModelDataSource& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources.push_back(value); return *this; } + inline ContainerDefinition& AddAdditionalModelDataSources(AdditionalModelDataSource&& value) { m_additionalModelDataSourcesHasBeenSet = true; m_additionalModelDataSources.push_back(std::move(value)); return *this; } + ///@} + ///@{ /** *

    The environment variables to set in the Docker container.

    The maximum @@ -256,6 +274,9 @@ namespace Model ModelDataSource m_modelDataSource; bool m_modelDataSourceHasBeenSet = false; + Aws::Vector m_additionalModelDataSources; + bool m_additionalModelDataSourcesHasBeenSet = false; + Aws::Map m_environment; bool m_environmentHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateOptimizationJobRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateOptimizationJobRequest.h new file mode 100644 index 00000000000..7bca577e737 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateOptimizationJobRequest.h @@ -0,0 +1,229 @@ +/** + * 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 +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + + /** + */ + class CreateOptimizationJobRequest : public SageMakerRequest + { + public: + AWS_SAGEMAKER_API CreateOptimizationJobRequest(); + + // 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 "CreateOptimizationJob"; } + + AWS_SAGEMAKER_API Aws::String SerializePayload() const override; + + AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    A custom name for the new optimization job.

    + */ + inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; } + inline bool OptimizationJobNameHasBeenSet() const { return m_optimizationJobNameHasBeenSet; } + inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = value; } + inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = std::move(value); } + inline void SetOptimizationJobName(const char* value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName.assign(value); } + inline CreateOptimizationJobRequest& WithOptimizationJobName(const Aws::String& value) { SetOptimizationJobName(value); return *this;} + inline CreateOptimizationJobRequest& WithOptimizationJobName(Aws::String&& value) { SetOptimizationJobName(std::move(value)); return *this;} + inline CreateOptimizationJobRequest& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker + * to perform tasks on your behalf.

    During model optimization, Amazon + * SageMaker needs your permission to:

    • Read input data from an S3 + * bucket

    • Write model artifacts to an S3 bucket

    • + *

      Write logs to Amazon CloudWatch Logs

    • Publish metrics to + * Amazon CloudWatch

    You grant permissions for all of these + * tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this + * API must have the iam:PassRole permission. For more information, + * see Amazon + * SageMaker Roles.

    + */ + 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 CreateOptimizationJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + inline CreateOptimizationJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + inline CreateOptimizationJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The location of the source model to optimize with an optimization job.

    + */ + inline const OptimizationJobModelSource& GetModelSource() const{ return m_modelSource; } + inline bool ModelSourceHasBeenSet() const { return m_modelSourceHasBeenSet; } + inline void SetModelSource(const OptimizationJobModelSource& value) { m_modelSourceHasBeenSet = true; m_modelSource = value; } + inline void SetModelSource(OptimizationJobModelSource&& value) { m_modelSourceHasBeenSet = true; m_modelSource = std::move(value); } + inline CreateOptimizationJobRequest& WithModelSource(const OptimizationJobModelSource& value) { SetModelSource(value); return *this;} + inline CreateOptimizationJobRequest& WithModelSource(OptimizationJobModelSource&& value) { SetModelSource(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of instance that hosts the optimized model that you create with the + * optimization job.

    + */ + inline const OptimizationJobDeploymentInstanceType& GetDeploymentInstanceType() const{ return m_deploymentInstanceType; } + inline bool DeploymentInstanceTypeHasBeenSet() const { return m_deploymentInstanceTypeHasBeenSet; } + inline void SetDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { m_deploymentInstanceTypeHasBeenSet = true; m_deploymentInstanceType = value; } + inline void SetDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { m_deploymentInstanceTypeHasBeenSet = true; m_deploymentInstanceType = std::move(value); } + inline CreateOptimizationJobRequest& WithDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { SetDeploymentInstanceType(value); return *this;} + inline CreateOptimizationJobRequest& WithDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { SetDeploymentInstanceType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The environment variables to set in the model container.

    + */ + inline const Aws::Map& GetOptimizationEnvironment() const{ return m_optimizationEnvironment; } + inline bool OptimizationEnvironmentHasBeenSet() const { return m_optimizationEnvironmentHasBeenSet; } + inline void SetOptimizationEnvironment(const Aws::Map& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment = value; } + inline void SetOptimizationEnvironment(Aws::Map&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment = std::move(value); } + inline CreateOptimizationJobRequest& WithOptimizationEnvironment(const Aws::Map& value) { SetOptimizationEnvironment(value); return *this;} + inline CreateOptimizationJobRequest& WithOptimizationEnvironment(Aws::Map&& value) { SetOptimizationEnvironment(std::move(value)); return *this;} + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const Aws::String& key, const Aws::String& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, value); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(Aws::String&& key, const Aws::String& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(std::move(key), value); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const Aws::String& key, Aws::String&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, std::move(value)); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(Aws::String&& key, Aws::String&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(std::move(key), std::move(value)); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const char* key, Aws::String&& value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, std::move(value)); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(Aws::String&& key, const char* value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(std::move(key), value); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationEnvironment(const char* key, const char* value) { m_optimizationEnvironmentHasBeenSet = true; m_optimizationEnvironment.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    Settings for each of the optimization techniques that the job applies.

    + */ + inline const Aws::Vector& GetOptimizationConfigs() const{ return m_optimizationConfigs; } + inline bool OptimizationConfigsHasBeenSet() const { return m_optimizationConfigsHasBeenSet; } + inline void SetOptimizationConfigs(const Aws::Vector& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs = value; } + inline void SetOptimizationConfigs(Aws::Vector&& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs = std::move(value); } + inline CreateOptimizationJobRequest& WithOptimizationConfigs(const Aws::Vector& value) { SetOptimizationConfigs(value); return *this;} + inline CreateOptimizationJobRequest& WithOptimizationConfigs(Aws::Vector&& value) { SetOptimizationConfigs(std::move(value)); return *this;} + inline CreateOptimizationJobRequest& AddOptimizationConfigs(const OptimizationConfig& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs.push_back(value); return *this; } + inline CreateOptimizationJobRequest& AddOptimizationConfigs(OptimizationConfig&& value) { m_optimizationConfigsHasBeenSet = true; m_optimizationConfigs.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    Details for where to store the optimized model that you create with the + * optimization job.

    + */ + inline const OptimizationJobOutputConfig& GetOutputConfig() const{ return m_outputConfig; } + inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; } + inline void SetOutputConfig(const OptimizationJobOutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; } + inline void SetOutputConfig(OptimizationJobOutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); } + inline CreateOptimizationJobRequest& WithOutputConfig(const OptimizationJobOutputConfig& value) { SetOutputConfig(value); return *this;} + inline CreateOptimizationJobRequest& WithOutputConfig(OptimizationJobOutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; } + inline bool StoppingConditionHasBeenSet() const { return m_stoppingConditionHasBeenSet; } + inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = value; } + inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingConditionHasBeenSet = true; m_stoppingCondition = std::move(value); } + inline CreateOptimizationJobRequest& WithStoppingCondition(const StoppingCondition& value) { SetStoppingCondition(value); return *this;} + inline CreateOptimizationJobRequest& WithStoppingCondition(StoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A list of key-value pairs associated with the optimization job. For more + * information, see Tagging + * Amazon Web Services resources in the Amazon Web Services General + * Reference Guide.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateOptimizationJobRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + inline CreateOptimizationJobRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + inline CreateOptimizationJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + inline CreateOptimizationJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    A VPC in Amazon VPC that your optimized model has access to.

    + */ + inline const OptimizationVpcConfig& GetVpcConfig() const{ return m_vpcConfig; } + inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } + inline void SetVpcConfig(const OptimizationVpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } + inline void SetVpcConfig(OptimizationVpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } + inline CreateOptimizationJobRequest& WithVpcConfig(const OptimizationVpcConfig& value) { SetVpcConfig(value); return *this;} + inline CreateOptimizationJobRequest& WithVpcConfig(OptimizationVpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_optimizationJobName; + bool m_optimizationJobNameHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + + OptimizationJobModelSource m_modelSource; + bool m_modelSourceHasBeenSet = false; + + OptimizationJobDeploymentInstanceType m_deploymentInstanceType; + bool m_deploymentInstanceTypeHasBeenSet = false; + + Aws::Map m_optimizationEnvironment; + bool m_optimizationEnvironmentHasBeenSet = false; + + Aws::Vector m_optimizationConfigs; + bool m_optimizationConfigsHasBeenSet = false; + + OptimizationJobOutputConfig m_outputConfig; + bool m_outputConfigHasBeenSet = false; + + StoppingCondition m_stoppingCondition; + bool m_stoppingConditionHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + + OptimizationVpcConfig m_vpcConfig; + bool m_vpcConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateOptimizationJobResult.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateOptimizationJobResult.h new file mode 100644 index 00000000000..1666b0a3dfb --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateOptimizationJobResult.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 SageMaker +{ +namespace Model +{ + class CreateOptimizationJobResult + { + public: + AWS_SAGEMAKER_API CreateOptimizationJobResult(); + AWS_SAGEMAKER_API CreateOptimizationJobResult(const Aws::AmazonWebServiceResult& result); + AWS_SAGEMAKER_API CreateOptimizationJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

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

    + */ + inline const Aws::String& GetOptimizationJobArn() const{ return m_optimizationJobArn; } + inline void SetOptimizationJobArn(const Aws::String& value) { m_optimizationJobArn = value; } + inline void SetOptimizationJobArn(Aws::String&& value) { m_optimizationJobArn = std::move(value); } + inline void SetOptimizationJobArn(const char* value) { m_optimizationJobArn.assign(value); } + inline CreateOptimizationJobResult& WithOptimizationJobArn(const Aws::String& value) { SetOptimizationJobArn(value); return *this;} + inline CreateOptimizationJobResult& WithOptimizationJobArn(Aws::String&& value) { SetOptimizationJobArn(std::move(value)); return *this;} + inline CreateOptimizationJobResult& WithOptimizationJobArn(const char* value) { SetOptimizationJobArn(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 CreateOptimizationJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateOptimizationJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateOptimizationJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_optimizationJobArn; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DeleteOptimizationJobRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DeleteOptimizationJobRequest.h new file mode 100644 index 00000000000..68279d25fa8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DeleteOptimizationJobRequest.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 + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + + /** + */ + class DeleteOptimizationJobRequest : public SageMakerRequest + { + public: + AWS_SAGEMAKER_API DeleteOptimizationJobRequest(); + + // 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 "DeleteOptimizationJob"; } + + AWS_SAGEMAKER_API Aws::String SerializePayload() const override; + + AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The name that you assigned to the optimization job.

    + */ + inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; } + inline bool OptimizationJobNameHasBeenSet() const { return m_optimizationJobNameHasBeenSet; } + inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = value; } + inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = std::move(value); } + inline void SetOptimizationJobName(const char* value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName.assign(value); } + inline DeleteOptimizationJobRequest& WithOptimizationJobName(const Aws::String& value) { SetOptimizationJobName(value); return *this;} + inline DeleteOptimizationJobRequest& WithOptimizationJobName(Aws::String&& value) { SetOptimizationJobName(std::move(value)); return *this;} + inline DeleteOptimizationJobRequest& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;} + ///@} + private: + + Aws::String m_optimizationJobName; + bool m_optimizationJobNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeOptimizationJobRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeOptimizationJobRequest.h new file mode 100644 index 00000000000..f9f3ddde3f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeOptimizationJobRequest.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 + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + + /** + */ + class DescribeOptimizationJobRequest : public SageMakerRequest + { + public: + AWS_SAGEMAKER_API DescribeOptimizationJobRequest(); + + // 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 "DescribeOptimizationJob"; } + + AWS_SAGEMAKER_API Aws::String SerializePayload() const override; + + AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The name that you assigned to the optimization job.

    + */ + inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; } + inline bool OptimizationJobNameHasBeenSet() const { return m_optimizationJobNameHasBeenSet; } + inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = value; } + inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = std::move(value); } + inline void SetOptimizationJobName(const char* value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName.assign(value); } + inline DescribeOptimizationJobRequest& WithOptimizationJobName(const Aws::String& value) { SetOptimizationJobName(value); return *this;} + inline DescribeOptimizationJobRequest& WithOptimizationJobName(Aws::String&& value) { SetOptimizationJobName(std::move(value)); return *this;} + inline DescribeOptimizationJobRequest& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;} + ///@} + private: + + Aws::String m_optimizationJobName; + bool m_optimizationJobNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeOptimizationJobResult.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeOptimizationJobResult.h new file mode 100644 index 00000000000..51fb28f6d17 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DescribeOptimizationJobResult.h @@ -0,0 +1,302 @@ +/** + * 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 +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + class DescribeOptimizationJobResult + { + public: + AWS_SAGEMAKER_API DescribeOptimizationJobResult(); + AWS_SAGEMAKER_API DescribeOptimizationJobResult(const Aws::AmazonWebServiceResult& result); + AWS_SAGEMAKER_API DescribeOptimizationJobResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

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

    + */ + inline const Aws::String& GetOptimizationJobArn() const{ return m_optimizationJobArn; } + inline void SetOptimizationJobArn(const Aws::String& value) { m_optimizationJobArn = value; } + inline void SetOptimizationJobArn(Aws::String&& value) { m_optimizationJobArn = std::move(value); } + inline void SetOptimizationJobArn(const char* value) { m_optimizationJobArn.assign(value); } + inline DescribeOptimizationJobResult& WithOptimizationJobArn(const Aws::String& value) { SetOptimizationJobArn(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationJobArn(Aws::String&& value) { SetOptimizationJobArn(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationJobArn(const char* value) { SetOptimizationJobArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The current status of the optimization job.

    + */ + inline const OptimizationJobStatus& GetOptimizationJobStatus() const{ return m_optimizationJobStatus; } + inline void SetOptimizationJobStatus(const OptimizationJobStatus& value) { m_optimizationJobStatus = value; } + inline void SetOptimizationJobStatus(OptimizationJobStatus&& value) { m_optimizationJobStatus = std::move(value); } + inline DescribeOptimizationJobResult& WithOptimizationJobStatus(const OptimizationJobStatus& value) { SetOptimizationJobStatus(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationJobStatus(OptimizationJobStatus&& value) { SetOptimizationJobStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when the optimization job started.

    + */ + inline const Aws::Utils::DateTime& GetOptimizationStartTime() const{ return m_optimizationStartTime; } + inline void SetOptimizationStartTime(const Aws::Utils::DateTime& value) { m_optimizationStartTime = value; } + inline void SetOptimizationStartTime(Aws::Utils::DateTime&& value) { m_optimizationStartTime = std::move(value); } + inline DescribeOptimizationJobResult& WithOptimizationStartTime(const Aws::Utils::DateTime& value) { SetOptimizationStartTime(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationStartTime(Aws::Utils::DateTime&& value) { SetOptimizationStartTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when the optimization job finished processing.

    + */ + inline const Aws::Utils::DateTime& GetOptimizationEndTime() const{ return m_optimizationEndTime; } + inline void SetOptimizationEndTime(const Aws::Utils::DateTime& value) { m_optimizationEndTime = value; } + inline void SetOptimizationEndTime(Aws::Utils::DateTime&& value) { m_optimizationEndTime = std::move(value); } + inline DescribeOptimizationJobResult& WithOptimizationEndTime(const Aws::Utils::DateTime& value) { SetOptimizationEndTime(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationEndTime(Aws::Utils::DateTime&& value) { SetOptimizationEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when you created the optimization job.

    + */ + 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 DescribeOptimizationJobResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline DescribeOptimizationJobResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when the optimization job was last updated.

    + */ + 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 DescribeOptimizationJobResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline DescribeOptimizationJobResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    If the optimization job status is FAILED, the reason for the + * failure.

    + */ + inline const Aws::String& GetFailureReason() const{ return m_failureReason; } + inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } + inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } + inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } + inline DescribeOptimizationJobResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} + inline DescribeOptimizationJobResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} + ///@} + + ///@{ + /** + *

    The name that you assigned to the optimization job.

    + */ + inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; } + inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobName = value; } + inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobName = std::move(value); } + inline void SetOptimizationJobName(const char* value) { m_optimizationJobName.assign(value); } + inline DescribeOptimizationJobResult& WithOptimizationJobName(const Aws::String& value) { SetOptimizationJobName(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationJobName(Aws::String&& value) { SetOptimizationJobName(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;} + ///@} + + ///@{ + /** + *

    The location of the source model to optimize with an optimization job.

    + */ + inline const OptimizationJobModelSource& GetModelSource() const{ return m_modelSource; } + inline void SetModelSource(const OptimizationJobModelSource& value) { m_modelSource = value; } + inline void SetModelSource(OptimizationJobModelSource&& value) { m_modelSource = std::move(value); } + inline DescribeOptimizationJobResult& WithModelSource(const OptimizationJobModelSource& value) { SetModelSource(value); return *this;} + inline DescribeOptimizationJobResult& WithModelSource(OptimizationJobModelSource&& value) { SetModelSource(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The environment variables to set in the model container.

    + */ + inline const Aws::Map& GetOptimizationEnvironment() const{ return m_optimizationEnvironment; } + inline void SetOptimizationEnvironment(const Aws::Map& value) { m_optimizationEnvironment = value; } + inline void SetOptimizationEnvironment(Aws::Map&& value) { m_optimizationEnvironment = std::move(value); } + inline DescribeOptimizationJobResult& WithOptimizationEnvironment(const Aws::Map& value) { SetOptimizationEnvironment(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationEnvironment(Aws::Map&& value) { SetOptimizationEnvironment(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(const Aws::String& key, const Aws::String& value) { m_optimizationEnvironment.emplace(key, value); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(Aws::String&& key, const Aws::String& value) { m_optimizationEnvironment.emplace(std::move(key), value); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(const Aws::String& key, Aws::String&& value) { m_optimizationEnvironment.emplace(key, std::move(value)); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(Aws::String&& key, Aws::String&& value) { m_optimizationEnvironment.emplace(std::move(key), std::move(value)); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(const char* key, Aws::String&& value) { m_optimizationEnvironment.emplace(key, std::move(value)); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(Aws::String&& key, const char* value) { m_optimizationEnvironment.emplace(std::move(key), value); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationEnvironment(const char* key, const char* value) { m_optimizationEnvironment.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The type of instance that hosts the optimized model that you create with the + * optimization job.

    + */ + inline const OptimizationJobDeploymentInstanceType& GetDeploymentInstanceType() const{ return m_deploymentInstanceType; } + inline void SetDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { m_deploymentInstanceType = value; } + inline void SetDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { m_deploymentInstanceType = std::move(value); } + inline DescribeOptimizationJobResult& WithDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { SetDeploymentInstanceType(value); return *this;} + inline DescribeOptimizationJobResult& WithDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { SetDeploymentInstanceType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Settings for each of the optimization techniques that the job applies.

    + */ + inline const Aws::Vector& GetOptimizationConfigs() const{ return m_optimizationConfigs; } + inline void SetOptimizationConfigs(const Aws::Vector& value) { m_optimizationConfigs = value; } + inline void SetOptimizationConfigs(Aws::Vector&& value) { m_optimizationConfigs = std::move(value); } + inline DescribeOptimizationJobResult& WithOptimizationConfigs(const Aws::Vector& value) { SetOptimizationConfigs(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationConfigs(Aws::Vector&& value) { SetOptimizationConfigs(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& AddOptimizationConfigs(const OptimizationConfig& value) { m_optimizationConfigs.push_back(value); return *this; } + inline DescribeOptimizationJobResult& AddOptimizationConfigs(OptimizationConfig&& value) { m_optimizationConfigs.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    Details for where to store the optimized model that you create with the + * optimization job.

    + */ + inline const OptimizationJobOutputConfig& GetOutputConfig() const{ return m_outputConfig; } + inline void SetOutputConfig(const OptimizationJobOutputConfig& value) { m_outputConfig = value; } + inline void SetOutputConfig(OptimizationJobOutputConfig&& value) { m_outputConfig = std::move(value); } + inline DescribeOptimizationJobResult& WithOutputConfig(const OptimizationJobOutputConfig& value) { SetOutputConfig(value); return *this;} + inline DescribeOptimizationJobResult& WithOutputConfig(OptimizationJobOutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Output values produced by an optimization job.

    + */ + inline const OptimizationOutput& GetOptimizationOutput() const{ return m_optimizationOutput; } + inline void SetOptimizationOutput(const OptimizationOutput& value) { m_optimizationOutput = value; } + inline void SetOptimizationOutput(OptimizationOutput&& value) { m_optimizationOutput = std::move(value); } + inline DescribeOptimizationJobResult& WithOptimizationOutput(const OptimizationOutput& value) { SetOptimizationOutput(value); return *this;} + inline DescribeOptimizationJobResult& WithOptimizationOutput(OptimizationOutput&& value) { SetOptimizationOutput(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The ARN of the IAM role that you assigned to the optimization 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 DescribeOptimizationJobResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + inline DescribeOptimizationJobResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + ///@} + + ///@{ + + inline const StoppingCondition& GetStoppingCondition() const{ return m_stoppingCondition; } + inline void SetStoppingCondition(const StoppingCondition& value) { m_stoppingCondition = value; } + inline void SetStoppingCondition(StoppingCondition&& value) { m_stoppingCondition = std::move(value); } + inline DescribeOptimizationJobResult& WithStoppingCondition(const StoppingCondition& value) { SetStoppingCondition(value); return *this;} + inline DescribeOptimizationJobResult& WithStoppingCondition(StoppingCondition&& value) { SetStoppingCondition(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A VPC in Amazon VPC that your optimized model has access to.

    + */ + inline const OptimizationVpcConfig& GetVpcConfig() const{ return m_vpcConfig; } + inline void SetVpcConfig(const OptimizationVpcConfig& value) { m_vpcConfig = value; } + inline void SetVpcConfig(OptimizationVpcConfig&& value) { m_vpcConfig = std::move(value); } + inline DescribeOptimizationJobResult& WithVpcConfig(const OptimizationVpcConfig& value) { SetVpcConfig(value); return *this;} + inline DescribeOptimizationJobResult& WithVpcConfig(OptimizationVpcConfig&& value) { SetVpcConfig(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 DescribeOptimizationJobResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DescribeOptimizationJobResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DescribeOptimizationJobResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_optimizationJobArn; + + OptimizationJobStatus m_optimizationJobStatus; + + Aws::Utils::DateTime m_optimizationStartTime; + + Aws::Utils::DateTime m_optimizationEndTime; + + Aws::Utils::DateTime m_creationTime; + + Aws::Utils::DateTime m_lastModifiedTime; + + Aws::String m_failureReason; + + Aws::String m_optimizationJobName; + + OptimizationJobModelSource m_modelSource; + + Aws::Map m_optimizationEnvironment; + + OptimizationJobDeploymentInstanceType m_deploymentInstanceType; + + Aws::Vector m_optimizationConfigs; + + OptimizationJobOutputConfig m_outputConfig; + + OptimizationOutput m_optimizationOutput; + + Aws::String m_roleArn; + + StoppingCondition m_stoppingCondition; + + OptimizationVpcConfig m_vpcConfig; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettings.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettings.h index 09eed30f3db..5b5fce324c6 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettings.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettings.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -99,6 +100,20 @@ namespace Model inline DomainSettings& WithDockerSettings(const DockerSettings& value) { SetDockerSettings(value); return *this;} inline DomainSettings& WithDockerSettings(DockerSettings&& value) { SetDockerSettings(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    A collection of settings that configure the Amazon Q experience within the + * domain. The AuthMode that you use to create the domain must be + * SSO.

    + */ + inline const AmazonQSettings& GetAmazonQSettings() const{ return m_amazonQSettings; } + inline bool AmazonQSettingsHasBeenSet() const { return m_amazonQSettingsHasBeenSet; } + inline void SetAmazonQSettings(const AmazonQSettings& value) { m_amazonQSettingsHasBeenSet = true; m_amazonQSettings = value; } + inline void SetAmazonQSettings(AmazonQSettings&& value) { m_amazonQSettingsHasBeenSet = true; m_amazonQSettings = std::move(value); } + inline DomainSettings& WithAmazonQSettings(const AmazonQSettings& value) { SetAmazonQSettings(value); return *this;} + inline DomainSettings& WithAmazonQSettings(AmazonQSettings&& value) { SetAmazonQSettings(std::move(value)); return *this;} + ///@} private: Aws::Vector m_securityGroupIds; @@ -112,6 +127,9 @@ namespace Model DockerSettings m_dockerSettings; bool m_dockerSettingsHasBeenSet = false; + + AmazonQSettings m_amazonQSettings; + bool m_amazonQSettingsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettingsForUpdate.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettingsForUpdate.h index 1dadfe2a1d0..19c048776aa 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettingsForUpdate.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/DomainSettingsForUpdate.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -100,6 +101,19 @@ namespace Model inline DomainSettingsForUpdate& WithDockerSettings(const DockerSettings& value) { SetDockerSettings(value); return *this;} inline DomainSettingsForUpdate& WithDockerSettings(DockerSettings&& value) { SetDockerSettings(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    A collection of settings that configure the Amazon Q experience within the + * domain.

    + */ + inline const AmazonQSettings& GetAmazonQSettings() const{ return m_amazonQSettings; } + inline bool AmazonQSettingsHasBeenSet() const { return m_amazonQSettingsHasBeenSet; } + inline void SetAmazonQSettings(const AmazonQSettings& value) { m_amazonQSettingsHasBeenSet = true; m_amazonQSettings = value; } + inline void SetAmazonQSettings(AmazonQSettings&& value) { m_amazonQSettingsHasBeenSet = true; m_amazonQSettings = std::move(value); } + inline DomainSettingsForUpdate& WithAmazonQSettings(const AmazonQSettings& value) { SetAmazonQSettings(value); return *this;} + inline DomainSettingsForUpdate& WithAmazonQSettings(AmazonQSettings&& value) { SetAmazonQSettings(std::move(value)); return *this;} + ///@} private: RStudioServerProDomainSettingsForUpdate m_rStudioServerProDomainSettingsForUpdate; @@ -113,6 +127,9 @@ namespace Model DockerSettings m_dockerSettings; bool m_dockerSettingsHasBeenSet = false; + + AmazonQSettings m_amazonQSettings; + bool m_amazonQSettingsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsRequest.h new file mode 100644 index 00000000000..56acab44a91 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsRequest.h @@ -0,0 +1,226 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + */ + class ListOptimizationJobsRequest : public SageMakerRequest + { + public: + AWS_SAGEMAKER_API ListOptimizationJobsRequest(); + + // 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 "ListOptimizationJobs"; } + + AWS_SAGEMAKER_API Aws::String SerializePayload() const override; + + AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    A token that you use to get the next set of results following a truncated + * response. If the response to the previous request was truncated, that response + * provides the value for this token.

    + */ + 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 ListOptimizationJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListOptimizationJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListOptimizationJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of optimization jobs to return in the response. The + * default is 50.

    + */ + 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 ListOptimizationJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization 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 ListOptimizationJobsRequest& WithCreationTimeAfter(const Aws::Utils::DateTime& value) { SetCreationTimeAfter(value); return *this;} + inline ListOptimizationJobsRequest& WithCreationTimeAfter(Aws::Utils::DateTime&& value) { SetCreationTimeAfter(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization 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 ListOptimizationJobsRequest& WithCreationTimeBefore(const Aws::Utils::DateTime& value) { SetCreationTimeBefore(value); return *this;} + inline ListOptimizationJobsRequest& WithCreationTimeBefore(Aws::Utils::DateTime&& value) { SetCreationTimeBefore(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization jobs that were updated after + * the specified time.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTimeAfter() const{ return m_lastModifiedTimeAfter; } + inline bool LastModifiedTimeAfterHasBeenSet() const { return m_lastModifiedTimeAfterHasBeenSet; } + inline void SetLastModifiedTimeAfter(const Aws::Utils::DateTime& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = value; } + inline void SetLastModifiedTimeAfter(Aws::Utils::DateTime&& value) { m_lastModifiedTimeAfterHasBeenSet = true; m_lastModifiedTimeAfter = std::move(value); } + inline ListOptimizationJobsRequest& WithLastModifiedTimeAfter(const Aws::Utils::DateTime& value) { SetLastModifiedTimeAfter(value); return *this;} + inline ListOptimizationJobsRequest& WithLastModifiedTimeAfter(Aws::Utils::DateTime&& value) { SetLastModifiedTimeAfter(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization jobs that were updated before + * the specified time.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTimeBefore() const{ return m_lastModifiedTimeBefore; } + inline bool LastModifiedTimeBeforeHasBeenSet() const { return m_lastModifiedTimeBeforeHasBeenSet; } + inline void SetLastModifiedTimeBefore(const Aws::Utils::DateTime& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = value; } + inline void SetLastModifiedTimeBefore(Aws::Utils::DateTime&& value) { m_lastModifiedTimeBeforeHasBeenSet = true; m_lastModifiedTimeBefore = std::move(value); } + inline ListOptimizationJobsRequest& WithLastModifiedTimeBefore(const Aws::Utils::DateTime& value) { SetLastModifiedTimeBefore(value); return *this;} + inline ListOptimizationJobsRequest& WithLastModifiedTimeBefore(Aws::Utils::DateTime&& value) { SetLastModifiedTimeBefore(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization jobs that apply the specified + * optimization techniques. You can specify either Quantization or + * Compilation.

    + */ + inline const Aws::String& GetOptimizationContains() const{ return m_optimizationContains; } + inline bool OptimizationContainsHasBeenSet() const { return m_optimizationContainsHasBeenSet; } + inline void SetOptimizationContains(const Aws::String& value) { m_optimizationContainsHasBeenSet = true; m_optimizationContains = value; } + inline void SetOptimizationContains(Aws::String&& value) { m_optimizationContainsHasBeenSet = true; m_optimizationContains = std::move(value); } + inline void SetOptimizationContains(const char* value) { m_optimizationContainsHasBeenSet = true; m_optimizationContains.assign(value); } + inline ListOptimizationJobsRequest& WithOptimizationContains(const Aws::String& value) { SetOptimizationContains(value); return *this;} + inline ListOptimizationJobsRequest& WithOptimizationContains(Aws::String&& value) { SetOptimizationContains(std::move(value)); return *this;} + inline ListOptimizationJobsRequest& WithOptimizationContains(const char* value) { SetOptimizationContains(value); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization jobs with a name that contains + * the specified string.

    + */ + 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 ListOptimizationJobsRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;} + inline ListOptimizationJobsRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;} + inline ListOptimizationJobsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;} + ///@} + + ///@{ + /** + *

    Filters the results to only those optimization jobs with the specified + * status.

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

    The field by which to sort the optimization jobs in the response. The default + * is CreationTime

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

    The sort order for results. The default is Ascending

    + */ + 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 ListOptimizationJobsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} + inline ListOptimizationJobsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::Utils::DateTime m_creationTimeAfter; + bool m_creationTimeAfterHasBeenSet = false; + + Aws::Utils::DateTime m_creationTimeBefore; + bool m_creationTimeBeforeHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTimeAfter; + bool m_lastModifiedTimeAfterHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTimeBefore; + bool m_lastModifiedTimeBeforeHasBeenSet = false; + + Aws::String m_optimizationContains; + bool m_optimizationContainsHasBeenSet = false; + + Aws::String m_nameContains; + bool m_nameContainsHasBeenSet = false; + + OptimizationJobStatus m_statusEquals; + bool m_statusEqualsHasBeenSet = false; + + ListOptimizationJobsSortBy m_sortBy; + bool m_sortByHasBeenSet = false; + + SortOrder m_sortOrder; + bool m_sortOrderHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsResult.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsResult.h new file mode 100644 index 00000000000..e4f442994e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsResult.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 SageMaker +{ +namespace Model +{ + class ListOptimizationJobsResult + { + public: + AWS_SAGEMAKER_API ListOptimizationJobsResult(); + AWS_SAGEMAKER_API ListOptimizationJobsResult(const Aws::AmazonWebServiceResult& result); + AWS_SAGEMAKER_API ListOptimizationJobsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    A list of optimization jobs and their properties that matches any of the + * filters you specified in the request.

    + */ + inline const Aws::Vector& GetOptimizationJobSummaries() const{ return m_optimizationJobSummaries; } + inline void SetOptimizationJobSummaries(const Aws::Vector& value) { m_optimizationJobSummaries = value; } + inline void SetOptimizationJobSummaries(Aws::Vector&& value) { m_optimizationJobSummaries = std::move(value); } + inline ListOptimizationJobsResult& WithOptimizationJobSummaries(const Aws::Vector& value) { SetOptimizationJobSummaries(value); return *this;} + inline ListOptimizationJobsResult& WithOptimizationJobSummaries(Aws::Vector&& value) { SetOptimizationJobSummaries(std::move(value)); return *this;} + inline ListOptimizationJobsResult& AddOptimizationJobSummaries(const OptimizationJobSummary& value) { m_optimizationJobSummaries.push_back(value); return *this; } + inline ListOptimizationJobsResult& AddOptimizationJobSummaries(OptimizationJobSummary&& value) { m_optimizationJobSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token to use in a subsequent request to get the next set of results + * following a truncated response.

    + */ + 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 ListOptimizationJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListOptimizationJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListOptimizationJobsResult& WithNextToken(const char* value) { SetNextToken(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 ListOptimizationJobsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListOptimizationJobsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListOptimizationJobsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_optimizationJobSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsSortBy.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsSortBy.h new file mode 100644 index 00000000000..da0714f92b3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListOptimizationJobsSortBy.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 SageMaker +{ +namespace Model +{ + enum class ListOptimizationJobsSortBy + { + NOT_SET, + Name, + CreationTime, + Status + }; + +namespace ListOptimizationJobsSortByMapper +{ +AWS_SAGEMAKER_API ListOptimizationJobsSortBy GetListOptimizationJobsSortByForName(const Aws::String& name); + +AWS_SAGEMAKER_API Aws::String GetNameForListOptimizationJobsSortBy(ListOptimizationJobsSortBy value); +} // namespace ListOptimizationJobsSortByMapper +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ModelCompilationConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ModelCompilationConfig.h new file mode 100644 index 00000000000..271cab6a6f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ModelCompilationConfig.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    Settings for the model compilation technique that's applied by a model + * optimization job.

    See Also:

    AWS + * API Reference

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

    The URI of an LMI DLC in Amazon ECR. SageMaker uses this image to run the + * optimization.

    + */ + inline const Aws::String& GetImage() const{ return m_image; } + inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } + inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } + inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } + inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } + inline ModelCompilationConfig& WithImage(const Aws::String& value) { SetImage(value); return *this;} + inline ModelCompilationConfig& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} + inline ModelCompilationConfig& WithImage(const char* value) { SetImage(value); return *this;} + ///@} + + ///@{ + /** + *

    Environment variables that override the default ones in the model + * container.

    + */ + inline const Aws::Map& GetOverrideEnvironment() const{ return m_overrideEnvironment; } + inline bool OverrideEnvironmentHasBeenSet() const { return m_overrideEnvironmentHasBeenSet; } + inline void SetOverrideEnvironment(const Aws::Map& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment = value; } + inline void SetOverrideEnvironment(Aws::Map&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment = std::move(value); } + inline ModelCompilationConfig& WithOverrideEnvironment(const Aws::Map& value) { SetOverrideEnvironment(value); return *this;} + inline ModelCompilationConfig& WithOverrideEnvironment(Aws::Map&& value) { SetOverrideEnvironment(std::move(value)); return *this;} + inline ModelCompilationConfig& AddOverrideEnvironment(const Aws::String& key, const Aws::String& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, value); return *this; } + inline ModelCompilationConfig& AddOverrideEnvironment(Aws::String&& key, const Aws::String& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(std::move(key), value); return *this; } + inline ModelCompilationConfig& AddOverrideEnvironment(const Aws::String& key, Aws::String&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, std::move(value)); return *this; } + inline ModelCompilationConfig& AddOverrideEnvironment(Aws::String&& key, Aws::String&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(std::move(key), std::move(value)); return *this; } + inline ModelCompilationConfig& AddOverrideEnvironment(const char* key, Aws::String&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, std::move(value)); return *this; } + inline ModelCompilationConfig& AddOverrideEnvironment(Aws::String&& key, const char* value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(std::move(key), value); return *this; } + inline ModelCompilationConfig& AddOverrideEnvironment(const char* key, const char* value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_image; + bool m_imageHasBeenSet = false; + + Aws::Map m_overrideEnvironment; + bool m_overrideEnvironmentHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ModelQuantizationConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ModelQuantizationConfig.h new file mode 100644 index 00000000000..73af5d2bf77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ModelQuantizationConfig.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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    Settings for the model quantization technique that's applied by a model + * optimization job.

    See Also:

    AWS + * API Reference

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

    The URI of an LMI DLC in Amazon ECR. SageMaker uses this image to run the + * optimization.

    + */ + inline const Aws::String& GetImage() const{ return m_image; } + inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } + inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } + inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } + inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } + inline ModelQuantizationConfig& WithImage(const Aws::String& value) { SetImage(value); return *this;} + inline ModelQuantizationConfig& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} + inline ModelQuantizationConfig& WithImage(const char* value) { SetImage(value); return *this;} + ///@} + + ///@{ + /** + *

    Environment variables that override the default ones in the model + * container.

    + */ + inline const Aws::Map& GetOverrideEnvironment() const{ return m_overrideEnvironment; } + inline bool OverrideEnvironmentHasBeenSet() const { return m_overrideEnvironmentHasBeenSet; } + inline void SetOverrideEnvironment(const Aws::Map& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment = value; } + inline void SetOverrideEnvironment(Aws::Map&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment = std::move(value); } + inline ModelQuantizationConfig& WithOverrideEnvironment(const Aws::Map& value) { SetOverrideEnvironment(value); return *this;} + inline ModelQuantizationConfig& WithOverrideEnvironment(Aws::Map&& value) { SetOverrideEnvironment(std::move(value)); return *this;} + inline ModelQuantizationConfig& AddOverrideEnvironment(const Aws::String& key, const Aws::String& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, value); return *this; } + inline ModelQuantizationConfig& AddOverrideEnvironment(Aws::String&& key, const Aws::String& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(std::move(key), value); return *this; } + inline ModelQuantizationConfig& AddOverrideEnvironment(const Aws::String& key, Aws::String&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, std::move(value)); return *this; } + inline ModelQuantizationConfig& AddOverrideEnvironment(Aws::String&& key, Aws::String&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(std::move(key), std::move(value)); return *this; } + inline ModelQuantizationConfig& AddOverrideEnvironment(const char* key, Aws::String&& value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, std::move(value)); return *this; } + inline ModelQuantizationConfig& AddOverrideEnvironment(Aws::String&& key, const char* value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(std::move(key), value); return *this; } + inline ModelQuantizationConfig& AddOverrideEnvironment(const char* key, const char* value) { m_overrideEnvironmentHasBeenSet = true; m_overrideEnvironment.emplace(key, value); return *this; } + ///@} + private: + + Aws::String m_image; + bool m_imageHasBeenSet = false; + + Aws::Map m_overrideEnvironment; + bool m_overrideEnvironmentHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationConfig.h new file mode 100644 index 00000000000..0f943f34fc9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationConfig.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 SageMaker +{ +namespace Model +{ + + /** + *

    Settings for an optimization technique that you apply with a model + * optimization job.

    See Also:

    AWS + * API Reference

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

    Settings for the model quantization technique that's applied by a model + * optimization job.

    + */ + inline const ModelQuantizationConfig& GetModelQuantizationConfig() const{ return m_modelQuantizationConfig; } + inline bool ModelQuantizationConfigHasBeenSet() const { return m_modelQuantizationConfigHasBeenSet; } + inline void SetModelQuantizationConfig(const ModelQuantizationConfig& value) { m_modelQuantizationConfigHasBeenSet = true; m_modelQuantizationConfig = value; } + inline void SetModelQuantizationConfig(ModelQuantizationConfig&& value) { m_modelQuantizationConfigHasBeenSet = true; m_modelQuantizationConfig = std::move(value); } + inline OptimizationConfig& WithModelQuantizationConfig(const ModelQuantizationConfig& value) { SetModelQuantizationConfig(value); return *this;} + inline OptimizationConfig& WithModelQuantizationConfig(ModelQuantizationConfig&& value) { SetModelQuantizationConfig(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Settings for the model compilation technique that's applied by a model + * optimization job.

    + */ + inline const ModelCompilationConfig& GetModelCompilationConfig() const{ return m_modelCompilationConfig; } + inline bool ModelCompilationConfigHasBeenSet() const { return m_modelCompilationConfigHasBeenSet; } + inline void SetModelCompilationConfig(const ModelCompilationConfig& value) { m_modelCompilationConfigHasBeenSet = true; m_modelCompilationConfig = value; } + inline void SetModelCompilationConfig(ModelCompilationConfig&& value) { m_modelCompilationConfigHasBeenSet = true; m_modelCompilationConfig = std::move(value); } + inline OptimizationConfig& WithModelCompilationConfig(const ModelCompilationConfig& value) { SetModelCompilationConfig(value); return *this;} + inline OptimizationConfig& WithModelCompilationConfig(ModelCompilationConfig&& value) { SetModelCompilationConfig(std::move(value)); return *this;} + ///@} + private: + + ModelQuantizationConfig m_modelQuantizationConfig; + bool m_modelQuantizationConfigHasBeenSet = false; + + ModelCompilationConfig m_modelCompilationConfig; + bool m_modelCompilationConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobDeploymentInstanceType.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobDeploymentInstanceType.h new file mode 100644 index 00000000000..1bd6dfd2c67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobDeploymentInstanceType.h @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + enum class OptimizationJobDeploymentInstanceType + { + NOT_SET, + ml_p4d_24xlarge, + ml_p4de_24xlarge, + ml_p5_48xlarge, + ml_g5_xlarge, + ml_g5_2xlarge, + ml_g5_4xlarge, + ml_g5_8xlarge, + ml_g5_12xlarge, + ml_g5_16xlarge, + ml_g5_24xlarge, + ml_g5_48xlarge, + ml_g6_xlarge, + ml_g6_2xlarge, + ml_g6_4xlarge, + ml_g6_8xlarge, + ml_g6_12xlarge, + ml_g6_16xlarge, + ml_g6_24xlarge, + ml_g6_48xlarge, + ml_inf2_xlarge, + ml_inf2_8xlarge, + ml_inf2_24xlarge, + ml_inf2_48xlarge, + ml_trn1_2xlarge, + ml_trn1_32xlarge, + ml_trn1n_32xlarge + }; + +namespace OptimizationJobDeploymentInstanceTypeMapper +{ +AWS_SAGEMAKER_API OptimizationJobDeploymentInstanceType GetOptimizationJobDeploymentInstanceTypeForName(const Aws::String& name); + +AWS_SAGEMAKER_API Aws::String GetNameForOptimizationJobDeploymentInstanceType(OptimizationJobDeploymentInstanceType value); +} // namespace OptimizationJobDeploymentInstanceTypeMapper +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobModelSource.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobModelSource.h new file mode 100644 index 00000000000..6d46865bd1a --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobModelSource.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 SageMaker +{ +namespace Model +{ + + /** + *

    The location of the source model to optimize with an optimization + * job.

    See Also:

    AWS + * API Reference

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

    The Amazon S3 location of a source model to optimize with an optimization + * job.

    + */ + inline const OptimizationJobModelSourceS3& GetS3() const{ return m_s3; } + inline bool S3HasBeenSet() const { return m_s3HasBeenSet; } + inline void SetS3(const OptimizationJobModelSourceS3& value) { m_s3HasBeenSet = true; m_s3 = value; } + inline void SetS3(OptimizationJobModelSourceS3&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); } + inline OptimizationJobModelSource& WithS3(const OptimizationJobModelSourceS3& value) { SetS3(value); return *this;} + inline OptimizationJobModelSource& WithS3(OptimizationJobModelSourceS3&& value) { SetS3(std::move(value)); return *this;} + ///@} + private: + + OptimizationJobModelSourceS3 m_s3; + bool m_s3HasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobModelSourceS3.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobModelSourceS3.h new file mode 100644 index 00000000000..7f12e26de7b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobModelSourceS3.h @@ -0,0 +1,80 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The Amazon S3 location of a source model to optimize with an optimization + * job.

    See Also:

    AWS + * API Reference

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

    An Amazon S3 URI that locates a source model to optimize with an optimization + * job.

    + */ + 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 OptimizationJobModelSourceS3& WithS3Uri(const Aws::String& value) { SetS3Uri(value); return *this;} + inline OptimizationJobModelSourceS3& WithS3Uri(Aws::String&& value) { SetS3Uri(std::move(value)); return *this;} + inline OptimizationJobModelSourceS3& WithS3Uri(const char* value) { SetS3Uri(value); return *this;} + ///@} + + ///@{ + /** + *

    The access configuration settings for the source ML model for an optimization + * job, where you can accept the model end-user license agreement (EULA).

    + */ + inline const OptimizationModelAccessConfig& GetModelAccessConfig() const{ return m_modelAccessConfig; } + inline bool ModelAccessConfigHasBeenSet() const { return m_modelAccessConfigHasBeenSet; } + inline void SetModelAccessConfig(const OptimizationModelAccessConfig& value) { m_modelAccessConfigHasBeenSet = true; m_modelAccessConfig = value; } + inline void SetModelAccessConfig(OptimizationModelAccessConfig&& value) { m_modelAccessConfigHasBeenSet = true; m_modelAccessConfig = std::move(value); } + inline OptimizationJobModelSourceS3& WithModelAccessConfig(const OptimizationModelAccessConfig& value) { SetModelAccessConfig(value); return *this;} + inline OptimizationJobModelSourceS3& WithModelAccessConfig(OptimizationModelAccessConfig&& value) { SetModelAccessConfig(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_s3Uri; + bool m_s3UriHasBeenSet = false; + + OptimizationModelAccessConfig m_modelAccessConfig; + bool m_modelAccessConfigHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobOutputConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobOutputConfig.h new file mode 100644 index 00000000000..cde06a48f57 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobOutputConfig.h @@ -0,0 +1,82 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    Details for where to store the optimized model that you create with the + * optimization job.

    See Also:

    AWS + * API Reference

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

    The Amazon Resource Name (ARN) of a key in Amazon Web Services KMS. SageMaker + * uses they key to encrypt the artifacts of the optimized model when SageMaker + * uploads the model to Amazon S3.

    + */ + inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } + inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } + inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } + inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } + inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } + inline OptimizationJobOutputConfig& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} + inline OptimizationJobOutputConfig& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} + inline OptimizationJobOutputConfig& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon S3 URI for where to store the optimized model that you create with + * an optimization job.

    + */ + inline const Aws::String& GetS3OutputLocation() const{ return m_s3OutputLocation; } + inline bool S3OutputLocationHasBeenSet() const { return m_s3OutputLocationHasBeenSet; } + inline void SetS3OutputLocation(const Aws::String& value) { m_s3OutputLocationHasBeenSet = true; m_s3OutputLocation = value; } + inline void SetS3OutputLocation(Aws::String&& value) { m_s3OutputLocationHasBeenSet = true; m_s3OutputLocation = std::move(value); } + inline void SetS3OutputLocation(const char* value) { m_s3OutputLocationHasBeenSet = true; m_s3OutputLocation.assign(value); } + inline OptimizationJobOutputConfig& WithS3OutputLocation(const Aws::String& value) { SetS3OutputLocation(value); return *this;} + inline OptimizationJobOutputConfig& WithS3OutputLocation(Aws::String&& value) { SetS3OutputLocation(std::move(value)); return *this;} + inline OptimizationJobOutputConfig& WithS3OutputLocation(const char* value) { SetS3OutputLocation(value); return *this;} + ///@} + private: + + Aws::String m_kmsKeyId; + bool m_kmsKeyIdHasBeenSet = false; + + Aws::String m_s3OutputLocation; + bool m_s3OutputLocationHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobStatus.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobStatus.h new file mode 100644 index 00000000000..b149e7b4df4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobStatus.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + enum class OptimizationJobStatus + { + NOT_SET, + INPROGRESS, + COMPLETED, + FAILED, + STARTING, + STOPPING, + STOPPED + }; + +namespace OptimizationJobStatusMapper +{ +AWS_SAGEMAKER_API OptimizationJobStatus GetOptimizationJobStatusForName(const Aws::String& name); + +AWS_SAGEMAKER_API Aws::String GetNameForOptimizationJobStatus(OptimizationJobStatus value); +} // namespace OptimizationJobStatusMapper +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobSummary.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobSummary.h new file mode 100644 index 00000000000..ef3adc6770c --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationJobSummary.h @@ -0,0 +1,192 @@ +/** + * 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 Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace SageMaker +{ +namespace Model +{ + + /** + *

    Summarizes an optimization job by providing some of its key + * properties.

    See Also:

    AWS + * API Reference

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

    The name that you assigned to the optimization job.

    + */ + inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; } + inline bool OptimizationJobNameHasBeenSet() const { return m_optimizationJobNameHasBeenSet; } + inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = value; } + inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = std::move(value); } + inline void SetOptimizationJobName(const char* value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName.assign(value); } + inline OptimizationJobSummary& WithOptimizationJobName(const Aws::String& value) { SetOptimizationJobName(value); return *this;} + inline OptimizationJobSummary& WithOptimizationJobName(Aws::String&& value) { SetOptimizationJobName(std::move(value)); return *this;} + inline OptimizationJobSummary& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;} + ///@} + + ///@{ + /** + *

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

    + */ + inline const Aws::String& GetOptimizationJobArn() const{ return m_optimizationJobArn; } + inline bool OptimizationJobArnHasBeenSet() const { return m_optimizationJobArnHasBeenSet; } + inline void SetOptimizationJobArn(const Aws::String& value) { m_optimizationJobArnHasBeenSet = true; m_optimizationJobArn = value; } + inline void SetOptimizationJobArn(Aws::String&& value) { m_optimizationJobArnHasBeenSet = true; m_optimizationJobArn = std::move(value); } + inline void SetOptimizationJobArn(const char* value) { m_optimizationJobArnHasBeenSet = true; m_optimizationJobArn.assign(value); } + inline OptimizationJobSummary& WithOptimizationJobArn(const Aws::String& value) { SetOptimizationJobArn(value); return *this;} + inline OptimizationJobSummary& WithOptimizationJobArn(Aws::String&& value) { SetOptimizationJobArn(std::move(value)); return *this;} + inline OptimizationJobSummary& WithOptimizationJobArn(const char* value) { SetOptimizationJobArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The time when you created the optimization job.

    + */ + 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 OptimizationJobSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} + inline OptimizationJobSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The current status of the optimization job.

    + */ + inline const OptimizationJobStatus& GetOptimizationJobStatus() const{ return m_optimizationJobStatus; } + inline bool OptimizationJobStatusHasBeenSet() const { return m_optimizationJobStatusHasBeenSet; } + inline void SetOptimizationJobStatus(const OptimizationJobStatus& value) { m_optimizationJobStatusHasBeenSet = true; m_optimizationJobStatus = value; } + inline void SetOptimizationJobStatus(OptimizationJobStatus&& value) { m_optimizationJobStatusHasBeenSet = true; m_optimizationJobStatus = std::move(value); } + inline OptimizationJobSummary& WithOptimizationJobStatus(const OptimizationJobStatus& value) { SetOptimizationJobStatus(value); return *this;} + inline OptimizationJobSummary& WithOptimizationJobStatus(OptimizationJobStatus&& value) { SetOptimizationJobStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when the optimization job started.

    + */ + inline const Aws::Utils::DateTime& GetOptimizationStartTime() const{ return m_optimizationStartTime; } + inline bool OptimizationStartTimeHasBeenSet() const { return m_optimizationStartTimeHasBeenSet; } + inline void SetOptimizationStartTime(const Aws::Utils::DateTime& value) { m_optimizationStartTimeHasBeenSet = true; m_optimizationStartTime = value; } + inline void SetOptimizationStartTime(Aws::Utils::DateTime&& value) { m_optimizationStartTimeHasBeenSet = true; m_optimizationStartTime = std::move(value); } + inline OptimizationJobSummary& WithOptimizationStartTime(const Aws::Utils::DateTime& value) { SetOptimizationStartTime(value); return *this;} + inline OptimizationJobSummary& WithOptimizationStartTime(Aws::Utils::DateTime&& value) { SetOptimizationStartTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when the optimization job finished processing.

    + */ + inline const Aws::Utils::DateTime& GetOptimizationEndTime() const{ return m_optimizationEndTime; } + inline bool OptimizationEndTimeHasBeenSet() const { return m_optimizationEndTimeHasBeenSet; } + inline void SetOptimizationEndTime(const Aws::Utils::DateTime& value) { m_optimizationEndTimeHasBeenSet = true; m_optimizationEndTime = value; } + inline void SetOptimizationEndTime(Aws::Utils::DateTime&& value) { m_optimizationEndTimeHasBeenSet = true; m_optimizationEndTime = std::move(value); } + inline OptimizationJobSummary& WithOptimizationEndTime(const Aws::Utils::DateTime& value) { SetOptimizationEndTime(value); return *this;} + inline OptimizationJobSummary& WithOptimizationEndTime(Aws::Utils::DateTime&& value) { SetOptimizationEndTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The time when the optimization job was last updated.

    + */ + 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 OptimizationJobSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} + inline OptimizationJobSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of instance that hosts the optimized model that you create with the + * optimization job.

    + */ + inline const OptimizationJobDeploymentInstanceType& GetDeploymentInstanceType() const{ return m_deploymentInstanceType; } + inline bool DeploymentInstanceTypeHasBeenSet() const { return m_deploymentInstanceTypeHasBeenSet; } + inline void SetDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { m_deploymentInstanceTypeHasBeenSet = true; m_deploymentInstanceType = value; } + inline void SetDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { m_deploymentInstanceTypeHasBeenSet = true; m_deploymentInstanceType = std::move(value); } + inline OptimizationJobSummary& WithDeploymentInstanceType(const OptimizationJobDeploymentInstanceType& value) { SetDeploymentInstanceType(value); return *this;} + inline OptimizationJobSummary& WithDeploymentInstanceType(OptimizationJobDeploymentInstanceType&& value) { SetDeploymentInstanceType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The optimization techniques that are applied by the optimization job.

    + */ + inline const Aws::Vector& GetOptimizationTypes() const{ return m_optimizationTypes; } + inline bool OptimizationTypesHasBeenSet() const { return m_optimizationTypesHasBeenSet; } + inline void SetOptimizationTypes(const Aws::Vector& value) { m_optimizationTypesHasBeenSet = true; m_optimizationTypes = value; } + inline void SetOptimizationTypes(Aws::Vector&& value) { m_optimizationTypesHasBeenSet = true; m_optimizationTypes = std::move(value); } + inline OptimizationJobSummary& WithOptimizationTypes(const Aws::Vector& value) { SetOptimizationTypes(value); return *this;} + inline OptimizationJobSummary& WithOptimizationTypes(Aws::Vector&& value) { SetOptimizationTypes(std::move(value)); return *this;} + inline OptimizationJobSummary& AddOptimizationTypes(const Aws::String& value) { m_optimizationTypesHasBeenSet = true; m_optimizationTypes.push_back(value); return *this; } + inline OptimizationJobSummary& AddOptimizationTypes(Aws::String&& value) { m_optimizationTypesHasBeenSet = true; m_optimizationTypes.push_back(std::move(value)); return *this; } + inline OptimizationJobSummary& AddOptimizationTypes(const char* value) { m_optimizationTypesHasBeenSet = true; m_optimizationTypes.push_back(value); return *this; } + ///@} + private: + + Aws::String m_optimizationJobName; + bool m_optimizationJobNameHasBeenSet = false; + + Aws::String m_optimizationJobArn; + bool m_optimizationJobArnHasBeenSet = false; + + Aws::Utils::DateTime m_creationTime; + bool m_creationTimeHasBeenSet = false; + + OptimizationJobStatus m_optimizationJobStatus; + bool m_optimizationJobStatusHasBeenSet = false; + + Aws::Utils::DateTime m_optimizationStartTime; + bool m_optimizationStartTimeHasBeenSet = false; + + Aws::Utils::DateTime m_optimizationEndTime; + bool m_optimizationEndTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastModifiedTime; + bool m_lastModifiedTimeHasBeenSet = false; + + OptimizationJobDeploymentInstanceType m_deploymentInstanceType; + bool m_deploymentInstanceTypeHasBeenSet = false; + + Aws::Vector m_optimizationTypes; + bool m_optimizationTypesHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationModelAccessConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationModelAccessConfig.h new file mode 100644 index 00000000000..a6475a664fa --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationModelAccessConfig.h @@ -0,0 +1,61 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    The access configuration settings for the source ML model for an optimization + * job, where you can accept the model end-user license agreement + * (EULA).

    See Also:

    AWS + * API Reference

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

    Specifies agreement to the model end-user license agreement (EULA). The + * AcceptEula value must be explicitly defined as True in + * order to accept the EULA that this model requires. You are responsible for + * reviewing and complying with any applicable license terms and making sure they + * are acceptable for your use case before downloading or using a model.

    + */ + inline bool GetAcceptEula() const{ return m_acceptEula; } + inline bool AcceptEulaHasBeenSet() const { return m_acceptEulaHasBeenSet; } + inline void SetAcceptEula(bool value) { m_acceptEulaHasBeenSet = true; m_acceptEula = value; } + inline OptimizationModelAccessConfig& WithAcceptEula(bool value) { SetAcceptEula(value); return *this;} + ///@} + private: + + bool m_acceptEula; + bool m_acceptEulaHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationOutput.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationOutput.h new file mode 100644 index 00000000000..5de2b4a2686 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationOutput.h @@ -0,0 +1,62 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    Output values produced by an optimization job.

    See Also:

    AWS + * API Reference

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

    The image that SageMaker recommends that you use to host the optimized model + * that you created with an optimization job.

    + */ + inline const Aws::String& GetRecommendedInferenceImage() const{ return m_recommendedInferenceImage; } + inline bool RecommendedInferenceImageHasBeenSet() const { return m_recommendedInferenceImageHasBeenSet; } + inline void SetRecommendedInferenceImage(const Aws::String& value) { m_recommendedInferenceImageHasBeenSet = true; m_recommendedInferenceImage = value; } + inline void SetRecommendedInferenceImage(Aws::String&& value) { m_recommendedInferenceImageHasBeenSet = true; m_recommendedInferenceImage = std::move(value); } + inline void SetRecommendedInferenceImage(const char* value) { m_recommendedInferenceImageHasBeenSet = true; m_recommendedInferenceImage.assign(value); } + inline OptimizationOutput& WithRecommendedInferenceImage(const Aws::String& value) { SetRecommendedInferenceImage(value); return *this;} + inline OptimizationOutput& WithRecommendedInferenceImage(Aws::String&& value) { SetRecommendedInferenceImage(std::move(value)); return *this;} + inline OptimizationOutput& WithRecommendedInferenceImage(const char* value) { SetRecommendedInferenceImage(value); return *this;} + ///@} + private: + + Aws::String m_recommendedInferenceImage; + bool m_recommendedInferenceImageHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationVpcConfig.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationVpcConfig.h new file mode 100644 index 00000000000..3d60e73a368 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/OptimizationVpcConfig.h @@ -0,0 +1,89 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + + /** + *

    A VPC in Amazon VPC that's accessible to an optimized that you create with an + * optimization job. You can control access to and from your resources by + * configuring a VPC. For more information, see Give + * SageMaker Access to Resources in your Amazon VPC.

    See Also:

    + * AWS + * API Reference

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

    The VPC security group IDs, in the form sg-xxxxxxxx. Specify the + * security groups for the VPC that is specified in the Subnets + * field.

    + */ + inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } + inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } + inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } + inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } + inline OptimizationVpcConfig& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} + inline OptimizationVpcConfig& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} + inline OptimizationVpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } + inline OptimizationVpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } + inline OptimizationVpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The ID of the subnets in the VPC to which you want to connect your optimized + * model.

    + */ + inline const Aws::Vector& GetSubnets() const{ return m_subnets; } + inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; } + inline void SetSubnets(const Aws::Vector& value) { m_subnetsHasBeenSet = true; m_subnets = value; } + inline void SetSubnets(Aws::Vector&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); } + inline OptimizationVpcConfig& WithSubnets(const Aws::Vector& value) { SetSubnets(value); return *this;} + inline OptimizationVpcConfig& WithSubnets(Aws::Vector&& value) { SetSubnets(std::move(value)); return *this;} + inline OptimizationVpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } + inline OptimizationVpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; } + inline OptimizationVpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; } + ///@} + private: + + Aws::Vector m_securityGroupIds; + bool m_securityGroupIdsHasBeenSet = false; + + Aws::Vector m_subnets; + bool m_subnetsHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StopOptimizationJobRequest.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StopOptimizationJobRequest.h new file mode 100644 index 00000000000..72fdbaffc49 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StopOptimizationJobRequest.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 + +namespace Aws +{ +namespace SageMaker +{ +namespace Model +{ + + /** + */ + class StopOptimizationJobRequest : public SageMakerRequest + { + public: + AWS_SAGEMAKER_API StopOptimizationJobRequest(); + + // 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 "StopOptimizationJob"; } + + AWS_SAGEMAKER_API Aws::String SerializePayload() const override; + + AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + ///@{ + /** + *

    The name that you assigned to the optimization job.

    + */ + inline const Aws::String& GetOptimizationJobName() const{ return m_optimizationJobName; } + inline bool OptimizationJobNameHasBeenSet() const { return m_optimizationJobNameHasBeenSet; } + inline void SetOptimizationJobName(const Aws::String& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = value; } + inline void SetOptimizationJobName(Aws::String&& value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName = std::move(value); } + inline void SetOptimizationJobName(const char* value) { m_optimizationJobNameHasBeenSet = true; m_optimizationJobName.assign(value); } + inline StopOptimizationJobRequest& WithOptimizationJobName(const Aws::String& value) { SetOptimizationJobName(value); return *this;} + inline StopOptimizationJobRequest& WithOptimizationJobName(Aws::String&& value) { SetOptimizationJobName(std::move(value)); return *this;} + inline StopOptimizationJobRequest& WithOptimizationJobName(const char* value) { SetOptimizationJobName(value); return *this;} + ///@} + private: + + Aws::String m_optimizationJobName; + bool m_optimizationJobNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StoppingCondition.h b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StoppingCondition.h index 2ae781be62d..6cfb264d351 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StoppingCondition.h +++ b/generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/StoppingCondition.h @@ -22,22 +22,21 @@ namespace Model { /** - *

    Specifies a limit to how long a model training job or model compilation job - * can run. It also specifies how long a managed spot training job has to complete. - * When the job reaches the time limit, SageMaker ends the training or compilation - * job. Use this API to cap model training costs.

    To stop a training job, - * SageMaker sends the algorithm the SIGTERM signal, which delays job - * termination for 120 seconds. Algorithms can use this 120-second window to save - * the model artifacts, so the results of training are not lost.

    The - * training algorithms provided by SageMaker automatically save the intermediate - * results of a model training job when possible. This attempt to save artifacts is - * only a best effort case as model might not be in a state from which it can be - * saved. For example, if training has just started, the model might not be ready - * to save. When saved, this intermediate data is a valid model artifact. You can - * use it to create a model with CreateModel.

    The Neural - * Topic Model (NTM) currently does not support saving intermediate model - * artifacts. When training NTMs, make sure that the maximum runtime is sufficient - * for the training job to complete.

    See Also:

    Specifies a limit to how long a job can run. When the job reaches the time + * limit, SageMaker ends the job. Use this API to cap costs.

    To stop a + * training job, SageMaker sends the algorithm the SIGTERM signal, + * which delays job termination for 120 seconds. Algorithms can use this 120-second + * window to save the model artifacts, so the results of training are not lost. + *

    The training algorithms provided by SageMaker automatically save the + * intermediate results of a model training job when possible. This attempt to save + * artifacts is only a best effort case as model might not be in a state from which + * it can be saved. For example, if training has just started, the model might not + * be ready to save. When saved, this intermediate data is a valid model artifact. + * You can use it to create a model with CreateModel.

    + *

    The Neural Topic Model (NTM) currently does not support saving intermediate + * model artifacts. When training NTMs, make sure that the maximum runtime is + * sufficient for the training job to complete.

    See Also:

    + *
    AWS * API Reference

    */ diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp index 8629443f1a8..8dbe45176d2 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -89,7 +90,6 @@ #include #include #include -#include #include #include #include @@ -314,6 +314,32 @@ CreateHyperParameterTuningJobOutcome SageMakerClient::CreateHyperParameterTuning {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +CreateOptimizationJobOutcome SageMakerClient::CreateOptimizationJob(const CreateOptimizationJobRequest& request) const +{ + AWS_OPERATION_GUARD(CreateOptimizationJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateOptimizationJob", + {{ 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( + [&]()-> CreateOptimizationJobOutcome { + 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, CreateOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateOptimizationJobOutcome(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()}}); +} + CreateModelPackageOutcome SageMakerClient::CreateModelPackage(const CreateModelPackageRequest& request) const { AWS_OPERATION_GUARD(CreateModelPackage); @@ -2030,32 +2056,6 @@ CreateAutoMLJobV2Outcome SageMakerClient::CreateAutoMLJobV2(const CreateAutoMLJo {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DeleteModelPackageGroupPolicyOutcome SageMakerClient::DeleteModelPackageGroupPolicy(const DeleteModelPackageGroupPolicyRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteModelPackageGroupPolicy); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteModelPackageGroupPolicy", - {{ 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( - [&]()-> DeleteModelPackageGroupPolicyOutcome { - 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, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DeleteModelPackageGroupPolicyOutcome(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()}}); -} - CreateAutoMLJobOutcome SageMakerClient::CreateAutoMLJob(const CreateAutoMLJobRequest& request) const { AWS_OPERATION_GUARD(CreateAutoMLJob); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp index 101d17b905c..cbec9fcf612 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient1.cpp @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -34,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -60,11 +60,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include @@ -79,6 +79,7 @@ #include #include #include +#include #include #include #include @@ -86,7 +87,6 @@ #include #include #include -#include #include #include #include @@ -266,32 +266,6 @@ DescribePipelineExecutionOutcome SageMakerClient::DescribePipelineExecution(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCodeRepositoriesOutcome SageMakerClient::ListCodeRepositories(const ListCodeRepositoriesRequest& request) const -{ - AWS_OPERATION_GUARD(ListCodeRepositories); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCodeRepositories", - {{ 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( - [&]()-> ListCodeRepositoriesOutcome { - 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, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListCodeRepositoriesOutcome(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()}}); -} - DescribeModelPackageOutcome SageMakerClient::DescribeModelPackage(const DescribeModelPackageRequest& request) const { AWS_OPERATION_GUARD(DescribeModelPackage); @@ -474,6 +448,32 @@ DescribeUserProfileOutcome SageMakerClient::DescribeUserProfile(const DescribeUs {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeOptimizationJobOutcome SageMakerClient::DescribeOptimizationJob(const DescribeOptimizationJobRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeOptimizationJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeOptimizationJob", + {{ 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( + [&]()-> DescribeOptimizationJobOutcome { + 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, DescribeOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DescribeOptimizationJobOutcome(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()}}); +} + DescribeTransformJobOutcome SageMakerClient::DescribeTransformJob(const DescribeTransformJobRequest& request) const { AWS_OPERATION_GUARD(DescribeTransformJob); @@ -1150,32 +1150,6 @@ DescribeDataQualityJobDefinitionOutcome SageMakerClient::DescribeDataQualityJobD {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListClustersOutcome SageMakerClient::ListClusters(const ListClustersRequest& request) const -{ - AWS_OPERATION_GUARD(ListClusters); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListClusters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListClusters, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListClusters, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListClusters", - {{ 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( - [&]()-> ListClustersOutcome { - 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, ListClusters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListClustersOutcome(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()}}); -} - DescribeAlgorithmOutcome SageMakerClient::DescribeAlgorithm(const DescribeAlgorithmRequest& request) const { AWS_OPERATION_GUARD(DescribeAlgorithm); @@ -1280,6 +1254,32 @@ DescribeHyperParameterTuningJobOutcome SageMakerClient::DescribeHyperParameterTu {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteOptimizationJobOutcome SageMakerClient::DeleteOptimizationJob(const DeleteOptimizationJobRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteOptimizationJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteOptimizationJob", + {{ 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( + [&]()-> DeleteOptimizationJobOutcome { + 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, DeleteOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteOptimizationJobOutcome(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()}}); +} + DescribeWorkteamOutcome SageMakerClient::DescribeWorkteam(const DescribeWorkteamRequest& request) const { AWS_OPERATION_GUARD(DescribeWorkteam); @@ -1644,6 +1644,32 @@ DescribeDomainOutcome SageMakerClient::DescribeDomain(const DescribeDomainReques {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteModelPackageGroupPolicyOutcome SageMakerClient::DeleteModelPackageGroupPolicy(const DeleteModelPackageGroupPolicyRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteModelPackageGroupPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteModelPackageGroupPolicy", + {{ 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( + [&]()-> DeleteModelPackageGroupPolicyOutcome { + 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, DeleteModelPackageGroupPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteModelPackageGroupPolicyOutcome(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()}}); +} + ListAssociationsOutcome SageMakerClient::ListAssociations(const ListAssociationsRequest& request) const { AWS_OPERATION_GUARD(ListAssociations); @@ -1826,32 +1852,6 @@ DescribeMonitoringScheduleOutcome SageMakerClient::DescribeMonitoringSchedule(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ListCompilationJobsOutcome SageMakerClient::ListCompilationJobs(const ListCompilationJobsRequest& request) const -{ - AWS_OPERATION_GUARD(ListCompilationJobs); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCompilationJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCompilationJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListCompilationJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCompilationJobs", - {{ 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( - [&]()-> ListCompilationJobsOutcome { - 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, ListCompilationJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListCompilationJobsOutcome(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()}}); -} - DescribeFeatureMetadataOutcome SageMakerClient::DescribeFeatureMetadata(const DescribeFeatureMetadataRequest& request) const { AWS_OPERATION_GUARD(DescribeFeatureMetadata); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp index 891c304cfea..46c6e1fa7f8 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient2.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -54,8 +55,10 @@ #include #include #include +#include #include #include +#include #include #include #include @@ -74,13 +77,13 @@ #include #include #include +#include #include #include #include #include #include #include -#include #include #include #include @@ -88,15 +91,12 @@ #include #include #include -#include -#include #include +#include #include #include #include #include -#include -#include #include #include #include @@ -188,6 +188,32 @@ ListModelBiasJobDefinitionsOutcome SageMakerClient::ListModelBiasJobDefinitions( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListCodeRepositoriesOutcome SageMakerClient::ListCodeRepositories(const ListCodeRepositoriesRequest& request) const +{ + AWS_OPERATION_GUARD(ListCodeRepositories); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListCodeRepositories, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCodeRepositories", + {{ 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( + [&]()-> ListCodeRepositoriesOutcome { + 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, ListCodeRepositories, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListCodeRepositoriesOutcome(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()}}); +} + StopInferenceExperimentOutcome SageMakerClient::StopInferenceExperiment(const StopInferenceExperimentRequest& request) const { AWS_OPERATION_GUARD(StopInferenceExperiment); @@ -994,6 +1020,32 @@ StopProcessingJobOutcome SageMakerClient::StopProcessingJob(const StopProcessing {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListClustersOutcome SageMakerClient::ListClusters(const ListClustersRequest& request) const +{ + AWS_OPERATION_GUARD(ListClusters); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListClusters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListClusters, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListClusters, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListClusters", + {{ 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( + [&]()-> ListClustersOutcome { + 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, ListClusters, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListClustersOutcome(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()}}); +} + ListTrialsOutcome SageMakerClient::ListTrials(const ListTrialsRequest& request) const { AWS_OPERATION_GUARD(ListTrials); @@ -1046,6 +1098,32 @@ ListHyperParameterTuningJobsOutcome SageMakerClient::ListHyperParameterTuningJob {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListOptimizationJobsOutcome SageMakerClient::ListOptimizationJobs(const ListOptimizationJobsRequest& request) const +{ + AWS_OPERATION_GUARD(ListOptimizationJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListOptimizationJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListOptimizationJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListOptimizationJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListOptimizationJobs", + {{ 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( + [&]()-> ListOptimizationJobsOutcome { + 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, ListOptimizationJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListOptimizationJobsOutcome(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()}}); +} + ListModelQualityJobDefinitionsOutcome SageMakerClient::ListModelQualityJobDefinitions(const ListModelQualityJobDefinitionsRequest& request) const { AWS_OPERATION_GUARD(ListModelQualityJobDefinitions); @@ -1514,6 +1592,32 @@ ListMonitoringExecutionsOutcome SageMakerClient::ListMonitoringExecutions(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +StopOptimizationJobOutcome SageMakerClient::StopOptimizationJob(const StopOptimizationJobRequest& request) const +{ + AWS_OPERATION_GUARD(StopOptimizationJob); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StopOptimizationJob, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopOptimizationJob", + {{ 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( + [&]()-> StopOptimizationJobOutcome { + 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, StopOptimizationJob, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StopOptimizationJobOutcome(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()}}); +} + ListInferenceRecommendationsJobsOutcome SageMakerClient::ListInferenceRecommendationsJobs(const ListInferenceRecommendationsJobsRequest& request) const { AWS_OPERATION_GUARD(ListInferenceRecommendationsJobs); @@ -1670,32 +1774,6 @@ StopLabelingJobOutcome SageMakerClient::StopLabelingJob(const StopLabelingJobReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateDeviceFleetOutcome SageMakerClient::UpdateDeviceFleet(const UpdateDeviceFleetRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateDeviceFleet); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDeviceFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDeviceFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateDeviceFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDeviceFleet", - {{ 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( - [&]()-> UpdateDeviceFleetOutcome { - 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, UpdateDeviceFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateDeviceFleetOutcome(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()}}); -} - SearchOutcome SageMakerClient::Search(const SearchRequest& request) const { AWS_OPERATION_GUARD(Search); @@ -1878,78 +1956,52 @@ StopTransformJobOutcome SageMakerClient::StopTransformJob(const StopTransformJob {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateClusterSoftwareOutcome SageMakerClient::UpdateClusterSoftware(const UpdateClusterSoftwareRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateClusterSoftware); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateClusterSoftware, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateClusterSoftware, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateClusterSoftware, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateClusterSoftware", - {{ 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( - [&]()-> UpdateClusterSoftwareOutcome { - 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, UpdateClusterSoftware, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateClusterSoftwareOutcome(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()}}); -} - -UpdateContextOutcome SageMakerClient::UpdateContext(const UpdateContextRequest& request) const +ListModelMetadataOutcome SageMakerClient::ListModelMetadata(const ListModelMetadataRequest& request) const { - AWS_OPERATION_GUARD(UpdateContext); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContext, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContext, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListModelMetadata); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateContext, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContext", + AWS_OPERATION_CHECK_PTR(meter, ListModelMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelMetadata", {{ 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( - [&]()-> UpdateContextOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListModelMetadataOutcome { 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, UpdateContext, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateContextOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListModelMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListModelMetadataOutcome(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()}}); } -ListModelMetadataOutcome SageMakerClient::ListModelMetadata(const ListModelMetadataRequest& request) const +ListCompilationJobsOutcome SageMakerClient::ListCompilationJobs(const ListCompilationJobsRequest& request) const { - AWS_OPERATION_GUARD(ListModelMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListModelMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListModelMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(ListCompilationJobs); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListCompilationJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListCompilationJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListModelMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListModelMetadata", + AWS_OPERATION_CHECK_PTR(meter, ListCompilationJobs, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListCompilationJobs", {{ 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( - [&]()-> ListModelMetadataOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> ListCompilationJobsOutcome { 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, ListModelMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ListModelMetadataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListCompilationJobs, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListCompilationJobsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, @@ -2060,58 +2112,6 @@ ListModelCardExportJobsOutcome SageMakerClient::ListModelCardExportJobs(const Li {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -UpdateCodeRepositoryOutcome SageMakerClient::UpdateCodeRepository(const UpdateCodeRepositoryRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateCodeRepository); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCodeRepository, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCodeRepository, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateCodeRepository, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCodeRepository", - {{ 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( - [&]()-> UpdateCodeRepositoryOutcome { - 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, UpdateCodeRepository, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateCodeRepositoryOutcome(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()}}); -} - -UpdateClusterOutcome SageMakerClient::UpdateCluster(const UpdateClusterRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateCluster); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCluster, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCluster, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateCluster, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCluster", - {{ 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( - [&]()-> UpdateClusterOutcome { - 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, UpdateCluster, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return UpdateClusterOutcome(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()}}); -} - ListNotebookInstanceLifecycleConfigsOutcome SageMakerClient::ListNotebookInstanceLifecycleConfigs(const ListNotebookInstanceLifecycleConfigsRequest& request) const { AWS_OPERATION_GUARD(ListNotebookInstanceLifecycleConfigs); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient3.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient3.cpp index 97183963fea..dcb4b70c5fd 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient3.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/SageMakerClient3.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -37,7 +38,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -50,6 +53,8 @@ #include #include #include +#include +#include #include #include @@ -300,6 +305,32 @@ UpdateInferenceExperimentOutcome SageMakerClient::UpdateInferenceExperiment(cons {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateDeviceFleetOutcome SageMakerClient::UpdateDeviceFleet(const UpdateDeviceFleetRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateDeviceFleet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateDeviceFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateDeviceFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateDeviceFleet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateDeviceFleet", + {{ 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( + [&]()-> UpdateDeviceFleetOutcome { + 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, UpdateDeviceFleet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateDeviceFleetOutcome(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()}}); +} + UpdateTrainingJobOutcome SageMakerClient::UpdateTrainingJob(const UpdateTrainingJobRequest& request) const { AWS_OPERATION_GUARD(UpdateTrainingJob); @@ -482,6 +513,32 @@ UpdateEndpointWeightsAndCapacitiesOutcome SageMakerClient::UpdateEndpointWeights {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateClusterSoftwareOutcome SageMakerClient::UpdateClusterSoftware(const UpdateClusterSoftwareRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateClusterSoftware); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateClusterSoftware, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateClusterSoftware, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateClusterSoftware, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateClusterSoftware", + {{ 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( + [&]()-> UpdateClusterSoftwareOutcome { + 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, UpdateClusterSoftware, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateClusterSoftwareOutcome(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()}}); +} + UpdateFeatureGroupOutcome SageMakerClient::UpdateFeatureGroup(const UpdateFeatureGroupRequest& request) const { AWS_OPERATION_GUARD(UpdateFeatureGroup); @@ -508,6 +565,32 @@ UpdateFeatureGroupOutcome SageMakerClient::UpdateFeatureGroup(const UpdateFeatur {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateContextOutcome SageMakerClient::UpdateContext(const UpdateContextRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateContext); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateContext, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateContext, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateContext, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateContext", + {{ 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( + [&]()-> UpdateContextOutcome { + 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, UpdateContext, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateContextOutcome(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()}}); +} + UpdateExperimentOutcome SageMakerClient::UpdateExperiment(const UpdateExperimentRequest& request) const { AWS_OPERATION_GUARD(UpdateExperiment); @@ -820,6 +903,58 @@ UpdateModelCardOutcome SageMakerClient::UpdateModelCard(const UpdateModelCardReq {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateCodeRepositoryOutcome SageMakerClient::UpdateCodeRepository(const UpdateCodeRepositoryRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCodeRepository); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCodeRepository, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCodeRepository, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCodeRepository, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCodeRepository", + {{ 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( + [&]()-> UpdateCodeRepositoryOutcome { + 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, UpdateCodeRepository, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateCodeRepositoryOutcome(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()}}); +} + +UpdateClusterOutcome SageMakerClient::UpdateCluster(const UpdateClusterRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateCluster); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateCluster, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateCluster, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateCluster, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateCluster", + {{ 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( + [&]()-> UpdateClusterOutcome { + 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, UpdateCluster, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateClusterOutcome(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()}}); +} + UpdateImageVersionOutcome SageMakerClient::UpdateImageVersion(const UpdateImageVersionRequest& request) const { AWS_OPERATION_GUARD(UpdateImageVersion); diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalModelDataSource.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalModelDataSource.cpp new file mode 100644 index 00000000000..2cb161a6a9f --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AdditionalModelDataSource.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 SageMaker +{ +namespace Model +{ + +AdditionalModelDataSource::AdditionalModelDataSource() : + m_channelNameHasBeenSet(false), + m_s3DataSourceHasBeenSet(false) +{ +} + +AdditionalModelDataSource::AdditionalModelDataSource(JsonView jsonValue) + : AdditionalModelDataSource() +{ + *this = jsonValue; +} + +AdditionalModelDataSource& AdditionalModelDataSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ChannelName")) + { + m_channelName = jsonValue.GetString("ChannelName"); + + m_channelNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("S3DataSource")) + { + m_s3DataSource = jsonValue.GetObject("S3DataSource"); + + m_s3DataSourceHasBeenSet = true; + } + + return *this; +} + +JsonValue AdditionalModelDataSource::Jsonize() const +{ + JsonValue payload; + + if(m_channelNameHasBeenSet) + { + payload.WithString("ChannelName", m_channelName); + + } + + if(m_s3DataSourceHasBeenSet) + { + payload.WithObject("S3DataSource", m_s3DataSource.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/AmazonQSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/AmazonQSettings.cpp new file mode 100644 index 00000000000..00b70051653 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/AmazonQSettings.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 SageMaker +{ +namespace Model +{ + +AmazonQSettings::AmazonQSettings() : + m_status(FeatureStatus::NOT_SET), + m_statusHasBeenSet(false), + m_qProfileArnHasBeenSet(false) +{ +} + +AmazonQSettings::AmazonQSettings(JsonView jsonValue) + : AmazonQSettings() +{ + *this = jsonValue; +} + +AmazonQSettings& AmazonQSettings::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Status")) + { + m_status = FeatureStatusMapper::GetFeatureStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("QProfileArn")) + { + m_qProfileArn = jsonValue.GetString("QProfileArn"); + + m_qProfileArnHasBeenSet = true; + } + + return *this; +} + +JsonValue AmazonQSettings::Jsonize() const +{ + JsonValue payload; + + if(m_statusHasBeenSet) + { + payload.WithString("Status", FeatureStatusMapper::GetNameForFeatureStatus(m_status)); + } + + if(m_qProfileArnHasBeenSet) + { + payload.WithString("QProfileArn", m_qProfileArn); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerDefinition.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerDefinition.cpp index 714e18bd846..96c2e5d0621 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerDefinition.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ContainerDefinition.cpp @@ -26,6 +26,7 @@ ContainerDefinition::ContainerDefinition() : m_modeHasBeenSet(false), m_modelDataUrlHasBeenSet(false), m_modelDataSourceHasBeenSet(false), + m_additionalModelDataSourcesHasBeenSet(false), m_environmentHasBeenSet(false), m_modelPackageNameHasBeenSet(false), m_inferenceSpecificationNameHasBeenSet(false), @@ -83,6 +84,16 @@ ContainerDefinition& ContainerDefinition::operator =(JsonView jsonValue) m_modelDataSourceHasBeenSet = true; } + if(jsonValue.ValueExists("AdditionalModelDataSources")) + { + Aws::Utils::Array additionalModelDataSourcesJsonList = jsonValue.GetArray("AdditionalModelDataSources"); + for(unsigned additionalModelDataSourcesIndex = 0; additionalModelDataSourcesIndex < additionalModelDataSourcesJsonList.GetLength(); ++additionalModelDataSourcesIndex) + { + m_additionalModelDataSources.push_back(additionalModelDataSourcesJsonList[additionalModelDataSourcesIndex].AsObject()); + } + m_additionalModelDataSourcesHasBeenSet = true; + } + if(jsonValue.ValueExists("Environment")) { Aws::Map environmentJsonMap = jsonValue.GetObject("Environment").GetAllObjects(); @@ -156,6 +167,17 @@ JsonValue ContainerDefinition::Jsonize() const } + if(m_additionalModelDataSourcesHasBeenSet) + { + Aws::Utils::Array additionalModelDataSourcesJsonList(m_additionalModelDataSources.size()); + for(unsigned additionalModelDataSourcesIndex = 0; additionalModelDataSourcesIndex < additionalModelDataSourcesJsonList.GetLength(); ++additionalModelDataSourcesIndex) + { + additionalModelDataSourcesJsonList[additionalModelDataSourcesIndex].AsObject(m_additionalModelDataSources[additionalModelDataSourcesIndex].Jsonize()); + } + payload.WithArray("AdditionalModelDataSources", std::move(additionalModelDataSourcesJsonList)); + + } + if(m_environmentHasBeenSet) { JsonValue environmentJsonMap; diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateOptimizationJobRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateOptimizationJobRequest.cpp new file mode 100644 index 00000000000..c80b610d5af --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateOptimizationJobRequest.cpp @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateOptimizationJobRequest::CreateOptimizationJobRequest() : + m_optimizationJobNameHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_modelSourceHasBeenSet(false), + m_deploymentInstanceType(OptimizationJobDeploymentInstanceType::NOT_SET), + m_deploymentInstanceTypeHasBeenSet(false), + m_optimizationEnvironmentHasBeenSet(false), + m_optimizationConfigsHasBeenSet(false), + m_outputConfigHasBeenSet(false), + m_stoppingConditionHasBeenSet(false), + m_tagsHasBeenSet(false), + m_vpcConfigHasBeenSet(false) +{ +} + +Aws::String CreateOptimizationJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_optimizationJobNameHasBeenSet) + { + payload.WithString("OptimizationJobName", m_optimizationJobName); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + if(m_modelSourceHasBeenSet) + { + payload.WithObject("ModelSource", m_modelSource.Jsonize()); + + } + + if(m_deploymentInstanceTypeHasBeenSet) + { + payload.WithString("DeploymentInstanceType", OptimizationJobDeploymentInstanceTypeMapper::GetNameForOptimizationJobDeploymentInstanceType(m_deploymentInstanceType)); + } + + if(m_optimizationEnvironmentHasBeenSet) + { + JsonValue optimizationEnvironmentJsonMap; + for(auto& optimizationEnvironmentItem : m_optimizationEnvironment) + { + optimizationEnvironmentJsonMap.WithString(optimizationEnvironmentItem.first, optimizationEnvironmentItem.second); + } + payload.WithObject("OptimizationEnvironment", std::move(optimizationEnvironmentJsonMap)); + + } + + if(m_optimizationConfigsHasBeenSet) + { + Aws::Utils::Array optimizationConfigsJsonList(m_optimizationConfigs.size()); + for(unsigned optimizationConfigsIndex = 0; optimizationConfigsIndex < optimizationConfigsJsonList.GetLength(); ++optimizationConfigsIndex) + { + optimizationConfigsJsonList[optimizationConfigsIndex].AsObject(m_optimizationConfigs[optimizationConfigsIndex].Jsonize()); + } + payload.WithArray("OptimizationConfigs", std::move(optimizationConfigsJsonList)); + + } + + if(m_outputConfigHasBeenSet) + { + payload.WithObject("OutputConfig", m_outputConfig.Jsonize()); + + } + + if(m_stoppingConditionHasBeenSet) + { + payload.WithObject("StoppingCondition", m_stoppingCondition.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_vpcConfigHasBeenSet) + { + payload.WithObject("VpcConfig", m_vpcConfig.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateOptimizationJobRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.CreateOptimizationJob")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateOptimizationJobResult.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateOptimizationJobResult.cpp new file mode 100644 index 00000000000..5a8fd2e907c --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/CreateOptimizationJobResult.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::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateOptimizationJobResult::CreateOptimizationJobResult() +{ +} + +CreateOptimizationJobResult::CreateOptimizationJobResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateOptimizationJobResult& CreateOptimizationJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("OptimizationJobArn")) + { + m_optimizationJobArn = jsonValue.GetString("OptimizationJobArn"); + + } + + + 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-sagemaker/source/model/DeleteOptimizationJobRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DeleteOptimizationJobRequest.cpp new file mode 100644 index 00000000000..4f0e9088e1a --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DeleteOptimizationJobRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteOptimizationJobRequest::DeleteOptimizationJobRequest() : + m_optimizationJobNameHasBeenSet(false) +{ +} + +Aws::String DeleteOptimizationJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_optimizationJobNameHasBeenSet) + { + payload.WithString("OptimizationJobName", m_optimizationJobName); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteOptimizationJobRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.DeleteOptimizationJob")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeOptimizationJobRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeOptimizationJobRequest.cpp new file mode 100644 index 00000000000..404b977261b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeOptimizationJobRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeOptimizationJobRequest::DescribeOptimizationJobRequest() : + m_optimizationJobNameHasBeenSet(false) +{ +} + +Aws::String DescribeOptimizationJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_optimizationJobNameHasBeenSet) + { + payload.WithString("OptimizationJobName", m_optimizationJobName); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DescribeOptimizationJobRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.DescribeOptimizationJob")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeOptimizationJobResult.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeOptimizationJobResult.cpp new file mode 100644 index 00000000000..fecd5fa3c4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DescribeOptimizationJobResult.cpp @@ -0,0 +1,153 @@ +/** + * 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::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeOptimizationJobResult::DescribeOptimizationJobResult() : + m_optimizationJobStatus(OptimizationJobStatus::NOT_SET), + m_deploymentInstanceType(OptimizationJobDeploymentInstanceType::NOT_SET) +{ +} + +DescribeOptimizationJobResult::DescribeOptimizationJobResult(const Aws::AmazonWebServiceResult& result) + : DescribeOptimizationJobResult() +{ + *this = result; +} + +DescribeOptimizationJobResult& DescribeOptimizationJobResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("OptimizationJobArn")) + { + m_optimizationJobArn = jsonValue.GetString("OptimizationJobArn"); + + } + + if(jsonValue.ValueExists("OptimizationJobStatus")) + { + m_optimizationJobStatus = OptimizationJobStatusMapper::GetOptimizationJobStatusForName(jsonValue.GetString("OptimizationJobStatus")); + + } + + if(jsonValue.ValueExists("OptimizationStartTime")) + { + m_optimizationStartTime = jsonValue.GetDouble("OptimizationStartTime"); + + } + + if(jsonValue.ValueExists("OptimizationEndTime")) + { + m_optimizationEndTime = jsonValue.GetDouble("OptimizationEndTime"); + + } + + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetDouble("CreationTime"); + + } + + if(jsonValue.ValueExists("LastModifiedTime")) + { + m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime"); + + } + + if(jsonValue.ValueExists("FailureReason")) + { + m_failureReason = jsonValue.GetString("FailureReason"); + + } + + if(jsonValue.ValueExists("OptimizationJobName")) + { + m_optimizationJobName = jsonValue.GetString("OptimizationJobName"); + + } + + if(jsonValue.ValueExists("ModelSource")) + { + m_modelSource = jsonValue.GetObject("ModelSource"); + + } + + if(jsonValue.ValueExists("OptimizationEnvironment")) + { + Aws::Map optimizationEnvironmentJsonMap = jsonValue.GetObject("OptimizationEnvironment").GetAllObjects(); + for(auto& optimizationEnvironmentItem : optimizationEnvironmentJsonMap) + { + m_optimizationEnvironment[optimizationEnvironmentItem.first] = optimizationEnvironmentItem.second.AsString(); + } + } + + if(jsonValue.ValueExists("DeploymentInstanceType")) + { + m_deploymentInstanceType = OptimizationJobDeploymentInstanceTypeMapper::GetOptimizationJobDeploymentInstanceTypeForName(jsonValue.GetString("DeploymentInstanceType")); + + } + + if(jsonValue.ValueExists("OptimizationConfigs")) + { + Aws::Utils::Array optimizationConfigsJsonList = jsonValue.GetArray("OptimizationConfigs"); + for(unsigned optimizationConfigsIndex = 0; optimizationConfigsIndex < optimizationConfigsJsonList.GetLength(); ++optimizationConfigsIndex) + { + m_optimizationConfigs.push_back(optimizationConfigsJsonList[optimizationConfigsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("OutputConfig")) + { + m_outputConfig = jsonValue.GetObject("OutputConfig"); + + } + + if(jsonValue.ValueExists("OptimizationOutput")) + { + m_optimizationOutput = jsonValue.GetObject("OptimizationOutput"); + + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + } + + if(jsonValue.ValueExists("StoppingCondition")) + { + m_stoppingCondition = jsonValue.GetObject("StoppingCondition"); + + } + + if(jsonValue.ValueExists("VpcConfig")) + { + m_vpcConfig = jsonValue.GetObject("VpcConfig"); + + } + + + 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-sagemaker/source/model/DomainSettings.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettings.cpp index 86e0e98e0f1..05f82b51036 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettings.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettings.cpp @@ -23,7 +23,8 @@ DomainSettings::DomainSettings() : m_rStudioServerProDomainSettingsHasBeenSet(false), m_executionRoleIdentityConfig(ExecutionRoleIdentityConfig::NOT_SET), m_executionRoleIdentityConfigHasBeenSet(false), - m_dockerSettingsHasBeenSet(false) + m_dockerSettingsHasBeenSet(false), + m_amazonQSettingsHasBeenSet(false) { } @@ -66,6 +67,13 @@ DomainSettings& DomainSettings::operator =(JsonView jsonValue) m_dockerSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("AmazonQSettings")) + { + m_amazonQSettings = jsonValue.GetObject("AmazonQSettings"); + + m_amazonQSettingsHasBeenSet = true; + } + return *this; } @@ -101,6 +109,12 @@ JsonValue DomainSettings::Jsonize() const } + if(m_amazonQSettingsHasBeenSet) + { + payload.WithObject("AmazonQSettings", m_amazonQSettings.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettingsForUpdate.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettingsForUpdate.cpp index 1fdf2b78551..4df94b70624 100644 --- a/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettingsForUpdate.cpp +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/DomainSettingsForUpdate.cpp @@ -23,7 +23,8 @@ DomainSettingsForUpdate::DomainSettingsForUpdate() : m_executionRoleIdentityConfig(ExecutionRoleIdentityConfig::NOT_SET), m_executionRoleIdentityConfigHasBeenSet(false), m_securityGroupIdsHasBeenSet(false), - m_dockerSettingsHasBeenSet(false) + m_dockerSettingsHasBeenSet(false), + m_amazonQSettingsHasBeenSet(false) { } @@ -66,6 +67,13 @@ DomainSettingsForUpdate& DomainSettingsForUpdate::operator =(JsonView jsonValue) m_dockerSettingsHasBeenSet = true; } + if(jsonValue.ValueExists("AmazonQSettings")) + { + m_amazonQSettings = jsonValue.GetObject("AmazonQSettings"); + + m_amazonQSettingsHasBeenSet = true; + } + return *this; } @@ -101,6 +109,12 @@ JsonValue DomainSettingsForUpdate::Jsonize() const } + if(m_amazonQSettingsHasBeenSet) + { + payload.WithObject("AmazonQSettings", m_amazonQSettings.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsRequest.cpp new file mode 100644 index 00000000000..4c0c0d483bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsRequest.cpp @@ -0,0 +1,110 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListOptimizationJobsRequest::ListOptimizationJobsRequest() : + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_creationTimeAfterHasBeenSet(false), + m_creationTimeBeforeHasBeenSet(false), + m_lastModifiedTimeAfterHasBeenSet(false), + m_lastModifiedTimeBeforeHasBeenSet(false), + m_optimizationContainsHasBeenSet(false), + m_nameContainsHasBeenSet(false), + m_statusEquals(OptimizationJobStatus::NOT_SET), + m_statusEqualsHasBeenSet(false), + m_sortBy(ListOptimizationJobsSortBy::NOT_SET), + m_sortByHasBeenSet(false), + m_sortOrder(SortOrder::NOT_SET), + m_sortOrderHasBeenSet(false) +{ +} + +Aws::String ListOptimizationJobsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + if(m_creationTimeAfterHasBeenSet) + { + payload.WithDouble("CreationTimeAfter", m_creationTimeAfter.SecondsWithMSPrecision()); + } + + if(m_creationTimeBeforeHasBeenSet) + { + payload.WithDouble("CreationTimeBefore", m_creationTimeBefore.SecondsWithMSPrecision()); + } + + if(m_lastModifiedTimeAfterHasBeenSet) + { + payload.WithDouble("LastModifiedTimeAfter", m_lastModifiedTimeAfter.SecondsWithMSPrecision()); + } + + if(m_lastModifiedTimeBeforeHasBeenSet) + { + payload.WithDouble("LastModifiedTimeBefore", m_lastModifiedTimeBefore.SecondsWithMSPrecision()); + } + + if(m_optimizationContainsHasBeenSet) + { + payload.WithString("OptimizationContains", m_optimizationContains); + + } + + if(m_nameContainsHasBeenSet) + { + payload.WithString("NameContains", m_nameContains); + + } + + if(m_statusEqualsHasBeenSet) + { + payload.WithString("StatusEquals", OptimizationJobStatusMapper::GetNameForOptimizationJobStatus(m_statusEquals)); + } + + if(m_sortByHasBeenSet) + { + payload.WithString("SortBy", ListOptimizationJobsSortByMapper::GetNameForListOptimizationJobsSortBy(m_sortBy)); + } + + if(m_sortOrderHasBeenSet) + { + payload.WithString("SortOrder", SortOrderMapper::GetNameForSortOrder(m_sortOrder)); + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListOptimizationJobsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.ListOptimizationJobs")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsResult.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsResult.cpp new file mode 100644 index 00000000000..8569fc59099 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsResult.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::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListOptimizationJobsResult::ListOptimizationJobsResult() +{ +} + +ListOptimizationJobsResult::ListOptimizationJobsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListOptimizationJobsResult& ListOptimizationJobsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("OptimizationJobSummaries")) + { + Aws::Utils::Array optimizationJobSummariesJsonList = jsonValue.GetArray("OptimizationJobSummaries"); + for(unsigned optimizationJobSummariesIndex = 0; optimizationJobSummariesIndex < optimizationJobSummariesJsonList.GetLength(); ++optimizationJobSummariesIndex) + { + m_optimizationJobSummaries.push_back(optimizationJobSummariesJsonList[optimizationJobSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + 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-sagemaker/source/model/ListOptimizationJobsSortBy.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsSortBy.cpp new file mode 100644 index 00000000000..71475c4b46e --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ListOptimizationJobsSortBy.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 SageMaker + { + namespace Model + { + namespace ListOptimizationJobsSortByMapper + { + + static const int Name_HASH = HashingUtils::HashString("Name"); + static const int CreationTime_HASH = HashingUtils::HashString("CreationTime"); + static const int Status_HASH = HashingUtils::HashString("Status"); + + + ListOptimizationJobsSortBy GetListOptimizationJobsSortByForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Name_HASH) + { + return ListOptimizationJobsSortBy::Name; + } + else if (hashCode == CreationTime_HASH) + { + return ListOptimizationJobsSortBy::CreationTime; + } + else if (hashCode == Status_HASH) + { + return ListOptimizationJobsSortBy::Status; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ListOptimizationJobsSortBy::NOT_SET; + } + + Aws::String GetNameForListOptimizationJobsSortBy(ListOptimizationJobsSortBy enumValue) + { + switch(enumValue) + { + case ListOptimizationJobsSortBy::NOT_SET: + return {}; + case ListOptimizationJobsSortBy::Name: + return "Name"; + case ListOptimizationJobsSortBy::CreationTime: + return "CreationTime"; + case ListOptimizationJobsSortBy::Status: + return "Status"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ListOptimizationJobsSortByMapper + } // namespace Model + } // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompilationConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompilationConfig.cpp new file mode 100644 index 00000000000..6b42b0597e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelCompilationConfig.cpp @@ -0,0 +1,81 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +ModelCompilationConfig::ModelCompilationConfig() : + m_imageHasBeenSet(false), + m_overrideEnvironmentHasBeenSet(false) +{ +} + +ModelCompilationConfig::ModelCompilationConfig(JsonView jsonValue) + : ModelCompilationConfig() +{ + *this = jsonValue; +} + +ModelCompilationConfig& ModelCompilationConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Image")) + { + m_image = jsonValue.GetString("Image"); + + m_imageHasBeenSet = true; + } + + if(jsonValue.ValueExists("OverrideEnvironment")) + { + Aws::Map overrideEnvironmentJsonMap = jsonValue.GetObject("OverrideEnvironment").GetAllObjects(); + for(auto& overrideEnvironmentItem : overrideEnvironmentJsonMap) + { + m_overrideEnvironment[overrideEnvironmentItem.first] = overrideEnvironmentItem.second.AsString(); + } + m_overrideEnvironmentHasBeenSet = true; + } + + return *this; +} + +JsonValue ModelCompilationConfig::Jsonize() const +{ + JsonValue payload; + + if(m_imageHasBeenSet) + { + payload.WithString("Image", m_image); + + } + + if(m_overrideEnvironmentHasBeenSet) + { + JsonValue overrideEnvironmentJsonMap; + for(auto& overrideEnvironmentItem : m_overrideEnvironment) + { + overrideEnvironmentJsonMap.WithString(overrideEnvironmentItem.first, overrideEnvironmentItem.second); + } + payload.WithObject("OverrideEnvironment", std::move(overrideEnvironmentJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelQuantizationConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelQuantizationConfig.cpp new file mode 100644 index 00000000000..03e90ae6948 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/ModelQuantizationConfig.cpp @@ -0,0 +1,81 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +ModelQuantizationConfig::ModelQuantizationConfig() : + m_imageHasBeenSet(false), + m_overrideEnvironmentHasBeenSet(false) +{ +} + +ModelQuantizationConfig::ModelQuantizationConfig(JsonView jsonValue) + : ModelQuantizationConfig() +{ + *this = jsonValue; +} + +ModelQuantizationConfig& ModelQuantizationConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Image")) + { + m_image = jsonValue.GetString("Image"); + + m_imageHasBeenSet = true; + } + + if(jsonValue.ValueExists("OverrideEnvironment")) + { + Aws::Map overrideEnvironmentJsonMap = jsonValue.GetObject("OverrideEnvironment").GetAllObjects(); + for(auto& overrideEnvironmentItem : overrideEnvironmentJsonMap) + { + m_overrideEnvironment[overrideEnvironmentItem.first] = overrideEnvironmentItem.second.AsString(); + } + m_overrideEnvironmentHasBeenSet = true; + } + + return *this; +} + +JsonValue ModelQuantizationConfig::Jsonize() const +{ + JsonValue payload; + + if(m_imageHasBeenSet) + { + payload.WithString("Image", m_image); + + } + + if(m_overrideEnvironmentHasBeenSet) + { + JsonValue overrideEnvironmentJsonMap; + for(auto& overrideEnvironmentItem : m_overrideEnvironment) + { + overrideEnvironmentJsonMap.WithString(overrideEnvironmentItem.first, overrideEnvironmentItem.second); + } + payload.WithObject("OverrideEnvironment", std::move(overrideEnvironmentJsonMap)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationConfig.cpp new file mode 100644 index 00000000000..d01ea54ebff --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationConfig.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 SageMaker +{ +namespace Model +{ + +OptimizationConfig::OptimizationConfig() : + m_modelQuantizationConfigHasBeenSet(false), + m_modelCompilationConfigHasBeenSet(false) +{ +} + +OptimizationConfig::OptimizationConfig(JsonView jsonValue) + : OptimizationConfig() +{ + *this = jsonValue; +} + +OptimizationConfig& OptimizationConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ModelQuantizationConfig")) + { + m_modelQuantizationConfig = jsonValue.GetObject("ModelQuantizationConfig"); + + m_modelQuantizationConfigHasBeenSet = true; + } + + if(jsonValue.ValueExists("ModelCompilationConfig")) + { + m_modelCompilationConfig = jsonValue.GetObject("ModelCompilationConfig"); + + m_modelCompilationConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationConfig::Jsonize() const +{ + JsonValue payload; + + if(m_modelQuantizationConfigHasBeenSet) + { + payload.WithObject("ModelQuantizationConfig", m_modelQuantizationConfig.Jsonize()); + + } + + if(m_modelCompilationConfigHasBeenSet) + { + payload.WithObject("ModelCompilationConfig", m_modelCompilationConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobDeploymentInstanceType.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobDeploymentInstanceType.cpp new file mode 100644 index 00000000000..2cf42c3d972 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobDeploymentInstanceType.cpp @@ -0,0 +1,240 @@ +/** + * 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 SageMaker + { + namespace Model + { + namespace OptimizationJobDeploymentInstanceTypeMapper + { + + static const int ml_p4d_24xlarge_HASH = HashingUtils::HashString("ml.p4d.24xlarge"); + static const int ml_p4de_24xlarge_HASH = HashingUtils::HashString("ml.p4de.24xlarge"); + static const int ml_p5_48xlarge_HASH = HashingUtils::HashString("ml.p5.48xlarge"); + static const int ml_g5_xlarge_HASH = HashingUtils::HashString("ml.g5.xlarge"); + static const int ml_g5_2xlarge_HASH = HashingUtils::HashString("ml.g5.2xlarge"); + static const int ml_g5_4xlarge_HASH = HashingUtils::HashString("ml.g5.4xlarge"); + static const int ml_g5_8xlarge_HASH = HashingUtils::HashString("ml.g5.8xlarge"); + static const int ml_g5_12xlarge_HASH = HashingUtils::HashString("ml.g5.12xlarge"); + static const int ml_g5_16xlarge_HASH = HashingUtils::HashString("ml.g5.16xlarge"); + static const int ml_g5_24xlarge_HASH = HashingUtils::HashString("ml.g5.24xlarge"); + static const int ml_g5_48xlarge_HASH = HashingUtils::HashString("ml.g5.48xlarge"); + static const int ml_g6_xlarge_HASH = HashingUtils::HashString("ml.g6.xlarge"); + static const int ml_g6_2xlarge_HASH = HashingUtils::HashString("ml.g6.2xlarge"); + static const int ml_g6_4xlarge_HASH = HashingUtils::HashString("ml.g6.4xlarge"); + static const int ml_g6_8xlarge_HASH = HashingUtils::HashString("ml.g6.8xlarge"); + static const int ml_g6_12xlarge_HASH = HashingUtils::HashString("ml.g6.12xlarge"); + static const int ml_g6_16xlarge_HASH = HashingUtils::HashString("ml.g6.16xlarge"); + static const int ml_g6_24xlarge_HASH = HashingUtils::HashString("ml.g6.24xlarge"); + static const int ml_g6_48xlarge_HASH = HashingUtils::HashString("ml.g6.48xlarge"); + static const int ml_inf2_xlarge_HASH = HashingUtils::HashString("ml.inf2.xlarge"); + static const int ml_inf2_8xlarge_HASH = HashingUtils::HashString("ml.inf2.8xlarge"); + static const int ml_inf2_24xlarge_HASH = HashingUtils::HashString("ml.inf2.24xlarge"); + static const int ml_inf2_48xlarge_HASH = HashingUtils::HashString("ml.inf2.48xlarge"); + static const int ml_trn1_2xlarge_HASH = HashingUtils::HashString("ml.trn1.2xlarge"); + static const int ml_trn1_32xlarge_HASH = HashingUtils::HashString("ml.trn1.32xlarge"); + static const int ml_trn1n_32xlarge_HASH = HashingUtils::HashString("ml.trn1n.32xlarge"); + + + OptimizationJobDeploymentInstanceType GetOptimizationJobDeploymentInstanceTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ml_p4d_24xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_p4d_24xlarge; + } + else if (hashCode == ml_p4de_24xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_p4de_24xlarge; + } + else if (hashCode == ml_p5_48xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_p5_48xlarge; + } + else if (hashCode == ml_g5_xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_xlarge; + } + else if (hashCode == ml_g5_2xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_2xlarge; + } + else if (hashCode == ml_g5_4xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_4xlarge; + } + else if (hashCode == ml_g5_8xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_8xlarge; + } + else if (hashCode == ml_g5_12xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_12xlarge; + } + else if (hashCode == ml_g5_16xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_16xlarge; + } + else if (hashCode == ml_g5_24xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_24xlarge; + } + else if (hashCode == ml_g5_48xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g5_48xlarge; + } + else if (hashCode == ml_g6_xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_xlarge; + } + else if (hashCode == ml_g6_2xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_2xlarge; + } + else if (hashCode == ml_g6_4xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_4xlarge; + } + else if (hashCode == ml_g6_8xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_8xlarge; + } + else if (hashCode == ml_g6_12xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_12xlarge; + } + else if (hashCode == ml_g6_16xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_16xlarge; + } + else if (hashCode == ml_g6_24xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_24xlarge; + } + else if (hashCode == ml_g6_48xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_g6_48xlarge; + } + else if (hashCode == ml_inf2_xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_inf2_xlarge; + } + else if (hashCode == ml_inf2_8xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_inf2_8xlarge; + } + else if (hashCode == ml_inf2_24xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_inf2_24xlarge; + } + else if (hashCode == ml_inf2_48xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_inf2_48xlarge; + } + else if (hashCode == ml_trn1_2xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_trn1_2xlarge; + } + else if (hashCode == ml_trn1_32xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_trn1_32xlarge; + } + else if (hashCode == ml_trn1n_32xlarge_HASH) + { + return OptimizationJobDeploymentInstanceType::ml_trn1n_32xlarge; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return OptimizationJobDeploymentInstanceType::NOT_SET; + } + + Aws::String GetNameForOptimizationJobDeploymentInstanceType(OptimizationJobDeploymentInstanceType enumValue) + { + switch(enumValue) + { + case OptimizationJobDeploymentInstanceType::NOT_SET: + return {}; + case OptimizationJobDeploymentInstanceType::ml_p4d_24xlarge: + return "ml.p4d.24xlarge"; + case OptimizationJobDeploymentInstanceType::ml_p4de_24xlarge: + return "ml.p4de.24xlarge"; + case OptimizationJobDeploymentInstanceType::ml_p5_48xlarge: + return "ml.p5.48xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_xlarge: + return "ml.g5.xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_2xlarge: + return "ml.g5.2xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_4xlarge: + return "ml.g5.4xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_8xlarge: + return "ml.g5.8xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_12xlarge: + return "ml.g5.12xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_16xlarge: + return "ml.g5.16xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_24xlarge: + return "ml.g5.24xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g5_48xlarge: + return "ml.g5.48xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_xlarge: + return "ml.g6.xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_2xlarge: + return "ml.g6.2xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_4xlarge: + return "ml.g6.4xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_8xlarge: + return "ml.g6.8xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_12xlarge: + return "ml.g6.12xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_16xlarge: + return "ml.g6.16xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_24xlarge: + return "ml.g6.24xlarge"; + case OptimizationJobDeploymentInstanceType::ml_g6_48xlarge: + return "ml.g6.48xlarge"; + case OptimizationJobDeploymentInstanceType::ml_inf2_xlarge: + return "ml.inf2.xlarge"; + case OptimizationJobDeploymentInstanceType::ml_inf2_8xlarge: + return "ml.inf2.8xlarge"; + case OptimizationJobDeploymentInstanceType::ml_inf2_24xlarge: + return "ml.inf2.24xlarge"; + case OptimizationJobDeploymentInstanceType::ml_inf2_48xlarge: + return "ml.inf2.48xlarge"; + case OptimizationJobDeploymentInstanceType::ml_trn1_2xlarge: + return "ml.trn1.2xlarge"; + case OptimizationJobDeploymentInstanceType::ml_trn1_32xlarge: + return "ml.trn1.32xlarge"; + case OptimizationJobDeploymentInstanceType::ml_trn1n_32xlarge: + return "ml.trn1n.32xlarge"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OptimizationJobDeploymentInstanceTypeMapper + } // namespace Model + } // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobModelSource.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobModelSource.cpp new file mode 100644 index 00000000000..2d5e6a67e4e --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobModelSource.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 SageMaker +{ +namespace Model +{ + +OptimizationJobModelSource::OptimizationJobModelSource() : + m_s3HasBeenSet(false) +{ +} + +OptimizationJobModelSource::OptimizationJobModelSource(JsonView jsonValue) + : OptimizationJobModelSource() +{ + *this = jsonValue; +} + +OptimizationJobModelSource& OptimizationJobModelSource::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("S3")) + { + m_s3 = jsonValue.GetObject("S3"); + + m_s3HasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationJobModelSource::Jsonize() const +{ + JsonValue payload; + + if(m_s3HasBeenSet) + { + payload.WithObject("S3", m_s3.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobModelSourceS3.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobModelSourceS3.cpp new file mode 100644 index 00000000000..37018b2925a --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobModelSourceS3.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 SageMaker +{ +namespace Model +{ + +OptimizationJobModelSourceS3::OptimizationJobModelSourceS3() : + m_s3UriHasBeenSet(false), + m_modelAccessConfigHasBeenSet(false) +{ +} + +OptimizationJobModelSourceS3::OptimizationJobModelSourceS3(JsonView jsonValue) + : OptimizationJobModelSourceS3() +{ + *this = jsonValue; +} + +OptimizationJobModelSourceS3& OptimizationJobModelSourceS3::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("S3Uri")) + { + m_s3Uri = jsonValue.GetString("S3Uri"); + + m_s3UriHasBeenSet = true; + } + + if(jsonValue.ValueExists("ModelAccessConfig")) + { + m_modelAccessConfig = jsonValue.GetObject("ModelAccessConfig"); + + m_modelAccessConfigHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationJobModelSourceS3::Jsonize() const +{ + JsonValue payload; + + if(m_s3UriHasBeenSet) + { + payload.WithString("S3Uri", m_s3Uri); + + } + + if(m_modelAccessConfigHasBeenSet) + { + payload.WithObject("ModelAccessConfig", m_modelAccessConfig.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobOutputConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobOutputConfig.cpp new file mode 100644 index 00000000000..9ea4d2df3b2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobOutputConfig.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 SageMaker +{ +namespace Model +{ + +OptimizationJobOutputConfig::OptimizationJobOutputConfig() : + m_kmsKeyIdHasBeenSet(false), + m_s3OutputLocationHasBeenSet(false) +{ +} + +OptimizationJobOutputConfig::OptimizationJobOutputConfig(JsonView jsonValue) + : OptimizationJobOutputConfig() +{ + *this = jsonValue; +} + +OptimizationJobOutputConfig& OptimizationJobOutputConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("KmsKeyId")) + { + m_kmsKeyId = jsonValue.GetString("KmsKeyId"); + + m_kmsKeyIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("S3OutputLocation")) + { + m_s3OutputLocation = jsonValue.GetString("S3OutputLocation"); + + m_s3OutputLocationHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationJobOutputConfig::Jsonize() const +{ + JsonValue payload; + + if(m_kmsKeyIdHasBeenSet) + { + payload.WithString("KmsKeyId", m_kmsKeyId); + + } + + if(m_s3OutputLocationHasBeenSet) + { + payload.WithString("S3OutputLocation", m_s3OutputLocation); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobStatus.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobStatus.cpp new file mode 100644 index 00000000000..a6f458c86bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobStatus.cpp @@ -0,0 +1,100 @@ +/** + * 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 SageMaker + { + namespace Model + { + namespace OptimizationJobStatusMapper + { + + static const int INPROGRESS_HASH = HashingUtils::HashString("INPROGRESS"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int STARTING_HASH = HashingUtils::HashString("STARTING"); + static const int STOPPING_HASH = HashingUtils::HashString("STOPPING"); + static const int STOPPED_HASH = HashingUtils::HashString("STOPPED"); + + + OptimizationJobStatus GetOptimizationJobStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == INPROGRESS_HASH) + { + return OptimizationJobStatus::INPROGRESS; + } + else if (hashCode == COMPLETED_HASH) + { + return OptimizationJobStatus::COMPLETED; + } + else if (hashCode == FAILED_HASH) + { + return OptimizationJobStatus::FAILED; + } + else if (hashCode == STARTING_HASH) + { + return OptimizationJobStatus::STARTING; + } + else if (hashCode == STOPPING_HASH) + { + return OptimizationJobStatus::STOPPING; + } + else if (hashCode == STOPPED_HASH) + { + return OptimizationJobStatus::STOPPED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return OptimizationJobStatus::NOT_SET; + } + + Aws::String GetNameForOptimizationJobStatus(OptimizationJobStatus enumValue) + { + switch(enumValue) + { + case OptimizationJobStatus::NOT_SET: + return {}; + case OptimizationJobStatus::INPROGRESS: + return "INPROGRESS"; + case OptimizationJobStatus::COMPLETED: + return "COMPLETED"; + case OptimizationJobStatus::FAILED: + return "FAILED"; + case OptimizationJobStatus::STARTING: + return "STARTING"; + case OptimizationJobStatus::STOPPING: + return "STOPPING"; + case OptimizationJobStatus::STOPPED: + return "STOPPED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OptimizationJobStatusMapper + } // namespace Model + } // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobSummary.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobSummary.cpp new file mode 100644 index 00000000000..26b7cafdc3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationJobSummary.cpp @@ -0,0 +1,175 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +OptimizationJobSummary::OptimizationJobSummary() : + m_optimizationJobNameHasBeenSet(false), + m_optimizationJobArnHasBeenSet(false), + m_creationTimeHasBeenSet(false), + m_optimizationJobStatus(OptimizationJobStatus::NOT_SET), + m_optimizationJobStatusHasBeenSet(false), + m_optimizationStartTimeHasBeenSet(false), + m_optimizationEndTimeHasBeenSet(false), + m_lastModifiedTimeHasBeenSet(false), + m_deploymentInstanceType(OptimizationJobDeploymentInstanceType::NOT_SET), + m_deploymentInstanceTypeHasBeenSet(false), + m_optimizationTypesHasBeenSet(false) +{ +} + +OptimizationJobSummary::OptimizationJobSummary(JsonView jsonValue) + : OptimizationJobSummary() +{ + *this = jsonValue; +} + +OptimizationJobSummary& OptimizationJobSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("OptimizationJobName")) + { + m_optimizationJobName = jsonValue.GetString("OptimizationJobName"); + + m_optimizationJobNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("OptimizationJobArn")) + { + m_optimizationJobArn = jsonValue.GetString("OptimizationJobArn"); + + m_optimizationJobArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreationTime")) + { + m_creationTime = jsonValue.GetDouble("CreationTime"); + + m_creationTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("OptimizationJobStatus")) + { + m_optimizationJobStatus = OptimizationJobStatusMapper::GetOptimizationJobStatusForName(jsonValue.GetString("OptimizationJobStatus")); + + m_optimizationJobStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("OptimizationStartTime")) + { + m_optimizationStartTime = jsonValue.GetDouble("OptimizationStartTime"); + + m_optimizationStartTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("OptimizationEndTime")) + { + m_optimizationEndTime = jsonValue.GetDouble("OptimizationEndTime"); + + m_optimizationEndTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("LastModifiedTime")) + { + m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime"); + + m_lastModifiedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("DeploymentInstanceType")) + { + m_deploymentInstanceType = OptimizationJobDeploymentInstanceTypeMapper::GetOptimizationJobDeploymentInstanceTypeForName(jsonValue.GetString("DeploymentInstanceType")); + + m_deploymentInstanceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("OptimizationTypes")) + { + Aws::Utils::Array optimizationTypesJsonList = jsonValue.GetArray("OptimizationTypes"); + for(unsigned optimizationTypesIndex = 0; optimizationTypesIndex < optimizationTypesJsonList.GetLength(); ++optimizationTypesIndex) + { + m_optimizationTypes.push_back(optimizationTypesJsonList[optimizationTypesIndex].AsString()); + } + m_optimizationTypesHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationJobSummary::Jsonize() const +{ + JsonValue payload; + + if(m_optimizationJobNameHasBeenSet) + { + payload.WithString("OptimizationJobName", m_optimizationJobName); + + } + + if(m_optimizationJobArnHasBeenSet) + { + payload.WithString("OptimizationJobArn", m_optimizationJobArn); + + } + + if(m_creationTimeHasBeenSet) + { + payload.WithDouble("CreationTime", m_creationTime.SecondsWithMSPrecision()); + } + + if(m_optimizationJobStatusHasBeenSet) + { + payload.WithString("OptimizationJobStatus", OptimizationJobStatusMapper::GetNameForOptimizationJobStatus(m_optimizationJobStatus)); + } + + if(m_optimizationStartTimeHasBeenSet) + { + payload.WithDouble("OptimizationStartTime", m_optimizationStartTime.SecondsWithMSPrecision()); + } + + if(m_optimizationEndTimeHasBeenSet) + { + payload.WithDouble("OptimizationEndTime", m_optimizationEndTime.SecondsWithMSPrecision()); + } + + if(m_lastModifiedTimeHasBeenSet) + { + payload.WithDouble("LastModifiedTime", m_lastModifiedTime.SecondsWithMSPrecision()); + } + + if(m_deploymentInstanceTypeHasBeenSet) + { + payload.WithString("DeploymentInstanceType", OptimizationJobDeploymentInstanceTypeMapper::GetNameForOptimizationJobDeploymentInstanceType(m_deploymentInstanceType)); + } + + if(m_optimizationTypesHasBeenSet) + { + Aws::Utils::Array optimizationTypesJsonList(m_optimizationTypes.size()); + for(unsigned optimizationTypesIndex = 0; optimizationTypesIndex < optimizationTypesJsonList.GetLength(); ++optimizationTypesIndex) + { + optimizationTypesJsonList[optimizationTypesIndex].AsString(m_optimizationTypes[optimizationTypesIndex]); + } + payload.WithArray("OptimizationTypes", std::move(optimizationTypesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationModelAccessConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationModelAccessConfig.cpp new file mode 100644 index 00000000000..f554813d18c --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationModelAccessConfig.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 SageMaker +{ +namespace Model +{ + +OptimizationModelAccessConfig::OptimizationModelAccessConfig() : + m_acceptEula(false), + m_acceptEulaHasBeenSet(false) +{ +} + +OptimizationModelAccessConfig::OptimizationModelAccessConfig(JsonView jsonValue) + : OptimizationModelAccessConfig() +{ + *this = jsonValue; +} + +OptimizationModelAccessConfig& OptimizationModelAccessConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AcceptEula")) + { + m_acceptEula = jsonValue.GetBool("AcceptEula"); + + m_acceptEulaHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationModelAccessConfig::Jsonize() const +{ + JsonValue payload; + + if(m_acceptEulaHasBeenSet) + { + payload.WithBool("AcceptEula", m_acceptEula); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationOutput.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationOutput.cpp new file mode 100644 index 00000000000..22281b90e13 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationOutput.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 SageMaker +{ +namespace Model +{ + +OptimizationOutput::OptimizationOutput() : + m_recommendedInferenceImageHasBeenSet(false) +{ +} + +OptimizationOutput::OptimizationOutput(JsonView jsonValue) + : OptimizationOutput() +{ + *this = jsonValue; +} + +OptimizationOutput& OptimizationOutput::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("RecommendedInferenceImage")) + { + m_recommendedInferenceImage = jsonValue.GetString("RecommendedInferenceImage"); + + m_recommendedInferenceImageHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationOutput::Jsonize() const +{ + JsonValue payload; + + if(m_recommendedInferenceImageHasBeenSet) + { + payload.WithString("RecommendedInferenceImage", m_recommendedInferenceImage); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationVpcConfig.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationVpcConfig.cpp new file mode 100644 index 00000000000..1cbc6dae106 --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/OptimizationVpcConfig.cpp @@ -0,0 +1,89 @@ +/** + * 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 SageMaker +{ +namespace Model +{ + +OptimizationVpcConfig::OptimizationVpcConfig() : + m_securityGroupIdsHasBeenSet(false), + m_subnetsHasBeenSet(false) +{ +} + +OptimizationVpcConfig::OptimizationVpcConfig(JsonView jsonValue) + : OptimizationVpcConfig() +{ + *this = jsonValue; +} + +OptimizationVpcConfig& OptimizationVpcConfig::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SecurityGroupIds")) + { + Aws::Utils::Array securityGroupIdsJsonList = jsonValue.GetArray("SecurityGroupIds"); + for(unsigned securityGroupIdsIndex = 0; securityGroupIdsIndex < securityGroupIdsJsonList.GetLength(); ++securityGroupIdsIndex) + { + m_securityGroupIds.push_back(securityGroupIdsJsonList[securityGroupIdsIndex].AsString()); + } + m_securityGroupIdsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Subnets")) + { + Aws::Utils::Array subnetsJsonList = jsonValue.GetArray("Subnets"); + for(unsigned subnetsIndex = 0; subnetsIndex < subnetsJsonList.GetLength(); ++subnetsIndex) + { + m_subnets.push_back(subnetsJsonList[subnetsIndex].AsString()); + } + m_subnetsHasBeenSet = true; + } + + return *this; +} + +JsonValue OptimizationVpcConfig::Jsonize() const +{ + JsonValue payload; + + if(m_securityGroupIdsHasBeenSet) + { + Aws::Utils::Array securityGroupIdsJsonList(m_securityGroupIds.size()); + for(unsigned securityGroupIdsIndex = 0; securityGroupIdsIndex < securityGroupIdsJsonList.GetLength(); ++securityGroupIdsIndex) + { + securityGroupIdsJsonList[securityGroupIdsIndex].AsString(m_securityGroupIds[securityGroupIdsIndex]); + } + payload.WithArray("SecurityGroupIds", std::move(securityGroupIdsJsonList)); + + } + + if(m_subnetsHasBeenSet) + { + Aws::Utils::Array subnetsJsonList(m_subnets.size()); + for(unsigned subnetsIndex = 0; subnetsIndex < subnetsJsonList.GetLength(); ++subnetsIndex) + { + subnetsJsonList[subnetsIndex].AsString(m_subnets[subnetsIndex]); + } + payload.WithArray("Subnets", std::move(subnetsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace SageMaker +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-sagemaker/source/model/StopOptimizationJobRequest.cpp b/generated/src/aws-cpp-sdk-sagemaker/source/model/StopOptimizationJobRequest.cpp new file mode 100644 index 00000000000..40d3f6373cb --- /dev/null +++ b/generated/src/aws-cpp-sdk-sagemaker/source/model/StopOptimizationJobRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::SageMaker::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StopOptimizationJobRequest::StopOptimizationJobRequest() : + m_optimizationJobNameHasBeenSet(false) +{ +} + +Aws::String StopOptimizationJobRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_optimizationJobNameHasBeenSet) + { + payload.WithString("OptimizationJobName", m_optimizationJobName); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StopOptimizationJobRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "SageMaker.StopOptimizationJob")); + return headers; + +} + + + + 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 98b00793ec9..55a462c72a5 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.364" +#define AWS_SDK_VERSION_STRING "1.11.365" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 364 +#define AWS_SDK_VERSION_PATCH 365 diff --git a/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json b/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json index 97a617d4dd3..a2ac24a9afd 100644 --- a/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json +++ b/tools/code-generation/api-descriptions/datazone-2018-05-10.normal.json @@ -5104,11 +5104,15 @@ "documentation":"

    " } }, - "documentation":"

    " + "documentation":"

    ", + "deprecated":true, + "deprecatedMessage":"This structure is deprecated." }, "DataProductItems":{ "type":"list", "member":{"shape":"DataProductItem"}, + "deprecated":true, + "deprecatedMessage":"This structure is deprecated.", "max":100, "min":0 }, @@ -5172,7 +5176,9 @@ "documentation":"

    " } }, - "documentation":"

    " + "documentation":"

    ", + "deprecated":true, + "deprecatedMessage":"This structure is deprecated." }, "DataSourceConfigurationInput":{ "type":"structure", @@ -12161,7 +12167,9 @@ }, "dataProductItem":{ "shape":"DataProductSummary", - "documentation":"

    The data product item included in the search results.

    " + "documentation":"

    The data product item included in the search results.

    ", + "deprecated":true, + "deprecatedMessage":"This field is deprecated." }, "glossaryItem":{ "shape":"GlossaryItem", diff --git a/tools/code-generation/api-descriptions/fsx-2018-03-01.normal.json b/tools/code-generation/api-descriptions/fsx-2018-03-01.normal.json index 3d15bca4b38..16d7dda7a45 100644 --- a/tools/code-generation/api-descriptions/fsx-2018-03-01.normal.json +++ b/tools/code-generation/api-descriptions/fsx-2018-03-01.normal.json @@ -11,7 +11,8 @@ "signatureVersion":"v4", "signingName":"fsx", "targetPrefix":"AWSSimbaAPIService_v20180301", - "uid":"fsx-2018-03-01" + "uid":"fsx-2018-03-01", + "auth":["aws.auth#sigv4"] }, "operations":{ "AssociateFileSystemAliases":{ @@ -876,7 +877,7 @@ "AdministrativeActionType":{"shape":"AdministrativeActionType"}, "ProgressPercent":{ "shape":"ProgressPercent", - "documentation":"

    The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not apply to any other administrative action type.

    " + "documentation":"

    The percentage-complete status of a STORAGE_OPTIMIZATION or DOWNLOAD_DATA_FROM_BACKUP administrative action. Does not apply to any other administrative action type.

    " }, "RequestTime":{ "shape":"RequestTime", @@ -884,7 +885,7 @@ }, "Status":{ "shape":"Status", - "documentation":"

    The status of the administrative action, as follows:

    • FAILED - Amazon FSx failed to process the administrative action successfully.

    • IN_PROGRESS - Amazon FSx is processing the administrative action.

    • PENDING - Amazon FSx is waiting to process the administrative action.

    • COMPLETED - Amazon FSx has finished processing the administrative task.

    • UPDATED_OPTIMIZING - For a storage-capacity increase update, Amazon FSx has updated the file system with the new storage capacity, and is now performing the storage-optimization process.

    " + "documentation":"

    The status of the administrative action, as follows:

    • FAILED - Amazon FSx failed to process the administrative action successfully.

    • IN_PROGRESS - Amazon FSx is processing the administrative action.

    • PENDING - Amazon FSx is waiting to process the administrative action.

    • COMPLETED - Amazon FSx has finished processing the administrative task.

      For a backup restore to a second-generation FSx for ONTAP file system, indicates that all data has been downloaded to the volume, and clients now have read-write access to volume.

    • UPDATED_OPTIMIZING - For a storage-capacity increase update, Amazon FSx has updated the file system with the new storage capacity, and is now performing the storage-optimization process.

    • PENDING - For a backup restore to a second-generation FSx for ONTAP file system, indicates that the file metadata is being downloaded onto the volume. The volume's Lifecycle state is CREATING.

    • IN_PROGRESS - For a backup restore to a second-generation FSx for ONTAP file system, indicates that all metadata has been downloaded to the new volume and client can access data with read-only access while Amazon FSx downloads the file data to the volume. Track the progress of this process with the ProgressPercent element.

    " }, "TargetFileSystemValues":{ "shape":"FileSystem", @@ -916,7 +917,7 @@ }, "AdministrativeActionType":{ "type":"string", - "documentation":"

    Describes the type of administrative action, as follows:

    • FILE_SYSTEM_UPDATE - A file system update administrative action initiated from the Amazon FSx console, API (UpdateFileSystem), or CLI (update-file-system).

    • THROUGHPUT_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's throughput capacity has been completed successfully, a THROUGHPUT_OPTIMIZATION task starts.

      You can track the storage-optimization progress using the ProgressPercent property. When THROUGHPUT_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more information, see Managing throughput capacity in the Amazon FSx for Windows File Server User Guide.

    • STORAGE_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's storage capacity has been completed successfully, a STORAGE_OPTIMIZATION task starts.

      • For Windows and ONTAP, storage optimization is the process of migrating the file system data to newer larger disks.

      • For Lustre, storage optimization consists of rebalancing the data across the existing and newly added file servers.

      You can track the storage-optimization progress using the ProgressPercent property. When STORAGE_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more information, see Managing storage capacity in the Amazon FSx for Windows File Server User Guide, Managing storage capacity in the Amazon FSx for Lustre User Guide, and Managing storage capacity and provisioned IOPS in the Amazon FSx for NetApp ONTAP User Guide.

    • FILE_SYSTEM_ALIAS_ASSOCIATION - A file system update to associate a new Domain Name System (DNS) alias with the file system. For more information, see AssociateFileSystemAliases.

    • FILE_SYSTEM_ALIAS_DISASSOCIATION - A file system update to disassociate a DNS alias from the file system. For more information, see DisassociateFileSystemAliases.

    • IOPS_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's throughput capacity has been completed successfully, a IOPS_OPTIMIZATION task starts.

      You can track the storage-optimization progress using the ProgressPercent property. When IOPS_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more information, see Managing provisioned SSD IOPS in the Amazon FSx for Windows File Server User Guide.

    • STORAGE_TYPE_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's throughput capacity has been completed successfully, a STORAGE_TYPE_OPTIMIZATION task starts.

      You can track the storage-optimization progress using the ProgressPercent property. When STORAGE_TYPE_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED.

    • VOLUME_UPDATE - A volume update to an Amazon FSx for OpenZFS volume initiated from the Amazon FSx console, API (UpdateVolume), or CLI (update-volume).

    • VOLUME_RESTORE - An Amazon FSx for OpenZFS volume is returned to the state saved by the specified snapshot, initiated from an API (RestoreVolumeFromSnapshot) or CLI (restore-volume-from-snapshot).

    • SNAPSHOT_UPDATE - A snapshot update to an Amazon FSx for OpenZFS volume initiated from the Amazon FSx console, API (UpdateSnapshot), or CLI (update-snapshot).

    • RELEASE_NFS_V3_LOCKS - Tracks the release of Network File System (NFS) V3 locks on an Amazon FSx for OpenZFS file system.

    • VOLUME_INITIALIZE_WITH_SNAPSHOT - A volume is being created from a snapshot on a different FSx for OpenZFS file system. You can initiate this from the Amazon FSx console, API (CreateVolume), or CLI (create-volume) when using the using the FULL_COPY strategy.

    • VOLUME_UPDATE_WITH_SNAPSHOT - A volume is being updated from a snapshot on a different FSx for OpenZFS file system. You can initiate this from the Amazon FSx console, API (CopySnapshotAndUpdateVolume), or CLI (copy-snapshot-and-update-volume).

    ", + "documentation":"

    Describes the type of administrative action, as follows:

    • FILE_SYSTEM_UPDATE - A file system update administrative action initiated from the Amazon FSx console, API (UpdateFileSystem), or CLI (update-file-system).

    • THROUGHPUT_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's throughput capacity has been completed successfully, a THROUGHPUT_OPTIMIZATION task starts.

      You can track the storage-optimization progress using the ProgressPercent property. When THROUGHPUT_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more information, see Managing throughput capacity in the Amazon FSx for Windows File Server User Guide.

    • STORAGE_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's storage capacity has completed successfully, a STORAGE_OPTIMIZATION task starts.

      • For Windows and ONTAP, storage optimization is the process of migrating the file system data to newer larger disks.

      • For Lustre, storage optimization consists of rebalancing the data across the existing and newly added file servers.

      You can track the storage-optimization progress using the ProgressPercent property. When STORAGE_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more information, see Managing storage capacity in the Amazon FSx for Windows File Server User Guide, Managing storage capacity in the Amazon FSx for Lustre User Guide, and Managing storage capacity and provisioned IOPS in the Amazon FSx for NetApp ONTAP User Guide.

    • FILE_SYSTEM_ALIAS_ASSOCIATION - A file system update to associate a new Domain Name System (DNS) alias with the file system. For more information, see AssociateFileSystemAliases.

    • FILE_SYSTEM_ALIAS_DISASSOCIATION - A file system update to disassociate a DNS alias from the file system. For more information, see DisassociateFileSystemAliases.

    • IOPS_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's throughput capacity has been completed successfully, a IOPS_OPTIMIZATION task starts.

      You can track the storage-optimization progress using the ProgressPercent property. When IOPS_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED. For more information, see Managing provisioned SSD IOPS in the Amazon FSx for Windows File Server User Guide.

    • STORAGE_TYPE_OPTIMIZATION - After the FILE_SYSTEM_UPDATE task to increase a file system's throughput capacity has been completed successfully, a STORAGE_TYPE_OPTIMIZATION task starts.

      You can track the storage-optimization progress using the ProgressPercent property. When STORAGE_TYPE_OPTIMIZATION has been completed successfully, the parent FILE_SYSTEM_UPDATE action status changes to COMPLETED.

    • VOLUME_UPDATE - A volume update to an Amazon FSx for OpenZFS volume initiated from the Amazon FSx console, API (UpdateVolume), or CLI (update-volume).

    • VOLUME_RESTORE - An Amazon FSx for OpenZFS volume is returned to the state saved by the specified snapshot, initiated from an API (RestoreVolumeFromSnapshot) or CLI (restore-volume-from-snapshot).

    • SNAPSHOT_UPDATE - A snapshot update to an Amazon FSx for OpenZFS volume initiated from the Amazon FSx console, API (UpdateSnapshot), or CLI (update-snapshot).

    • RELEASE_NFS_V3_LOCKS - Tracks the release of Network File System (NFS) V3 locks on an Amazon FSx for OpenZFS file system.

    • DOWNLOAD_DATA_FROM_BACKUP - An FSx for ONTAP backup is being restored to a new volume on a second-generation file system. Once the all the file metadata is loaded onto the volume, you can mount the volume with read-only access. during this process.

    • VOLUME_INITIALIZE_WITH_SNAPSHOT - A volume is being created from a snapshot on a different FSx for OpenZFS file system. You can initiate this from the Amazon FSx console, API (CreateVolume), or CLI (create-volume) when using the using the FULL_COPY strategy.

    • VOLUME_UPDATE_WITH_SNAPSHOT - A volume is being updated from a snapshot on a different FSx for OpenZFS file system. You can initiate this from the Amazon FSx console, API (CopySnapshotAndUpdateVolume), or CLI (copy-snapshot-and-update-volume).

    ", "enum":[ "FILE_SYSTEM_UPDATE", "STORAGE_OPTIMIZATION", @@ -931,7 +932,8 @@ "STORAGE_TYPE_OPTIMIZATION", "MISCONFIGURED_STATE_RECOVERY", "VOLUME_UPDATE_WITH_SNAPSHOT", - "VOLUME_INITIALIZE_WITH_SNAPSHOT" + "VOLUME_INITIALIZE_WITH_SNAPSHOT", + "DOWNLOAD_DATA_FROM_BACKUP" ] }, "AdministrativeActions":{ @@ -950,7 +952,7 @@ "members":{ "Aggregates":{ "shape":"Aggregates", - "documentation":"

    The list of aggregates that this volume resides on. Aggregates are storage pools which make up your primary storage tier. Each high-availability (HA) pair has one aggregate. The names of the aggregates map to the names of the aggregates in the ONTAP CLI and REST API. For FlexVols, there will always be a single entry.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The strings in the value of Aggregates are not are not formatted as aggrX, where X is a number between 1 and 6.

    • The value of Aggregates contains aggregates that are not present.

    • One or more of the aggregates supplied are too close to the volume limit to support adding more volumes.

    " + "documentation":"

    The list of aggregates that this volume resides on. Aggregates are storage pools which make up your primary storage tier. Each high-availability (HA) pair has one aggregate. The names of the aggregates map to the names of the aggregates in the ONTAP CLI and REST API. For FlexVols, there will always be a single entry.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The strings in the value of Aggregates are not are not formatted as aggrX, where X is a number between 1 and 12.

    • The value of Aggregates contains aggregates that are not present.

    • One or more of the aggregates supplied are too close to the volume limit to support adding more volumes.

    " }, "TotalConstituents":{ "shape":"TotalConstituents", @@ -1784,7 +1786,7 @@ "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, "DeploymentType":{ "shape":"OntapDeploymentType", - "documentation":"

    Specifies the FSx for ONTAP file system deployment type to use in creating the file system.

    • MULTI_AZ_1 - (Default) A high availability file system configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability.

    • SINGLE_AZ_1 - A file system configured for Single-AZ redundancy.

    • SINGLE_AZ_2 - A file system configured with multiple high-availability (HA) pairs for Single-AZ redundancy.

    For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system deployment type.

    " + "documentation":"

    Specifies the FSx for ONTAP file system deployment type to use in creating the file system.

    • MULTI_AZ_1 - A high availability file system configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. This is a first-generation FSx for ONTAP file system.

    • MULTI_AZ_2 - A high availability file system configured for Multi-AZ redundancy to tolerate temporary AZ unavailability. This is a second-generation FSx for ONTAP file system.

    • SINGLE_AZ_1 - A file system configured for Single-AZ redundancy. This is a first-generation FSx for ONTAP file system.

    • SINGLE_AZ_2 - A file system configured with multiple high-availability (HA) pairs for Single-AZ redundancy. This is a second-generation FSx for ONTAP file system.

    For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing a file system deployment type.

    " }, "EndpointIpAddressRange":{ "shape":"IpAddressRange", @@ -1800,7 +1802,7 @@ }, "PreferredSubnetId":{ "shape":"SubnetId", - "documentation":"

    Required when DeploymentType is set to MULTI_AZ_1. This specifies the subnet in which you want the preferred file server to be located.

    " + "documentation":"

    Required when DeploymentType is set to MULTI_AZ_1 or MULTI_AZ_2. This specifies the subnet in which you want the preferred file server to be located.

    " }, "RouteTableIds":{ "shape":"RouteTableIds", @@ -1813,11 +1815,11 @@ "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"}, "HAPairs":{ "shape":"HAPairs", - "documentation":"

    Specifies how many high-availability (HA) pairs of file servers will power your file system. Scale-up file systems are powered by 1 HA pair. The default value is 1. FSx for ONTAP scale-out file systems are powered by up to 12 HA pairs. The value of this property affects the values of StorageCapacity, Iops, and ThroughputCapacity. For more information, see High-availability (HA) pairs in the FSx for ONTAP user guide.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of HAPairs is less than 1 or greater than 12.

    • The value of HAPairs is greater than 1 and the value of DeploymentType is SINGLE_AZ_1 or MULTI_AZ_1.

    " + "documentation":"

    Specifies how many high-availability (HA) pairs of file servers will power your file system. First-generation file systems are powered by 1 HA pair. Second-generation multi-AZ file systems are powered by 1 HA pair. Second generation single-AZ file systems are powered by up to 12 HA pairs. The default value is 1. The value of this property affects the values of StorageCapacity, Iops, and ThroughputCapacity. For more information, see High-availability (HA) pairs in the FSx for ONTAP user guide. Block storage protocol support (iSCSI and NVMe over TCP) is disabled on file systems with more than 6 HA pairs. For more information, see Using block storage protocols.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of HAPairs is less than 1 or greater than 12.

    • The value of HAPairs is greater than 1 and the value of DeploymentType is SINGLE_AZ_1, MULTI_AZ_1, or MULTI_AZ_2.

    " }, "ThroughputCapacityPerHAPair":{ "shape":"ThroughputCapacityPerHAPair", - "documentation":"

    Use to choose the throughput capacity per HA pair, rather than the total throughput for the file system.

    You can define either the ThroughputCapacityPerHAPair or the ThroughputCapacity when creating a file system, but not both.

    This field and ThroughputCapacity are the same for scale-up file systems powered by one HA pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1 file systems, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For SINGLE_AZ_2 file systems, valid values are 3072 or 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of ThroughputCapacity and ThroughputCapacityPerHAPair are not the same value for file systems with one HA pair.

    • The value of deployment type is SINGLE_AZ_2 and ThroughputCapacity / ThroughputCapacityPerHAPair is a valid HA pair (a value between 2 and 12).

    • The value of ThroughputCapacityPerHAPair is not a valid value.

    " + "documentation":"

    Use to choose the throughput capacity per HA pair, rather than the total throughput for the file system.

    You can define either the ThroughputCapacityPerHAPair or the ThroughputCapacity when creating a file system, but not both.

    This field and ThroughputCapacity are the same for file systems powered by one HA pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1 file systems, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For SINGLE_AZ_2, valid values are 1536, 3072, or 6144 MBps.

    • For MULTI_AZ_2, valid values are 384, 768, 1536, 3072, or 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of ThroughputCapacity and ThroughputCapacityPerHAPair are not the same value for file systems with one HA pair.

    • The value of deployment type is SINGLE_AZ_2 and ThroughputCapacity / ThroughputCapacityPerHAPair is not a valid HA pair (a value between 1 and 12).

    • The value of ThroughputCapacityPerHAPair is not a valid value.

    " } }, "documentation":"

    The ONTAP configuration properties of the FSx for ONTAP file system that you are creating.

    " @@ -1841,7 +1843,7 @@ "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, "DeploymentType":{ "shape":"OpenZFSDeploymentType", - "documentation":"

    Specifies the file system deployment type. Single AZ deployment types are configured for redundancy within a single Availability Zone in an Amazon Web Services Region . Valid values are the following:

    • MULTI_AZ_1- Creates file systems with high availability that are configured for Multi-AZ redundancy to tolerate temporary unavailability in Availability Zones (AZs). Multi_AZ_1 is available only in the US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) Amazon Web Services Regions.

    • SINGLE_AZ_1- Creates file systems with throughput capacities of 64 - 4,096 MB/s. Single_AZ_1 is available in all Amazon Web Services Regions where Amazon FSx for OpenZFS is available.

    • SINGLE_AZ_2- Creates file systems with throughput capacities of 160 - 10,240 MB/s using an NVMe L2ARC cache. Single_AZ_2 is available only in the US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Singapore), Asia Pacific (Tokyo), and Europe (Ireland) Amazon Web Services Regions.

    For more information, see Deployment type availability and File system performance in the Amazon FSx for OpenZFS User Guide.

    " + "documentation":"

    Specifies the file system deployment type. Valid values are the following:

    • MULTI_AZ_1- Creates file systems with high availability and durability by replicating your data and supporting failover across multiple Availability Zones in the same Amazon Web Services Region.

    • SINGLE_AZ_HA_2- Creates file systems with high availability and throughput capacities of 160 - 10,240 MB/s using an NVMe L2ARC cache by deploying a primary and standby file system within the same Availability Zone.

    • SINGLE_AZ_HA_1- Creates file systems with high availability and throughput capacities of 64 - 4,096 MB/s by deploying a primary and standby file system within the same Availability Zone.

    • SINGLE_AZ_2- Creates file systems with throughput capacities of 160 - 10,240 MB/s using an NVMe L2ARC cache that automatically recover within a single Availability Zone.

    • SINGLE_AZ_1- Creates file systems with throughput capacities of 64 - 4,096 MBs that automatically recover within a single Availability Zone.

    For a list of which Amazon Web Services Regions each deployment type is available in, see Deployment type availability. For more information on the differences in performance between deployment types, see File system performance in the Amazon FSx for OpenZFS User Guide.

    " }, "ThroughputCapacity":{ "shape":"MegabytesPerSecond", @@ -3460,7 +3462,7 @@ }, "FailureDetails":{ "shape":"FileCacheFailureDetails", - "documentation":"

    A structure providing details of any failures that occurred.

    " + "documentation":"

    A structure providing details of any failures that occurred in creating a cache.

    " }, "StorageCapacity":{ "shape":"StorageCapacity", @@ -4374,7 +4376,8 @@ "enum":[ "MULTI_AZ_1", "SINGLE_AZ_1", - "SINGLE_AZ_2" + "SINGLE_AZ_2", + "MULTI_AZ_2" ] }, "OntapEndpointIpAddresses":{ @@ -4390,7 +4393,7 @@ "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, "DeploymentType":{ "shape":"OntapDeploymentType", - "documentation":"

    Specifies the FSx for ONTAP file system deployment type in use in the file system.

    • MULTI_AZ_1 - (Default) A high availability file system configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability.

    • SINGLE_AZ_1 - A file system configured for Single-AZ redundancy.

    • SINGLE_AZ_2 - A file system configured with multiple high-availability (HA) pairs for Single-AZ redundancy.

    For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing Multi-AZ or Single-AZ file system deployment.

    " + "documentation":"

    Specifies the FSx for ONTAP file system deployment type in use in the file system.

    • MULTI_AZ_1 - A high availability file system configured for Multi-AZ redundancy to tolerate temporary Availability Zone (AZ) unavailability. This is a first-generation FSx for ONTAP file system.

    • MULTI_AZ_2 - A high availability file system configured for Multi-AZ redundancy to tolerate temporary AZ unavailability. This is a second-generation FSx for ONTAP file system.

    • SINGLE_AZ_1 - A file system configured for Single-AZ redundancy. This is a first-generation FSx for ONTAP file system.

    • SINGLE_AZ_2 - A file system configured with multiple high-availability (HA) pairs for Single-AZ redundancy. This is a second-generation FSx for ONTAP file system.

    For information about the use cases for Multi-AZ and Single-AZ deployments, refer to Choosing Multi-AZ or Single-AZ file system deployment.

    " }, "EndpointIpAddressRange":{ "shape":"IpAddressRange", @@ -4417,11 +4420,11 @@ }, "HAPairs":{ "shape":"HAPairs", - "documentation":"

    Specifies how many high-availability (HA) file server pairs the file system will have. The default value is 1. The value of this property affects the values of StorageCapacity, Iops, and ThroughputCapacity. For more information, see High-availability (HA) pairs in the FSx for ONTAP user guide.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of HAPairs is less than 1 or greater than 12.

    • The value of HAPairs is greater than 1 and the value of DeploymentType is SINGLE_AZ_1 or MULTI_AZ_1.

    " + "documentation":"

    Specifies how many high-availability (HA) file server pairs the file system will have. The default value is 1. The value of this property affects the values of StorageCapacity, Iops, and ThroughputCapacity. For more information, see High-availability (HA) pairs in the FSx for ONTAP user guide.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of HAPairs is less than 1 or greater than 12.

    • The value of HAPairs is greater than 1 and the value of DeploymentType is SINGLE_AZ_1, MULTI_AZ_1, or MULTI_AZ_2.

    " }, "ThroughputCapacityPerHAPair":{ "shape":"ThroughputCapacityPerHAPair", - "documentation":"

    Use to choose the throughput capacity per HA pair. When the value of HAPairs is equal to 1, the value of ThroughputCapacityPerHAPair is the total throughput for the file system.

    This field and ThroughputCapacity cannot be defined in the same API call, but one is required.

    This field and ThroughputCapacity are the same for file systems with one HA pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For SINGLE_AZ_2, valid values are 3072 or 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of ThroughputCapacity and ThroughputCapacityPerHAPair are not the same value.

    • The value of deployment type is SINGLE_AZ_2 and ThroughputCapacity / ThroughputCapacityPerHAPair is a valid HA pair (a value between 2 and 12).

    • The value of ThroughputCapacityPerHAPair is not a valid value.

    " + "documentation":"

    Use to choose the throughput capacity per HA pair. When the value of HAPairs is equal to 1, the value of ThroughputCapacityPerHAPair is the total throughput for the file system.

    This field and ThroughputCapacity cannot be defined in the same API call, but one is required.

    This field and ThroughputCapacity are the same for file systems with one HA pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1 file systems, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For SINGLE_AZ_2, valid values are 1536, 3072, or 6144 MBps.

    • For MULTI_AZ_2, valid values are 384, 768, 1536, 3072, or 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of ThroughputCapacity and ThroughputCapacityPerHAPair are not the same value.

    • The value of deployment type is SINGLE_AZ_2 and ThroughputCapacity / ThroughputCapacityPerHAPair is not a valid HA pair (a value between 1 and 12).

    • The value of ThroughputCapacityPerHAPair is not a valid value.

    " } }, "documentation":"

    Configuration for the FSx for NetApp ONTAP file system.

    " @@ -4584,6 +4587,8 @@ "enum":[ "SINGLE_AZ_1", "SINGLE_AZ_2", + "SINGLE_AZ_HA_1", + "SINGLE_AZ_HA_2", "MULTI_AZ_1" ] }, @@ -4602,7 +4607,7 @@ "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, "DeploymentType":{ "shape":"OpenZFSDeploymentType", - "documentation":"

    Specifies the file-system deployment type. Amazon FSx for OpenZFS supports
 MULTI_AZ_1, SINGLE_AZ_1, and SINGLE_AZ_2.

    " + "documentation":"

    Specifies the file-system deployment type. Amazon FSx for OpenZFS supports
 MULTI_AZ_1, SINGLE_AZ_HA_2, SINGLE_AZ_HA_1, SINGLE_AZ_2, and SINGLE_AZ_1.

    " }, "ThroughputCapacity":{ "shape":"MegabytesPerSecond", @@ -5370,7 +5375,8 @@ "IN_PROGRESS", "PENDING", "COMPLETED", - "UPDATED_OPTIMIZING" + "UPDATED_OPTIMIZING", + "OPTIMIZING" ] }, "StorageCapacity":{ @@ -5894,7 +5900,11 @@ }, "ThroughputCapacityPerHAPair":{ "shape":"ThroughputCapacityPerHAPair", - "documentation":"

    Use to choose the throughput capacity per HA pair, rather than the total throughput for the file system.

    This field and ThroughputCapacity cannot be defined in the same API call, but one is required.

    This field and ThroughputCapacity are the same for file systems with one HA pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For SINGLE_AZ_2, valid values are 3072 or 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of ThroughputCapacity and ThroughputCapacityPerHAPair are not the same value for file systems with one HA pair.

    • The value of deployment type is SINGLE_AZ_2 and ThroughputCapacity / ThroughputCapacityPerHAPair is a valid HA pair (a value between 2 and 12).

    • The value of ThroughputCapacityPerHAPair is not a valid value.

    " + "documentation":"

    Use to choose the throughput capacity per HA pair, rather than the total throughput for the file system.

    This field and ThroughputCapacity cannot be defined in the same API call, but one is required.

    This field and ThroughputCapacity are the same for file systems with one HA pair.

    • For SINGLE_AZ_1 and MULTI_AZ_1 file systems, valid values are 128, 256, 512, 1024, 2048, or 4096 MBps.

    • For SINGLE_AZ_2, valid values are 1536, 3072, or 6144 MBps.

    • For MULTI_AZ_2, valid values are 384, 768, 1536, 3072, or 6144 MBps.

    Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

    • The value of ThroughputCapacity and ThroughputCapacityPerHAPair are not the same value for file systems with one HA pair.

    • The value of deployment type is SINGLE_AZ_2 and ThroughputCapacity / ThroughputCapacityPerHAPair is not a valid HA pair (a value between 1 and 12).

    • The value of ThroughputCapacityPerHAPair is not a valid value.

    " + }, + "HAPairs":{ + "shape":"HAPairs", + "documentation":"

    Use to update the number of high-availability (HA) pairs for a second-generation single-AZ file system. If you increase the number of HA pairs for your file system, you must specify proportional increases for StorageCapacity, Iops, and ThroughputCapacity. For more information, see High-availability (HA) pairs in the FSx for ONTAP user guide. Block storage protocol support (iSCSI and NVMe over TCP) is disabled on file systems with more than 6 HA pairs. For more information, see Using block storage protocols.

    " } }, "documentation":"

    The configuration updates for an Amazon FSx for NetApp ONTAP file system.

    " diff --git a/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json b/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json index 4414ddf9a9f..733048f4c9a 100644 --- a/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json +++ b/tools/code-generation/api-descriptions/opensearch-2021-01-01.normal.json @@ -1063,6 +1063,37 @@ } }, "shapes":{ + "AIMLOptionsInput":{ + "type":"structure", + "members":{ + "NaturalLanguageQueryGenerationOptions":{ + "shape":"NaturalLanguageQueryGenerationOptionsInput", + "documentation":"

    Container for parameters required for natural language query generation on the specified domain.

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

    Container for parameters required to enable all machine learning features.

    " + }, + "AIMLOptionsOutput":{ + "type":"structure", + "members":{ + "NaturalLanguageQueryGenerationOptions":{ + "shape":"NaturalLanguageQueryGenerationOptionsOutput", + "documentation":"

    Container for parameters required for natural language query generation on the specified domain.

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

    Container for parameters representing the state of machine learning features on the specified domain.

    " + }, + "AIMLOptionsStatus":{ + "type":"structure", + "members":{ + "Options":{ + "shape":"AIMLOptionsOutput", + "documentation":"

    Machine learning options on the specified domain.

    " + }, + "Status":{"shape":"OptionStatus"} + }, + "documentation":"

    The status of machine learning options on the specified domain.

    " + }, "ARN":{ "type":"string", "documentation":"

    The Amazon Resource Name (ARN) of the domain. See Identifiers for IAM Entities in Using Amazon Web Services Identity and Access Management for more information.

    ", @@ -2155,6 +2186,10 @@ "SoftwareUpdateOptions":{ "shape":"SoftwareUpdateOptions", "documentation":"

    Software update options for the domain.

    " + }, + "AIMLOptions":{ + "shape":"AIMLOptionsInput", + "documentation":"

    Options for all machine learning features for the specified domain.

    " } } }, @@ -3207,6 +3242,10 @@ "ModifyingProperties":{ "shape":"ModifyingPropertiesList", "documentation":"

    Information about the domain properties that are currently being modified.

    " + }, + "AIMLOptions":{ + "shape":"AIMLOptionsStatus", + "documentation":"

    Container for parameters required to enable all machine learning features.

    " } }, "documentation":"

    Container for the configuration of an OpenSearch Service domain.

    " @@ -3614,6 +3653,10 @@ "ModifyingProperties":{ "shape":"ModifyingPropertiesList", "documentation":"

    Information about the domain properties that are currently being modified.

    " + }, + "AIMLOptions":{ + "shape":"AIMLOptionsOutput", + "documentation":"

    Container for parameters required to enable all machine learning features.

    " } }, "documentation":"

    The current status of an OpenSearch Service domain.

    " @@ -4934,6 +4977,49 @@ "type":"list", "member":{"shape":"ModifyingProperties"} }, + "NaturalLanguageQueryGenerationCurrentState":{ + "type":"string", + "enum":[ + "NOT_ENABLED", + "ENABLE_COMPLETE", + "ENABLE_IN_PROGRESS", + "ENABLE_FAILED", + "DISABLE_COMPLETE", + "DISABLE_IN_PROGRESS", + "DISABLE_FAILED" + ] + }, + "NaturalLanguageQueryGenerationDesiredState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, + "NaturalLanguageQueryGenerationOptionsInput":{ + "type":"structure", + "members":{ + "DesiredState":{ + "shape":"NaturalLanguageQueryGenerationDesiredState", + "documentation":"

    The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.

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

    Container for parameters required to enable the natural language query generation feature.

    " + }, + "NaturalLanguageQueryGenerationOptionsOutput":{ + "type":"structure", + "members":{ + "DesiredState":{ + "shape":"NaturalLanguageQueryGenerationDesiredState", + "documentation":"

    The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.

    " + }, + "CurrentState":{ + "shape":"NaturalLanguageQueryGenerationCurrentState", + "documentation":"

    The current state of the natural language query generation feature, indicating completion, in progress, or failure.

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

    Container for parameters representing the state of the natural language query generation feature on the specified domain.

    " + }, "NextToken":{ "type":"string", "documentation":"

    When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.

    " @@ -6421,6 +6507,10 @@ "SoftwareUpdateOptions":{ "shape":"SoftwareUpdateOptions", "documentation":"

    Service software update options for the domain.

    " + }, + "AIMLOptions":{ + "shape":"AIMLOptionsInput", + "documentation":"

    Options for all machine learning features for the specified domain.

    " } }, "documentation":"

    Container for the request parameters to the UpdateDomain operation.

    " diff --git a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json index 24d4b601081..e56dc5afc29 100644 --- a/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json +++ b/tools/code-generation/api-descriptions/sagemaker-2017-07-24.normal.json @@ -656,6 +656,20 @@ ], "documentation":"

    Creates a lifecycle configuration that you can associate with a notebook instance. A lifecycle configuration is a collection of shell scripts that run when you create or start a notebook instance.

    Each lifecycle configuration script has a limit of 16384 characters.

    The value of the $PATH environment variable that is available to both scripts is /sbin:bin:/usr/sbin:/usr/bin.

    View Amazon CloudWatch Logs for notebook instance lifecycle configurations in log group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].

    Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.

    For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

    " }, + "CreateOptimizationJob":{ + "name":"CreateOptimizationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateOptimizationJobRequest"}, + "output":{"shape":"CreateOptimizationJobResponse"}, + "errors":[ + {"shape":"ResourceInUse"}, + {"shape":"ResourceLimitExceeded"} + ], + "documentation":"

    Creates a job that optimizes a model for inference performance. To create the job, you provide the location of a source model, and you provide the settings for the optimization techniques that you want the job to apply. When the job completes successfully, SageMaker uploads the new optimized model to the output destination that you specify.

    For more information about how to use this action, and about the supported optimization techniques, see Optimize model inference with Amazon SageMaker.

    " + }, "CreatePipeline":{ "name":"CreatePipeline", "http":{ @@ -1344,6 +1358,18 @@ "input":{"shape":"DeleteNotebookInstanceLifecycleConfigInput"}, "documentation":"

    Deletes a notebook instance lifecycle configuration.

    " }, + "DeleteOptimizationJob":{ + "name":"DeleteOptimizationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteOptimizationJobRequest"}, + "errors":[ + {"shape":"ResourceNotFound"} + ], + "documentation":"

    Deletes an optimization job.

    " + }, "DeletePipeline":{ "name":"DeletePipeline", "http":{ @@ -2058,6 +2084,19 @@ "output":{"shape":"DescribeNotebookInstanceLifecycleConfigOutput"}, "documentation":"

    Returns a description of a notebook instance lifecycle configuration.

    For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

    " }, + "DescribeOptimizationJob":{ + "name":"DescribeOptimizationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeOptimizationJobRequest"}, + "output":{"shape":"DescribeOptimizationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFound"} + ], + "documentation":"

    Provides the properties of the specified optimization job.

    " + }, "DescribePipeline":{ "name":"DescribePipeline", "http":{ @@ -2961,6 +3000,16 @@ "output":{"shape":"ListNotebookInstancesOutput"}, "documentation":"

    Returns a list of the SageMaker notebook instances in the requester's account in an Amazon Web Services Region.

    " }, + "ListOptimizationJobs":{ + "name":"ListOptimizationJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListOptimizationJobsRequest"}, + "output":{"shape":"ListOptimizationJobsResponse"}, + "documentation":"

    Lists the optimization jobs in your account and their properties.

    " + }, "ListPipelineExecutionSteps":{ "name":"ListPipelineExecutionSteps", "http":{ @@ -3491,6 +3540,18 @@ "input":{"shape":"StopNotebookInstanceInput"}, "documentation":"

    Terminates the ML compute instance. Before terminating the instance, SageMaker disconnects the ML storage volume from it. SageMaker preserves the ML storage volume. SageMaker stops charging you for the ML compute instance when you call StopNotebookInstance.

    To access data on the ML storage volume for a notebook instance that has been terminated, call the StartNotebookInstance API. StartNotebookInstance launches another ML compute instance, configures it, and attaches the preserved ML storage volume so you can continue your work.

    " }, + "StopOptimizationJob":{ + "name":"StopOptimizationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopOptimizationJobRequest"}, + "errors":[ + {"shape":"ResourceNotFound"} + ], + "documentation":"

    Ends a running inference optimization job.

    " + }, "StopPipelineExecution":{ "name":"StopPipelineExecution", "http":{ @@ -4253,6 +4314,33 @@ "max":15, "min":1 }, + "AdditionalModelChannelName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[A-Za-z0-9\\.\\-_]+" + }, + "AdditionalModelDataSource":{ + "type":"structure", + "required":[ + "ChannelName", + "S3DataSource" + ], + "members":{ + "ChannelName":{ + "shape":"AdditionalModelChannelName", + "documentation":"

    A custom name for this AdditionalModelDataSource object.

    " + }, + "S3DataSource":{"shape":"S3ModelDataSource"} + }, + "documentation":"

    Data sources that are available to your model in addition to the one that you specify for ModelDataSource when you use the CreateModel action.

    " + }, + "AdditionalModelDataSources":{ + "type":"list", + "member":{"shape":"AdditionalModelDataSource"}, + "max":5, + "min":0 + }, "AdditionalS3DataSource":{ "type":"structure", "required":[ @@ -4529,6 +4617,20 @@ }, "documentation":"

    Specifies configurations for one or more training jobs that SageMaker runs to test the algorithm.

    " }, + "AmazonQSettings":{ + "type":"structure", + "members":{ + "Status":{ + "shape":"FeatureStatus", + "documentation":"

    Whether Amazon Q has been enabled within the domain.

    " + }, + "QProfileArn":{ + "shape":"QProfileArn", + "documentation":"

    The ARN of the Amazon Q profile used within the domain.

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

    A collection of settings that configure the Amazon Q experience within the domain.

    " + }, "AnnotationConsolidationConfig":{ "type":"structure", "required":["AnnotationConsolidationLambdaArn"], @@ -7891,6 +7993,10 @@ "shape":"ModelDataSource", "documentation":"

    Specifies the location of ML model data to deploy.

    Currently you cannot use ModelDataSource in conjunction with SageMaker batch transform, SageMaker serverless endpoints, SageMaker multi-model endpoints, and SageMaker Marketplace.

    " }, + "AdditionalModelDataSources":{ + "shape":"AdditionalModelDataSources", + "documentation":"

    Data sources that are available to your model in addition to the one that you specify for ModelDataSource when you use the CreateModel action.

    " + }, "Environment":{ "shape":"EnvironmentMap", "documentation":"

    The environment variables to set in the Docker container.

    The maximum length of each key and value in the Environment map is 1024 bytes. The maximum length of all keys and values in the map, combined, is 32 KB. If you pass multiple containers to a CreateModel request, then the maximum length of all of their maps, combined, is also 32 KB.

    " @@ -10201,6 +10307,67 @@ } } }, + "CreateOptimizationJobRequest":{ + "type":"structure", + "required":[ + "OptimizationJobName", + "RoleArn", + "ModelSource", + "DeploymentInstanceType", + "OptimizationConfigs", + "OutputConfig", + "StoppingCondition" + ], + "members":{ + "OptimizationJobName":{ + "shape":"EntityName", + "documentation":"

    A custom name for the new optimization job.

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

    The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.

    During model optimization, Amazon SageMaker needs your permission to:

    • Read input data from an S3 bucket

    • Write model artifacts to an S3 bucket

    • Write logs to Amazon CloudWatch Logs

    • Publish metrics to Amazon CloudWatch

    You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission. For more information, see Amazon SageMaker Roles.

    " + }, + "ModelSource":{ + "shape":"OptimizationJobModelSource", + "documentation":"

    The location of the source model to optimize with an optimization job.

    " + }, + "DeploymentInstanceType":{ + "shape":"OptimizationJobDeploymentInstanceType", + "documentation":"

    The type of instance that hosts the optimized model that you create with the optimization job.

    " + }, + "OptimizationEnvironment":{ + "shape":"OptimizationJobEnvironmentVariables", + "documentation":"

    The environment variables to set in the model container.

    " + }, + "OptimizationConfigs":{ + "shape":"OptimizationConfigs", + "documentation":"

    Settings for each of the optimization techniques that the job applies.

    " + }, + "OutputConfig":{ + "shape":"OptimizationJobOutputConfig", + "documentation":"

    Details for where to store the optimized model that you create with the optimization job.

    " + }, + "StoppingCondition":{"shape":"StoppingCondition"}, + "Tags":{ + "shape":"TagList", + "documentation":"

    A list of key-value pairs associated with the optimization job. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.

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

    A VPC in Amazon VPC that your optimized model has access to.

    " + } + } + }, + "CreateOptimizationJobResponse":{ + "type":"structure", + "required":["OptimizationJobArn"], + "members":{ + "OptimizationJobArn":{ + "shape":"OptimizationJobArn", + "documentation":"

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

    " + } + } + }, "CreatePipelineRequest":{ "type":"structure", "required":[ @@ -12061,6 +12228,16 @@ } } }, + "DeleteOptimizationJobRequest":{ + "type":"structure", + "required":["OptimizationJobName"], + "members":{ + "OptimizationJobName":{ + "shape":"EntityName", + "documentation":"

    The name that you assigned to the optimization job.

    " + } + } + }, "DeletePipelineRequest":{ "type":"structure", "required":[ @@ -15681,6 +15858,99 @@ } } }, + "DescribeOptimizationJobRequest":{ + "type":"structure", + "required":["OptimizationJobName"], + "members":{ + "OptimizationJobName":{ + "shape":"EntityName", + "documentation":"

    The name that you assigned to the optimization job.

    " + } + } + }, + "DescribeOptimizationJobResponse":{ + "type":"structure", + "required":[ + "OptimizationJobArn", + "OptimizationJobStatus", + "CreationTime", + "LastModifiedTime", + "OptimizationJobName", + "ModelSource", + "DeploymentInstanceType", + "OptimizationConfigs", + "OutputConfig", + "RoleArn", + "StoppingCondition" + ], + "members":{ + "OptimizationJobArn":{ + "shape":"OptimizationJobArn", + "documentation":"

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

    " + }, + "OptimizationJobStatus":{ + "shape":"OptimizationJobStatus", + "documentation":"

    The current status of the optimization job.

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

    The time when the optimization job started.

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

    The time when the optimization job finished processing.

    " + }, + "CreationTime":{ + "shape":"CreationTime", + "documentation":"

    The time when you created the optimization job.

    " + }, + "LastModifiedTime":{ + "shape":"LastModifiedTime", + "documentation":"

    The time when the optimization job was last updated.

    " + }, + "FailureReason":{ + "shape":"FailureReason", + "documentation":"

    If the optimization job status is FAILED, the reason for the failure.

    " + }, + "OptimizationJobName":{ + "shape":"EntityName", + "documentation":"

    The name that you assigned to the optimization job.

    " + }, + "ModelSource":{ + "shape":"OptimizationJobModelSource", + "documentation":"

    The location of the source model to optimize with an optimization job.

    " + }, + "OptimizationEnvironment":{ + "shape":"OptimizationJobEnvironmentVariables", + "documentation":"

    The environment variables to set in the model container.

    " + }, + "DeploymentInstanceType":{ + "shape":"OptimizationJobDeploymentInstanceType", + "documentation":"

    The type of instance that hosts the optimized model that you create with the optimization job.

    " + }, + "OptimizationConfigs":{ + "shape":"OptimizationConfigs", + "documentation":"

    Settings for each of the optimization techniques that the job applies.

    " + }, + "OutputConfig":{ + "shape":"OptimizationJobOutputConfig", + "documentation":"

    Details for where to store the optimized model that you create with the optimization job.

    " + }, + "OptimizationOutput":{ + "shape":"OptimizationOutput", + "documentation":"

    Output values produced by an optimization job.

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

    The ARN of the IAM role that you assigned to the optimization job.

    " + }, + "StoppingCondition":{"shape":"StoppingCondition"}, + "VpcConfig":{ + "shape":"OptimizationVpcConfig", + "documentation":"

    A VPC in Amazon VPC that your optimized model has access to.

    " + } + } + }, "DescribePipelineDefinitionForExecutionRequest":{ "type":"structure", "required":["PipelineExecutionArn"], @@ -17143,6 +17413,10 @@ "DockerSettings":{ "shape":"DockerSettings", "documentation":"

    A collection of settings that configure the domain's Docker interaction.

    " + }, + "AmazonQSettings":{ + "shape":"AmazonQSettings", + "documentation":"

    A collection of settings that configure the Amazon Q experience within the domain. The AuthMode that you use to create the domain must be SSO.

    " } }, "documentation":"

    A collection of settings that apply to the SageMaker Domain. These settings are specified through the CreateDomain API call.

    " @@ -17165,6 +17439,10 @@ "DockerSettings":{ "shape":"DockerSettings", "documentation":"

    A collection of settings that configure the domain's Docker interaction.

    " + }, + "AmazonQSettings":{ + "shape":"AmazonQSettings", + "documentation":"

    A collection of settings that configure the Amazon Q experience within the domain.

    " } }, "documentation":"

    A collection of Domain configuration settings to update.

    " @@ -25406,6 +25684,78 @@ } } }, + "ListOptimizationJobsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

    A token that you use to get the next set of results following a truncated response. If the response to the previous request was truncated, that response provides the value for this token.

    " + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of optimization jobs to return in the response. The default is 50.

    ", + "box":true + }, + "CreationTimeAfter":{ + "shape":"CreationTime", + "documentation":"

    Filters the results to only those optimization jobs that were created after the specified time.

    " + }, + "CreationTimeBefore":{ + "shape":"CreationTime", + "documentation":"

    Filters the results to only those optimization jobs that were created before the specified time.

    " + }, + "LastModifiedTimeAfter":{ + "shape":"LastModifiedTime", + "documentation":"

    Filters the results to only those optimization jobs that were updated after the specified time.

    " + }, + "LastModifiedTimeBefore":{ + "shape":"LastModifiedTime", + "documentation":"

    Filters the results to only those optimization jobs that were updated before the specified time.

    " + }, + "OptimizationContains":{ + "shape":"NameContains", + "documentation":"

    Filters the results to only those optimization jobs that apply the specified optimization techniques. You can specify either Quantization or Compilation.

    " + }, + "NameContains":{ + "shape":"NameContains", + "documentation":"

    Filters the results to only those optimization jobs with a name that contains the specified string.

    " + }, + "StatusEquals":{ + "shape":"OptimizationJobStatus", + "documentation":"

    Filters the results to only those optimization jobs with the specified status.

    " + }, + "SortBy":{ + "shape":"ListOptimizationJobsSortBy", + "documentation":"

    The field by which to sort the optimization jobs in the response. The default is CreationTime

    " + }, + "SortOrder":{ + "shape":"SortOrder", + "documentation":"

    The sort order for results. The default is Ascending

    " + } + } + }, + "ListOptimizationJobsResponse":{ + "type":"structure", + "required":["OptimizationJobSummaries"], + "members":{ + "OptimizationJobSummaries":{ + "shape":"OptimizationJobSummaries", + "documentation":"

    A list of optimization jobs and their properties that matches any of the filters you specified in the request.

    " + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

    The token to use in a subsequent request to get the next set of results following a truncated response.

    " + } + } + }, + "ListOptimizationJobsSortBy":{ + "type":"string", + "enum":[ + "Name", + "CreationTime", + "Status" + ] + }, "ListPipelineExecutionStepsRequest":{ "type":"structure", "members":{ @@ -27111,6 +27461,20 @@ }, "documentation":"

    Configures the timeout and maximum number of retries for processing a transform job invocation.

    " }, + "ModelCompilationConfig":{ + "type":"structure", + "members":{ + "Image":{ + "shape":"OptimizationContainerImage", + "documentation":"

    The URI of an LMI DLC in Amazon ECR. SageMaker uses this image to run the optimization.

    " + }, + "OverrideEnvironment":{ + "shape":"OptimizationJobEnvironmentVariables", + "documentation":"

    Environment variables that override the default ones in the model container.

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

    Settings for the model compilation technique that's applied by a model optimization job.

    " + }, "ModelCompressionType":{ "type":"string", "enum":[ @@ -28135,6 +28499,20 @@ }, "documentation":"

    The input for the model quality monitoring job. Currently endpoints are supported for input for model quality monitoring jobs.

    " }, + "ModelQuantizationConfig":{ + "type":"structure", + "members":{ + "Image":{ + "shape":"OptimizationContainerImage", + "documentation":"

    The URI of an LMI DLC in Amazon ECR. SageMaker uses this image to run the optimization.

    " + }, + "OverrideEnvironment":{ + "shape":"OptimizationJobEnvironmentVariables", + "documentation":"

    Environment variables that override the default ones in the model container.

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

    Settings for the model quantization technique that's applied by a model optimization job.

    " + }, "ModelRegisterSettings":{ "type":"structure", "members":{ @@ -29609,6 +29987,244 @@ "In" ] }, + "OptimizationConfig":{ + "type":"structure", + "members":{ + "ModelQuantizationConfig":{ + "shape":"ModelQuantizationConfig", + "documentation":"

    Settings for the model quantization technique that's applied by a model optimization job.

    " + }, + "ModelCompilationConfig":{ + "shape":"ModelCompilationConfig", + "documentation":"

    Settings for the model compilation technique that's applied by a model optimization job.

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

    Settings for an optimization technique that you apply with a model optimization job.

    ", + "union":true + }, + "OptimizationConfigs":{ + "type":"list", + "member":{"shape":"OptimizationConfig"}, + "max":10 + }, + "OptimizationContainerImage":{ + "type":"string", + "max":255, + "pattern":"[\\S]+" + }, + "OptimizationJobArn":{ + "type":"string", + "max":256, + "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:optimization-job/.*" + }, + "OptimizationJobDeploymentInstanceType":{ + "type":"string", + "enum":[ + "ml.p4d.24xlarge", + "ml.p4de.24xlarge", + "ml.p5.48xlarge", + "ml.g5.xlarge", + "ml.g5.2xlarge", + "ml.g5.4xlarge", + "ml.g5.8xlarge", + "ml.g5.12xlarge", + "ml.g5.16xlarge", + "ml.g5.24xlarge", + "ml.g5.48xlarge", + "ml.g6.xlarge", + "ml.g6.2xlarge", + "ml.g6.4xlarge", + "ml.g6.8xlarge", + "ml.g6.12xlarge", + "ml.g6.16xlarge", + "ml.g6.24xlarge", + "ml.g6.48xlarge", + "ml.inf2.xlarge", + "ml.inf2.8xlarge", + "ml.inf2.24xlarge", + "ml.inf2.48xlarge", + "ml.trn1.2xlarge", + "ml.trn1.32xlarge", + "ml.trn1n.32xlarge" + ] + }, + "OptimizationJobEnvironmentVariables":{ + "type":"map", + "key":{"shape":"NonEmptyString256"}, + "value":{"shape":"String256"}, + "max":25 + }, + "OptimizationJobModelSource":{ + "type":"structure", + "members":{ + "S3":{ + "shape":"OptimizationJobModelSourceS3", + "documentation":"

    The Amazon S3 location of a source model to optimize with an optimization job.

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

    The location of the source model to optimize with an optimization job.

    " + }, + "OptimizationJobModelSourceS3":{ + "type":"structure", + "members":{ + "S3Uri":{ + "shape":"S3Uri", + "documentation":"

    An Amazon S3 URI that locates a source model to optimize with an optimization job.

    " + }, + "ModelAccessConfig":{ + "shape":"OptimizationModelAccessConfig", + "documentation":"

    The access configuration settings for the source ML model for an optimization job, where you can accept the model end-user license agreement (EULA).

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

    The Amazon S3 location of a source model to optimize with an optimization job.

    " + }, + "OptimizationJobOutputConfig":{ + "type":"structure", + "required":["S3OutputLocation"], + "members":{ + "KmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"

    The Amazon Resource Name (ARN) of a key in Amazon Web Services KMS. SageMaker uses they key to encrypt the artifacts of the optimized model when SageMaker uploads the model to Amazon S3.

    " + }, + "S3OutputLocation":{ + "shape":"S3Uri", + "documentation":"

    The Amazon S3 URI for where to store the optimized model that you create with an optimization job.

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

    Details for where to store the optimized model that you create with the optimization job.

    " + }, + "OptimizationJobStatus":{ + "type":"string", + "enum":[ + "INPROGRESS", + "COMPLETED", + "FAILED", + "STARTING", + "STOPPING", + "STOPPED" + ] + }, + "OptimizationJobSummaries":{ + "type":"list", + "member":{"shape":"OptimizationJobSummary"} + }, + "OptimizationJobSummary":{ + "type":"structure", + "required":[ + "OptimizationJobName", + "OptimizationJobArn", + "CreationTime", + "OptimizationJobStatus", + "DeploymentInstanceType", + "OptimizationTypes" + ], + "members":{ + "OptimizationJobName":{ + "shape":"EntityName", + "documentation":"

    The name that you assigned to the optimization job.

    " + }, + "OptimizationJobArn":{ + "shape":"OptimizationJobArn", + "documentation":"

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

    " + }, + "CreationTime":{ + "shape":"CreationTime", + "documentation":"

    The time when you created the optimization job.

    " + }, + "OptimizationJobStatus":{ + "shape":"OptimizationJobStatus", + "documentation":"

    The current status of the optimization job.

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

    The time when the optimization job started.

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

    The time when the optimization job finished processing.

    " + }, + "LastModifiedTime":{ + "shape":"LastModifiedTime", + "documentation":"

    The time when the optimization job was last updated.

    " + }, + "DeploymentInstanceType":{ + "shape":"OptimizationJobDeploymentInstanceType", + "documentation":"

    The type of instance that hosts the optimized model that you create with the optimization job.

    " + }, + "OptimizationTypes":{ + "shape":"OptimizationTypes", + "documentation":"

    The optimization techniques that are applied by the optimization job.

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

    Summarizes an optimization job by providing some of its key properties.

    " + }, + "OptimizationModelAcceptEula":{"type":"boolean"}, + "OptimizationModelAccessConfig":{ + "type":"structure", + "required":["AcceptEula"], + "members":{ + "AcceptEula":{ + "shape":"OptimizationModelAcceptEula", + "documentation":"

    Specifies agreement to the model end-user license agreement (EULA). The AcceptEula value must be explicitly defined as True in order to accept the EULA that this model requires. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.

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

    The access configuration settings for the source ML model for an optimization job, where you can accept the model end-user license agreement (EULA).

    " + }, + "OptimizationOutput":{ + "type":"structure", + "members":{ + "RecommendedInferenceImage":{ + "shape":"OptimizationContainerImage", + "documentation":"

    The image that SageMaker recommends that you use to host the optimized model that you created with an optimization job.

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

    Output values produced by an optimization job.

    " + }, + "OptimizationType":{"type":"string"}, + "OptimizationTypes":{ + "type":"list", + "member":{"shape":"OptimizationType"} + }, + "OptimizationVpcConfig":{ + "type":"structure", + "required":[ + "SecurityGroupIds", + "Subnets" + ], + "members":{ + "SecurityGroupIds":{ + "shape":"OptimizationVpcSecurityGroupIds", + "documentation":"

    The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

    " + }, + "Subnets":{ + "shape":"OptimizationVpcSubnets", + "documentation":"

    The ID of the subnets in the VPC to which you want to connect your optimized model.

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

    A VPC in Amazon VPC that's accessible to an optimized that you create with an optimization job. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.

    " + }, + "OptimizationVpcSecurityGroupId":{ + "type":"string", + "max":32, + "pattern":"[-0-9a-zA-Z]+" + }, + "OptimizationVpcSecurityGroupIds":{ + "type":"list", + "member":{"shape":"OptimizationVpcSecurityGroupId"}, + "max":5, + "min":1 + }, + "OptimizationVpcSubnetId":{ + "type":"string", + "max":32, + "pattern":"[-0-9a-zA-Z]+" + }, + "OptimizationVpcSubnets":{ + "type":"list", + "member":{"shape":"OptimizationVpcSubnetId"}, + "max":16, + "min":1 + }, "OptionalDouble":{"type":"double"}, "OptionalInteger":{"type":"integer"}, "OptionalVolumeSizeInGB":{ @@ -31733,6 +32349,10 @@ } } }, + "QProfileArn":{ + "type":"string", + "pattern":"^arn:[-.a-z0-9]{1,63}:codewhisperer:([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}$" + }, "QualityCheckStepMetadata":{ "type":"structure", "members":{ @@ -34424,6 +35044,16 @@ } } }, + "StopOptimizationJobRequest":{ + "type":"structure", + "required":["OptimizationJobName"], + "members":{ + "OptimizationJobName":{ + "shape":"EntityName", + "documentation":"

    The name that you assigned to the optimization job.

    " + } + } + }, "StopPipelineExecutionRequest":{ "type":"structure", "required":[ @@ -34497,7 +35127,7 @@ "documentation":"

    The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.

    " } }, - "documentation":"

    Specifies a limit to how long a model training job or model compilation job can run. It also specifies how long a managed spot training job has to complete. When the job reaches the time limit, SageMaker ends the training or compilation job. Use this API to cap model training costs.

    To stop a training job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.

    The training algorithms provided by SageMaker automatically save the intermediate results of a model training job when possible. This attempt to save artifacts is only a best effort case as model might not be in a state from which it can be saved. For example, if training has just started, the model might not be ready to save. When saved, this intermediate data is a valid model artifact. You can use it to create a model with CreateModel.

    The Neural Topic Model (NTM) currently does not support saving intermediate model artifacts. When training NTMs, make sure that the maximum runtime is sufficient for the training job to complete.

    " + "documentation":"

    Specifies a limit to how long a job can run. When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs.

    To stop a training job, SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.

    The training algorithms provided by SageMaker automatically save the intermediate results of a model training job when possible. This attempt to save artifacts is only a best effort case as model might not be in a state from which it can be saved. For example, if training has just started, the model might not be ready to save. When saved, this intermediate data is a valid model artifact. You can use it to create a model with CreateModel.

    The Neural Topic Model (NTM) currently does not support saving intermediate model artifacts. When training NTMs, make sure that the maximum runtime is sufficient for the training job to complete.

    " }, "StorageType":{ "type":"string",