From 9abd2572365b5f458c09e496da6c2107d0eee4ca Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Wed, 20 Dec 2023 19:27:35 +0000 Subject: [PATCH] Add support for cluster insights, new EKS capability that surfaces potentially upgrade impacting issues. This release introduces configurable clipboard, allowing admins to specify the maximum length of text that can be copied by the users from their device to the remote session and vice-versa. This release 1) introduces a new API: GetOrganizationStatistics , and 2) adds a new UsageStatisticType TOP_ACCOUNTS_BY_FEATURE for GetUsageStatistics API Amazon Route 53 now supports the Canada West (Calgary) Region (ca-west-1) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. Adds the ability to configure time shifting on MediaTailor channels using the TimeShiftConfiguration field Adding Confirmation Status and Execution Status to GetTransaction Response. --- VERSION | 2 +- .../include/aws/appstream/model/UserSetting.h | 60 ++ .../source/model/UserSetting.cpp | 21 +- .../include/aws/eks/EKSClient.h | 53 ++ .../include/aws/eks/EKSServiceClientModel.h | 10 + .../include/aws/eks/model/Category.h | 30 + .../include/aws/eks/model/ClientStat.h | 152 +++++ .../aws/eks/model/CreateAccessEntryRequest.h | 280 +++++---- .../include/aws/eks/model/DeprecationDetail.h | 283 +++++++++ .../aws/eks/model/DescribeInsightRequest.h | 127 ++++ .../aws/eks/model/DescribeInsightResult.h | 92 +++ .../include/aws/eks/model/Insight.h | 581 ++++++++++++++++++ .../model/InsightCategorySpecificSummary.h | 99 +++ .../aws/eks/model/InsightResourceDetail.h | 168 +++++ .../include/aws/eks/model/InsightStatus.h | 123 ++++ .../aws/eks/model/InsightStatusValue.h | 33 + .../include/aws/eks/model/InsightSummary.h | 373 +++++++++++ .../include/aws/eks/model/InsightsFilter.h | 184 ++++++ .../model/ListIdentityProviderConfigsResult.h | 28 +- .../aws/eks/model/ListInsightsRequest.h | 262 ++++++++ .../aws/eks/model/ListInsightsResult.h | 169 +++++ .../src/aws-cpp-sdk-eks/source/EKSClient.cpp | 76 +++ .../aws-cpp-sdk-eks/source/model/Category.cpp | 65 ++ .../source/model/ClientStat.cpp | 90 +++ .../source/model/DeprecationDetail.cpp | 127 ++++ .../source/model/DescribeInsightRequest.cpp | 28 + .../source/model/DescribeInsightResult.cpp | 48 ++ .../aws-cpp-sdk-eks/source/model/Insight.cpp | 239 +++++++ .../model/InsightCategorySpecificSummary.cpp | 67 ++ .../source/model/InsightResourceDetail.cpp | 89 +++ .../source/model/InsightStatus.cpp | 75 +++ .../source/model/InsightStatusValue.cpp | 86 +++ .../source/model/InsightSummary.cpp | 163 +++++ .../source/model/InsightsFilter.cpp | 113 ++++ .../source/model/ListInsightsRequest.cpp | 51 ++ .../source/model/ListInsightsResult.cpp | 57 ++ .../include/aws/guardduty/GuardDutyClient.h | 49 +- .../guardduty/GuardDutyServiceClientModel.h | 5 + .../model/CoverageEc2InstanceDetails.h | 18 +- .../guardduty/model/CoverageResourceDetails.h | 36 +- .../aws/guardduty/model/FargateDetails.h | 100 +-- .../model/GetOrganizationStatisticsRequest.h | 36 ++ .../model/GetOrganizationStatisticsResult.h | 92 +++ .../aws/guardduty/model/OrganizationDetails.h | 126 ++++ .../model/OrganizationFeatureStatistics.h | 149 +++++ ...FeatureStatisticsAdditionalConfiguration.h | 103 ++++ .../guardduty/model/OrganizationStatistics.h | 196 ++++++ .../aws/guardduty/model/UsageStatisticType.h | 3 +- .../aws/guardduty/model/UsageStatistics.h | 61 ++ .../guardduty/model/UsageTopAccountResult.h | 112 ++++ .../guardduty/model/UsageTopAccountsResult.h | 137 +++++ .../source/GuardDutyClient.cpp | 28 + .../GetOrganizationStatisticsRequest.cpp | 26 + .../model/GetOrganizationStatisticsResult.cpp | 48 ++ .../source/model/OrganizationDetails.cpp | 73 +++ .../model/OrganizationFeatureStatistics.cpp | 100 +++ ...atureStatisticsAdditionalConfiguration.cpp | 77 +++ .../source/model/OrganizationStatistics.cpp | 135 ++++ .../source/model/UsageStatisticType.cpp | 7 + .../source/model/UsageStatistics.cpp | 23 + .../source/model/UsageTopAccountResult.cpp | 74 +++ .../source/model/UsageTopAccountsResult.cpp | 83 +++ ...ansactionStatus.h => ConfirmationStatus.h} | 13 +- .../model/ExecutionStatus.h | 31 + .../model/QueryNetwork.h | 4 +- .../model/Transaction.h | 105 ++-- ...ctionStatus.cpp => ConfirmationStatus.cpp} | 27 +- .../source/model/ExecutionStatus.cpp | 72 +++ .../source/model/QueryNetwork.cpp | 14 +- .../source/model/Transaction.cpp | 52 +- .../mediatailor/model/CreateChannelRequest.h | 41 ++ .../mediatailor/model/CreateChannelResult.h | 29 + .../mediatailor/model/DescribeChannelResult.h | 29 + .../model/TimeShiftConfiguration.h | 74 +++ .../mediatailor/model/UpdateChannelRequest.h | 41 ++ .../mediatailor/model/UpdateChannelResult.h | 29 + .../source/model/CreateChannelRequest.cpp | 9 +- .../source/model/CreateChannelResult.cpp | 6 + .../source/model/DescribeChannelResult.cpp | 6 + .../source/model/TimeShiftConfiguration.cpp | 61 ++ .../source/model/UpdateChannelRequest.cpp | 9 +- .../source/model/UpdateChannelResult.cpp | 6 + .../aws/route53/model/CloudWatchRegion.h | 3 +- .../aws/route53/model/ResourceRecordSet.h | 40 -- .../route53/model/ResourceRecordSetRegion.h | 3 +- .../include/aws/route53/model/VPCRegion.h | 3 +- .../source/model/CloudWatchRegion.cpp | 7 + .../source/model/ResourceRecordSetRegion.cpp | 7 + .../source/model/VPCRegion.cpp | 7 + .../Route53EndpointProviderTests.cpp | 32 +- .../include/aws/core/VersionConfig.h | 4 +- .../source/endpoint/AWSPartitions.cpp | 165 ++--- .../appstream-2016-12-01.normal.json | 7 +- .../eks-2017-11-01.normal.json | 349 ++++++++++- .../guardduty-2017-11-28.normal.json | 181 +++++- ...gedblockchain-query-2023-05-04.normal.json | 28 +- .../mediatailor-2018-04-23.normal.json | 31 + .../route53-2013-04-01.normal.json | 11 +- .../route53-2013-04-01.endpoint-tests.json | 55 +- .../partitions/partitions.json | 3 + 100 files changed, 7546 insertions(+), 449 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Category.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ClientStat.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DeprecationDetail.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightRequest.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightResult.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Insight.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightCategorySpecificSummary.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightResourceDetail.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatus.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatusValue.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightSummary.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightsFilter.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsRequest.h create mode 100644 generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsResult.h create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/Category.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/ClientStat.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/DeprecationDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightResult.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/Insight.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/InsightCategorySpecificSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/InsightResourceDetail.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/InsightStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/InsightStatusValue.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/InsightSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/InsightsFilter.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/ListInsightsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-eks/source/model/ListInsightsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsRequest.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsResult.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationDetails.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatistics.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatisticsAdditionalConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationStatistics.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountResult.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountsResult.h create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationDetails.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatistics.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatisticsAdditionalConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationStatistics.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountResult.cpp create mode 100644 generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountsResult.cpp rename generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/{QueryTransactionStatus.h => ConfirmationStatus.h} (54%) create mode 100644 generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ExecutionStatus.h rename generated/src/aws-cpp-sdk-managedblockchain-query/source/model/{QueryTransactionStatus.cpp => ConfirmationStatus.cpp} (59%) create mode 100644 generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ExecutionStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/TimeShiftConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-mediatailor/source/model/TimeShiftConfiguration.cpp diff --git a/VERSION b/VERSION index c2c14f82899..b771714510c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.228 \ No newline at end of file +1.11.229 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-appstream/include/aws/appstream/model/UserSetting.h b/generated/src/aws-cpp-sdk-appstream/include/aws/appstream/model/UserSetting.h index 88f6a40d630..50368456d46 100644 --- a/generated/src/aws-cpp-sdk-appstream/include/aws/appstream/model/UserSetting.h +++ b/generated/src/aws-cpp-sdk-appstream/include/aws/appstream/model/UserSetting.h @@ -100,6 +100,63 @@ namespace Model */ inline UserSetting& WithPermission(Permission&& value) { SetPermission(std::move(value)); return *this;} + + /** + *

Specifies the number of characters that can be copied by end users from the + * local device to the remote session, and to the local device from the remote + * session.

This can be specified only for the + * CLIPBOARD_COPY_FROM_LOCAL_DEVICE and + * CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

This defaults to + * 20,971,520 (20 MB) when unspecified and the permission is ENABLED. + * This can't be specified when the permission is DISABLED.

+ *

This can only be specified for AlwaysOn and OnDemand fleets. The attribute is + * not supported on Elastic fleets.

The value can be between 1 and + * 20,971,520 (20 MB).

+ */ + inline int GetMaximumLength() const{ return m_maximumLength; } + + /** + *

Specifies the number of characters that can be copied by end users from the + * local device to the remote session, and to the local device from the remote + * session.

This can be specified only for the + * CLIPBOARD_COPY_FROM_LOCAL_DEVICE and + * CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

This defaults to + * 20,971,520 (20 MB) when unspecified and the permission is ENABLED. + * This can't be specified when the permission is DISABLED.

+ *

This can only be specified for AlwaysOn and OnDemand fleets. The attribute is + * not supported on Elastic fleets.

The value can be between 1 and + * 20,971,520 (20 MB).

+ */ + inline bool MaximumLengthHasBeenSet() const { return m_maximumLengthHasBeenSet; } + + /** + *

Specifies the number of characters that can be copied by end users from the + * local device to the remote session, and to the local device from the remote + * session.

This can be specified only for the + * CLIPBOARD_COPY_FROM_LOCAL_DEVICE and + * CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

This defaults to + * 20,971,520 (20 MB) when unspecified and the permission is ENABLED. + * This can't be specified when the permission is DISABLED.

+ *

This can only be specified for AlwaysOn and OnDemand fleets. The attribute is + * not supported on Elastic fleets.

The value can be between 1 and + * 20,971,520 (20 MB).

+ */ + inline void SetMaximumLength(int value) { m_maximumLengthHasBeenSet = true; m_maximumLength = value; } + + /** + *

Specifies the number of characters that can be copied by end users from the + * local device to the remote session, and to the local device from the remote + * session.

This can be specified only for the + * CLIPBOARD_COPY_FROM_LOCAL_DEVICE and + * CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

This defaults to + * 20,971,520 (20 MB) when unspecified and the permission is ENABLED. + * This can't be specified when the permission is DISABLED.

+ *

This can only be specified for AlwaysOn and OnDemand fleets. The attribute is + * not supported on Elastic fleets.

The value can be between 1 and + * 20,971,520 (20 MB).

+ */ + inline UserSetting& WithMaximumLength(int value) { SetMaximumLength(value); return *this;} + private: Action m_action; @@ -107,6 +164,9 @@ namespace Model Permission m_permission; bool m_permissionHasBeenSet = false; + + int m_maximumLength; + bool m_maximumLengthHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-appstream/source/model/UserSetting.cpp b/generated/src/aws-cpp-sdk-appstream/source/model/UserSetting.cpp index 06469e060b9..e950e7ce7da 100644 --- a/generated/src/aws-cpp-sdk-appstream/source/model/UserSetting.cpp +++ b/generated/src/aws-cpp-sdk-appstream/source/model/UserSetting.cpp @@ -22,7 +22,9 @@ UserSetting::UserSetting() : m_action(Action::NOT_SET), m_actionHasBeenSet(false), m_permission(Permission::NOT_SET), - m_permissionHasBeenSet(false) + m_permissionHasBeenSet(false), + m_maximumLength(0), + m_maximumLengthHasBeenSet(false) { } @@ -30,7 +32,9 @@ UserSetting::UserSetting(JsonView jsonValue) : m_action(Action::NOT_SET), m_actionHasBeenSet(false), m_permission(Permission::NOT_SET), - m_permissionHasBeenSet(false) + m_permissionHasBeenSet(false), + m_maximumLength(0), + m_maximumLengthHasBeenSet(false) { *this = jsonValue; } @@ -51,6 +55,13 @@ UserSetting& UserSetting::operator =(JsonView jsonValue) m_permissionHasBeenSet = true; } + if(jsonValue.ValueExists("MaximumLength")) + { + m_maximumLength = jsonValue.GetInteger("MaximumLength"); + + m_maximumLengthHasBeenSet = true; + } + return *this; } @@ -68,6 +79,12 @@ JsonValue UserSetting::Jsonize() const payload.WithString("Permission", PermissionMapper::GetNameForPermission(m_permission)); } + if(m_maximumLengthHasBeenSet) + { + payload.WithInteger("MaximumLength", m_maximumLength); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSClient.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSClient.h index 23605797bbd..f4443be3822 100644 --- a/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSClient.h +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSClient.h @@ -910,6 +910,32 @@ namespace EKS return SubmitAsync(&EKSClient::DescribeIdentityProviderConfig, request, handler, context); } + /** + *

Returns details about an insight that you specify using its ID.

See + * Also:

AWS + * API Reference

+ */ + virtual Model::DescribeInsightOutcome DescribeInsight(const Model::DescribeInsightRequest& request) const; + + /** + * A Callable wrapper for DescribeInsight that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DescribeInsightOutcomeCallable DescribeInsightCallable(const DescribeInsightRequestT& request) const + { + return SubmitCallable(&EKSClient::DescribeInsight, request); + } + + /** + * An Async wrapper for DescribeInsight that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DescribeInsightAsync(const DescribeInsightRequestT& request, const DescribeInsightResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EKSClient::DescribeInsight, request, handler, context); + } + /** *

Describes a managed node group.

See Also:

AWS @@ -1253,6 +1279,33 @@ namespace EKS return SubmitAsync(&EKSClient::ListIdentityProviderConfigs, request, handler, context); } + /** + *

Returns a list of all insights checked for against the specified cluster. You + * can filter which insights are returned by category, associated Kubernetes + * version, and status.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListInsightsOutcome ListInsights(const Model::ListInsightsRequest& request) const; + + /** + * A Callable wrapper for ListInsights that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListInsightsOutcomeCallable ListInsightsCallable(const ListInsightsRequestT& request) const + { + return SubmitCallable(&EKSClient::ListInsights, request); + } + + /** + * An Async wrapper for ListInsights that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListInsightsAsync(const ListInsightsRequestT& request, const ListInsightsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EKSClient::ListInsights, request, handler, context); + } + /** *

Lists the managed node groups associated with the specified cluster in your * Amazon Web Services account in the specified Amazon Web Services Region. diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSServiceClientModel.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSServiceClientModel.h index 36f1dc12992..6659e00bda5 100644 --- a/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/EKSServiceClientModel.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -57,6 +58,7 @@ #include #include #include +#include #include #include #include @@ -138,6 +140,7 @@ namespace Aws class DescribeEksAnywhereSubscriptionRequest; class DescribeFargateProfileRequest; class DescribeIdentityProviderConfigRequest; + class DescribeInsightRequest; class DescribeNodegroupRequest; class DescribePodIdentityAssociationRequest; class DescribeUpdateRequest; @@ -151,6 +154,7 @@ namespace Aws class ListEksAnywhereSubscriptionsRequest; class ListFargateProfilesRequest; class ListIdentityProviderConfigsRequest; + class ListInsightsRequest; class ListNodegroupsRequest; class ListPodIdentityAssociationsRequest; class ListTagsForResourceRequest; @@ -195,6 +199,7 @@ namespace Aws typedef Aws::Utils::Outcome DescribeEksAnywhereSubscriptionOutcome; typedef Aws::Utils::Outcome DescribeFargateProfileOutcome; typedef Aws::Utils::Outcome DescribeIdentityProviderConfigOutcome; + typedef Aws::Utils::Outcome DescribeInsightOutcome; typedef Aws::Utils::Outcome DescribeNodegroupOutcome; typedef Aws::Utils::Outcome DescribePodIdentityAssociationOutcome; typedef Aws::Utils::Outcome DescribeUpdateOutcome; @@ -208,6 +213,7 @@ namespace Aws typedef Aws::Utils::Outcome ListEksAnywhereSubscriptionsOutcome; typedef Aws::Utils::Outcome ListFargateProfilesOutcome; typedef Aws::Utils::Outcome ListIdentityProviderConfigsOutcome; + typedef Aws::Utils::Outcome ListInsightsOutcome; typedef Aws::Utils::Outcome ListNodegroupsOutcome; typedef Aws::Utils::Outcome ListPodIdentityAssociationsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; @@ -252,6 +258,7 @@ namespace Aws typedef std::future DescribeEksAnywhereSubscriptionOutcomeCallable; typedef std::future DescribeFargateProfileOutcomeCallable; typedef std::future DescribeIdentityProviderConfigOutcomeCallable; + typedef std::future DescribeInsightOutcomeCallable; typedef std::future DescribeNodegroupOutcomeCallable; typedef std::future DescribePodIdentityAssociationOutcomeCallable; typedef std::future DescribeUpdateOutcomeCallable; @@ -265,6 +272,7 @@ namespace Aws typedef std::future ListEksAnywhereSubscriptionsOutcomeCallable; typedef std::future ListFargateProfilesOutcomeCallable; typedef std::future ListIdentityProviderConfigsOutcomeCallable; + typedef std::future ListInsightsOutcomeCallable; typedef std::future ListNodegroupsOutcomeCallable; typedef std::future ListPodIdentityAssociationsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; @@ -312,6 +320,7 @@ namespace Aws typedef std::function&) > DescribeEksAnywhereSubscriptionResponseReceivedHandler; typedef std::function&) > DescribeFargateProfileResponseReceivedHandler; typedef std::function&) > DescribeIdentityProviderConfigResponseReceivedHandler; + typedef std::function&) > DescribeInsightResponseReceivedHandler; typedef std::function&) > DescribeNodegroupResponseReceivedHandler; typedef std::function&) > DescribePodIdentityAssociationResponseReceivedHandler; typedef std::function&) > DescribeUpdateResponseReceivedHandler; @@ -325,6 +334,7 @@ namespace Aws typedef std::function&) > ListEksAnywhereSubscriptionsResponseReceivedHandler; typedef std::function&) > ListFargateProfilesResponseReceivedHandler; typedef std::function&) > ListIdentityProviderConfigsResponseReceivedHandler; + typedef std::function&) > ListInsightsResponseReceivedHandler; typedef std::function&) > ListNodegroupsResponseReceivedHandler; typedef std::function&) > ListPodIdentityAssociationsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Category.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Category.h new file mode 100644 index 00000000000..9fb2bc3e19a --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Category.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace EKS +{ +namespace Model +{ + enum class Category + { + NOT_SET, + UPGRADE_READINESS + }; + +namespace CategoryMapper +{ +AWS_EKS_API Category GetCategoryForName(const Aws::String& name); + +AWS_EKS_API Aws::String GetNameForCategory(Category value); +} // namespace CategoryMapper +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ClientStat.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ClientStat.h new file mode 100644 index 00000000000..7e0a9bbfaa2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ClientStat.h @@ -0,0 +1,152 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + *

Details about clients using the deprecated resources.

See + * Also:

AWS API + * Reference

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

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline const Aws::String& GetUserAgent() const{ return m_userAgent; } + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; } + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline void SetUserAgent(const Aws::String& value) { m_userAgentHasBeenSet = true; m_userAgent = value; } + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline void SetUserAgent(Aws::String&& value) { m_userAgentHasBeenSet = true; m_userAgent = std::move(value); } + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline void SetUserAgent(const char* value) { m_userAgentHasBeenSet = true; m_userAgent.assign(value); } + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline ClientStat& WithUserAgent(const Aws::String& value) { SetUserAgent(value); return *this;} + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline ClientStat& WithUserAgent(Aws::String&& value) { SetUserAgent(std::move(value)); return *this;} + + /** + *

The user agent of the Kubernetes client using the deprecated resource.

+ */ + inline ClientStat& WithUserAgent(const char* value) { SetUserAgent(value); return *this;} + + + /** + *

The number of requests from the Kubernetes client seen over the last 30 + * days.

+ */ + inline int GetNumberOfRequestsLast30Days() const{ return m_numberOfRequestsLast30Days; } + + /** + *

The number of requests from the Kubernetes client seen over the last 30 + * days.

+ */ + inline bool NumberOfRequestsLast30DaysHasBeenSet() const { return m_numberOfRequestsLast30DaysHasBeenSet; } + + /** + *

The number of requests from the Kubernetes client seen over the last 30 + * days.

+ */ + inline void SetNumberOfRequestsLast30Days(int value) { m_numberOfRequestsLast30DaysHasBeenSet = true; m_numberOfRequestsLast30Days = value; } + + /** + *

The number of requests from the Kubernetes client seen over the last 30 + * days.

+ */ + inline ClientStat& WithNumberOfRequestsLast30Days(int value) { SetNumberOfRequestsLast30Days(value); return *this;} + + + /** + *

The timestamp of the last request seen from the Kubernetes client.

+ */ + inline const Aws::Utils::DateTime& GetLastRequestTime() const{ return m_lastRequestTime; } + + /** + *

The timestamp of the last request seen from the Kubernetes client.

+ */ + inline bool LastRequestTimeHasBeenSet() const { return m_lastRequestTimeHasBeenSet; } + + /** + *

The timestamp of the last request seen from the Kubernetes client.

+ */ + inline void SetLastRequestTime(const Aws::Utils::DateTime& value) { m_lastRequestTimeHasBeenSet = true; m_lastRequestTime = value; } + + /** + *

The timestamp of the last request seen from the Kubernetes client.

+ */ + inline void SetLastRequestTime(Aws::Utils::DateTime&& value) { m_lastRequestTimeHasBeenSet = true; m_lastRequestTime = std::move(value); } + + /** + *

The timestamp of the last request seen from the Kubernetes client.

+ */ + inline ClientStat& WithLastRequestTime(const Aws::Utils::DateTime& value) { SetLastRequestTime(value); return *this;} + + /** + *

The timestamp of the last request seen from the Kubernetes client.

+ */ + inline ClientStat& WithLastRequestTime(Aws::Utils::DateTime&& value) { SetLastRequestTime(std::move(value)); return *this;} + + private: + + Aws::String m_userAgent; + bool m_userAgentHasBeenSet = false; + + int m_numberOfRequestsLast30Days; + bool m_numberOfRequestsLast30DaysHasBeenSet = false; + + Aws::Utils::DateTime m_lastRequestTime; + bool m_lastRequestTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/CreateAccessEntryRequest.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/CreateAccessEntryRequest.h index 22e6073f03b..d56c6f8f3f8 100644 --- a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/CreateAccessEntryRequest.h +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/CreateAccessEntryRequest.h @@ -80,7 +80,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -91,7 +97,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -102,7 +114,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -113,7 +131,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -124,7 +148,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -135,7 +165,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -146,7 +182,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -157,7 +199,13 @@ namespace Model *

The ARN of the IAM principal for the AccessEntry. You can * specify one ARN for each access entry. You can't specify the same ARN in more * than one access entry. This value can't be changed after access entry - * creation.

The valid principals differ depending on the type of the access + * entry in the type field. The only valid ARN is IAM roles for the + * types of access entries for nodes: . You can use every IAM + * principal type for STANDARD access entries. You can't use the STS + * session principal type with access entries because this is a temporary principal + * for each session and not a permanent identity that can be assigned + * permissions.

IAM * best practices recommend using IAM roles with temporary credentials, rather * than IAM users with long-term credentials.

@@ -605,130 +653,154 @@ namespace Model /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline const Aws::String& GetType() const{ return m_type; } /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline CreateAccessEntryRequest& WithType(const Aws::String& value) { SetType(value); return *this;} /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline CreateAccessEntryRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** - *

If the principalArn is for an IAM role that's used for - * self-managed Amazon EC2 nodes, specify EC2_LINUX or - * EC2_WINDOWS. Amazon EKS grants the necessary permissions to the - * node for you. If the principalArn is for any other purpose, specify - * STANDARD. If you don't specify a value, Amazon EKS sets the value - * to STANDARD. It's unnecessary to create access entries for IAM - * roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS - * creates entries in the aws-auth ConfigMap for the - * roles. You can't change this value once you've created the access entry.

- *

If you set the value to EC2_LINUX or EC2_WINDOWS, - * you can't specify values for kubernetesGroups, or associate an - * AccessPolicy to the access entry.

+ *

The type of the new access entry. Valid values are Standard, + * FARGATE_LINUX, EC2_LINUX, and + * EC2_WINDOWS.

If the principalArn is for an IAM + * role that's used for self-managed Amazon EC2 nodes, specify + * EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the + * necessary permissions to the node for you. If the principalArn is + * for any other purpose, specify STANDARD. If you don't specify a + * value, Amazon EKS sets the value to STANDARD. It's unnecessary to + * create access entries for IAM roles used with Fargate profiles or managed Amazon + * EC2 nodes, because Amazon EKS creates entries in the aws-auth + * ConfigMap for the roles. You can't change this value once you've + * created the access entry.

If you set the value to EC2_LINUX + * or EC2_WINDOWS, you can't specify values for + * kubernetesGroups, or associate an AccessPolicy to the + * access entry.

*/ inline CreateAccessEntryRequest& WithType(const char* value) { SetType(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DeprecationDetail.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DeprecationDetail.h new file mode 100644 index 00000000000..f2a2d9bf8e8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DeprecationDetail.h @@ -0,0 +1,283 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace EKS +{ +namespace Model +{ + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

See Also:

AWS + * API Reference

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

The deprecated version of the resource.

+ */ + inline const Aws::String& GetUsage() const{ return m_usage; } + + /** + *

The deprecated version of the resource.

+ */ + inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; } + + /** + *

The deprecated version of the resource.

+ */ + inline void SetUsage(const Aws::String& value) { m_usageHasBeenSet = true; m_usage = value; } + + /** + *

The deprecated version of the resource.

+ */ + inline void SetUsage(Aws::String&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); } + + /** + *

The deprecated version of the resource.

+ */ + inline void SetUsage(const char* value) { m_usageHasBeenSet = true; m_usage.assign(value); } + + /** + *

The deprecated version of the resource.

+ */ + inline DeprecationDetail& WithUsage(const Aws::String& value) { SetUsage(value); return *this;} + + /** + *

The deprecated version of the resource.

+ */ + inline DeprecationDetail& WithUsage(Aws::String&& value) { SetUsage(std::move(value)); return *this;} + + /** + *

The deprecated version of the resource.

+ */ + inline DeprecationDetail& WithUsage(const char* value) { SetUsage(value); return *this;} + + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline const Aws::String& GetReplacedWith() const{ return m_replacedWith; } + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline bool ReplacedWithHasBeenSet() const { return m_replacedWithHasBeenSet; } + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline void SetReplacedWith(const Aws::String& value) { m_replacedWithHasBeenSet = true; m_replacedWith = value; } + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline void SetReplacedWith(Aws::String&& value) { m_replacedWithHasBeenSet = true; m_replacedWith = std::move(value); } + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline void SetReplacedWith(const char* value) { m_replacedWithHasBeenSet = true; m_replacedWith.assign(value); } + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline DeprecationDetail& WithReplacedWith(const Aws::String& value) { SetReplacedWith(value); return *this;} + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline DeprecationDetail& WithReplacedWith(Aws::String&& value) { SetReplacedWith(std::move(value)); return *this;} + + /** + *

The newer version of the resource to migrate to if applicable.

+ */ + inline DeprecationDetail& WithReplacedWith(const char* value) { SetReplacedWith(value); return *this;} + + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline const Aws::String& GetStopServingVersion() const{ return m_stopServingVersion; } + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline bool StopServingVersionHasBeenSet() const { return m_stopServingVersionHasBeenSet; } + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline void SetStopServingVersion(const Aws::String& value) { m_stopServingVersionHasBeenSet = true; m_stopServingVersion = value; } + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline void SetStopServingVersion(Aws::String&& value) { m_stopServingVersionHasBeenSet = true; m_stopServingVersion = std::move(value); } + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline void SetStopServingVersion(const char* value) { m_stopServingVersionHasBeenSet = true; m_stopServingVersion.assign(value); } + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline DeprecationDetail& WithStopServingVersion(const Aws::String& value) { SetStopServingVersion(value); return *this;} + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline DeprecationDetail& WithStopServingVersion(Aws::String&& value) { SetStopServingVersion(std::move(value)); return *this;} + + /** + *

The version of the software where the deprecated resource version will stop + * being served.

+ */ + inline DeprecationDetail& WithStopServingVersion(const char* value) { SetStopServingVersion(value); return *this;} + + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline const Aws::String& GetStartServingReplacementVersion() const{ return m_startServingReplacementVersion; } + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline bool StartServingReplacementVersionHasBeenSet() const { return m_startServingReplacementVersionHasBeenSet; } + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline void SetStartServingReplacementVersion(const Aws::String& value) { m_startServingReplacementVersionHasBeenSet = true; m_startServingReplacementVersion = value; } + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline void SetStartServingReplacementVersion(Aws::String&& value) { m_startServingReplacementVersionHasBeenSet = true; m_startServingReplacementVersion = std::move(value); } + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline void SetStartServingReplacementVersion(const char* value) { m_startServingReplacementVersionHasBeenSet = true; m_startServingReplacementVersion.assign(value); } + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline DeprecationDetail& WithStartServingReplacementVersion(const Aws::String& value) { SetStartServingReplacementVersion(value); return *this;} + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline DeprecationDetail& WithStartServingReplacementVersion(Aws::String&& value) { SetStartServingReplacementVersion(std::move(value)); return *this;} + + /** + *

The version of the software where the newer resource version became available + * to migrate to if applicable.

+ */ + inline DeprecationDetail& WithStartServingReplacementVersion(const char* value) { SetStartServingReplacementVersion(value); return *this;} + + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline const Aws::Vector& GetClientStats() const{ return m_clientStats; } + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline bool ClientStatsHasBeenSet() const { return m_clientStatsHasBeenSet; } + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline void SetClientStats(const Aws::Vector& value) { m_clientStatsHasBeenSet = true; m_clientStats = value; } + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline void SetClientStats(Aws::Vector&& value) { m_clientStatsHasBeenSet = true; m_clientStats = std::move(value); } + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline DeprecationDetail& WithClientStats(const Aws::Vector& value) { SetClientStats(value); return *this;} + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline DeprecationDetail& WithClientStats(Aws::Vector&& value) { SetClientStats(std::move(value)); return *this;} + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline DeprecationDetail& AddClientStats(const ClientStat& value) { m_clientStatsHasBeenSet = true; m_clientStats.push_back(value); return *this; } + + /** + *

Details about Kubernetes clients using the deprecated resources.

+ */ + inline DeprecationDetail& AddClientStats(ClientStat&& value) { m_clientStatsHasBeenSet = true; m_clientStats.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_usage; + bool m_usageHasBeenSet = false; + + Aws::String m_replacedWith; + bool m_replacedWithHasBeenSet = false; + + Aws::String m_stopServingVersion; + bool m_stopServingVersionHasBeenSet = false; + + Aws::String m_startServingReplacementVersion; + bool m_startServingReplacementVersionHasBeenSet = false; + + Aws::Vector m_clientStats; + bool m_clientStatsHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightRequest.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightRequest.h new file mode 100644 index 00000000000..1d60795e0ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightRequest.h @@ -0,0 +1,127 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + */ + class DescribeInsightRequest : public EKSRequest + { + public: + AWS_EKS_API DescribeInsightRequest(); + + // 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 "DescribeInsight"; } + + AWS_EKS_API Aws::String SerializePayload() const override; + + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline const Aws::String& GetClusterName() const{ return m_clusterName; } + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline DescribeInsightRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline DescribeInsightRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} + + /** + *

The name of the cluster to describe the insight for.

+ */ + inline DescribeInsightRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} + + + /** + *

The identity of the insight to describe.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The identity of the insight to describe.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The identity of the insight to describe.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The identity of the insight to describe.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The identity of the insight to describe.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The identity of the insight to describe.

+ */ + inline DescribeInsightRequest& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The identity of the insight to describe.

+ */ + inline DescribeInsightRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The identity of the insight to describe.

+ */ + inline DescribeInsightRequest& WithId(const char* value) { SetId(value); return *this;} + + private: + + Aws::String m_clusterName; + bool m_clusterNameHasBeenSet = false; + + Aws::String m_id; + bool m_idHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightResult.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightResult.h new file mode 100644 index 00000000000..d9272bf30e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/DescribeInsightResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace EKS +{ +namespace Model +{ + class DescribeInsightResult + { + public: + AWS_EKS_API DescribeInsightResult(); + AWS_EKS_API DescribeInsightResult(const Aws::AmazonWebServiceResult& result); + AWS_EKS_API DescribeInsightResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The full description of the insight.

+ */ + inline const Insight& GetInsight() const{ return m_insight; } + + /** + *

The full description of the insight.

+ */ + inline void SetInsight(const Insight& value) { m_insight = value; } + + /** + *

The full description of the insight.

+ */ + inline void SetInsight(Insight&& value) { m_insight = std::move(value); } + + /** + *

The full description of the insight.

+ */ + inline DescribeInsightResult& WithInsight(const Insight& value) { SetInsight(value); return *this;} + + /** + *

The full description of the insight.

+ */ + inline DescribeInsightResult& WithInsight(Insight&& value) { SetInsight(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 DescribeInsightResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DescribeInsightResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DescribeInsightResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Insight m_insight; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Insight.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Insight.h new file mode 100644 index 00000000000..c586b1606ad --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/Insight.h @@ -0,0 +1,581 @@ +/** + * 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 + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace EKS +{ +namespace Model +{ + + /** + *

A check that provides recommendations to remedy potential upgrade-impacting + * issues.

See Also:

AWS API + * Reference

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

The ID of the insight.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the insight.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the insight.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the insight.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the insight.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the insight.

+ */ + inline Insight& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the insight.

+ */ + inline Insight& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the insight.

+ */ + inline Insight& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The name of the insight.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the insight.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the insight.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the insight.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the insight.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the insight.

+ */ + inline Insight& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the insight.

+ */ + inline Insight& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the insight.

+ */ + inline Insight& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The category of the insight.

+ */ + inline const Category& GetCategory() const{ return m_category; } + + /** + *

The category of the insight.

+ */ + inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } + + /** + *

The category of the insight.

+ */ + inline void SetCategory(const Category& value) { m_categoryHasBeenSet = true; m_category = value; } + + /** + *

The category of the insight.

+ */ + inline void SetCategory(Category&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } + + /** + *

The category of the insight.

+ */ + inline Insight& WithCategory(const Category& value) { SetCategory(value); return *this;} + + /** + *

The category of the insight.

+ */ + inline Insight& WithCategory(Category&& value) { SetCategory(std::move(value)); return *this;} + + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline const Aws::String& GetKubernetesVersion() const{ return m_kubernetesVersion; } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline bool KubernetesVersionHasBeenSet() const { return m_kubernetesVersionHasBeenSet; } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline void SetKubernetesVersion(const Aws::String& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = value; } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline void SetKubernetesVersion(Aws::String&& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = std::move(value); } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline void SetKubernetesVersion(const char* value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion.assign(value); } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline Insight& WithKubernetesVersion(const Aws::String& value) { SetKubernetesVersion(value); return *this;} + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline Insight& WithKubernetesVersion(Aws::String&& value) { SetKubernetesVersion(std::move(value)); return *this;} + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline Insight& WithKubernetesVersion(const char* value) { SetKubernetesVersion(value); return *this;} + + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline const Aws::Utils::DateTime& GetLastRefreshTime() const{ return m_lastRefreshTime; } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline bool LastRefreshTimeHasBeenSet() const { return m_lastRefreshTimeHasBeenSet; } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline void SetLastRefreshTime(const Aws::Utils::DateTime& value) { m_lastRefreshTimeHasBeenSet = true; m_lastRefreshTime = value; } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline void SetLastRefreshTime(Aws::Utils::DateTime&& value) { m_lastRefreshTimeHasBeenSet = true; m_lastRefreshTime = std::move(value); } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline Insight& WithLastRefreshTime(const Aws::Utils::DateTime& value) { SetLastRefreshTime(value); return *this;} + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline Insight& WithLastRefreshTime(Aws::Utils::DateTime&& value) { SetLastRefreshTime(std::move(value)); return *this;} + + + /** + *

The time the status of the insight last changed.

+ */ + inline const Aws::Utils::DateTime& GetLastTransitionTime() const{ return m_lastTransitionTime; } + + /** + *

The time the status of the insight last changed.

+ */ + inline bool LastTransitionTimeHasBeenSet() const { return m_lastTransitionTimeHasBeenSet; } + + /** + *

The time the status of the insight last changed.

+ */ + inline void SetLastTransitionTime(const Aws::Utils::DateTime& value) { m_lastTransitionTimeHasBeenSet = true; m_lastTransitionTime = value; } + + /** + *

The time the status of the insight last changed.

+ */ + inline void SetLastTransitionTime(Aws::Utils::DateTime&& value) { m_lastTransitionTimeHasBeenSet = true; m_lastTransitionTime = std::move(value); } + + /** + *

The time the status of the insight last changed.

+ */ + inline Insight& WithLastTransitionTime(const Aws::Utils::DateTime& value) { SetLastTransitionTime(value); return *this;} + + /** + *

The time the status of the insight last changed.

+ */ + inline Insight& WithLastTransitionTime(Aws::Utils::DateTime&& value) { SetLastTransitionTime(std::move(value)); return *this;} + + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline Insight& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline Insight& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline Insight& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline const InsightStatus& GetInsightStatus() const{ return m_insightStatus; } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline bool InsightStatusHasBeenSet() const { return m_insightStatusHasBeenSet; } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline void SetInsightStatus(const InsightStatus& value) { m_insightStatusHasBeenSet = true; m_insightStatus = value; } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline void SetInsightStatus(InsightStatus&& value) { m_insightStatusHasBeenSet = true; m_insightStatus = std::move(value); } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline Insight& WithInsightStatus(const InsightStatus& value) { SetInsightStatus(value); return *this;} + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline Insight& WithInsightStatus(InsightStatus&& value) { SetInsightStatus(std::move(value)); return *this;} + + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline const Aws::String& GetRecommendation() const{ return m_recommendation; } + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; } + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline void SetRecommendation(const Aws::String& value) { m_recommendationHasBeenSet = true; m_recommendation = value; } + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline void SetRecommendation(Aws::String&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); } + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline void SetRecommendation(const char* value) { m_recommendationHasBeenSet = true; m_recommendation.assign(value); } + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline Insight& WithRecommendation(const Aws::String& value) { SetRecommendation(value); return *this;} + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline Insight& WithRecommendation(Aws::String&& value) { SetRecommendation(std::move(value)); return *this;} + + /** + *

A summary of how to remediate the finding of this insight if applicable.

+ */ + inline Insight& WithRecommendation(const char* value) { SetRecommendation(value); return *this;} + + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline const Aws::Map& GetAdditionalInfo() const{ return m_additionalInfo; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline void SetAdditionalInfo(const Aws::Map& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline void SetAdditionalInfo(Aws::Map&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& WithAdditionalInfo(const Aws::Map& value) { SetAdditionalInfo(value); return *this;} + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& WithAdditionalInfo(Aws::Map&& value) { SetAdditionalInfo(std::move(value)); return *this;} + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(const Aws::String& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(Aws::String&& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(const Aws::String& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(Aws::String&& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(const char* key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(Aws::String&& key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } + + /** + *

Links to sources that provide additional context on the insight.

+ */ + inline Insight& AddAdditionalInfo(const char* key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } + + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline const Aws::Vector& GetResources() const{ return m_resources; } + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline Insight& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline Insight& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline Insight& AddResources(const InsightResourceDetail& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } + + /** + *

The details about each resource listed in the insight check result.

+ */ + inline Insight& AddResources(InsightResourceDetail&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } + + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

+ */ + inline const InsightCategorySpecificSummary& GetCategorySpecificSummary() const{ return m_categorySpecificSummary; } + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

+ */ + inline bool CategorySpecificSummaryHasBeenSet() const { return m_categorySpecificSummaryHasBeenSet; } + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

+ */ + inline void SetCategorySpecificSummary(const InsightCategorySpecificSummary& value) { m_categorySpecificSummaryHasBeenSet = true; m_categorySpecificSummary = value; } + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

+ */ + inline void SetCategorySpecificSummary(InsightCategorySpecificSummary&& value) { m_categorySpecificSummaryHasBeenSet = true; m_categorySpecificSummary = std::move(value); } + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

+ */ + inline Insight& WithCategorySpecificSummary(const InsightCategorySpecificSummary& value) { SetCategorySpecificSummary(value); return *this;} + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

+ */ + inline Insight& WithCategorySpecificSummary(InsightCategorySpecificSummary&& value) { SetCategorySpecificSummary(std::move(value)); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Category m_category; + bool m_categoryHasBeenSet = false; + + Aws::String m_kubernetesVersion; + bool m_kubernetesVersionHasBeenSet = false; + + Aws::Utils::DateTime m_lastRefreshTime; + bool m_lastRefreshTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastTransitionTime; + bool m_lastTransitionTimeHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + InsightStatus m_insightStatus; + bool m_insightStatusHasBeenSet = false; + + Aws::String m_recommendation; + bool m_recommendationHasBeenSet = false; + + Aws::Map m_additionalInfo; + bool m_additionalInfoHasBeenSet = false; + + Aws::Vector m_resources; + bool m_resourcesHasBeenSet = false; + + InsightCategorySpecificSummary m_categorySpecificSummary; + bool m_categorySpecificSummaryHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightCategorySpecificSummary.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightCategorySpecificSummary.h new file mode 100644 index 00000000000..9c442753e59 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightCategorySpecificSummary.h @@ -0,0 +1,99 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + *

Summary information that relates to the category of the insight. Currently + * only returned with certain insights having category + * UPGRADE_READINESS.

See Also:

AWS + * API Reference

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

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline const Aws::Vector& GetDeprecationDetails() const{ return m_deprecationDetails; } + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline bool DeprecationDetailsHasBeenSet() const { return m_deprecationDetailsHasBeenSet; } + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline void SetDeprecationDetails(const Aws::Vector& value) { m_deprecationDetailsHasBeenSet = true; m_deprecationDetails = value; } + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline void SetDeprecationDetails(Aws::Vector&& value) { m_deprecationDetailsHasBeenSet = true; m_deprecationDetails = std::move(value); } + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline InsightCategorySpecificSummary& WithDeprecationDetails(const Aws::Vector& value) { SetDeprecationDetails(value); return *this;} + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline InsightCategorySpecificSummary& WithDeprecationDetails(Aws::Vector&& value) { SetDeprecationDetails(std::move(value)); return *this;} + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline InsightCategorySpecificSummary& AddDeprecationDetails(const DeprecationDetail& value) { m_deprecationDetailsHasBeenSet = true; m_deprecationDetails.push_back(value); return *this; } + + /** + *

The summary information about deprecated resource usage for an insight check + * in the UPGRADE_READINESS category.

+ */ + inline InsightCategorySpecificSummary& AddDeprecationDetails(DeprecationDetail&& value) { m_deprecationDetailsHasBeenSet = true; m_deprecationDetails.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_deprecationDetails; + bool m_deprecationDetailsHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightResourceDetail.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightResourceDetail.h new file mode 100644 index 00000000000..fa5822d1261 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightResourceDetail.h @@ -0,0 +1,168 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + *

Returns information about the resource being evaluated.

See + * Also:

AWS + * API Reference

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

An object containing more detail on the status of the insight resource.

+ */ + inline const InsightStatus& GetInsightStatus() const{ return m_insightStatus; } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline bool InsightStatusHasBeenSet() const { return m_insightStatusHasBeenSet; } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline void SetInsightStatus(const InsightStatus& value) { m_insightStatusHasBeenSet = true; m_insightStatus = value; } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline void SetInsightStatus(InsightStatus&& value) { m_insightStatusHasBeenSet = true; m_insightStatus = std::move(value); } + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline InsightResourceDetail& WithInsightStatus(const InsightStatus& value) { SetInsightStatus(value); return *this;} + + /** + *

An object containing more detail on the status of the insight resource.

+ */ + inline InsightResourceDetail& WithInsightStatus(InsightStatus&& value) { SetInsightStatus(std::move(value)); return *this;} + + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline const Aws::String& GetKubernetesResourceUri() const{ return m_kubernetesResourceUri; } + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline bool KubernetesResourceUriHasBeenSet() const { return m_kubernetesResourceUriHasBeenSet; } + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline void SetKubernetesResourceUri(const Aws::String& value) { m_kubernetesResourceUriHasBeenSet = true; m_kubernetesResourceUri = value; } + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline void SetKubernetesResourceUri(Aws::String&& value) { m_kubernetesResourceUriHasBeenSet = true; m_kubernetesResourceUri = std::move(value); } + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline void SetKubernetesResourceUri(const char* value) { m_kubernetesResourceUriHasBeenSet = true; m_kubernetesResourceUri.assign(value); } + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline InsightResourceDetail& WithKubernetesResourceUri(const Aws::String& value) { SetKubernetesResourceUri(value); return *this;} + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline InsightResourceDetail& WithKubernetesResourceUri(Aws::String&& value) { SetKubernetesResourceUri(std::move(value)); return *this;} + + /** + *

The Kubernetes resource URI if applicable.

+ */ + inline InsightResourceDetail& WithKubernetesResourceUri(const char* value) { SetKubernetesResourceUri(value); return *this;} + + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline InsightResourceDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline InsightResourceDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *

The Amazon Resource Name (ARN) if applicable.

+ */ + inline InsightResourceDetail& WithArn(const char* value) { SetArn(value); return *this;} + + private: + + InsightStatus m_insightStatus; + bool m_insightStatusHasBeenSet = false; + + Aws::String m_kubernetesResourceUri; + bool m_kubernetesResourceUriHasBeenSet = false; + + Aws::String m_arn; + bool m_arnHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatus.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatus.h new file mode 100644 index 00000000000..56e6decea45 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatus.h @@ -0,0 +1,123 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + *

The status of the insight.

See Also:

AWS + * API Reference

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

The status of the resource.

+ */ + inline const InsightStatusValue& GetStatus() const{ return m_status; } + + /** + *

The status of the resource.

+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

The status of the resource.

+ */ + inline void SetStatus(const InsightStatusValue& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

The status of the resource.

+ */ + inline void SetStatus(InsightStatusValue&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

The status of the resource.

+ */ + inline InsightStatus& WithStatus(const InsightStatusValue& value) { SetStatus(value); return *this;} + + /** + *

The status of the resource.

+ */ + inline InsightStatus& WithStatus(InsightStatusValue&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline const Aws::String& GetReason() const{ return m_reason; } + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline InsightStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;} + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline InsightStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} + + /** + *

Explanation on the reasoning for the status of the resource.

+ */ + inline InsightStatus& WithReason(const char* value) { SetReason(value); return *this;} + + private: + + InsightStatusValue m_status; + bool m_statusHasBeenSet = false; + + Aws::String m_reason; + bool m_reasonHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatusValue.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatusValue.h new file mode 100644 index 00000000000..c264be9bd7d --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightStatusValue.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace EKS +{ +namespace Model +{ + enum class InsightStatusValue + { + NOT_SET, + PASSING, + WARNING, + ERROR_, + UNKNOWN + }; + +namespace InsightStatusValueMapper +{ +AWS_EKS_API InsightStatusValue GetInsightStatusValueForName(const Aws::String& name); + +AWS_EKS_API Aws::String GetNameForInsightStatusValue(InsightStatusValue value); +} // namespace InsightStatusValueMapper +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightSummary.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightSummary.h new file mode 100644 index 00000000000..5143262cad5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightSummary.h @@ -0,0 +1,373 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + *

The summarized description of the insight.

See Also:

AWS + * API Reference

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

The ID of the insight.

+ */ + inline const Aws::String& GetId() const{ return m_id; } + + /** + *

The ID of the insight.

+ */ + inline bool IdHasBeenSet() const { return m_idHasBeenSet; } + + /** + *

The ID of the insight.

+ */ + inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } + + /** + *

The ID of the insight.

+ */ + inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } + + /** + *

The ID of the insight.

+ */ + inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } + + /** + *

The ID of the insight.

+ */ + inline InsightSummary& WithId(const Aws::String& value) { SetId(value); return *this;} + + /** + *

The ID of the insight.

+ */ + inline InsightSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} + + /** + *

The ID of the insight.

+ */ + inline InsightSummary& WithId(const char* value) { SetId(value); return *this;} + + + /** + *

The name of the insight.

+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

The name of the insight.

+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

The name of the insight.

+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

The name of the insight.

+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

The name of the insight.

+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

The name of the insight.

+ */ + inline InsightSummary& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

The name of the insight.

+ */ + inline InsightSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

The name of the insight.

+ */ + inline InsightSummary& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

The category of the insight.

+ */ + inline const Category& GetCategory() const{ return m_category; } + + /** + *

The category of the insight.

+ */ + inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } + + /** + *

The category of the insight.

+ */ + inline void SetCategory(const Category& value) { m_categoryHasBeenSet = true; m_category = value; } + + /** + *

The category of the insight.

+ */ + inline void SetCategory(Category&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } + + /** + *

The category of the insight.

+ */ + inline InsightSummary& WithCategory(const Category& value) { SetCategory(value); return *this;} + + /** + *

The category of the insight.

+ */ + inline InsightSummary& WithCategory(Category&& value) { SetCategory(std::move(value)); return *this;} + + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline const Aws::String& GetKubernetesVersion() const{ return m_kubernetesVersion; } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline bool KubernetesVersionHasBeenSet() const { return m_kubernetesVersionHasBeenSet; } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline void SetKubernetesVersion(const Aws::String& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = value; } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline void SetKubernetesVersion(Aws::String&& value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion = std::move(value); } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline void SetKubernetesVersion(const char* value) { m_kubernetesVersionHasBeenSet = true; m_kubernetesVersion.assign(value); } + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline InsightSummary& WithKubernetesVersion(const Aws::String& value) { SetKubernetesVersion(value); return *this;} + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline InsightSummary& WithKubernetesVersion(Aws::String&& value) { SetKubernetesVersion(std::move(value)); return *this;} + + /** + *

The Kubernetes minor version associated with an insight if applicable.

+ */ + inline InsightSummary& WithKubernetesVersion(const char* value) { SetKubernetesVersion(value); return *this;} + + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline const Aws::Utils::DateTime& GetLastRefreshTime() const{ return m_lastRefreshTime; } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline bool LastRefreshTimeHasBeenSet() const { return m_lastRefreshTimeHasBeenSet; } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline void SetLastRefreshTime(const Aws::Utils::DateTime& value) { m_lastRefreshTimeHasBeenSet = true; m_lastRefreshTime = value; } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline void SetLastRefreshTime(Aws::Utils::DateTime&& value) { m_lastRefreshTimeHasBeenSet = true; m_lastRefreshTime = std::move(value); } + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline InsightSummary& WithLastRefreshTime(const Aws::Utils::DateTime& value) { SetLastRefreshTime(value); return *this;} + + /** + *

The time Amazon EKS last successfully completed a refresh of this insight + * check on the cluster.

+ */ + inline InsightSummary& WithLastRefreshTime(Aws::Utils::DateTime&& value) { SetLastRefreshTime(std::move(value)); return *this;} + + + /** + *

The time the status of the insight last changed.

+ */ + inline const Aws::Utils::DateTime& GetLastTransitionTime() const{ return m_lastTransitionTime; } + + /** + *

The time the status of the insight last changed.

+ */ + inline bool LastTransitionTimeHasBeenSet() const { return m_lastTransitionTimeHasBeenSet; } + + /** + *

The time the status of the insight last changed.

+ */ + inline void SetLastTransitionTime(const Aws::Utils::DateTime& value) { m_lastTransitionTimeHasBeenSet = true; m_lastTransitionTime = value; } + + /** + *

The time the status of the insight last changed.

+ */ + inline void SetLastTransitionTime(Aws::Utils::DateTime&& value) { m_lastTransitionTimeHasBeenSet = true; m_lastTransitionTime = std::move(value); } + + /** + *

The time the status of the insight last changed.

+ */ + inline InsightSummary& WithLastTransitionTime(const Aws::Utils::DateTime& value) { SetLastTransitionTime(value); return *this;} + + /** + *

The time the status of the insight last changed.

+ */ + inline InsightSummary& WithLastTransitionTime(Aws::Utils::DateTime&& value) { SetLastTransitionTime(std::move(value)); return *this;} + + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline const Aws::String& GetDescription() const{ return m_description; } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline InsightSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline InsightSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + + /** + *

The description of the insight which includes alert criteria, remediation + * recommendation, and additional resources (contains Markdown).

+ */ + inline InsightSummary& WithDescription(const char* value) { SetDescription(value); return *this;} + + + /** + *

An object containing more detail on the status of the insight.

+ */ + inline const InsightStatus& GetInsightStatus() const{ return m_insightStatus; } + + /** + *

An object containing more detail on the status of the insight.

+ */ + inline bool InsightStatusHasBeenSet() const { return m_insightStatusHasBeenSet; } + + /** + *

An object containing more detail on the status of the insight.

+ */ + inline void SetInsightStatus(const InsightStatus& value) { m_insightStatusHasBeenSet = true; m_insightStatus = value; } + + /** + *

An object containing more detail on the status of the insight.

+ */ + inline void SetInsightStatus(InsightStatus&& value) { m_insightStatusHasBeenSet = true; m_insightStatus = std::move(value); } + + /** + *

An object containing more detail on the status of the insight.

+ */ + inline InsightSummary& WithInsightStatus(const InsightStatus& value) { SetInsightStatus(value); return *this;} + + /** + *

An object containing more detail on the status of the insight.

+ */ + inline InsightSummary& WithInsightStatus(InsightStatus&& value) { SetInsightStatus(std::move(value)); return *this;} + + private: + + Aws::String m_id; + bool m_idHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Category m_category; + bool m_categoryHasBeenSet = false; + + Aws::String m_kubernetesVersion; + bool m_kubernetesVersionHasBeenSet = false; + + Aws::Utils::DateTime m_lastRefreshTime; + bool m_lastRefreshTimeHasBeenSet = false; + + Aws::Utils::DateTime m_lastTransitionTime; + bool m_lastTransitionTimeHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + InsightStatus m_insightStatus; + bool m_insightStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightsFilter.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightsFilter.h new file mode 100644 index 00000000000..359c859bb54 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/InsightsFilter.h @@ -0,0 +1,184 @@ +/** + * 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 EKS +{ +namespace Model +{ + + /** + *

The criteria to use for the insights.

See Also:

AWS + * API Reference

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

The categories to use to filter insights.

+ */ + inline const Aws::Vector& GetCategories() const{ return m_categories; } + + /** + *

The categories to use to filter insights.

+ */ + inline bool CategoriesHasBeenSet() const { return m_categoriesHasBeenSet; } + + /** + *

The categories to use to filter insights.

+ */ + inline void SetCategories(const Aws::Vector& value) { m_categoriesHasBeenSet = true; m_categories = value; } + + /** + *

The categories to use to filter insights.

+ */ + inline void SetCategories(Aws::Vector&& value) { m_categoriesHasBeenSet = true; m_categories = std::move(value); } + + /** + *

The categories to use to filter insights.

+ */ + inline InsightsFilter& WithCategories(const Aws::Vector& value) { SetCategories(value); return *this;} + + /** + *

The categories to use to filter insights.

+ */ + inline InsightsFilter& WithCategories(Aws::Vector&& value) { SetCategories(std::move(value)); return *this;} + + /** + *

The categories to use to filter insights.

+ */ + inline InsightsFilter& AddCategories(const Category& value) { m_categoriesHasBeenSet = true; m_categories.push_back(value); return *this; } + + /** + *

The categories to use to filter insights.

+ */ + inline InsightsFilter& AddCategories(Category&& value) { m_categoriesHasBeenSet = true; m_categories.push_back(std::move(value)); return *this; } + + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline const Aws::Vector& GetKubernetesVersions() const{ return m_kubernetesVersions; } + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline bool KubernetesVersionsHasBeenSet() const { return m_kubernetesVersionsHasBeenSet; } + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline void SetKubernetesVersions(const Aws::Vector& value) { m_kubernetesVersionsHasBeenSet = true; m_kubernetesVersions = value; } + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline void SetKubernetesVersions(Aws::Vector&& value) { m_kubernetesVersionsHasBeenSet = true; m_kubernetesVersions = std::move(value); } + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline InsightsFilter& WithKubernetesVersions(const Aws::Vector& value) { SetKubernetesVersions(value); return *this;} + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline InsightsFilter& WithKubernetesVersions(Aws::Vector&& value) { SetKubernetesVersions(std::move(value)); return *this;} + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline InsightsFilter& AddKubernetesVersions(const Aws::String& value) { m_kubernetesVersionsHasBeenSet = true; m_kubernetesVersions.push_back(value); return *this; } + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline InsightsFilter& AddKubernetesVersions(Aws::String&& value) { m_kubernetesVersionsHasBeenSet = true; m_kubernetesVersions.push_back(std::move(value)); return *this; } + + /** + *

The Kubernetes versions to use to filter the insights.

+ */ + inline InsightsFilter& AddKubernetesVersions(const char* value) { m_kubernetesVersionsHasBeenSet = true; m_kubernetesVersions.push_back(value); return *this; } + + + /** + *

The statuses to use to filter the insights.

+ */ + inline const Aws::Vector& GetStatuses() const{ return m_statuses; } + + /** + *

The statuses to use to filter the insights.

+ */ + inline bool StatusesHasBeenSet() const { return m_statusesHasBeenSet; } + + /** + *

The statuses to use to filter the insights.

+ */ + inline void SetStatuses(const Aws::Vector& value) { m_statusesHasBeenSet = true; m_statuses = value; } + + /** + *

The statuses to use to filter the insights.

+ */ + inline void SetStatuses(Aws::Vector&& value) { m_statusesHasBeenSet = true; m_statuses = std::move(value); } + + /** + *

The statuses to use to filter the insights.

+ */ + inline InsightsFilter& WithStatuses(const Aws::Vector& value) { SetStatuses(value); return *this;} + + /** + *

The statuses to use to filter the insights.

+ */ + inline InsightsFilter& WithStatuses(Aws::Vector&& value) { SetStatuses(std::move(value)); return *this;} + + /** + *

The statuses to use to filter the insights.

+ */ + inline InsightsFilter& AddStatuses(const InsightStatusValue& value) { m_statusesHasBeenSet = true; m_statuses.push_back(value); return *this; } + + /** + *

The statuses to use to filter the insights.

+ */ + inline InsightsFilter& AddStatuses(InsightStatusValue&& value) { m_statusesHasBeenSet = true; m_statuses.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_categories; + bool m_categoriesHasBeenSet = false; + + Aws::Vector m_kubernetesVersions; + bool m_kubernetesVersionsHasBeenSet = false; + + Aws::Vector m_statuses; + bool m_statusesHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListIdentityProviderConfigsResult.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListIdentityProviderConfigsResult.h index 0ecc8e8b518..249741743e6 100644 --- a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListIdentityProviderConfigsResult.h +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListIdentityProviderConfigsResult.h @@ -76,7 +76,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } @@ -86,7 +88,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } @@ -96,7 +100,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } @@ -106,7 +112,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } @@ -116,7 +124,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline ListIdentityProviderConfigsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} @@ -126,7 +136,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline ListIdentityProviderConfigsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} @@ -136,7 +148,9 @@ namespace Model * ListIdentityProviderConfigsResponse request exceed * maxResults, you can use this value to retrieve the next page of * results. This value is null when there are no more results to - * return.

+ * return.

This token should be treated as an opaque identifier that + * is used only to retrieve the next items in a list and not for other programmatic + * purposes.

*/ inline ListIdentityProviderConfigsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsRequest.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsRequest.h new file mode 100644 index 00000000000..c2ab92a9280 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsRequest.h @@ -0,0 +1,262 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace EKS +{ +namespace Model +{ + + /** + */ + class ListInsightsRequest : public EKSRequest + { + public: + AWS_EKS_API ListInsightsRequest(); + + // 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 "ListInsights"; } + + AWS_EKS_API Aws::String SerializePayload() const override; + + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline const Aws::String& GetClusterName() const{ return m_clusterName; } + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline ListInsightsRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline ListInsightsRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} + + /** + *

The name of the Amazon EKS cluster associated with the insights.

+ */ + inline ListInsightsRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} + + + /** + *

The criteria to filter your list of insights for your cluster. You can filter + * which insights are returned by category, associated Kubernetes version, and + * status.

+ */ + inline const InsightsFilter& GetFilter() const{ return m_filter; } + + /** + *

The criteria to filter your list of insights for your cluster. You can filter + * which insights are returned by category, associated Kubernetes version, and + * status.

+ */ + inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } + + /** + *

The criteria to filter your list of insights for your cluster. You can filter + * which insights are returned by category, associated Kubernetes version, and + * status.

+ */ + inline void SetFilter(const InsightsFilter& value) { m_filterHasBeenSet = true; m_filter = value; } + + /** + *

The criteria to filter your list of insights for your cluster. You can filter + * which insights are returned by category, associated Kubernetes version, and + * status.

+ */ + inline void SetFilter(InsightsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } + + /** + *

The criteria to filter your list of insights for your cluster. You can filter + * which insights are returned by category, associated Kubernetes version, and + * status.

+ */ + inline ListInsightsRequest& WithFilter(const InsightsFilter& value) { SetFilter(value); return *this;} + + /** + *

The criteria to filter your list of insights for your cluster. You can filter + * which insights are returned by category, associated Kubernetes version, and + * status.

+ */ + inline ListInsightsRequest& WithFilter(InsightsFilter&& value) { SetFilter(std::move(value)); return *this;} + + + /** + *

The maximum number of identity provider configurations returned by + * ListInsights in paginated output. When you use this parameter, + * ListInsights returns only maxResults results in a + * single page along with a nextToken response element. You can see + * the remaining results of the initial request by sending another + * ListInsights request with the returned nextToken + * value. This value can be between 1 and 100. If you don't use this parameter, + * ListInsights returns up to 100 results and a nextToken + * value, if applicable.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

The maximum number of identity provider configurations returned by + * ListInsights in paginated output. When you use this parameter, + * ListInsights returns only maxResults results in a + * single page along with a nextToken response element. You can see + * the remaining results of the initial request by sending another + * ListInsights request with the returned nextToken + * value. This value can be between 1 and 100. If you don't use this parameter, + * ListInsights returns up to 100 results and a nextToken + * value, if applicable.

+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

The maximum number of identity provider configurations returned by + * ListInsights in paginated output. When you use this parameter, + * ListInsights returns only maxResults results in a + * single page along with a nextToken response element. You can see + * the remaining results of the initial request by sending another + * ListInsights request with the returned nextToken + * value. This value can be between 1 and 100. If you don't use this parameter, + * ListInsights returns up to 100 results and a nextToken + * value, if applicable.

+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

The maximum number of identity provider configurations returned by + * ListInsights in paginated output. When you use this parameter, + * ListInsights returns only maxResults results in a + * single page along with a nextToken response element. You can see + * the remaining results of the initial request by sending another + * ListInsights request with the returned nextToken + * value. This value can be between 1 and 100. If you don't use this parameter, + * ListInsights returns up to 100 results and a nextToken + * value, if applicable.

+ */ + inline ListInsightsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline ListInsightsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline ListInsightsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The nextToken value returned from a previous paginated + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline ListInsightsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_clusterName; + bool m_clusterNameHasBeenSet = false; + + InsightsFilter m_filter; + bool m_filterHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsResult.h b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsResult.h new file mode 100644 index 00000000000..07f6e3dba0b --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/include/aws/eks/model/ListInsightsResult.h @@ -0,0 +1,169 @@ +/** + * 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 EKS +{ +namespace Model +{ + class ListInsightsResult + { + public: + AWS_EKS_API ListInsightsResult(); + AWS_EKS_API ListInsightsResult(const Aws::AmazonWebServiceResult& result); + AWS_EKS_API ListInsightsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The returned list of insights.

+ */ + inline const Aws::Vector& GetInsights() const{ return m_insights; } + + /** + *

The returned list of insights.

+ */ + inline void SetInsights(const Aws::Vector& value) { m_insights = value; } + + /** + *

The returned list of insights.

+ */ + inline void SetInsights(Aws::Vector&& value) { m_insights = std::move(value); } + + /** + *

The returned list of insights.

+ */ + inline ListInsightsResult& WithInsights(const Aws::Vector& value) { SetInsights(value); return *this;} + + /** + *

The returned list of insights.

+ */ + inline ListInsightsResult& WithInsights(Aws::Vector&& value) { SetInsights(std::move(value)); return *this;} + + /** + *

The returned list of insights.

+ */ + inline ListInsightsResult& AddInsights(const InsightSummary& value) { m_insights.push_back(value); return *this; } + + /** + *

The returned list of insights.

+ */ + inline ListInsightsResult& AddInsights(InsightSummary&& value) { m_insights.push_back(std::move(value)); return *this; } + + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline ListInsightsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline ListInsightsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

The nextToken value to include in a future + * ListInsights request. When the results of a + * ListInsights request exceed maxResults, you can use + * this value to retrieve the next page of results. This value is null + * when there are no more results to return.

+ */ + inline ListInsightsResult& 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 ListInsightsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListInsightsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListInsightsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_insights; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp b/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp index 82b298760b2..b5e46314ffa 100644 --- a/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp +++ b/generated/src/aws-cpp-sdk-eks/source/EKSClient.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -60,6 +61,7 @@ #include #include #include +#include #include #include #include @@ -1124,6 +1126,46 @@ DescribeIdentityProviderConfigOutcome EKSClient::DescribeIdentityProviderConfig( {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DescribeInsightOutcome EKSClient::DescribeInsight(const DescribeInsightRequest& request) const +{ + AWS_OPERATION_GUARD(DescribeInsight); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeInsight, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ClusterNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeInsight", "Required field: ClusterName, is not set"); + return DescribeInsightOutcome(Aws::Client::AWSError(EKSErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ClusterName]", false)); + } + if (!request.IdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DescribeInsight", "Required field: Id, is not set"); + return DescribeInsightOutcome(Aws::Client::AWSError(EKSErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Id]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeInsight, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DescribeInsight, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeInsight", + {{ 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( + [&]()-> DescribeInsightOutcome { + 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, DescribeInsight, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/clusters/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetClusterName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/insights/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetId()); + return DescribeInsightOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DescribeNodegroupOutcome EKSClient::DescribeNodegroup(const DescribeNodegroupRequest& request) const { AWS_OPERATION_GUARD(DescribeNodegroup); @@ -1583,6 +1625,40 @@ ListIdentityProviderConfigsOutcome EKSClient::ListIdentityProviderConfigs(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListInsightsOutcome EKSClient::ListInsights(const ListInsightsRequest& request) const +{ + AWS_OPERATION_GUARD(ListInsights); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListInsights, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.ClusterNameHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListInsights", "Required field: ClusterName, is not set"); + return ListInsightsOutcome(Aws::Client::AWSError(EKSErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ClusterName]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListInsights, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListInsights, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListInsights", + {{ 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( + [&]()-> ListInsightsOutcome { + 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, ListInsights, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/clusters/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetClusterName()); + endpointResolutionOutcome.GetResult().AddPathSegments("/insights"); + return ListInsightsOutcome(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()}}); +} + ListNodegroupsOutcome EKSClient::ListNodegroups(const ListNodegroupsRequest& request) const { AWS_OPERATION_GUARD(ListNodegroups); diff --git a/generated/src/aws-cpp-sdk-eks/source/model/Category.cpp b/generated/src/aws-cpp-sdk-eks/source/model/Category.cpp new file mode 100644 index 00000000000..d90dbbda1ed --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/Category.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace EKS + { + namespace Model + { + namespace CategoryMapper + { + + static const int UPGRADE_READINESS_HASH = HashingUtils::HashString("UPGRADE_READINESS"); + + + Category GetCategoryForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == UPGRADE_READINESS_HASH) + { + return Category::UPGRADE_READINESS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Category::NOT_SET; + } + + Aws::String GetNameForCategory(Category enumValue) + { + switch(enumValue) + { + case Category::NOT_SET: + return {}; + case Category::UPGRADE_READINESS: + return "UPGRADE_READINESS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace CategoryMapper + } // namespace Model + } // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ClientStat.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ClientStat.cpp new file mode 100644 index 00000000000..675efc052ea --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/ClientStat.cpp @@ -0,0 +1,90 @@ +/** + * 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 EKS +{ +namespace Model +{ + +ClientStat::ClientStat() : + m_userAgentHasBeenSet(false), + m_numberOfRequestsLast30Days(0), + m_numberOfRequestsLast30DaysHasBeenSet(false), + m_lastRequestTimeHasBeenSet(false) +{ +} + +ClientStat::ClientStat(JsonView jsonValue) : + m_userAgentHasBeenSet(false), + m_numberOfRequestsLast30Days(0), + m_numberOfRequestsLast30DaysHasBeenSet(false), + m_lastRequestTimeHasBeenSet(false) +{ + *this = jsonValue; +} + +ClientStat& ClientStat::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("userAgent")) + { + m_userAgent = jsonValue.GetString("userAgent"); + + m_userAgentHasBeenSet = true; + } + + if(jsonValue.ValueExists("numberOfRequestsLast30Days")) + { + m_numberOfRequestsLast30Days = jsonValue.GetInteger("numberOfRequestsLast30Days"); + + m_numberOfRequestsLast30DaysHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastRequestTime")) + { + m_lastRequestTime = jsonValue.GetDouble("lastRequestTime"); + + m_lastRequestTimeHasBeenSet = true; + } + + return *this; +} + +JsonValue ClientStat::Jsonize() const +{ + JsonValue payload; + + if(m_userAgentHasBeenSet) + { + payload.WithString("userAgent", m_userAgent); + + } + + if(m_numberOfRequestsLast30DaysHasBeenSet) + { + payload.WithInteger("numberOfRequestsLast30Days", m_numberOfRequestsLast30Days); + + } + + if(m_lastRequestTimeHasBeenSet) + { + payload.WithDouble("lastRequestTime", m_lastRequestTime.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/DeprecationDetail.cpp b/generated/src/aws-cpp-sdk-eks/source/model/DeprecationDetail.cpp new file mode 100644 index 00000000000..ef97534cadb --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/DeprecationDetail.cpp @@ -0,0 +1,127 @@ +/** + * 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 EKS +{ +namespace Model +{ + +DeprecationDetail::DeprecationDetail() : + m_usageHasBeenSet(false), + m_replacedWithHasBeenSet(false), + m_stopServingVersionHasBeenSet(false), + m_startServingReplacementVersionHasBeenSet(false), + m_clientStatsHasBeenSet(false) +{ +} + +DeprecationDetail::DeprecationDetail(JsonView jsonValue) : + m_usageHasBeenSet(false), + m_replacedWithHasBeenSet(false), + m_stopServingVersionHasBeenSet(false), + m_startServingReplacementVersionHasBeenSet(false), + m_clientStatsHasBeenSet(false) +{ + *this = jsonValue; +} + +DeprecationDetail& DeprecationDetail::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("usage")) + { + m_usage = jsonValue.GetString("usage"); + + m_usageHasBeenSet = true; + } + + if(jsonValue.ValueExists("replacedWith")) + { + m_replacedWith = jsonValue.GetString("replacedWith"); + + m_replacedWithHasBeenSet = true; + } + + if(jsonValue.ValueExists("stopServingVersion")) + { + m_stopServingVersion = jsonValue.GetString("stopServingVersion"); + + m_stopServingVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("startServingReplacementVersion")) + { + m_startServingReplacementVersion = jsonValue.GetString("startServingReplacementVersion"); + + m_startServingReplacementVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("clientStats")) + { + Aws::Utils::Array clientStatsJsonList = jsonValue.GetArray("clientStats"); + for(unsigned clientStatsIndex = 0; clientStatsIndex < clientStatsJsonList.GetLength(); ++clientStatsIndex) + { + m_clientStats.push_back(clientStatsJsonList[clientStatsIndex].AsObject()); + } + m_clientStatsHasBeenSet = true; + } + + return *this; +} + +JsonValue DeprecationDetail::Jsonize() const +{ + JsonValue payload; + + if(m_usageHasBeenSet) + { + payload.WithString("usage", m_usage); + + } + + if(m_replacedWithHasBeenSet) + { + payload.WithString("replacedWith", m_replacedWith); + + } + + if(m_stopServingVersionHasBeenSet) + { + payload.WithString("stopServingVersion", m_stopServingVersion); + + } + + if(m_startServingReplacementVersionHasBeenSet) + { + payload.WithString("startServingReplacementVersion", m_startServingReplacementVersion); + + } + + if(m_clientStatsHasBeenSet) + { + Aws::Utils::Array clientStatsJsonList(m_clientStats.size()); + for(unsigned clientStatsIndex = 0; clientStatsIndex < clientStatsJsonList.GetLength(); ++clientStatsIndex) + { + clientStatsJsonList[clientStatsIndex].AsObject(m_clientStats[clientStatsIndex].Jsonize()); + } + payload.WithArray("clientStats", std::move(clientStatsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightRequest.cpp b/generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightRequest.cpp new file mode 100644 index 00000000000..8c30722624d --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::EKS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DescribeInsightRequest::DescribeInsightRequest() : + m_clusterNameHasBeenSet(false), + m_idHasBeenSet(false) +{ +} + +Aws::String DescribeInsightRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightResult.cpp b/generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightResult.cpp new file mode 100644 index 00000000000..44cef164122 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/DescribeInsightResult.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::EKS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DescribeInsightResult::DescribeInsightResult() +{ +} + +DescribeInsightResult::DescribeInsightResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DescribeInsightResult& DescribeInsightResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("insight")) + { + m_insight = jsonValue.GetObject("insight"); + + } + + + 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-eks/source/model/Insight.cpp b/generated/src/aws-cpp-sdk-eks/source/model/Insight.cpp new file mode 100644 index 00000000000..ea48dfa10a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/Insight.cpp @@ -0,0 +1,239 @@ +/** + * 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 EKS +{ +namespace Model +{ + +Insight::Insight() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_category(Category::NOT_SET), + m_categoryHasBeenSet(false), + m_kubernetesVersionHasBeenSet(false), + m_lastRefreshTimeHasBeenSet(false), + m_lastTransitionTimeHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_insightStatusHasBeenSet(false), + m_recommendationHasBeenSet(false), + m_additionalInfoHasBeenSet(false), + m_resourcesHasBeenSet(false), + m_categorySpecificSummaryHasBeenSet(false) +{ +} + +Insight::Insight(JsonView jsonValue) : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_category(Category::NOT_SET), + m_categoryHasBeenSet(false), + m_kubernetesVersionHasBeenSet(false), + m_lastRefreshTimeHasBeenSet(false), + m_lastTransitionTimeHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_insightStatusHasBeenSet(false), + m_recommendationHasBeenSet(false), + m_additionalInfoHasBeenSet(false), + m_resourcesHasBeenSet(false), + m_categorySpecificSummaryHasBeenSet(false) +{ + *this = jsonValue; +} + +Insight& Insight::operator =(JsonView jsonValue) +{ + 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("category")) + { + m_category = CategoryMapper::GetCategoryForName(jsonValue.GetString("category")); + + m_categoryHasBeenSet = true; + } + + if(jsonValue.ValueExists("kubernetesVersion")) + { + m_kubernetesVersion = jsonValue.GetString("kubernetesVersion"); + + m_kubernetesVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastRefreshTime")) + { + m_lastRefreshTime = jsonValue.GetDouble("lastRefreshTime"); + + m_lastRefreshTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastTransitionTime")) + { + m_lastTransitionTime = jsonValue.GetDouble("lastTransitionTime"); + + m_lastTransitionTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("insightStatus")) + { + m_insightStatus = jsonValue.GetObject("insightStatus"); + + m_insightStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("recommendation")) + { + m_recommendation = jsonValue.GetString("recommendation"); + + m_recommendationHasBeenSet = true; + } + + if(jsonValue.ValueExists("additionalInfo")) + { + Aws::Map additionalInfoJsonMap = jsonValue.GetObject("additionalInfo").GetAllObjects(); + for(auto& additionalInfoItem : additionalInfoJsonMap) + { + m_additionalInfo[additionalInfoItem.first] = additionalInfoItem.second.AsString(); + } + m_additionalInfoHasBeenSet = true; + } + + if(jsonValue.ValueExists("resources")) + { + Aws::Utils::Array resourcesJsonList = jsonValue.GetArray("resources"); + for(unsigned resourcesIndex = 0; resourcesIndex < resourcesJsonList.GetLength(); ++resourcesIndex) + { + m_resources.push_back(resourcesJsonList[resourcesIndex].AsObject()); + } + m_resourcesHasBeenSet = true; + } + + if(jsonValue.ValueExists("categorySpecificSummary")) + { + m_categorySpecificSummary = jsonValue.GetObject("categorySpecificSummary"); + + m_categorySpecificSummaryHasBeenSet = true; + } + + return *this; +} + +JsonValue Insight::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_categoryHasBeenSet) + { + payload.WithString("category", CategoryMapper::GetNameForCategory(m_category)); + } + + if(m_kubernetesVersionHasBeenSet) + { + payload.WithString("kubernetesVersion", m_kubernetesVersion); + + } + + if(m_lastRefreshTimeHasBeenSet) + { + payload.WithDouble("lastRefreshTime", m_lastRefreshTime.SecondsWithMSPrecision()); + } + + if(m_lastTransitionTimeHasBeenSet) + { + payload.WithDouble("lastTransitionTime", m_lastTransitionTime.SecondsWithMSPrecision()); + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_insightStatusHasBeenSet) + { + payload.WithObject("insightStatus", m_insightStatus.Jsonize()); + + } + + if(m_recommendationHasBeenSet) + { + payload.WithString("recommendation", m_recommendation); + + } + + if(m_additionalInfoHasBeenSet) + { + JsonValue additionalInfoJsonMap; + for(auto& additionalInfoItem : m_additionalInfo) + { + additionalInfoJsonMap.WithString(additionalInfoItem.first, additionalInfoItem.second); + } + payload.WithObject("additionalInfo", std::move(additionalInfoJsonMap)); + + } + + if(m_resourcesHasBeenSet) + { + Aws::Utils::Array resourcesJsonList(m_resources.size()); + for(unsigned resourcesIndex = 0; resourcesIndex < resourcesJsonList.GetLength(); ++resourcesIndex) + { + resourcesJsonList[resourcesIndex].AsObject(m_resources[resourcesIndex].Jsonize()); + } + payload.WithArray("resources", std::move(resourcesJsonList)); + + } + + if(m_categorySpecificSummaryHasBeenSet) + { + payload.WithObject("categorySpecificSummary", m_categorySpecificSummary.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/InsightCategorySpecificSummary.cpp b/generated/src/aws-cpp-sdk-eks/source/model/InsightCategorySpecificSummary.cpp new file mode 100644 index 00000000000..b173dc9d091 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/InsightCategorySpecificSummary.cpp @@ -0,0 +1,67 @@ +/** + * 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 EKS +{ +namespace Model +{ + +InsightCategorySpecificSummary::InsightCategorySpecificSummary() : + m_deprecationDetailsHasBeenSet(false) +{ +} + +InsightCategorySpecificSummary::InsightCategorySpecificSummary(JsonView jsonValue) : + m_deprecationDetailsHasBeenSet(false) +{ + *this = jsonValue; +} + +InsightCategorySpecificSummary& InsightCategorySpecificSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("deprecationDetails")) + { + Aws::Utils::Array deprecationDetailsJsonList = jsonValue.GetArray("deprecationDetails"); + for(unsigned deprecationDetailsIndex = 0; deprecationDetailsIndex < deprecationDetailsJsonList.GetLength(); ++deprecationDetailsIndex) + { + m_deprecationDetails.push_back(deprecationDetailsJsonList[deprecationDetailsIndex].AsObject()); + } + m_deprecationDetailsHasBeenSet = true; + } + + return *this; +} + +JsonValue InsightCategorySpecificSummary::Jsonize() const +{ + JsonValue payload; + + if(m_deprecationDetailsHasBeenSet) + { + Aws::Utils::Array deprecationDetailsJsonList(m_deprecationDetails.size()); + for(unsigned deprecationDetailsIndex = 0; deprecationDetailsIndex < deprecationDetailsJsonList.GetLength(); ++deprecationDetailsIndex) + { + deprecationDetailsJsonList[deprecationDetailsIndex].AsObject(m_deprecationDetails[deprecationDetailsIndex].Jsonize()); + } + payload.WithArray("deprecationDetails", std::move(deprecationDetailsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/InsightResourceDetail.cpp b/generated/src/aws-cpp-sdk-eks/source/model/InsightResourceDetail.cpp new file mode 100644 index 00000000000..cba2ce3169c --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/InsightResourceDetail.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 EKS +{ +namespace Model +{ + +InsightResourceDetail::InsightResourceDetail() : + m_insightStatusHasBeenSet(false), + m_kubernetesResourceUriHasBeenSet(false), + m_arnHasBeenSet(false) +{ +} + +InsightResourceDetail::InsightResourceDetail(JsonView jsonValue) : + m_insightStatusHasBeenSet(false), + m_kubernetesResourceUriHasBeenSet(false), + m_arnHasBeenSet(false) +{ + *this = jsonValue; +} + +InsightResourceDetail& InsightResourceDetail::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("insightStatus")) + { + m_insightStatus = jsonValue.GetObject("insightStatus"); + + m_insightStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("kubernetesResourceUri")) + { + m_kubernetesResourceUri = jsonValue.GetString("kubernetesResourceUri"); + + m_kubernetesResourceUriHasBeenSet = true; + } + + if(jsonValue.ValueExists("arn")) + { + m_arn = jsonValue.GetString("arn"); + + m_arnHasBeenSet = true; + } + + return *this; +} + +JsonValue InsightResourceDetail::Jsonize() const +{ + JsonValue payload; + + if(m_insightStatusHasBeenSet) + { + payload.WithObject("insightStatus", m_insightStatus.Jsonize()); + + } + + if(m_kubernetesResourceUriHasBeenSet) + { + payload.WithString("kubernetesResourceUri", m_kubernetesResourceUri); + + } + + if(m_arnHasBeenSet) + { + payload.WithString("arn", m_arn); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/InsightStatus.cpp b/generated/src/aws-cpp-sdk-eks/source/model/InsightStatus.cpp new file mode 100644 index 00000000000..f312d0d2874 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/InsightStatus.cpp @@ -0,0 +1,75 @@ +/** + * 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 EKS +{ +namespace Model +{ + +InsightStatus::InsightStatus() : + m_status(InsightStatusValue::NOT_SET), + m_statusHasBeenSet(false), + m_reasonHasBeenSet(false) +{ +} + +InsightStatus::InsightStatus(JsonView jsonValue) : + m_status(InsightStatusValue::NOT_SET), + m_statusHasBeenSet(false), + m_reasonHasBeenSet(false) +{ + *this = jsonValue; +} + +InsightStatus& InsightStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("status")) + { + m_status = InsightStatusValueMapper::GetInsightStatusValueForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("reason")) + { + m_reason = jsonValue.GetString("reason"); + + m_reasonHasBeenSet = true; + } + + return *this; +} + +JsonValue InsightStatus::Jsonize() const +{ + JsonValue payload; + + if(m_statusHasBeenSet) + { + payload.WithString("status", InsightStatusValueMapper::GetNameForInsightStatusValue(m_status)); + } + + if(m_reasonHasBeenSet) + { + payload.WithString("reason", m_reason); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/InsightStatusValue.cpp b/generated/src/aws-cpp-sdk-eks/source/model/InsightStatusValue.cpp new file mode 100644 index 00000000000..a209fb654ac --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/InsightStatusValue.cpp @@ -0,0 +1,86 @@ +/** + * 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 EKS + { + namespace Model + { + namespace InsightStatusValueMapper + { + + static const int PASSING_HASH = HashingUtils::HashString("PASSING"); + static const int WARNING_HASH = HashingUtils::HashString("WARNING"); + static const int ERROR__HASH = HashingUtils::HashString("ERROR"); + static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN"); + + + InsightStatusValue GetInsightStatusValueForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PASSING_HASH) + { + return InsightStatusValue::PASSING; + } + else if (hashCode == WARNING_HASH) + { + return InsightStatusValue::WARNING; + } + else if (hashCode == ERROR__HASH) + { + return InsightStatusValue::ERROR_; + } + else if (hashCode == UNKNOWN_HASH) + { + return InsightStatusValue::UNKNOWN; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return InsightStatusValue::NOT_SET; + } + + Aws::String GetNameForInsightStatusValue(InsightStatusValue enumValue) + { + switch(enumValue) + { + case InsightStatusValue::NOT_SET: + return {}; + case InsightStatusValue::PASSING: + return "PASSING"; + case InsightStatusValue::WARNING: + return "WARNING"; + case InsightStatusValue::ERROR_: + return "ERROR"; + case InsightStatusValue::UNKNOWN: + return "UNKNOWN"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace InsightStatusValueMapper + } // namespace Model + } // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/InsightSummary.cpp b/generated/src/aws-cpp-sdk-eks/source/model/InsightSummary.cpp new file mode 100644 index 00000000000..9f4816559e1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/InsightSummary.cpp @@ -0,0 +1,163 @@ +/** + * 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 EKS +{ +namespace Model +{ + +InsightSummary::InsightSummary() : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_category(Category::NOT_SET), + m_categoryHasBeenSet(false), + m_kubernetesVersionHasBeenSet(false), + m_lastRefreshTimeHasBeenSet(false), + m_lastTransitionTimeHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_insightStatusHasBeenSet(false) +{ +} + +InsightSummary::InsightSummary(JsonView jsonValue) : + m_idHasBeenSet(false), + m_nameHasBeenSet(false), + m_category(Category::NOT_SET), + m_categoryHasBeenSet(false), + m_kubernetesVersionHasBeenSet(false), + m_lastRefreshTimeHasBeenSet(false), + m_lastTransitionTimeHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_insightStatusHasBeenSet(false) +{ + *this = jsonValue; +} + +InsightSummary& InsightSummary::operator =(JsonView jsonValue) +{ + 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("category")) + { + m_category = CategoryMapper::GetCategoryForName(jsonValue.GetString("category")); + + m_categoryHasBeenSet = true; + } + + if(jsonValue.ValueExists("kubernetesVersion")) + { + m_kubernetesVersion = jsonValue.GetString("kubernetesVersion"); + + m_kubernetesVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastRefreshTime")) + { + m_lastRefreshTime = jsonValue.GetDouble("lastRefreshTime"); + + m_lastRefreshTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("lastTransitionTime")) + { + m_lastTransitionTime = jsonValue.GetDouble("lastTransitionTime"); + + m_lastTransitionTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("insightStatus")) + { + m_insightStatus = jsonValue.GetObject("insightStatus"); + + m_insightStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue InsightSummary::Jsonize() const +{ + JsonValue payload; + + if(m_idHasBeenSet) + { + payload.WithString("id", m_id); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_categoryHasBeenSet) + { + payload.WithString("category", CategoryMapper::GetNameForCategory(m_category)); + } + + if(m_kubernetesVersionHasBeenSet) + { + payload.WithString("kubernetesVersion", m_kubernetesVersion); + + } + + if(m_lastRefreshTimeHasBeenSet) + { + payload.WithDouble("lastRefreshTime", m_lastRefreshTime.SecondsWithMSPrecision()); + } + + if(m_lastTransitionTimeHasBeenSet) + { + payload.WithDouble("lastTransitionTime", m_lastTransitionTime.SecondsWithMSPrecision()); + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_insightStatusHasBeenSet) + { + payload.WithObject("insightStatus", m_insightStatus.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/InsightsFilter.cpp b/generated/src/aws-cpp-sdk-eks/source/model/InsightsFilter.cpp new file mode 100644 index 00000000000..879108e3ffa --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/InsightsFilter.cpp @@ -0,0 +1,113 @@ +/** + * 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 EKS +{ +namespace Model +{ + +InsightsFilter::InsightsFilter() : + m_categoriesHasBeenSet(false), + m_kubernetesVersionsHasBeenSet(false), + m_statusesHasBeenSet(false) +{ +} + +InsightsFilter::InsightsFilter(JsonView jsonValue) : + m_categoriesHasBeenSet(false), + m_kubernetesVersionsHasBeenSet(false), + m_statusesHasBeenSet(false) +{ + *this = jsonValue; +} + +InsightsFilter& InsightsFilter::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("categories")) + { + Aws::Utils::Array categoriesJsonList = jsonValue.GetArray("categories"); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + m_categories.push_back(CategoryMapper::GetCategoryForName(categoriesJsonList[categoriesIndex].AsString())); + } + m_categoriesHasBeenSet = true; + } + + if(jsonValue.ValueExists("kubernetesVersions")) + { + Aws::Utils::Array kubernetesVersionsJsonList = jsonValue.GetArray("kubernetesVersions"); + for(unsigned kubernetesVersionsIndex = 0; kubernetesVersionsIndex < kubernetesVersionsJsonList.GetLength(); ++kubernetesVersionsIndex) + { + m_kubernetesVersions.push_back(kubernetesVersionsJsonList[kubernetesVersionsIndex].AsString()); + } + m_kubernetesVersionsHasBeenSet = true; + } + + if(jsonValue.ValueExists("statuses")) + { + Aws::Utils::Array statusesJsonList = jsonValue.GetArray("statuses"); + for(unsigned statusesIndex = 0; statusesIndex < statusesJsonList.GetLength(); ++statusesIndex) + { + m_statuses.push_back(InsightStatusValueMapper::GetInsightStatusValueForName(statusesJsonList[statusesIndex].AsString())); + } + m_statusesHasBeenSet = true; + } + + return *this; +} + +JsonValue InsightsFilter::Jsonize() const +{ + JsonValue payload; + + if(m_categoriesHasBeenSet) + { + Aws::Utils::Array categoriesJsonList(m_categories.size()); + for(unsigned categoriesIndex = 0; categoriesIndex < categoriesJsonList.GetLength(); ++categoriesIndex) + { + categoriesJsonList[categoriesIndex].AsString(CategoryMapper::GetNameForCategory(m_categories[categoriesIndex])); + } + payload.WithArray("categories", std::move(categoriesJsonList)); + + } + + if(m_kubernetesVersionsHasBeenSet) + { + Aws::Utils::Array kubernetesVersionsJsonList(m_kubernetesVersions.size()); + for(unsigned kubernetesVersionsIndex = 0; kubernetesVersionsIndex < kubernetesVersionsJsonList.GetLength(); ++kubernetesVersionsIndex) + { + kubernetesVersionsJsonList[kubernetesVersionsIndex].AsString(m_kubernetesVersions[kubernetesVersionsIndex]); + } + payload.WithArray("kubernetesVersions", std::move(kubernetesVersionsJsonList)); + + } + + if(m_statusesHasBeenSet) + { + Aws::Utils::Array statusesJsonList(m_statuses.size()); + for(unsigned statusesIndex = 0; statusesIndex < statusesJsonList.GetLength(); ++statusesIndex) + { + statusesJsonList[statusesIndex].AsString(InsightStatusValueMapper::GetNameForInsightStatusValue(m_statuses[statusesIndex])); + } + payload.WithArray("statuses", std::move(statusesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace EKS +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ListInsightsRequest.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ListInsightsRequest.cpp new file mode 100644 index 00000000000..405c548e115 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/ListInsightsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::EKS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListInsightsRequest::ListInsightsRequest() : + m_clusterNameHasBeenSet(false), + m_filterHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false) +{ +} + +Aws::String ListInsightsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_filterHasBeenSet) + { + payload.WithObject("filter", m_filter.Jsonize()); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("nextToken", m_nextToken); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-eks/source/model/ListInsightsResult.cpp b/generated/src/aws-cpp-sdk-eks/source/model/ListInsightsResult.cpp new file mode 100644 index 00000000000..395d72e7274 --- /dev/null +++ b/generated/src/aws-cpp-sdk-eks/source/model/ListInsightsResult.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::EKS::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListInsightsResult::ListInsightsResult() +{ +} + +ListInsightsResult::ListInsightsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListInsightsResult& ListInsightsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("insights")) + { + Aws::Utils::Array insightsJsonList = jsonValue.GetArray("insights"); + for(unsigned insightsIndex = 0; insightsIndex < insightsJsonList.GetLength(); ++insightsIndex) + { + m_insights.push_back(insightsJsonList[insightsIndex].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-guardduty/include/aws/guardduty/GuardDutyClient.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyClient.h index ea935a55a60..e87cd6cace6 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyClient.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyClient.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace Aws { @@ -252,7 +253,13 @@ namespace GuardDuty * CreateMembers will enable GuardDuty in the added member accounts, * with the exception of the organization delegated administrator account. A * delegated administrator must enable GuardDuty prior to being added as a - * member.

If you are adding accounts by invitation, before using

When you use CreateMembers as an Organizations delegated + * administrator, GuardDuty applies your organization's auto-enable settings to the + * member accounts in this request, irrespective of the accounts being new or + * existing members. For more information about the existing auto-enable settings + * for your organization, see DescribeOrganizationConfiguration.

+ *

If you are adding accounts by invitation, before using InviteMembers, * use CreateMembers after GuardDuty has been enabled in potential * member accounts.

If you disassociate a member from a GuardDuty delegated @@ -832,9 +839,9 @@ namespace GuardDuty /** *

Retrieves aggregated statistics for your account. If you are a GuardDuty * administrator, you can retrieve the statistics for all the resources associated - * with the active member accounts in your organization who have enabled EKS - * Runtime Monitoring and have the GuardDuty agent running on their EKS - * nodes.

See Also:

See Also:

AWS * API Reference

*/ @@ -1105,6 +1112,36 @@ namespace GuardDuty return SubmitAsync(&GuardDutyClient::GetMembers, request, handler, context); } + /** + *

Retrieves how many active member accounts in your Amazon Web Services + * organization have each feature enabled within GuardDuty. Only a delegated + * GuardDuty administrator of an organization can run this API.

When you + * create a new Amazon Web Services organization, it might take up to 24 hours to + * generate the statistics for the entire organization.

See Also:

+ * AWS + * API Reference

+ */ + virtual Model::GetOrganizationStatisticsOutcome GetOrganizationStatistics(const Model::GetOrganizationStatisticsRequest& request = {}) const; + + /** + * A Callable wrapper for GetOrganizationStatistics that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetOrganizationStatisticsOutcomeCallable GetOrganizationStatisticsCallable(const GetOrganizationStatisticsRequestT& request = {}) const + { + return SubmitCallable(&GuardDutyClient::GetOrganizationStatistics, request); + } + + /** + * An Async wrapper for GetOrganizationStatistics that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetOrganizationStatisticsAsync(const GetOrganizationStatisticsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const GetOrganizationStatisticsRequestT& request = {}) const + { + return SubmitAsync(&GuardDutyClient::GetOrganizationStatistics, request, handler, context); + } + /** *

Provides the number of days left for each data source used in the free trial * period.

See Also:

Lists coverage details for your GuardDuty account. If you're a GuardDuty * administrator, you can retrieve all resources associated with the active member - * accounts in your organization.

Make sure the accounts have EKS Runtime - * Monitoring enabled and GuardDuty agent running on their EKS nodes.

See + * accounts in your organization.

Make sure the accounts have Runtime + * Monitoring enabled and GuardDuty agent running on their resources.

See * Also:

AWS * API Reference

diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyServiceClientModel.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyServiceClientModel.h index 72b182b50ee..93f98592646 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/GuardDutyServiceClientModel.h @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -158,6 +159,7 @@ namespace Aws class GetMalwareScanSettingsRequest; class GetMemberDetectorsRequest; class GetMembersRequest; + class GetOrganizationStatisticsRequest; class GetRemainingFreeTrialDaysRequest; class GetThreatIntelSetRequest; class GetUsageStatisticsRequest; @@ -226,6 +228,7 @@ namespace Aws typedef Aws::Utils::Outcome GetMalwareScanSettingsOutcome; typedef Aws::Utils::Outcome GetMemberDetectorsOutcome; typedef Aws::Utils::Outcome GetMembersOutcome; + typedef Aws::Utils::Outcome GetOrganizationStatisticsOutcome; typedef Aws::Utils::Outcome GetRemainingFreeTrialDaysOutcome; typedef Aws::Utils::Outcome GetThreatIntelSetOutcome; typedef Aws::Utils::Outcome GetUsageStatisticsOutcome; @@ -294,6 +297,7 @@ namespace Aws typedef std::future GetMalwareScanSettingsOutcomeCallable; typedef std::future GetMemberDetectorsOutcomeCallable; typedef std::future GetMembersOutcomeCallable; + typedef std::future GetOrganizationStatisticsOutcomeCallable; typedef std::future GetRemainingFreeTrialDaysOutcomeCallable; typedef std::future GetThreatIntelSetOutcomeCallable; typedef std::future GetUsageStatisticsOutcomeCallable; @@ -365,6 +369,7 @@ namespace Aws typedef std::function&) > GetMalwareScanSettingsResponseReceivedHandler; typedef std::function&) > GetMemberDetectorsResponseReceivedHandler; typedef std::function&) > GetMembersResponseReceivedHandler; + typedef std::function&) > GetOrganizationStatisticsResponseReceivedHandler; typedef std::function&) > GetRemainingFreeTrialDaysResponseReceivedHandler; typedef std::function&) > GetThreatIntelSetResponseReceivedHandler; typedef std::function&) > GetUsageStatisticsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageEc2InstanceDetails.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageEc2InstanceDetails.h index 71889e9db42..01d32e9d4b3 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageEc2InstanceDetails.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageEc2InstanceDetails.h @@ -28,8 +28,10 @@ namespace Model /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Contains information about the Amazon EC2 instance - * runtime coverage details.

See Also:

Amazon Web Services Service + * Terms ("Betas and Previews").

Contains information about the + * Amazon EC2 instance runtime coverage details.

See Also:

AWS * API Reference

*/ @@ -211,7 +213,7 @@ namespace Model * indicates that you are responsible to deploy, update, and manage the GuardDuty * security agent updates for this resource.

The * DISABLED status doesn't apply to Amazon EC2 instances and Amazon - * EKS clusters that run on Amazon EC2 instances.

+ * EKS clusters.

*/ inline const ManagementType& GetManagementType() const{ return m_managementType; } @@ -222,7 +224,7 @@ namespace Model * indicates that you are responsible to deploy, update, and manage the GuardDuty * security agent updates for this resource.

The * DISABLED status doesn't apply to Amazon EC2 instances and Amazon - * EKS clusters that run on Amazon EC2 instances.

+ * EKS clusters.

*/ inline bool ManagementTypeHasBeenSet() const { return m_managementTypeHasBeenSet; } @@ -233,7 +235,7 @@ namespace Model * indicates that you are responsible to deploy, update, and manage the GuardDuty * security agent updates for this resource.

The * DISABLED status doesn't apply to Amazon EC2 instances and Amazon - * EKS clusters that run on Amazon EC2 instances.

+ * EKS clusters.

*/ inline void SetManagementType(const ManagementType& value) { m_managementTypeHasBeenSet = true; m_managementType = value; } @@ -244,7 +246,7 @@ namespace Model * indicates that you are responsible to deploy, update, and manage the GuardDuty * security agent updates for this resource.

The * DISABLED status doesn't apply to Amazon EC2 instances and Amazon - * EKS clusters that run on Amazon EC2 instances.

+ * EKS clusters.

*/ inline void SetManagementType(ManagementType&& value) { m_managementTypeHasBeenSet = true; m_managementType = std::move(value); } @@ -255,7 +257,7 @@ namespace Model * indicates that you are responsible to deploy, update, and manage the GuardDuty * security agent updates for this resource.

The * DISABLED status doesn't apply to Amazon EC2 instances and Amazon - * EKS clusters that run on Amazon EC2 instances.

+ * EKS clusters.

*/ inline CoverageEc2InstanceDetails& WithManagementType(const ManagementType& value) { SetManagementType(value); return *this;} @@ -266,7 +268,7 @@ namespace Model * indicates that you are responsible to deploy, update, and manage the GuardDuty * security agent updates for this resource.

The * DISABLED status doesn't apply to Amazon EC2 instances and Amazon - * EKS clusters that run on Amazon EC2 instances.

+ * EKS clusters.

*/ inline CoverageEc2InstanceDetails& WithManagementType(ManagementType&& value) { SetManagementType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageResourceDetails.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageResourceDetails.h index 19b2cf2d304..0013d43c159 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageResourceDetails.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/CoverageResourceDetails.h @@ -143,48 +143,60 @@ namespace Model /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Information about the Amazon EC2 instance assessed for - * runtime coverage.

+ * change. The use of this API is subject to Section 2 of the Amazon Web Services Service + * Terms ("Betas and Previews").

Information about the Amazon + * EC2 instance assessed for runtime coverage.

*/ inline const CoverageEc2InstanceDetails& GetEc2InstanceDetails() const{ return m_ec2InstanceDetails; } /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Information about the Amazon EC2 instance assessed for - * runtime coverage.

+ * change. The use of this API is subject to Section 2 of the Amazon Web Services Service + * Terms ("Betas and Previews").

Information about the Amazon + * EC2 instance assessed for runtime coverage.

*/ inline bool Ec2InstanceDetailsHasBeenSet() const { return m_ec2InstanceDetailsHasBeenSet; } /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Information about the Amazon EC2 instance assessed for - * runtime coverage.

+ * change. The use of this API is subject to Section 2 of the Amazon Web Services Service + * Terms ("Betas and Previews").

Information about the Amazon + * EC2 instance assessed for runtime coverage.

*/ inline void SetEc2InstanceDetails(const CoverageEc2InstanceDetails& value) { m_ec2InstanceDetailsHasBeenSet = true; m_ec2InstanceDetails = value; } /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Information about the Amazon EC2 instance assessed for - * runtime coverage.

+ * change. The use of this API is subject to Section 2 of the Amazon Web Services Service + * Terms ("Betas and Previews").

Information about the Amazon + * EC2 instance assessed for runtime coverage.

*/ inline void SetEc2InstanceDetails(CoverageEc2InstanceDetails&& value) { m_ec2InstanceDetailsHasBeenSet = true; m_ec2InstanceDetails = std::move(value); } /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Information about the Amazon EC2 instance assessed for - * runtime coverage.

+ * change. The use of this API is subject to Section 2 of the Amazon Web Services Service + * Terms ("Betas and Previews").

Information about the Amazon + * EC2 instance assessed for runtime coverage.

*/ inline CoverageResourceDetails& WithEc2InstanceDetails(const CoverageEc2InstanceDetails& value) { SetEc2InstanceDetails(value); return *this;} /** *

This API is also used when you use GuardDuty Runtime Monitoring for * your Amazon EC2 instances (currently in preview release) and is subject to - * change.

Information about the Amazon EC2 instance assessed for - * runtime coverage.

+ * change. The use of this API is subject to Section 2 of the Amazon Web Services Service + * Terms ("Betas and Previews").

Information about the Amazon + * EC2 instance assessed for runtime coverage.

*/ inline CoverageResourceDetails& WithEc2InstanceDetails(CoverageEc2InstanceDetails&& value) { SetEc2InstanceDetails(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/FargateDetails.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/FargateDetails.h index 011c2270e68..233dbf4ea3a 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/FargateDetails.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/FargateDetails.h @@ -26,8 +26,8 @@ namespace Model { /** - *

Contains information about AWS Fargate details associated with an Amazon ECS - * cluster.

See Also:

Contains information about Amazon Web Services Fargate details associated + * with an Amazon ECS cluster.

See Also:

AWS * API Reference

*/ @@ -41,56 +41,56 @@ namespace Model /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline const Aws::Vector& GetIssues() const{ return m_issues; } /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline bool IssuesHasBeenSet() const { return m_issuesHasBeenSet; } /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline void SetIssues(const Aws::Vector& value) { m_issuesHasBeenSet = true; m_issues = value; } /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline void SetIssues(Aws::Vector&& value) { m_issuesHasBeenSet = true; m_issues = std::move(value); } /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline FargateDetails& WithIssues(const Aws::Vector& value) { SetIssues(value); return *this;} /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline FargateDetails& WithIssues(Aws::Vector&& value) { SetIssues(std::move(value)); return *this;} /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline FargateDetails& AddIssues(const Aws::String& value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; } /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline FargateDetails& AddIssues(Aws::String&& value) { m_issuesHasBeenSet = true; m_issues.push_back(std::move(value)); return *this; } /** - *

Runtime coverage issues identified for the resource running on AWS - * Fargate.

+ *

Runtime coverage issues identified for the resource running on Amazon Web + * Services Fargate.

*/ inline FargateDetails& AddIssues(const char* value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; } @@ -98,66 +98,66 @@ namespace Model /** *

Indicates how the GuardDuty security agent is managed for this resource.

*
  • AUTO_MANAGED indicates that GuardDuty deploys and - * manages updates for this resource.

  • MANUAL - * indicates that you are responsible to deploy, update, and manage the GuardDuty - * security agent updates for this resource.

  • - * DISABLED indicates that the deployment of the GuardDuty security - * agent is disabled for this resource.

+ * manages updates for this resource.

  • DISABLED + * indicates that the deployment of the GuardDuty security agent is disabled for + * this resource.

  • The MANUAL status doesn't + * apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    + * */ inline const ManagementType& GetManagementType() const{ return m_managementType; } /** *

    Indicates how the GuardDuty security agent is managed for this resource.

    *
    • AUTO_MANAGED indicates that GuardDuty deploys and - * manages updates for this resource.

    • MANUAL - * indicates that you are responsible to deploy, update, and manage the GuardDuty - * security agent updates for this resource.

    • - * DISABLED indicates that the deployment of the GuardDuty security - * agent is disabled for this resource.

    + * manages updates for this resource.

  • DISABLED + * indicates that the deployment of the GuardDuty security agent is disabled for + * this resource.

  • The MANUAL status doesn't + * apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    + * */ inline bool ManagementTypeHasBeenSet() const { return m_managementTypeHasBeenSet; } /** *

    Indicates how the GuardDuty security agent is managed for this resource.

    *
    • AUTO_MANAGED indicates that GuardDuty deploys and - * manages updates for this resource.

    • MANUAL - * indicates that you are responsible to deploy, update, and manage the GuardDuty - * security agent updates for this resource.

    • - * DISABLED indicates that the deployment of the GuardDuty security - * agent is disabled for this resource.

    + * manages updates for this resource.

  • DISABLED + * indicates that the deployment of the GuardDuty security agent is disabled for + * this resource.

  • The MANUAL status doesn't + * apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    + * */ inline void SetManagementType(const ManagementType& value) { m_managementTypeHasBeenSet = true; m_managementType = value; } /** *

    Indicates how the GuardDuty security agent is managed for this resource.

    *
    • AUTO_MANAGED indicates that GuardDuty deploys and - * manages updates for this resource.

    • MANUAL - * indicates that you are responsible to deploy, update, and manage the GuardDuty - * security agent updates for this resource.

    • - * DISABLED indicates that the deployment of the GuardDuty security - * agent is disabled for this resource.

    + * manages updates for this resource.

  • DISABLED + * indicates that the deployment of the GuardDuty security agent is disabled for + * this resource.

  • The MANUAL status doesn't + * apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    + * */ inline void SetManagementType(ManagementType&& value) { m_managementTypeHasBeenSet = true; m_managementType = std::move(value); } /** *

    Indicates how the GuardDuty security agent is managed for this resource.

    *
    • AUTO_MANAGED indicates that GuardDuty deploys and - * manages updates for this resource.

    • MANUAL - * indicates that you are responsible to deploy, update, and manage the GuardDuty - * security agent updates for this resource.

    • - * DISABLED indicates that the deployment of the GuardDuty security - * agent is disabled for this resource.

    + * manages updates for this resource.

  • DISABLED + * indicates that the deployment of the GuardDuty security agent is disabled for + * this resource.

  • The MANUAL status doesn't + * apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    + * */ inline FargateDetails& WithManagementType(const ManagementType& value) { SetManagementType(value); return *this;} /** *

    Indicates how the GuardDuty security agent is managed for this resource.

    *
    • AUTO_MANAGED indicates that GuardDuty deploys and - * manages updates for this resource.

    • MANUAL - * indicates that you are responsible to deploy, update, and manage the GuardDuty - * security agent updates for this resource.

    • - * DISABLED indicates that the deployment of the GuardDuty security - * agent is disabled for this resource.

    + * manages updates for this resource.

  • DISABLED + * indicates that the deployment of the GuardDuty security agent is disabled for + * this resource.

  • The MANUAL status doesn't + * apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    + * */ inline FargateDetails& WithManagementType(ManagementType&& value) { SetManagementType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsRequest.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsRequest.h new file mode 100644 index 00000000000..1c9f2bcb535 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsRequest.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 GuardDuty +{ +namespace Model +{ + + /** + */ + class GetOrganizationStatisticsRequest : public GuardDutyRequest + { + public: + AWS_GUARDDUTY_API GetOrganizationStatisticsRequest(); + + // 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 "GetOrganizationStatistics"; } + + AWS_GUARDDUTY_API Aws::String SerializePayload() const override; + + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsResult.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsResult.h new file mode 100644 index 00000000000..bbbab81c17f --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/GetOrganizationStatisticsResult.h @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace GuardDuty +{ +namespace Model +{ + class GetOrganizationStatisticsResult + { + public: + AWS_GUARDDUTY_API GetOrganizationStatisticsResult(); + AWS_GUARDDUTY_API GetOrganizationStatisticsResult(const Aws::AmazonWebServiceResult& result); + AWS_GUARDDUTY_API GetOrganizationStatisticsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    Information about the statistics report for your organization.

    + */ + inline const OrganizationDetails& GetOrganizationDetails() const{ return m_organizationDetails; } + + /** + *

    Information about the statistics report for your organization.

    + */ + inline void SetOrganizationDetails(const OrganizationDetails& value) { m_organizationDetails = value; } + + /** + *

    Information about the statistics report for your organization.

    + */ + inline void SetOrganizationDetails(OrganizationDetails&& value) { m_organizationDetails = std::move(value); } + + /** + *

    Information about the statistics report for your organization.

    + */ + inline GetOrganizationStatisticsResult& WithOrganizationDetails(const OrganizationDetails& value) { SetOrganizationDetails(value); return *this;} + + /** + *

    Information about the statistics report for your organization.

    + */ + inline GetOrganizationStatisticsResult& WithOrganizationDetails(OrganizationDetails&& value) { SetOrganizationDetails(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 GetOrganizationStatisticsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetOrganizationStatisticsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetOrganizationStatisticsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + OrganizationDetails m_organizationDetails; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationDetails.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationDetails.h new file mode 100644 index 00000000000..5a2e85a2245 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationDetails.h @@ -0,0 +1,126 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + + /** + *

    Information about GuardDuty coverage statistics for members in your Amazon + * Web Services organization.

    See Also:

    AWS + * API Reference

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

    The timestamp at which the organization statistics was last updated. This is + * in UTC format.

    + */ + inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } + + /** + *

    The timestamp at which the organization statistics was last updated. This is + * in UTC format.

    + */ + inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } + + /** + *

    The timestamp at which the organization statistics was last updated. This is + * in UTC format.

    + */ + inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } + + /** + *

    The timestamp at which the organization statistics was last updated. This is + * in UTC format.

    + */ + inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } + + /** + *

    The timestamp at which the organization statistics was last updated. This is + * in UTC format.

    + */ + inline OrganizationDetails& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} + + /** + *

    The timestamp at which the organization statistics was last updated. This is + * in UTC format.

    + */ + inline OrganizationDetails& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} + + + /** + *

    Information about the GuardDuty coverage statistics for members in your + * Amazon Web Services organization.

    + */ + inline const OrganizationStatistics& GetOrganizationStatistics() const{ return m_organizationStatistics; } + + /** + *

    Information about the GuardDuty coverage statistics for members in your + * Amazon Web Services organization.

    + */ + inline bool OrganizationStatisticsHasBeenSet() const { return m_organizationStatisticsHasBeenSet; } + + /** + *

    Information about the GuardDuty coverage statistics for members in your + * Amazon Web Services organization.

    + */ + inline void SetOrganizationStatistics(const OrganizationStatistics& value) { m_organizationStatisticsHasBeenSet = true; m_organizationStatistics = value; } + + /** + *

    Information about the GuardDuty coverage statistics for members in your + * Amazon Web Services organization.

    + */ + inline void SetOrganizationStatistics(OrganizationStatistics&& value) { m_organizationStatisticsHasBeenSet = true; m_organizationStatistics = std::move(value); } + + /** + *

    Information about the GuardDuty coverage statistics for members in your + * Amazon Web Services organization.

    + */ + inline OrganizationDetails& WithOrganizationStatistics(const OrganizationStatistics& value) { SetOrganizationStatistics(value); return *this;} + + /** + *

    Information about the GuardDuty coverage statistics for members in your + * Amazon Web Services organization.

    + */ + inline OrganizationDetails& WithOrganizationStatistics(OrganizationStatistics&& value) { SetOrganizationStatistics(std::move(value)); return *this;} + + private: + + Aws::Utils::DateTime m_updatedAt; + bool m_updatedAtHasBeenSet = false; + + OrganizationStatistics m_organizationStatistics; + bool m_organizationStatisticsHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatistics.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatistics.h new file mode 100644 index 00000000000..96f5ee3b05a --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatistics.h @@ -0,0 +1,149 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GuardDuty +{ +namespace Model +{ + + /** + *

    Information about the number of accounts that have enabled a specific + * feature.

    See Also:

    AWS + * API Reference

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

    Name of the feature.

    + */ + inline const OrgFeature& GetName() const{ return m_name; } + + /** + *

    Name of the feature.

    + */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

    Name of the feature.

    + */ + inline void SetName(const OrgFeature& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

    Name of the feature.

    + */ + inline void SetName(OrgFeature&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

    Name of the feature.

    + */ + inline OrganizationFeatureStatistics& WithName(const OrgFeature& value) { SetName(value); return *this;} + + /** + *

    Name of the feature.

    + */ + inline OrganizationFeatureStatistics& WithName(OrgFeature&& value) { SetName(std::move(value)); return *this;} + + + /** + *

    Total number of accounts that have enabled a specific feature.

    + */ + inline int GetEnabledAccountsCount() const{ return m_enabledAccountsCount; } + + /** + *

    Total number of accounts that have enabled a specific feature.

    + */ + inline bool EnabledAccountsCountHasBeenSet() const { return m_enabledAccountsCountHasBeenSet; } + + /** + *

    Total number of accounts that have enabled a specific feature.

    + */ + inline void SetEnabledAccountsCount(int value) { m_enabledAccountsCountHasBeenSet = true; m_enabledAccountsCount = value; } + + /** + *

    Total number of accounts that have enabled a specific feature.

    + */ + inline OrganizationFeatureStatistics& WithEnabledAccountsCount(int value) { SetEnabledAccountsCount(value); return *this;} + + + /** + *

    Name of the additional configuration.

    + */ + inline const Aws::Vector& GetAdditionalConfiguration() const{ return m_additionalConfiguration; } + + /** + *

    Name of the additional configuration.

    + */ + inline bool AdditionalConfigurationHasBeenSet() const { return m_additionalConfigurationHasBeenSet; } + + /** + *

    Name of the additional configuration.

    + */ + inline void SetAdditionalConfiguration(const Aws::Vector& value) { m_additionalConfigurationHasBeenSet = true; m_additionalConfiguration = value; } + + /** + *

    Name of the additional configuration.

    + */ + inline void SetAdditionalConfiguration(Aws::Vector&& value) { m_additionalConfigurationHasBeenSet = true; m_additionalConfiguration = std::move(value); } + + /** + *

    Name of the additional configuration.

    + */ + inline OrganizationFeatureStatistics& WithAdditionalConfiguration(const Aws::Vector& value) { SetAdditionalConfiguration(value); return *this;} + + /** + *

    Name of the additional configuration.

    + */ + inline OrganizationFeatureStatistics& WithAdditionalConfiguration(Aws::Vector&& value) { SetAdditionalConfiguration(std::move(value)); return *this;} + + /** + *

    Name of the additional configuration.

    + */ + inline OrganizationFeatureStatistics& AddAdditionalConfiguration(const OrganizationFeatureStatisticsAdditionalConfiguration& value) { m_additionalConfigurationHasBeenSet = true; m_additionalConfiguration.push_back(value); return *this; } + + /** + *

    Name of the additional configuration.

    + */ + inline OrganizationFeatureStatistics& AddAdditionalConfiguration(OrganizationFeatureStatisticsAdditionalConfiguration&& value) { m_additionalConfigurationHasBeenSet = true; m_additionalConfiguration.push_back(std::move(value)); return *this; } + + private: + + OrgFeature m_name; + bool m_nameHasBeenSet = false; + + int m_enabledAccountsCount; + bool m_enabledAccountsCountHasBeenSet = false; + + Aws::Vector m_additionalConfiguration; + bool m_additionalConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatisticsAdditionalConfiguration.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatisticsAdditionalConfiguration.h new file mode 100644 index 00000000000..b988b5aae15 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationFeatureStatisticsAdditionalConfiguration.h @@ -0,0 +1,103 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + + /** + *

    Information about the coverage statistic for the additional configuration of + * the feature.

    See Also:

    AWS + * API Reference

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

    Name of the additional configuration within a feature.

    + */ + inline const OrgFeatureAdditionalConfiguration& GetName() const{ return m_name; } + + /** + *

    Name of the additional configuration within a feature.

    + */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

    Name of the additional configuration within a feature.

    + */ + inline void SetName(const OrgFeatureAdditionalConfiguration& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

    Name of the additional configuration within a feature.

    + */ + inline void SetName(OrgFeatureAdditionalConfiguration&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

    Name of the additional configuration within a feature.

    + */ + inline OrganizationFeatureStatisticsAdditionalConfiguration& WithName(const OrgFeatureAdditionalConfiguration& value) { SetName(value); return *this;} + + /** + *

    Name of the additional configuration within a feature.

    + */ + inline OrganizationFeatureStatisticsAdditionalConfiguration& WithName(OrgFeatureAdditionalConfiguration&& value) { SetName(std::move(value)); return *this;} + + + /** + *

    Total number of accounts that have enabled the additional configuration.

    + */ + inline int GetEnabledAccountsCount() const{ return m_enabledAccountsCount; } + + /** + *

    Total number of accounts that have enabled the additional configuration.

    + */ + inline bool EnabledAccountsCountHasBeenSet() const { return m_enabledAccountsCountHasBeenSet; } + + /** + *

    Total number of accounts that have enabled the additional configuration.

    + */ + inline void SetEnabledAccountsCount(int value) { m_enabledAccountsCountHasBeenSet = true; m_enabledAccountsCount = value; } + + /** + *

    Total number of accounts that have enabled the additional configuration.

    + */ + inline OrganizationFeatureStatisticsAdditionalConfiguration& WithEnabledAccountsCount(int value) { SetEnabledAccountsCount(value); return *this;} + + private: + + OrgFeatureAdditionalConfiguration m_name; + bool m_nameHasBeenSet = false; + + int m_enabledAccountsCount; + bool m_enabledAccountsCountHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationStatistics.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationStatistics.h new file mode 100644 index 00000000000..f41a815a557 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/OrganizationStatistics.h @@ -0,0 +1,196 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + + /** + *

    Information about the coverage statistics of the features for the entire + * Amazon Web Services organization.

    When you create a new Amazon Web + * Services organization, it might take up to 24 hours to generate the statistics + * summary for this organization.

    See Also:

    AWS + * API Reference

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

    Total number of accounts in your Amazon Web Services organization.

    + */ + inline int GetTotalAccountsCount() const{ return m_totalAccountsCount; } + + /** + *

    Total number of accounts in your Amazon Web Services organization.

    + */ + inline bool TotalAccountsCountHasBeenSet() const { return m_totalAccountsCountHasBeenSet; } + + /** + *

    Total number of accounts in your Amazon Web Services organization.

    + */ + inline void SetTotalAccountsCount(int value) { m_totalAccountsCountHasBeenSet = true; m_totalAccountsCount = value; } + + /** + *

    Total number of accounts in your Amazon Web Services organization.

    + */ + inline OrganizationStatistics& WithTotalAccountsCount(int value) { SetTotalAccountsCount(value); return *this;} + + + /** + *

    Total number of accounts in your Amazon Web Services organization that are + * associated with GuardDuty.

    + */ + inline int GetMemberAccountsCount() const{ return m_memberAccountsCount; } + + /** + *

    Total number of accounts in your Amazon Web Services organization that are + * associated with GuardDuty.

    + */ + inline bool MemberAccountsCountHasBeenSet() const { return m_memberAccountsCountHasBeenSet; } + + /** + *

    Total number of accounts in your Amazon Web Services organization that are + * associated with GuardDuty.

    + */ + inline void SetMemberAccountsCount(int value) { m_memberAccountsCountHasBeenSet = true; m_memberAccountsCount = value; } + + /** + *

    Total number of accounts in your Amazon Web Services organization that are + * associated with GuardDuty.

    + */ + inline OrganizationStatistics& WithMemberAccountsCount(int value) { SetMemberAccountsCount(value); return *this;} + + + /** + *

    Total number of active accounts in your Amazon Web Services organization that + * are associated with GuardDuty.

    + */ + inline int GetActiveAccountsCount() const{ return m_activeAccountsCount; } + + /** + *

    Total number of active accounts in your Amazon Web Services organization that + * are associated with GuardDuty.

    + */ + inline bool ActiveAccountsCountHasBeenSet() const { return m_activeAccountsCountHasBeenSet; } + + /** + *

    Total number of active accounts in your Amazon Web Services organization that + * are associated with GuardDuty.

    + */ + inline void SetActiveAccountsCount(int value) { m_activeAccountsCountHasBeenSet = true; m_activeAccountsCount = value; } + + /** + *

    Total number of active accounts in your Amazon Web Services organization that + * are associated with GuardDuty.

    + */ + inline OrganizationStatistics& WithActiveAccountsCount(int value) { SetActiveAccountsCount(value); return *this;} + + + /** + *

    Total number of accounts that have enabled GuardDuty.

    + */ + inline int GetEnabledAccountsCount() const{ return m_enabledAccountsCount; } + + /** + *

    Total number of accounts that have enabled GuardDuty.

    + */ + inline bool EnabledAccountsCountHasBeenSet() const { return m_enabledAccountsCountHasBeenSet; } + + /** + *

    Total number of accounts that have enabled GuardDuty.

    + */ + inline void SetEnabledAccountsCount(int value) { m_enabledAccountsCountHasBeenSet = true; m_enabledAccountsCount = value; } + + /** + *

    Total number of accounts that have enabled GuardDuty.

    + */ + inline OrganizationStatistics& WithEnabledAccountsCount(int value) { SetEnabledAccountsCount(value); return *this;} + + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline const Aws::Vector& GetCountByFeature() const{ return m_countByFeature; } + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline bool CountByFeatureHasBeenSet() const { return m_countByFeatureHasBeenSet; } + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline void SetCountByFeature(const Aws::Vector& value) { m_countByFeatureHasBeenSet = true; m_countByFeature = value; } + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline void SetCountByFeature(Aws::Vector&& value) { m_countByFeatureHasBeenSet = true; m_countByFeature = std::move(value); } + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline OrganizationStatistics& WithCountByFeature(const Aws::Vector& value) { SetCountByFeature(value); return *this;} + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline OrganizationStatistics& WithCountByFeature(Aws::Vector&& value) { SetCountByFeature(std::move(value)); return *this;} + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline OrganizationStatistics& AddCountByFeature(const OrganizationFeatureStatistics& value) { m_countByFeatureHasBeenSet = true; m_countByFeature.push_back(value); return *this; } + + /** + *

    Retrieves the coverage statistics for each feature.

    + */ + inline OrganizationStatistics& AddCountByFeature(OrganizationFeatureStatistics&& value) { m_countByFeatureHasBeenSet = true; m_countByFeature.push_back(std::move(value)); return *this; } + + private: + + int m_totalAccountsCount; + bool m_totalAccountsCountHasBeenSet = false; + + int m_memberAccountsCount; + bool m_memberAccountsCountHasBeenSet = false; + + int m_activeAccountsCount; + bool m_activeAccountsCountHasBeenSet = false; + + int m_enabledAccountsCount; + bool m_enabledAccountsCountHasBeenSet = false; + + Aws::Vector m_countByFeature; + bool m_countByFeatureHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatisticType.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatisticType.h index eefb7bc9c6b..f49c898c76b 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatisticType.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatisticType.h @@ -20,7 +20,8 @@ namespace Model SUM_BY_DATA_SOURCE, SUM_BY_RESOURCE, TOP_RESOURCES, - SUM_BY_FEATURES + SUM_BY_FEATURES, + TOP_ACCOUNTS_BY_FEATURE }; namespace UsageStatisticTypeMapper diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatistics.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatistics.h index bb6b6f04635..4b7e06c1634 100644 --- a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatistics.h +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageStatistics.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -83,6 +84,63 @@ namespace Model inline UsageStatistics& AddSumByAccount(UsageAccountResult&& value) { m_sumByAccountHasBeenSet = true; m_sumByAccount.push_back(std::move(value)); return *this; } + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline const Aws::Vector& GetTopAccountsByFeature() const{ return m_topAccountsByFeature; } + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline bool TopAccountsByFeatureHasBeenSet() const { return m_topAccountsByFeatureHasBeenSet; } + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline void SetTopAccountsByFeature(const Aws::Vector& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature = value; } + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline void SetTopAccountsByFeature(Aws::Vector&& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature = std::move(value); } + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline UsageStatistics& WithTopAccountsByFeature(const Aws::Vector& value) { SetTopAccountsByFeature(value); return *this;} + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline UsageStatistics& WithTopAccountsByFeature(Aws::Vector&& value) { SetTopAccountsByFeature(std::move(value)); return *this;} + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline UsageStatistics& AddTopAccountsByFeature(const UsageTopAccountsResult& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature.push_back(value); return *this; } + + /** + *

    Lists the top 50 accounts by feature that have generated the most GuardDuty + * usage, in the order from most to least expensive.

    Currently, this doesn't + * support RDS_LOGIN_EVENTS.

    + */ + inline UsageStatistics& AddTopAccountsByFeature(UsageTopAccountsResult&& value) { m_topAccountsByFeatureHasBeenSet = true; m_topAccountsByFeature.push_back(std::move(value)); return *this; } + + /** *

    The usage statistic sum organized by on data source.

    */ @@ -259,6 +317,9 @@ namespace Model Aws::Vector m_sumByAccount; bool m_sumByAccountHasBeenSet = false; + Aws::Vector m_topAccountsByFeature; + bool m_topAccountsByFeatureHasBeenSet = false; + Aws::Vector m_sumByDataSource; bool m_sumByDataSourceHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountResult.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountResult.h new file mode 100644 index 00000000000..481f98d7a00 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountResult.h @@ -0,0 +1,112 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + + /** + *

    Contains information on the total of usage based on the topmost 50 account + * IDs.

    See Also:

    AWS + * API Reference

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

    The unique account ID.

    + */ + inline const Aws::String& GetAccountId() const{ return m_accountId; } + + /** + *

    The unique account ID.

    + */ + inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } + + /** + *

    The unique account ID.

    + */ + inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } + + /** + *

    The unique account ID.

    + */ + inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } + + /** + *

    The unique account ID.

    + */ + inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } + + /** + *

    The unique account ID.

    + */ + inline UsageTopAccountResult& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} + + /** + *

    The unique account ID.

    + */ + inline UsageTopAccountResult& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} + + /** + *

    The unique account ID.

    + */ + inline UsageTopAccountResult& WithAccountId(const char* value) { SetAccountId(value); return *this;} + + + + inline const Total& GetTotal() const{ return m_total; } + + + inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } + + + inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; } + + + inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); } + + + inline UsageTopAccountResult& WithTotal(const Total& value) { SetTotal(value); return *this;} + + + inline UsageTopAccountResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;} + + private: + + Aws::String m_accountId; + bool m_accountIdHasBeenSet = false; + + Total m_total; + bool m_totalHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountsResult.h b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountsResult.h new file mode 100644 index 00000000000..75fbb92a3a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/include/aws/guardduty/model/UsageTopAccountsResult.h @@ -0,0 +1,137 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace GuardDuty +{ +namespace Model +{ + + /** + *

    Information about the usage statistics, calculated by top accounts by + * feature.

    See Also:

    AWS + * API Reference

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

    Features by which you can generate the usage statistics.

    + * RDS_LOGIN_EVENTS is currently not supported with + * topAccountsByFeature.

    + */ + inline const UsageFeature& GetFeature() const{ return m_feature; } + + /** + *

    Features by which you can generate the usage statistics.

    + * RDS_LOGIN_EVENTS is currently not supported with + * topAccountsByFeature.

    + */ + inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; } + + /** + *

    Features by which you can generate the usage statistics.

    + * RDS_LOGIN_EVENTS is currently not supported with + * topAccountsByFeature.

    + */ + inline void SetFeature(const UsageFeature& value) { m_featureHasBeenSet = true; m_feature = value; } + + /** + *

    Features by which you can generate the usage statistics.

    + * RDS_LOGIN_EVENTS is currently not supported with + * topAccountsByFeature.

    + */ + inline void SetFeature(UsageFeature&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); } + + /** + *

    Features by which you can generate the usage statistics.

    + * RDS_LOGIN_EVENTS is currently not supported with + * topAccountsByFeature.

    + */ + inline UsageTopAccountsResult& WithFeature(const UsageFeature& value) { SetFeature(value); return *this;} + + /** + *

    Features by which you can generate the usage statistics.

    + * RDS_LOGIN_EVENTS is currently not supported with + * topAccountsByFeature.

    + */ + inline UsageTopAccountsResult& WithFeature(UsageFeature&& value) { SetFeature(std::move(value)); return *this;} + + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline const Aws::Vector& GetAccounts() const{ return m_accounts; } + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; } + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline void SetAccounts(const Aws::Vector& value) { m_accountsHasBeenSet = true; m_accounts = value; } + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline void SetAccounts(Aws::Vector&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); } + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline UsageTopAccountsResult& WithAccounts(const Aws::Vector& value) { SetAccounts(value); return *this;} + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline UsageTopAccountsResult& WithAccounts(Aws::Vector&& value) { SetAccounts(std::move(value)); return *this;} + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline UsageTopAccountsResult& AddAccounts(const UsageTopAccountResult& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } + + /** + *

    The accounts that contributed to the total usage cost.

    + */ + inline UsageTopAccountsResult& AddAccounts(UsageTopAccountResult&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; } + + private: + + UsageFeature m_feature; + bool m_featureHasBeenSet = false; + + Aws::Vector m_accounts; + bool m_accountsHasBeenSet = false; + }; + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp b/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp index e5007b864ee..85f562ab835 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/GuardDutyClient.cpp @@ -56,6 +56,7 @@ #include #include #include +#include #include #include #include @@ -1407,6 +1408,33 @@ GetMembersOutcome GuardDutyClient::GetMembers(const GetMembersRequest& request) {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetOrganizationStatisticsOutcome GuardDutyClient::GetOrganizationStatistics(const GetOrganizationStatisticsRequest& request) const +{ + AWS_OPERATION_GUARD(GetOrganizationStatistics); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetOrganizationStatistics, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetOrganizationStatistics, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetOrganizationStatistics, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetOrganizationStatistics", + {{ 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( + [&]()-> GetOrganizationStatisticsOutcome { + 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, GetOrganizationStatistics, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/organization/statistics"); + return GetOrganizationStatisticsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetRemainingFreeTrialDaysOutcome GuardDutyClient::GetRemainingFreeTrialDays(const GetRemainingFreeTrialDaysRequest& request) const { AWS_OPERATION_GUARD(GetRemainingFreeTrialDays); diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsRequest.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsRequest.cpp new file mode 100644 index 00000000000..8e2d5489d0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsRequest.cpp @@ -0,0 +1,26 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::GuardDuty::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetOrganizationStatisticsRequest::GetOrganizationStatisticsRequest() +{ +} + +Aws::String GetOrganizationStatisticsRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsResult.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsResult.cpp new file mode 100644 index 00000000000..8e52482a95b --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/GetOrganizationStatisticsResult.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::GuardDuty::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetOrganizationStatisticsResult::GetOrganizationStatisticsResult() +{ +} + +GetOrganizationStatisticsResult::GetOrganizationStatisticsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetOrganizationStatisticsResult& GetOrganizationStatisticsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("organizationDetails")) + { + m_organizationDetails = jsonValue.GetObject("organizationDetails"); + + } + + + 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-guardduty/source/model/OrganizationDetails.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationDetails.cpp new file mode 100644 index 00000000000..26659b8da8a --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationDetails.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 GuardDuty +{ +namespace Model +{ + +OrganizationDetails::OrganizationDetails() : + m_updatedAtHasBeenSet(false), + m_organizationStatisticsHasBeenSet(false) +{ +} + +OrganizationDetails::OrganizationDetails(JsonView jsonValue) : + m_updatedAtHasBeenSet(false), + m_organizationStatisticsHasBeenSet(false) +{ + *this = jsonValue; +} + +OrganizationDetails& OrganizationDetails::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("updatedAt")) + { + m_updatedAt = jsonValue.GetDouble("updatedAt"); + + m_updatedAtHasBeenSet = true; + } + + if(jsonValue.ValueExists("organizationStatistics")) + { + m_organizationStatistics = jsonValue.GetObject("organizationStatistics"); + + m_organizationStatisticsHasBeenSet = true; + } + + return *this; +} + +JsonValue OrganizationDetails::Jsonize() const +{ + JsonValue payload; + + if(m_updatedAtHasBeenSet) + { + payload.WithDouble("updatedAt", m_updatedAt.SecondsWithMSPrecision()); + } + + if(m_organizationStatisticsHasBeenSet) + { + payload.WithObject("organizationStatistics", m_organizationStatistics.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatistics.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatistics.cpp new file mode 100644 index 00000000000..291ea6cc00e --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatistics.cpp @@ -0,0 +1,100 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + +OrganizationFeatureStatistics::OrganizationFeatureStatistics() : + m_name(OrgFeature::NOT_SET), + m_nameHasBeenSet(false), + m_enabledAccountsCount(0), + m_enabledAccountsCountHasBeenSet(false), + m_additionalConfigurationHasBeenSet(false) +{ +} + +OrganizationFeatureStatistics::OrganizationFeatureStatistics(JsonView jsonValue) : + m_name(OrgFeature::NOT_SET), + m_nameHasBeenSet(false), + m_enabledAccountsCount(0), + m_enabledAccountsCountHasBeenSet(false), + m_additionalConfigurationHasBeenSet(false) +{ + *this = jsonValue; +} + +OrganizationFeatureStatistics& OrganizationFeatureStatistics::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = OrgFeatureMapper::GetOrgFeatureForName(jsonValue.GetString("name")); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("enabledAccountsCount")) + { + m_enabledAccountsCount = jsonValue.GetInteger("enabledAccountsCount"); + + m_enabledAccountsCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("additionalConfiguration")) + { + Aws::Utils::Array additionalConfigurationJsonList = jsonValue.GetArray("additionalConfiguration"); + for(unsigned additionalConfigurationIndex = 0; additionalConfigurationIndex < additionalConfigurationJsonList.GetLength(); ++additionalConfigurationIndex) + { + m_additionalConfiguration.push_back(additionalConfigurationJsonList[additionalConfigurationIndex].AsObject()); + } + m_additionalConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue OrganizationFeatureStatistics::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", OrgFeatureMapper::GetNameForOrgFeature(m_name)); + } + + if(m_enabledAccountsCountHasBeenSet) + { + payload.WithInteger("enabledAccountsCount", m_enabledAccountsCount); + + } + + if(m_additionalConfigurationHasBeenSet) + { + Aws::Utils::Array additionalConfigurationJsonList(m_additionalConfiguration.size()); + for(unsigned additionalConfigurationIndex = 0; additionalConfigurationIndex < additionalConfigurationJsonList.GetLength(); ++additionalConfigurationIndex) + { + additionalConfigurationJsonList[additionalConfigurationIndex].AsObject(m_additionalConfiguration[additionalConfigurationIndex].Jsonize()); + } + payload.WithArray("additionalConfiguration", std::move(additionalConfigurationJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatisticsAdditionalConfiguration.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatisticsAdditionalConfiguration.cpp new file mode 100644 index 00000000000..c7e9e9b0f55 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationFeatureStatisticsAdditionalConfiguration.cpp @@ -0,0 +1,77 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + +OrganizationFeatureStatisticsAdditionalConfiguration::OrganizationFeatureStatisticsAdditionalConfiguration() : + m_name(OrgFeatureAdditionalConfiguration::NOT_SET), + m_nameHasBeenSet(false), + m_enabledAccountsCount(0), + m_enabledAccountsCountHasBeenSet(false) +{ +} + +OrganizationFeatureStatisticsAdditionalConfiguration::OrganizationFeatureStatisticsAdditionalConfiguration(JsonView jsonValue) : + m_name(OrgFeatureAdditionalConfiguration::NOT_SET), + m_nameHasBeenSet(false), + m_enabledAccountsCount(0), + m_enabledAccountsCountHasBeenSet(false) +{ + *this = jsonValue; +} + +OrganizationFeatureStatisticsAdditionalConfiguration& OrganizationFeatureStatisticsAdditionalConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("name")) + { + m_name = OrgFeatureAdditionalConfigurationMapper::GetOrgFeatureAdditionalConfigurationForName(jsonValue.GetString("name")); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("enabledAccountsCount")) + { + m_enabledAccountsCount = jsonValue.GetInteger("enabledAccountsCount"); + + m_enabledAccountsCountHasBeenSet = true; + } + + return *this; +} + +JsonValue OrganizationFeatureStatisticsAdditionalConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_nameHasBeenSet) + { + payload.WithString("name", OrgFeatureAdditionalConfigurationMapper::GetNameForOrgFeatureAdditionalConfiguration(m_name)); + } + + if(m_enabledAccountsCountHasBeenSet) + { + payload.WithInteger("enabledAccountsCount", m_enabledAccountsCount); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationStatistics.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationStatistics.cpp new file mode 100644 index 00000000000..e4b34aef8b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/OrganizationStatistics.cpp @@ -0,0 +1,135 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + +OrganizationStatistics::OrganizationStatistics() : + m_totalAccountsCount(0), + m_totalAccountsCountHasBeenSet(false), + m_memberAccountsCount(0), + m_memberAccountsCountHasBeenSet(false), + m_activeAccountsCount(0), + m_activeAccountsCountHasBeenSet(false), + m_enabledAccountsCount(0), + m_enabledAccountsCountHasBeenSet(false), + m_countByFeatureHasBeenSet(false) +{ +} + +OrganizationStatistics::OrganizationStatistics(JsonView jsonValue) : + m_totalAccountsCount(0), + m_totalAccountsCountHasBeenSet(false), + m_memberAccountsCount(0), + m_memberAccountsCountHasBeenSet(false), + m_activeAccountsCount(0), + m_activeAccountsCountHasBeenSet(false), + m_enabledAccountsCount(0), + m_enabledAccountsCountHasBeenSet(false), + m_countByFeatureHasBeenSet(false) +{ + *this = jsonValue; +} + +OrganizationStatistics& OrganizationStatistics::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("totalAccountsCount")) + { + m_totalAccountsCount = jsonValue.GetInteger("totalAccountsCount"); + + m_totalAccountsCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("memberAccountsCount")) + { + m_memberAccountsCount = jsonValue.GetInteger("memberAccountsCount"); + + m_memberAccountsCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("activeAccountsCount")) + { + m_activeAccountsCount = jsonValue.GetInteger("activeAccountsCount"); + + m_activeAccountsCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("enabledAccountsCount")) + { + m_enabledAccountsCount = jsonValue.GetInteger("enabledAccountsCount"); + + m_enabledAccountsCountHasBeenSet = true; + } + + if(jsonValue.ValueExists("countByFeature")) + { + Aws::Utils::Array countByFeatureJsonList = jsonValue.GetArray("countByFeature"); + for(unsigned countByFeatureIndex = 0; countByFeatureIndex < countByFeatureJsonList.GetLength(); ++countByFeatureIndex) + { + m_countByFeature.push_back(countByFeatureJsonList[countByFeatureIndex].AsObject()); + } + m_countByFeatureHasBeenSet = true; + } + + return *this; +} + +JsonValue OrganizationStatistics::Jsonize() const +{ + JsonValue payload; + + if(m_totalAccountsCountHasBeenSet) + { + payload.WithInteger("totalAccountsCount", m_totalAccountsCount); + + } + + if(m_memberAccountsCountHasBeenSet) + { + payload.WithInteger("memberAccountsCount", m_memberAccountsCount); + + } + + if(m_activeAccountsCountHasBeenSet) + { + payload.WithInteger("activeAccountsCount", m_activeAccountsCount); + + } + + if(m_enabledAccountsCountHasBeenSet) + { + payload.WithInteger("enabledAccountsCount", m_enabledAccountsCount); + + } + + if(m_countByFeatureHasBeenSet) + { + Aws::Utils::Array countByFeatureJsonList(m_countByFeature.size()); + for(unsigned countByFeatureIndex = 0; countByFeatureIndex < countByFeatureJsonList.GetLength(); ++countByFeatureIndex) + { + countByFeatureJsonList[countByFeatureIndex].AsObject(m_countByFeature[countByFeatureIndex].Jsonize()); + } + payload.WithArray("countByFeature", std::move(countByFeatureJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp index ae72ca0c71a..f16a97a4ed3 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatisticType.cpp @@ -25,6 +25,7 @@ namespace Aws static const int SUM_BY_RESOURCE_HASH = HashingUtils::HashString("SUM_BY_RESOURCE"); static const int TOP_RESOURCES_HASH = HashingUtils::HashString("TOP_RESOURCES"); static const int SUM_BY_FEATURES_HASH = HashingUtils::HashString("SUM_BY_FEATURES"); + static const int TOP_ACCOUNTS_BY_FEATURE_HASH = HashingUtils::HashString("TOP_ACCOUNTS_BY_FEATURE"); UsageStatisticType GetUsageStatisticTypeForName(const Aws::String& name) @@ -50,6 +51,10 @@ namespace Aws { return UsageStatisticType::SUM_BY_FEATURES; } + else if (hashCode == TOP_ACCOUNTS_BY_FEATURE_HASH) + { + return UsageStatisticType::TOP_ACCOUNTS_BY_FEATURE; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -76,6 +81,8 @@ namespace Aws return "TOP_RESOURCES"; case UsageStatisticType::SUM_BY_FEATURES: return "SUM_BY_FEATURES"; + case UsageStatisticType::TOP_ACCOUNTS_BY_FEATURE: + return "TOP_ACCOUNTS_BY_FEATURE"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatistics.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatistics.cpp index b48db9710b8..3711df6d792 100644 --- a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatistics.cpp +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageStatistics.cpp @@ -20,6 +20,7 @@ namespace Model UsageStatistics::UsageStatistics() : m_sumByAccountHasBeenSet(false), + m_topAccountsByFeatureHasBeenSet(false), m_sumByDataSourceHasBeenSet(false), m_sumByResourceHasBeenSet(false), m_topResourcesHasBeenSet(false), @@ -29,6 +30,7 @@ UsageStatistics::UsageStatistics() : UsageStatistics::UsageStatistics(JsonView jsonValue) : m_sumByAccountHasBeenSet(false), + m_topAccountsByFeatureHasBeenSet(false), m_sumByDataSourceHasBeenSet(false), m_sumByResourceHasBeenSet(false), m_topResourcesHasBeenSet(false), @@ -49,6 +51,16 @@ UsageStatistics& UsageStatistics::operator =(JsonView jsonValue) m_sumByAccountHasBeenSet = true; } + if(jsonValue.ValueExists("topAccountsByFeature")) + { + Aws::Utils::Array topAccountsByFeatureJsonList = jsonValue.GetArray("topAccountsByFeature"); + for(unsigned topAccountsByFeatureIndex = 0; topAccountsByFeatureIndex < topAccountsByFeatureJsonList.GetLength(); ++topAccountsByFeatureIndex) + { + m_topAccountsByFeature.push_back(topAccountsByFeatureJsonList[topAccountsByFeatureIndex].AsObject()); + } + m_topAccountsByFeatureHasBeenSet = true; + } + if(jsonValue.ValueExists("sumByDataSource")) { Aws::Utils::Array sumByDataSourceJsonList = jsonValue.GetArray("sumByDataSource"); @@ -107,6 +119,17 @@ JsonValue UsageStatistics::Jsonize() const } + if(m_topAccountsByFeatureHasBeenSet) + { + Aws::Utils::Array topAccountsByFeatureJsonList(m_topAccountsByFeature.size()); + for(unsigned topAccountsByFeatureIndex = 0; topAccountsByFeatureIndex < topAccountsByFeatureJsonList.GetLength(); ++topAccountsByFeatureIndex) + { + topAccountsByFeatureJsonList[topAccountsByFeatureIndex].AsObject(m_topAccountsByFeature[topAccountsByFeatureIndex].Jsonize()); + } + payload.WithArray("topAccountsByFeature", std::move(topAccountsByFeatureJsonList)); + + } + if(m_sumByDataSourceHasBeenSet) { Aws::Utils::Array sumByDataSourceJsonList(m_sumByDataSource.size()); diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountResult.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountResult.cpp new file mode 100644 index 00000000000..74f1297b9e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountResult.cpp @@ -0,0 +1,74 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + +UsageTopAccountResult::UsageTopAccountResult() : + m_accountIdHasBeenSet(false), + m_totalHasBeenSet(false) +{ +} + +UsageTopAccountResult::UsageTopAccountResult(JsonView jsonValue) : + m_accountIdHasBeenSet(false), + m_totalHasBeenSet(false) +{ + *this = jsonValue; +} + +UsageTopAccountResult& UsageTopAccountResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("accountId")) + { + m_accountId = jsonValue.GetString("accountId"); + + m_accountIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("total")) + { + m_total = jsonValue.GetObject("total"); + + m_totalHasBeenSet = true; + } + + return *this; +} + +JsonValue UsageTopAccountResult::Jsonize() const +{ + JsonValue payload; + + if(m_accountIdHasBeenSet) + { + payload.WithString("accountId", m_accountId); + + } + + if(m_totalHasBeenSet) + { + payload.WithObject("total", m_total.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountsResult.cpp b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountsResult.cpp new file mode 100644 index 00000000000..8d7010198b7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-guardduty/source/model/UsageTopAccountsResult.cpp @@ -0,0 +1,83 @@ +/** + * 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 GuardDuty +{ +namespace Model +{ + +UsageTopAccountsResult::UsageTopAccountsResult() : + m_feature(UsageFeature::NOT_SET), + m_featureHasBeenSet(false), + m_accountsHasBeenSet(false) +{ +} + +UsageTopAccountsResult::UsageTopAccountsResult(JsonView jsonValue) : + m_feature(UsageFeature::NOT_SET), + m_featureHasBeenSet(false), + m_accountsHasBeenSet(false) +{ + *this = jsonValue; +} + +UsageTopAccountsResult& UsageTopAccountsResult::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("feature")) + { + m_feature = UsageFeatureMapper::GetUsageFeatureForName(jsonValue.GetString("feature")); + + m_featureHasBeenSet = true; + } + + if(jsonValue.ValueExists("accounts")) + { + Aws::Utils::Array accountsJsonList = jsonValue.GetArray("accounts"); + for(unsigned accountsIndex = 0; accountsIndex < accountsJsonList.GetLength(); ++accountsIndex) + { + m_accounts.push_back(accountsJsonList[accountsIndex].AsObject()); + } + m_accountsHasBeenSet = true; + } + + return *this; +} + +JsonValue UsageTopAccountsResult::Jsonize() const +{ + JsonValue payload; + + if(m_featureHasBeenSet) + { + payload.WithString("feature", UsageFeatureMapper::GetNameForUsageFeature(m_feature)); + } + + if(m_accountsHasBeenSet) + { + Aws::Utils::Array accountsJsonList(m_accounts.size()); + for(unsigned accountsIndex = 0; accountsIndex < accountsJsonList.GetLength(); ++accountsIndex) + { + accountsJsonList[accountsIndex].AsObject(m_accounts[accountsIndex].Jsonize()); + } + payload.WithArray("accounts", std::move(accountsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace GuardDuty +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryTransactionStatus.h b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ConfirmationStatus.h similarity index 54% rename from generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryTransactionStatus.h rename to generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ConfirmationStatus.h index ad03102806e..0f440c6c258 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryTransactionStatus.h +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ConfirmationStatus.h @@ -13,19 +13,18 @@ namespace ManagedBlockchainQuery { namespace Model { - enum class QueryTransactionStatus + enum class ConfirmationStatus { NOT_SET, - FINAL, - FAILED + FINAL }; -namespace QueryTransactionStatusMapper +namespace ConfirmationStatusMapper { -AWS_MANAGEDBLOCKCHAINQUERY_API QueryTransactionStatus GetQueryTransactionStatusForName(const Aws::String& name); +AWS_MANAGEDBLOCKCHAINQUERY_API ConfirmationStatus GetConfirmationStatusForName(const Aws::String& name); -AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String GetNameForQueryTransactionStatus(QueryTransactionStatus value); -} // namespace QueryTransactionStatusMapper +AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String GetNameForConfirmationStatus(ConfirmationStatus value); +} // namespace ConfirmationStatusMapper } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ExecutionStatus.h b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ExecutionStatus.h new file mode 100644 index 00000000000..a1285d1a501 --- /dev/null +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/ExecutionStatus.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 ManagedBlockchainQuery +{ +namespace Model +{ + enum class ExecutionStatus + { + NOT_SET, + FAILED, + SUCCEEDED + }; + +namespace ExecutionStatusMapper +{ +AWS_MANAGEDBLOCKCHAINQUERY_API ExecutionStatus GetExecutionStatusForName(const Aws::String& name); + +AWS_MANAGEDBLOCKCHAINQUERY_API Aws::String GetNameForExecutionStatus(ExecutionStatus value); +} // namespace ExecutionStatusMapper +} // namespace Model +} // namespace ManagedBlockchainQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryNetwork.h b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryNetwork.h index c894f069264..206e6a98cb9 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryNetwork.h +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/QueryNetwork.h @@ -17,9 +17,9 @@ namespace Model { NOT_SET, ETHEREUM_MAINNET, + ETHEREUM_SEPOLIA_TESTNET, BITCOIN_MAINNET, - BITCOIN_TESTNET, - ETHEREUM_SEPOLIA_TESTNET + BITCOIN_TESTNET }; namespace QueryNetworkMapper diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/Transaction.h b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/Transaction.h index 60cc5cbe192..7dcf4b00390 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/Transaction.h +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/include/aws/managedblockchain-query/model/Transaction.h @@ -8,7 +8,8 @@ #include #include #include -#include +#include +#include #include namespace Aws @@ -297,37 +298,6 @@ namespace Model inline Transaction& WithNumberOfTransactions(long long value) { SetNumberOfTransactions(value); return *this;} - /** - *

    The status of the transaction.

    - */ - inline const QueryTransactionStatus& GetStatus() const{ return m_status; } - - /** - *

    The status of the transaction.

    - */ - inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } - - /** - *

    The status of the transaction.

    - */ - inline void SetStatus(const QueryTransactionStatus& value) { m_statusHasBeenSet = true; m_status = value; } - - /** - *

    The status of the transaction.

    - */ - inline void SetStatus(QueryTransactionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } - - /** - *

    The status of the transaction.

    - */ - inline Transaction& WithStatus(const QueryTransactionStatus& value) { SetStatus(value); return *this;} - - /** - *

    The status of the transaction.

    - */ - inline Transaction& WithStatus(QueryTransactionStatus&& value) { SetStatus(std::move(value)); return *this;} - - /** *

    The identifier of the transaction. It is generated whenever a transaction is * verified and added to the blockchain.

    @@ -782,6 +752,68 @@ namespace Model */ inline Transaction& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} + + /** + *

    Specifies whether the transaction has reached Finality.

    + */ + inline const ConfirmationStatus& GetConfirmationStatus() const{ return m_confirmationStatus; } + + /** + *

    Specifies whether the transaction has reached Finality.

    + */ + inline bool ConfirmationStatusHasBeenSet() const { return m_confirmationStatusHasBeenSet; } + + /** + *

    Specifies whether the transaction has reached Finality.

    + */ + inline void SetConfirmationStatus(const ConfirmationStatus& value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = value; } + + /** + *

    Specifies whether the transaction has reached Finality.

    + */ + inline void SetConfirmationStatus(ConfirmationStatus&& value) { m_confirmationStatusHasBeenSet = true; m_confirmationStatus = std::move(value); } + + /** + *

    Specifies whether the transaction has reached Finality.

    + */ + inline Transaction& WithConfirmationStatus(const ConfirmationStatus& value) { SetConfirmationStatus(value); return *this;} + + /** + *

    Specifies whether the transaction has reached Finality.

    + */ + inline Transaction& WithConfirmationStatus(ConfirmationStatus&& value) { SetConfirmationStatus(std::move(value)); return *this;} + + + /** + *

    Identifies whether the transaction has succeeded or failed.

    + */ + inline const ExecutionStatus& GetExecutionStatus() const{ return m_executionStatus; } + + /** + *

    Identifies whether the transaction has succeeded or failed.

    + */ + inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; } + + /** + *

    Identifies whether the transaction has succeeded or failed.

    + */ + inline void SetExecutionStatus(const ExecutionStatus& value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; } + + /** + *

    Identifies whether the transaction has succeeded or failed.

    + */ + inline void SetExecutionStatus(ExecutionStatus&& value) { m_executionStatusHasBeenSet = true; m_executionStatus = std::move(value); } + + /** + *

    Identifies whether the transaction has succeeded or failed.

    + */ + inline Transaction& WithExecutionStatus(const ExecutionStatus& value) { SetExecutionStatus(value); return *this;} + + /** + *

    Identifies whether the transaction has succeeded or failed.

    + */ + inline Transaction& WithExecutionStatus(ExecutionStatus&& value) { SetExecutionStatus(std::move(value)); return *this;} + private: QueryNetwork m_network; @@ -805,9 +837,6 @@ namespace Model long long m_numberOfTransactions; bool m_numberOfTransactionsHasBeenSet = false; - QueryTransactionStatus m_status; - bool m_statusHasBeenSet = false; - Aws::String m_to; bool m_toHasBeenSet = false; @@ -840,6 +869,12 @@ namespace Model Aws::String m_transactionId; bool m_transactionIdHasBeenSet = false; + + ConfirmationStatus m_confirmationStatus; + bool m_confirmationStatusHasBeenSet = false; + + ExecutionStatus m_executionStatus; + bool m_executionStatusHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ConfirmationStatus.cpp similarity index 59% rename from generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp rename to generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ConfirmationStatus.cpp index 170d877bb77..28d7694457c 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryTransactionStatus.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ConfirmationStatus.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0. */ -#include +#include #include #include #include @@ -17,44 +17,37 @@ namespace Aws { namespace Model { - namespace QueryTransactionStatusMapper + namespace ConfirmationStatusMapper { static const int FINAL_HASH = HashingUtils::HashString("FINAL"); - static const int FAILED_HASH = HashingUtils::HashString("FAILED"); - QueryTransactionStatus GetQueryTransactionStatusForName(const Aws::String& name) + ConfirmationStatus GetConfirmationStatusForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == FINAL_HASH) { - return QueryTransactionStatus::FINAL; - } - else if (hashCode == FAILED_HASH) - { - return QueryTransactionStatus::FAILED; + return ConfirmationStatus::FINAL; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); - return static_cast(hashCode); + return static_cast(hashCode); } - return QueryTransactionStatus::NOT_SET; + return ConfirmationStatus::NOT_SET; } - Aws::String GetNameForQueryTransactionStatus(QueryTransactionStatus enumValue) + Aws::String GetNameForConfirmationStatus(ConfirmationStatus enumValue) { switch(enumValue) { - case QueryTransactionStatus::NOT_SET: + case ConfirmationStatus::NOT_SET: return {}; - case QueryTransactionStatus::FINAL: + case ConfirmationStatus::FINAL: return "FINAL"; - case QueryTransactionStatus::FAILED: - return "FAILED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) @@ -66,7 +59,7 @@ namespace Aws } } - } // namespace QueryTransactionStatusMapper + } // namespace ConfirmationStatusMapper } // namespace Model } // namespace ManagedBlockchainQuery } // namespace Aws diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ExecutionStatus.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ExecutionStatus.cpp new file mode 100644 index 00000000000..c706df213ae --- /dev/null +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/ExecutionStatus.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 ManagedBlockchainQuery + { + namespace Model + { + namespace ExecutionStatusMapper + { + + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int SUCCEEDED_HASH = HashingUtils::HashString("SUCCEEDED"); + + + ExecutionStatus GetExecutionStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == FAILED_HASH) + { + return ExecutionStatus::FAILED; + } + else if (hashCode == SUCCEEDED_HASH) + { + return ExecutionStatus::SUCCEEDED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ExecutionStatus::NOT_SET; + } + + Aws::String GetNameForExecutionStatus(ExecutionStatus enumValue) + { + switch(enumValue) + { + case ExecutionStatus::NOT_SET: + return {}; + case ExecutionStatus::FAILED: + return "FAILED"; + case ExecutionStatus::SUCCEEDED: + return "SUCCEEDED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ExecutionStatusMapper + } // namespace Model + } // namespace ManagedBlockchainQuery +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp index e2385a57fa3..13b18567deb 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/QueryNetwork.cpp @@ -21,9 +21,9 @@ namespace Aws { static const int ETHEREUM_MAINNET_HASH = HashingUtils::HashString("ETHEREUM_MAINNET"); + static const int ETHEREUM_SEPOLIA_TESTNET_HASH = HashingUtils::HashString("ETHEREUM_SEPOLIA_TESTNET"); static const int BITCOIN_MAINNET_HASH = HashingUtils::HashString("BITCOIN_MAINNET"); static const int BITCOIN_TESTNET_HASH = HashingUtils::HashString("BITCOIN_TESTNET"); - static const int ETHEREUM_SEPOLIA_TESTNET_HASH = HashingUtils::HashString("ETHEREUM_SEPOLIA_TESTNET"); QueryNetwork GetQueryNetworkForName(const Aws::String& name) @@ -33,6 +33,10 @@ namespace Aws { return QueryNetwork::ETHEREUM_MAINNET; } + else if (hashCode == ETHEREUM_SEPOLIA_TESTNET_HASH) + { + return QueryNetwork::ETHEREUM_SEPOLIA_TESTNET; + } else if (hashCode == BITCOIN_MAINNET_HASH) { return QueryNetwork::BITCOIN_MAINNET; @@ -41,10 +45,6 @@ namespace Aws { return QueryNetwork::BITCOIN_TESTNET; } - else if (hashCode == ETHEREUM_SEPOLIA_TESTNET_HASH) - { - return QueryNetwork::ETHEREUM_SEPOLIA_TESTNET; - } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -63,12 +63,12 @@ namespace Aws return {}; case QueryNetwork::ETHEREUM_MAINNET: return "ETHEREUM_MAINNET"; + case QueryNetwork::ETHEREUM_SEPOLIA_TESTNET: + return "ETHEREUM_SEPOLIA_TESTNET"; case QueryNetwork::BITCOIN_MAINNET: return "BITCOIN_MAINNET"; case QueryNetwork::BITCOIN_TESTNET: return "BITCOIN_TESTNET"; - case QueryNetwork::ETHEREUM_SEPOLIA_TESTNET: - return "ETHEREUM_SEPOLIA_TESTNET"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/Transaction.cpp b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/Transaction.cpp index 08ac75e14e5..d77042fdbe4 100644 --- a/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/Transaction.cpp +++ b/generated/src/aws-cpp-sdk-managedblockchain-query/source/model/Transaction.cpp @@ -29,8 +29,6 @@ Transaction::Transaction() : m_transactionIndexHasBeenSet(false), m_numberOfTransactions(0), m_numberOfTransactionsHasBeenSet(false), - m_status(QueryTransactionStatus::NOT_SET), - m_statusHasBeenSet(false), m_toHasBeenSet(false), m_fromHasBeenSet(false), m_contractAddressHasBeenSet(false), @@ -42,7 +40,11 @@ Transaction::Transaction() : m_signatureRHasBeenSet(false), m_signatureSHasBeenSet(false), m_transactionFeeHasBeenSet(false), - m_transactionIdHasBeenSet(false) + m_transactionIdHasBeenSet(false), + m_confirmationStatus(ConfirmationStatus::NOT_SET), + m_confirmationStatusHasBeenSet(false), + m_executionStatus(ExecutionStatus::NOT_SET), + m_executionStatusHasBeenSet(false) { } @@ -57,8 +59,6 @@ Transaction::Transaction(JsonView jsonValue) : m_transactionIndexHasBeenSet(false), m_numberOfTransactions(0), m_numberOfTransactionsHasBeenSet(false), - m_status(QueryTransactionStatus::NOT_SET), - m_statusHasBeenSet(false), m_toHasBeenSet(false), m_fromHasBeenSet(false), m_contractAddressHasBeenSet(false), @@ -70,7 +70,11 @@ Transaction::Transaction(JsonView jsonValue) : m_signatureRHasBeenSet(false), m_signatureSHasBeenSet(false), m_transactionFeeHasBeenSet(false), - m_transactionIdHasBeenSet(false) + m_transactionIdHasBeenSet(false), + m_confirmationStatus(ConfirmationStatus::NOT_SET), + m_confirmationStatusHasBeenSet(false), + m_executionStatus(ExecutionStatus::NOT_SET), + m_executionStatusHasBeenSet(false) { *this = jsonValue; } @@ -126,13 +130,6 @@ Transaction& Transaction::operator =(JsonView jsonValue) m_numberOfTransactionsHasBeenSet = true; } - if(jsonValue.ValueExists("status")) - { - m_status = QueryTransactionStatusMapper::GetQueryTransactionStatusForName(jsonValue.GetString("status")); - - m_statusHasBeenSet = true; - } - if(jsonValue.ValueExists("to")) { m_to = jsonValue.GetString("to"); @@ -210,6 +207,20 @@ Transaction& Transaction::operator =(JsonView jsonValue) m_transactionIdHasBeenSet = true; } + if(jsonValue.ValueExists("confirmationStatus")) + { + m_confirmationStatus = ConfirmationStatusMapper::GetConfirmationStatusForName(jsonValue.GetString("confirmationStatus")); + + m_confirmationStatusHasBeenSet = true; + } + + if(jsonValue.ValueExists("executionStatus")) + { + m_executionStatus = ExecutionStatusMapper::GetExecutionStatusForName(jsonValue.GetString("executionStatus")); + + m_executionStatusHasBeenSet = true; + } + return *this; } @@ -257,11 +268,6 @@ JsonValue Transaction::Jsonize() const } - if(m_statusHasBeenSet) - { - payload.WithString("status", QueryTransactionStatusMapper::GetNameForQueryTransactionStatus(m_status)); - } - if(m_toHasBeenSet) { payload.WithString("to", m_to); @@ -328,6 +334,16 @@ JsonValue Transaction::Jsonize() const } + if(m_confirmationStatusHasBeenSet) + { + payload.WithString("confirmationStatus", ConfirmationStatusMapper::GetNameForConfirmationStatus(m_confirmationStatus)); + } + + if(m_executionStatusHasBeenSet) + { + payload.WithString("executionStatus", ExecutionStatusMapper::GetNameForExecutionStatus(m_executionStatus)); + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelRequest.h b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelRequest.h index 25e02e7ae8f..c7119215ef1 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelRequest.h +++ b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelRequest.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -372,6 +373,43 @@ namespace Model */ inline CreateChannelRequest& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;} + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline bool TimeShiftConfigurationHasBeenSet() const { return m_timeShiftConfigurationHasBeenSet; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = value; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::move(value); } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline CreateChannelRequest& WithTimeShiftConfiguration(const TimeShiftConfiguration& value) { SetTimeShiftConfiguration(value); return *this;} + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline CreateChannelRequest& WithTimeShiftConfiguration(TimeShiftConfiguration&& value) { SetTimeShiftConfiguration(std::move(value)); return *this;} + private: Aws::String m_channelName; @@ -391,6 +429,9 @@ namespace Model Tier m_tier; bool m_tierHasBeenSet = false; + + TimeShiftConfiguration m_timeShiftConfiguration; + bool m_timeShiftConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelResult.h b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelResult.h index 1b2dc914a45..0d795889d43 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelResult.h +++ b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/CreateChannelResult.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -436,6 +437,32 @@ namespace Model inline CreateChannelResult& WithTier(const char* value) { SetTier(value); return *this;} + /** + *

    The time-shifted viewing configuration assigned to the channel.

    + */ + inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; } + + /** + *

    The time-shifted viewing configuration assigned to the channel.

    + */ + inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfiguration = value; } + + /** + *

    The time-shifted viewing configuration assigned to the channel.

    + */ + inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfiguration = std::move(value); } + + /** + *

    The time-shifted viewing configuration assigned to the channel.

    + */ + inline CreateChannelResult& WithTimeShiftConfiguration(const TimeShiftConfiguration& value) { SetTimeShiftConfiguration(value); return *this;} + + /** + *

    The time-shifted viewing configuration assigned to the channel.

    + */ + inline CreateChannelResult& WithTimeShiftConfiguration(TimeShiftConfiguration&& value) { SetTimeShiftConfiguration(std::move(value)); return *this;} + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -479,6 +506,8 @@ namespace Model Aws::String m_tier; + TimeShiftConfiguration m_timeShiftConfiguration; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/DescribeChannelResult.h b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/DescribeChannelResult.h index 2cb01718340..06bd30cef2c 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/DescribeChannelResult.h +++ b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/DescribeChannelResult.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -463,6 +464,32 @@ namespace Model inline DescribeChannelResult& WithTier(const char* value) { SetTier(value); return *this;} + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; } + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfiguration = value; } + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfiguration = std::move(value); } + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline DescribeChannelResult& WithTimeShiftConfiguration(const TimeShiftConfiguration& value) { SetTimeShiftConfiguration(value); return *this;} + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline DescribeChannelResult& WithTimeShiftConfiguration(TimeShiftConfiguration&& value) { SetTimeShiftConfiguration(std::move(value)); return *this;} + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -508,6 +535,8 @@ namespace Model Aws::String m_tier; + TimeShiftConfiguration m_timeShiftConfiguration; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/TimeShiftConfiguration.h b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/TimeShiftConfiguration.h new file mode 100644 index 00000000000..305ccad2116 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/TimeShiftConfiguration.h @@ -0,0 +1,74 @@ +/** + * 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 MediaTailor +{ +namespace Model +{ + + /** + *

    The configuration for time-shifted viewing.

    See Also:

    AWS + * API Reference

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

    The maximum time delay for time-shifted viewing. The minimum allowed maximum + * time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 + * seconds (6 hours).

    + */ + inline int GetMaxTimeDelaySeconds() const{ return m_maxTimeDelaySeconds; } + + /** + *

    The maximum time delay for time-shifted viewing. The minimum allowed maximum + * time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 + * seconds (6 hours).

    + */ + inline bool MaxTimeDelaySecondsHasBeenSet() const { return m_maxTimeDelaySecondsHasBeenSet; } + + /** + *

    The maximum time delay for time-shifted viewing. The minimum allowed maximum + * time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 + * seconds (6 hours).

    + */ + inline void SetMaxTimeDelaySeconds(int value) { m_maxTimeDelaySecondsHasBeenSet = true; m_maxTimeDelaySeconds = value; } + + /** + *

    The maximum time delay for time-shifted viewing. The minimum allowed maximum + * time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 + * seconds (6 hours).

    + */ + inline TimeShiftConfiguration& WithMaxTimeDelaySeconds(int value) { SetMaxTimeDelaySeconds(value); return *this;} + + private: + + int m_maxTimeDelaySeconds; + bool m_maxTimeDelaySecondsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MediaTailor +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelRequest.h b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelRequest.h index 932d54117aa..28f5e4568a8 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelRequest.h +++ b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -165,6 +166,43 @@ namespace Model */ inline UpdateChannelRequest& AddOutputs(RequestOutputItem&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline bool TimeShiftConfigurationHasBeenSet() const { return m_timeShiftConfigurationHasBeenSet; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = value; } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfigurationHasBeenSet = true; m_timeShiftConfiguration = std::move(value); } + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline UpdateChannelRequest& WithTimeShiftConfiguration(const TimeShiftConfiguration& value) { SetTimeShiftConfiguration(value); return *this;} + + /** + *

    The time-shifted viewing configuration you want to associate to the channel. + *

    + */ + inline UpdateChannelRequest& WithTimeShiftConfiguration(TimeShiftConfiguration&& value) { SetTimeShiftConfiguration(std::move(value)); return *this;} + private: Aws::String m_channelName; @@ -175,6 +213,9 @@ namespace Model Aws::Vector m_outputs; bool m_outputsHasBeenSet = false; + + TimeShiftConfiguration m_timeShiftConfiguration; + bool m_timeShiftConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelResult.h b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelResult.h index 043924b9ae0..ad31050567f 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelResult.h +++ b/generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/UpdateChannelResult.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -467,6 +468,32 @@ namespace Model inline UpdateChannelResult& WithTier(const char* value) { SetTier(value); return *this;} + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline const TimeShiftConfiguration& GetTimeShiftConfiguration() const{ return m_timeShiftConfiguration; } + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline void SetTimeShiftConfiguration(const TimeShiftConfiguration& value) { m_timeShiftConfiguration = value; } + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline void SetTimeShiftConfiguration(TimeShiftConfiguration&& value) { m_timeShiftConfiguration = std::move(value); } + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline UpdateChannelResult& WithTimeShiftConfiguration(const TimeShiftConfiguration& value) { SetTimeShiftConfiguration(value); return *this;} + + /** + *

    The time-shifted viewing configuration for the channel.

    + */ + inline UpdateChannelResult& WithTimeShiftConfiguration(TimeShiftConfiguration&& value) { SetTimeShiftConfiguration(std::move(value)); return *this;} + + inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -510,6 +537,8 @@ namespace Model Aws::String m_tier; + TimeShiftConfiguration m_timeShiftConfiguration; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelRequest.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelRequest.cpp index ce91c317884..9ba990bdf34 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelRequest.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelRequest.cpp @@ -20,7 +20,8 @@ CreateChannelRequest::CreateChannelRequest() : m_playbackModeHasBeenSet(false), m_tagsHasBeenSet(false), m_tier(Tier::NOT_SET), - m_tierHasBeenSet(false) + m_tierHasBeenSet(false), + m_timeShiftConfigurationHasBeenSet(false) { } @@ -66,6 +67,12 @@ Aws::String CreateChannelRequest::SerializePayload() const payload.WithString("Tier", TierMapper::GetNameForTier(m_tier)); } + if(m_timeShiftConfigurationHasBeenSet) + { + payload.WithObject("TimeShiftConfiguration", m_timeShiftConfiguration.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelResult.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelResult.cpp index 468cb721d3c..78728d3dd27 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelResult.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/CreateChannelResult.cpp @@ -97,6 +97,12 @@ CreateChannelResult& CreateChannelResult::operator =(const Aws::AmazonWebService } + if(jsonValue.ValueExists("TimeShiftConfiguration")) + { + m_timeShiftConfiguration = jsonValue.GetObject("TimeShiftConfiguration"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/DescribeChannelResult.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/DescribeChannelResult.cpp index 775c9c66830..ac63bed093e 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/DescribeChannelResult.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/DescribeChannelResult.cpp @@ -103,6 +103,12 @@ DescribeChannelResult& DescribeChannelResult::operator =(const Aws::AmazonWebSer } + if(jsonValue.ValueExists("TimeShiftConfiguration")) + { + m_timeShiftConfiguration = jsonValue.GetObject("TimeShiftConfiguration"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/TimeShiftConfiguration.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/TimeShiftConfiguration.cpp new file mode 100644 index 00000000000..48069db1be0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/TimeShiftConfiguration.cpp @@ -0,0 +1,61 @@ +/** + * 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 MediaTailor +{ +namespace Model +{ + +TimeShiftConfiguration::TimeShiftConfiguration() : + m_maxTimeDelaySeconds(0), + m_maxTimeDelaySecondsHasBeenSet(false) +{ +} + +TimeShiftConfiguration::TimeShiftConfiguration(JsonView jsonValue) : + m_maxTimeDelaySeconds(0), + m_maxTimeDelaySecondsHasBeenSet(false) +{ + *this = jsonValue; +} + +TimeShiftConfiguration& TimeShiftConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("MaxTimeDelaySeconds")) + { + m_maxTimeDelaySeconds = jsonValue.GetInteger("MaxTimeDelaySeconds"); + + m_maxTimeDelaySecondsHasBeenSet = true; + } + + return *this; +} + +JsonValue TimeShiftConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_maxTimeDelaySecondsHasBeenSet) + { + payload.WithInteger("MaxTimeDelaySeconds", m_maxTimeDelaySeconds); + + } + + return payload; +} + +} // namespace Model +} // namespace MediaTailor +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelRequest.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelRequest.cpp index f3b7f89c35d..ca23af930b6 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelRequest.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelRequest.cpp @@ -15,7 +15,8 @@ using namespace Aws::Utils; UpdateChannelRequest::UpdateChannelRequest() : m_channelNameHasBeenSet(false), m_fillerSlateHasBeenSet(false), - m_outputsHasBeenSet(false) + m_outputsHasBeenSet(false), + m_timeShiftConfigurationHasBeenSet(false) { } @@ -40,6 +41,12 @@ Aws::String UpdateChannelRequest::SerializePayload() const } + if(m_timeShiftConfigurationHasBeenSet) + { + payload.WithObject("TimeShiftConfiguration", m_timeShiftConfiguration.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelResult.cpp b/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelResult.cpp index a2a36a51e53..39b6883a5cc 100644 --- a/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelResult.cpp +++ b/generated/src/aws-cpp-sdk-mediatailor/source/model/UpdateChannelResult.cpp @@ -97,6 +97,12 @@ UpdateChannelResult& UpdateChannelResult::operator =(const Aws::AmazonWebService } + if(jsonValue.ValueExists("TimeShiftConfiguration")) + { + m_timeShiftConfiguration = jsonValue.GetObject("TimeShiftConfiguration"); + + } + const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h index 60b47f30db4..187cdece3c0 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/CloudWatchRegion.h @@ -50,7 +50,8 @@ namespace Model us_iso_west_1, us_isob_east_1, ap_southeast_4, - il_central_1 + il_central_1, + ca_west_1 }; namespace CloudWatchRegionMapper diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSet.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSet.h index 79344f7c414..0ef2aad2c81 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSet.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSet.h @@ -71,11 +71,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline const Aws::String& GetName() const{ return m_name; } @@ -104,11 +99,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } @@ -137,11 +127,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } @@ -170,11 +155,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } @@ -203,11 +183,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } @@ -236,11 +211,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline ResourceRecordSet& WithName(const Aws::String& value) { SetName(value); return *this;} @@ -269,11 +239,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline ResourceRecordSet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} @@ -302,11 +267,6 @@ namespace Model * other than the leftmost label in a domain name, DNS treats it as an * character * (ASCII 42), not as a wildcard.

    You can't use the * wildcard * for resource records sets that have a type of NS.

    - *

    You can use the * wildcard as the leftmost label in a domain name, for - * example, *.example.com. You can't use an * for one of the middle - * labels, for example, marketing.*.example.com. In addition, the * - * must replace the entire label; for example, you can't specify - * prod*.example.com.

    */ inline ResourceRecordSet& WithName(const char* value) { SetName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h index dc99b3c02cc..cec7932623b 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/ResourceRecordSetRegion.h @@ -45,7 +45,8 @@ namespace Model eu_south_1, eu_south_2, ap_southeast_4, - il_central_1 + il_central_1, + ca_west_1 }; namespace ResourceRecordSetRegionMapper diff --git a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h index 2c43a19018b..eba8060d1ab 100644 --- a/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h +++ b/generated/src/aws-cpp-sdk-route53/include/aws/route53/model/VPCRegion.h @@ -49,7 +49,8 @@ namespace Model eu_south_1, eu_south_2, ap_southeast_4, - il_central_1 + il_central_1, + ca_west_1 }; namespace VPCRegionMapper diff --git a/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp index ff9b3e32235..c7a03f7bb7a 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/CloudWatchRegion.cpp @@ -55,6 +55,7 @@ namespace Aws static const int us_isob_east_1_HASH = HashingUtils::HashString("us-isob-east-1"); static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); + static const int ca_west_1_HASH = HashingUtils::HashString("ca-west-1"); CloudWatchRegion GetCloudWatchRegionForName(const Aws::String& name) @@ -200,6 +201,10 @@ namespace Aws { return CloudWatchRegion::il_central_1; } + else if (hashCode == ca_west_1_HASH) + { + return CloudWatchRegion::ca_west_1; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -286,6 +291,8 @@ namespace Aws return "ap-southeast-4"; case CloudWatchRegion::il_central_1: return "il-central-1"; + case CloudWatchRegion::ca_west_1: + return "ca-west-1"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp index f2d1997ec73..90cfc416c47 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/ResourceRecordSetRegion.cpp @@ -50,6 +50,7 @@ namespace Aws static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); + static const int ca_west_1_HASH = HashingUtils::HashString("ca-west-1"); ResourceRecordSetRegion GetResourceRecordSetRegionForName(const Aws::String& name) @@ -175,6 +176,10 @@ namespace Aws { return ResourceRecordSetRegion::il_central_1; } + else if (hashCode == ca_west_1_HASH) + { + return ResourceRecordSetRegion::ca_west_1; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -251,6 +256,8 @@ namespace Aws return "ap-southeast-4"; case ResourceRecordSetRegion::il_central_1: return "il-central-1"; + case ResourceRecordSetRegion::ca_west_1: + return "ca-west-1"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp b/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp index c2e23598665..71a9bb86689 100644 --- a/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp +++ b/generated/src/aws-cpp-sdk-route53/source/model/VPCRegion.cpp @@ -54,6 +54,7 @@ namespace Aws static const int eu_south_2_HASH = HashingUtils::HashString("eu-south-2"); static const int ap_southeast_4_HASH = HashingUtils::HashString("ap-southeast-4"); static const int il_central_1_HASH = HashingUtils::HashString("il-central-1"); + static const int ca_west_1_HASH = HashingUtils::HashString("ca-west-1"); VPCRegion GetVPCRegionForName(const Aws::String& name) @@ -195,6 +196,10 @@ namespace Aws { return VPCRegion::il_central_1; } + else if (hashCode == ca_west_1_HASH) + { + return VPCRegion::ca_west_1; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -279,6 +284,8 @@ namespace Aws return "ap-southeast-4"; case VPCRegion::il_central_1: return "il-central-1"; + case VPCRegion::ca_west_1: + return "ca-west-1"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/tests/route53-gen-tests/Route53EndpointProviderTests.cpp b/generated/tests/route53-gen-tests/Route53EndpointProviderTests.cpp index 82d8652cb54..d721b717473 100644 --- a/generated/tests/route53-gen-tests/Route53EndpointProviderTests.cpp +++ b/generated/tests/route53-gen-tests/Route53EndpointProviderTests.cpp @@ -288,6 +288,24 @@ static const Aws::Vector TEST_CASES = { {/*headers*/}}, {/*No error*/}} // expect }, /*TEST CASE 27*/ + {"For region eu-isoe-west-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "eu-isoe-west-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53.cloud.adc-e.uk", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 28*/ + {"For region us-isof-south-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isof-south-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://route53.csp.hci.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 29*/ {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -296,7 +314,7 @@ static const Aws::Vector TEST_CASES = { {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 28*/ + /*TEST CASE 30*/ {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params {}, // tags @@ -305,29 +323,23 @@ static const Aws::Vector TEST_CASES = { {/*properties*/}, {/*headers*/}}, {/*No error*/}} // expect }, - /*TEST CASE 29*/ + /*TEST CASE 31*/ {"For custom endpoint with fips enabled and dualstack disabled", // documentation {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect }, - /*TEST CASE 30*/ + /*TEST CASE 32*/ {"For custom endpoint with fips disabled and dualstack enabled", // documentation {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect }, - /*TEST CASE 31*/ + /*TEST CASE 33*/ {"Missing region", // documentation {}, // params {}, // tags {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Missing Region"} // expect - }, - /*TEST CASE 32*/ - {"Partition doesn't support DualStack", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect } }; 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 88c970ca838..e5d85f0b686 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.228" +#define AWS_SDK_VERSION_STRING "1.11.229" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 228 +#define AWS_SDK_VERSION_PATCH 229 diff --git a/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp b/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp index 4974fddb0b3..7abdb5afc5b 100644 --- a/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp +++ b/src/aws-cpp-sdk-core/source/endpoint/AWSPartitions.cpp @@ -10,8 +10,8 @@ namespace Aws { namespace Endpoint { -const size_t AWSPartitions::PartitionsBlobStrLen = 2510; -const size_t AWSPartitions::PartitionsBlobSize = 2511; +const size_t AWSPartitions::PartitionsBlobStrLen = 2525; +const size_t AWSPartitions::PartitionsBlobSize = 2526; using PartitionsBlobT = Aws::Array; static constexpr PartitionsBlobT PartitionsBlob = {{ @@ -34,88 +34,89 @@ static constexpr PartitionsBlobT PartitionsBlob = {{ '{','}',',','"','a','p','-','s','o','u','t','h','e','a','s','t','-','2','"',':','{','}',',','"','a', 'p','-','s','o','u','t','h','e','a','s','t','-','3','"',':','{','}',',','"','a','p','-','s','o','u', 't','h','e','a','s','t','-','4','"',':','{','}',',','"','a','w','s','-','g','l','o','b','a','l','"', -':','{','}',',','"','c','a','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','e','u', -'-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','e','u','-','c','e','n','t','r','a', -'l','-','2','"',':','{','}',',','"','e','u','-','n','o','r','t','h','-','1','"',':','{','}',',','"', -'e','u','-','s','o','u','t','h','-','1','"',':','{','}',',','"','e','u','-','s','o','u','t','h','-', -'2','"',':','{','}',',','"','e','u','-','w','e','s','t','-','1','"',':','{','}',',','"','e','u','-', -'w','e','s','t','-','2','"',':','{','}',',','"','e','u','-','w','e','s','t','-','3','"',':','{','}', -',','"','i','l','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','m','e','-','c','e', -'n','t','r','a','l','-','1','"',':','{','}',',','"','m','e','-','s','o','u','t','h','-','1','"',':', -'{','}',',','"','s','a','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s','-','e','a','s', -'t','-','1','"',':','{','}',',','"','u','s','-','e','a','s','t','-','2','"',':','{','}',',','"','u', -'s','-','w','e','s','t','-','1','"',':','{','}',',','"','u','s','-','w','e','s','t','-','2','"',':', -'{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','c','n','"',',','"','o','u','t','p', -'u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','a','m','a','z','o','n', -'a','w','s','.','c','o','m','.','c','n','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s', -'S','u','f','f','i','x','"',':','"','a','p','i','.','a','m','a','z','o','n','w','e','b','s','e','r', -'v','i','c','e','s','.','c','o','m','.','c','n','"',',','"','i','m','p','l','i','c','i','t','G','l', -'o','b','a','l','R','e','g','i','o','n','"',':','"','c','n','-','n','o','r','t','h','w','e','s','t', -'-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','c','n','"',',','"','s','u','p','p', -'o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','t','r','u','e',',','"','s','u','p','p', -'o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e', -'g','e','x','"',':','"','^','c','n','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"', -',','"','r','e','g','i','o','n','s','"',':','{','"','a','w','s','-','c','n','-','g','l','o','b','a', -'l','"',':','{','}',',','"','c','n','-','n','o','r','t','h','-','1','"',':','{','}',',','"','c','n', -'-','n','o','r','t','h','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':', -'"','a','w','s','-','u','s','-','g','o','v','"',',','"','o','u','t','p','u','t','s','"',':','{','"', -'d','n','s','S','u','f','f','i','x','"',':','"','a','m','a','z','o','n','a','w','s','.','c','o','m', +':','{','}',',','"','c','a','-','c','e','n','t','r','a','l','-','1','"',':','{','}',',','"','c','a', +'-','w','e','s','t','-','1','"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','1', +'"',':','{','}',',','"','e','u','-','c','e','n','t','r','a','l','-','2','"',':','{','}',',','"','e', +'u','-','n','o','r','t','h','-','1','"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','1', +'"',':','{','}',',','"','e','u','-','s','o','u','t','h','-','2','"',':','{','}',',','"','e','u','-', +'w','e','s','t','-','1','"',':','{','}',',','"','e','u','-','w','e','s','t','-','2','"',':','{','}', +',','"','e','u','-','w','e','s','t','-','3','"',':','{','}',',','"','i','l','-','c','e','n','t','r', +'a','l','-','1','"',':','{','}',',','"','m','e','-','c','e','n','t','r','a','l','-','1','"',':','{', +'}',',','"','m','e','-','s','o','u','t','h','-','1','"',':','{','}',',','"','s','a','-','e','a','s', +'t','-','1','"',':','{','}',',','"','u','s','-','e','a','s','t','-','1','"',':','{','}',',','"','u', +'s','-','e','a','s','t','-','2','"',':','{','}',',','"','u','s','-','w','e','s','t','-','1','"',':', +'{','}',',','"','u','s','-','w','e','s','t','-','2','"',':','{','}','}','}',',','{','"','i','d','"', +':','"','a','w','s','-','c','n','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s', +'S','u','f','f','i','x','"',':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','.','c','n', '"',',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','a', -'p','i','.','a','w','s','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e', -'g','i','o','n','"',':','"','u','s','-','g','o','v','-','w','e','s','t','-','1','"',',','"','n','a', -'m','e','"',':','"','a','w','s','-','u','s','-','g','o','v','"',',','"','s','u','p','p','o','r','t', -'s','D','u','a','l','S','t','a','c','k','"',':','t','r','u','e',',','"','s','u','p','p','o','r','t', -'s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x', -'"',':','"','^','u','s','\\','\\','-','g','o','v','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d', -'+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w','s','-','u','s','-','g','o', -'v','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','g','o','v','-','e','a','s','t', -'-','1','"',':','{','}',',','"','u','s','-','g','o','v','-','w','e','s','t','-','1','"',':','{','}', -'}','}',',','{','"','i','d','"',':','"','a','w','s','-','i','s','o','"',',','"','o','u','t','p','u', -'t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','c','2','s','.','i','c','.', -'g','o','v','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"', -':','"','c','2','s','.','i','c','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l', -'o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','-','e','a','s','t','-', -'1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','"',',','"','s','u','p','p', -'o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p', -'p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R', -'e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','\\','\\','-','\\','\\','w','+','\\','\\', -'-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w','s','-','i', -'s','o','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','i','s','o','-','e','a','s', -'t','-','1','"',':','{','}',',','"','u','s','-','i','s','o','-','w','e','s','t','-','1','"',':','{', -'}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i','s','o','-','b','"',',','"','o','u', -'t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','s','c','2','s', -'.','s','g','o','v','.','g','o','v','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s','S', -'u','f','f','i','x','"',':','"','s','c','2','s','.','s','g','o','v','.','g','o','v','"',',','"','i', +'p','i','.','a','m','a','z','o','n','w','e','b','s','e','r','v','i','c','e','s','.','c','o','m','.', +'c','n','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n', +'"',':','"','c','n','-','n','o','r','t','h','w','e','s','t','-','1','"',',','"','n','a','m','e','"', +':','"','a','w','s','-','c','n','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t', +'a','c','k','"',':','t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':', +'t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','c','n','\\', +'\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"', +':','{','"','a','w','s','-','c','n','-','g','l','o','b','a','l','"',':','{','}',',','"','c','n','-', +'n','o','r','t','h','-','1','"',':','{','}',',','"','c','n','-','n','o','r','t','h','w','e','s','t', +'-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w','s','-','u','s','-','g','o', +'v','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"', +':','"','a','m','a','z','o','n','a','w','s','.','c','o','m','"',',','"','d','u','a','l','S','t','a', +'c','k','D','n','s','S','u','f','f','i','x','"',':','"','a','p','i','.','a','w','s','"',',','"','i', 'm','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-', -'i','s','o','b','-','e','a','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-', -'i','s','o','-','b','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k', -'"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r', -'u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-', -'i','s','o','b','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g', -'i','o','n','s','"',':','{','"','a','w','s','-','i','s','o','-','b','-','g','l','o','b','a','l','"', -':','{','}',',','"','u','s','-','i','s','o','b','-','e','a','s','t','-','1','"',':','{','}','}','}', -',','{','"','i','d','"',':','"','a','w','s','-','i','s','o','-','e','"',',','"','o','u','t','p','u', -'t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','c','l','o','u','d','.','a', -'d','c','-','e','.','u','k','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f', -'f','i','x','"',':','"','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"','i','m', -'p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','e','u','-','i', -'s','o','e','-','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i', -'s','o','-','e','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"', -':','f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u', -'e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','e','u','\\','\\','-','i', -'s','o','e','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i', -'o','n','s','"',':','{','}','}',',','{','"','i','d','"',':','"','a','w','s','-','i','s','o','-','f', -'"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S','u','f','f','i','x','"',':', -'"','c','s','p','.','h','c','i','.','i','c','.','g','o','v','"',',','"','d','u','a','l','S','t','a', -'c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','s','p','.','h','c','i','.','i','c','.', -'g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o', -'n','"',':','"','u','s','-','i','s','o','f','-','s','o','u','t','h','-','1','"',',','"','n','a','m', -'e','"',':','"','a','w','s','-','i','s','o','-','f','"',',','"','s','u','p','p','o','r','t','s','D', -'u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t','s', -'F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"', -':','"','^','u','s','\\','\\','-','i','s','o','f','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d', -'+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','}','}',']',',','"','v','e','r','s','i', -'o','n','"',':','"','1','.','1','"','}','\0' +'g','o','v','-','w','e','s','t','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','u', +'s','-','g','o','v','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k', +'"',':','t','r','u','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u', +'e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','g', +'o','v','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o', +'n','s','"',':','{','"','a','w','s','-','u','s','-','g','o','v','-','g','l','o','b','a','l','"',':', +'{','}',',','"','u','s','-','g','o','v','-','e','a','s','t','-','1','"',':','{','}',',','"','u','s', +'-','g','o','v','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"', +'a','w','s','-','i','s','o','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S', +'u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g','o','v','"',',','"','d','u','a','l', +'S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','2','s','.','i','c','.','g', +'o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n', +'"',':','"','u','s','-','i','s','o','-','e','a','s','t','-','1','"',',','"','n','a','m','e','"',':', +'"','a','w','s','-','i','s','o','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t', +'a','c','k','"',':','f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"', +':','t','r','u','e','}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s', +'\\','\\','-','i','s','o','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r', +'e','g','i','o','n','s','"',':','{','"','a','w','s','-','i','s','o','-','g','l','o','b','a','l','"', +':','{','}',',','"','u','s','-','i','s','o','-','e','a','s','t','-','1','"',':','{','}',',','"','u', +'s','-','i','s','o','-','w','e','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':', +'"','a','w','s','-','i','s','o','-','b','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d', +'n','s','S','u','f','f','i','x','"',':','"','s','c','2','s','.','s','g','o','v','.','g','o','v','"', +',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','s','c', +'2','s','.','s','g','o','v','.','g','o','v','"',',','"','i','m','p','l','i','c','i','t','G','l','o', +'b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o','b','-','e','a','s','t','-', +'1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','b','"',',','"','s','u', +'p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s', +'u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o', +'n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s','o','b','\\','\\','-','\\','\\','w', +'+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','"','a','w', +'s','-','i','s','o','-','b','-','g','l','o','b','a','l','"',':','{','}',',','"','u','s','-','i','s', +'o','b','-','e','a','s','t','-','1','"',':','{','}','}','}',',','{','"','i','d','"',':','"','a','w', +'s','-','i','s','o','-','e','"',',','"','o','u','t','p','u','t','s','"',':','{','"','d','n','s','S', +'u','f','f','i','x','"',':','"','c','l','o','u','d','.','a','d','c','-','e','.','u','k','"',',','"', +'d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','"',':','"','c','l','o','u', +'d','.','a','d','c','-','e','.','u','k','"',',','"','i','m','p','l','i','c','i','t','G','l','o','b', +'a','l','R','e','g','i','o','n','"',':','"','e','u','-','i','s','o','e','-','w','e','s','t','-','1', +'"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s','o','-','e','"',',','"','s','u','p', +'p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':','f','a','l','s','e',',','"','s','u', +'p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e','}',',','"','r','e','g','i','o','n', +'R','e','g','e','x','"',':','"','^','e','u','\\','\\','-','i','s','o','e','\\','\\','-','\\','\\','w','+', +'\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o','n','s','"',':','{','}','}',',','{', +'"','i','d','"',':','"','a','w','s','-','i','s','o','-','f','"',',','"','o','u','t','p','u','t','s', +'"',':','{','"','d','n','s','S','u','f','f','i','x','"',':','"','c','s','p','.','h','c','i','.','i', +'c','.','g','o','v','"',',','"','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i', +'x','"',':','"','c','s','p','.','h','c','i','.','i','c','.','g','o','v','"',',','"','i','m','p','l', +'i','c','i','t','G','l','o','b','a','l','R','e','g','i','o','n','"',':','"','u','s','-','i','s','o', +'f','-','s','o','u','t','h','-','1','"',',','"','n','a','m','e','"',':','"','a','w','s','-','i','s', +'o','-','f','"',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',':', +'f','a','l','s','e',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',':','t','r','u','e', +'}',',','"','r','e','g','i','o','n','R','e','g','e','x','"',':','"','^','u','s','\\','\\','-','i','s', +'o','f','\\','\\','-','\\','\\','w','+','\\','\\','-','\\','\\','d','+','$','"',',','"','r','e','g','i','o', +'n','s','"',':','{','}','}',']',',','"','v','e','r','s','i','o','n','"',':','"','1','.','1','"','}', +'\0' }}; const char* AWSPartitions::GetPartitionsBlob() diff --git a/tools/code-generation/api-descriptions/appstream-2016-12-01.normal.json b/tools/code-generation/api-descriptions/appstream-2016-12-01.normal.json index 757e6b74e3f..befae56f04a 100644 --- a/tools/code-generation/api-descriptions/appstream-2016-12-01.normal.json +++ b/tools/code-generation/api-descriptions/appstream-2016-12-01.normal.json @@ -306,7 +306,8 @@ {"shape":"ConcurrentModificationException"}, {"shape":"InvalidRoleException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterCombinationException"} + {"shape":"InvalidParameterCombinationException"}, + {"shape":"OperationNotPermittedException"} ], "documentation":"

    Creates a stack to start streaming applications to users. A stack consists of an associated fleet, user access policies, and storage configurations.

    " }, @@ -5457,6 +5458,10 @@ "Permission":{ "shape":"Permission", "documentation":"

    Indicates whether the action is enabled or disabled.

    " + }, + "MaximumLength":{ + "shape":"Integer", + "documentation":"

    Specifies the number of characters that can be copied by end users from the local device to the remote session, and to the local device from the remote session.

    This can be specified only for the CLIPBOARD_COPY_FROM_LOCAL_DEVICE and CLIPBOARD_COPY_TO_LOCAL_DEVICE actions.

    This defaults to 20,971,520 (20 MB) when unspecified and the permission is ENABLED. This can't be specified when the permission is DISABLED.

    This can only be specified for AlwaysOn and OnDemand fleets. The attribute is not supported on Elastic fleets.

    The value can be between 1 and 20,971,520 (20 MB).

    " } }, "documentation":"

    Describes an action and whether the action is enabled or disabled for users during their streaming sessions.

    " diff --git a/tools/code-generation/api-descriptions/eks-2017-11-01.normal.json b/tools/code-generation/api-descriptions/eks-2017-11-01.normal.json index 4ab389f5aa0..76ec58104f0 100644 --- a/tools/code-generation/api-descriptions/eks-2017-11-01.normal.json +++ b/tools/code-generation/api-descriptions/eks-2017-11-01.normal.json @@ -452,6 +452,22 @@ ], "documentation":"

    Describes an identity provider configuration.

    " }, + "DescribeInsight":{ + "name":"DescribeInsight", + "http":{ + "method":"GET", + "requestUri":"/clusters/{name}/insights/{id}" + }, + "input":{"shape":"DescribeInsightRequest"}, + "output":{"shape":"DescribeInsightResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"} + ], + "documentation":"

    Returns details about an insight that you specify using its ID.

    " + }, "DescribeNodegroup":{ "name":"DescribeNodegroup", "http":{ @@ -660,6 +676,22 @@ ], "documentation":"

    Lists the identity provider configurations for your cluster.

    " }, + "ListInsights":{ + "name":"ListInsights", + "http":{ + "method":"POST", + "requestUri":"/clusters/{name}/insights" + }, + "input":{"shape":"ListInsightsRequest"}, + "output":{"shape":"ListInsightsResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"} + ], + "documentation":"

    Returns a list of all insights checked for against the specified cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.

    " + }, "ListNodegroups":{ "name":"ListNodegroups", "http":{ @@ -1036,6 +1068,11 @@ "namespace" ] }, + "AdditionalInfoMap":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, "Addon":{ "type":"structure", "members":{ @@ -1413,6 +1450,14 @@ "SPOT" ] }, + "Category":{ + "type":"string", + "enum":["UPGRADE_READINESS"] + }, + "CategoryList":{ + "type":"list", + "member":{"shape":"Category"} + }, "Certificate":{ "type":"structure", "members":{ @@ -1451,6 +1496,28 @@ "error":{"httpStatusCode":400}, "exception":true }, + "ClientStat":{ + "type":"structure", + "members":{ + "userAgent":{ + "shape":"String", + "documentation":"

    The user agent of the Kubernetes client using the deprecated resource.

    " + }, + "numberOfRequestsLast30Days":{ + "shape":"Integer", + "documentation":"

    The number of requests from the Kubernetes client seen over the last 30 days.

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

    The timestamp of the last request seen from the Kubernetes client.

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

    Details about clients using the deprecated resources.

    " + }, + "ClientStats":{ + "type":"list", + "member":{"shape":"ClientStat"} + }, "Cluster":{ "type":"structure", "members":{ @@ -1743,7 +1810,7 @@ }, "principalArn":{ "shape":"String", - "documentation":"

    The ARN of the IAM principal for the AccessEntry. You can specify one ARN for each access entry. You can't specify the same ARN in more than one access entry. This value can't be changed after access entry creation.

    IAM best practices recommend using IAM roles with temporary credentials, rather than IAM users with long-term credentials.

    " + "documentation":"

    The ARN of the IAM principal for the AccessEntry. You can specify one ARN for each access entry. You can't specify the same ARN in more than one access entry. This value can't be changed after access entry creation.

    The valid principals differ depending on the type of the access entry in the type field. The only valid ARN is IAM roles for the types of access entries for nodes: . You can use every IAM principal type for STANDARD access entries. You can't use the STS session principal type with access entries because this is a temporary principal for each session and not a permanent identity that can be assigned permissions.

    IAM best practices recommend using IAM roles with temporary credentials, rather than IAM users with long-term credentials.

    " }, "kubernetesGroups":{ "shape":"StringList", @@ -1764,7 +1831,7 @@ }, "type":{ "shape":"String", - "documentation":"

    If the principalArn is for an IAM role that's used for self-managed Amazon EC2 nodes, specify EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the necessary permissions to the node for you. If the principalArn is for any other purpose, specify STANDARD. If you don't specify a value, Amazon EKS sets the value to STANDARD. It's unnecessary to create access entries for IAM roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS creates entries in the aws-auth ConfigMap for the roles. You can't change this value once you've created the access entry.

    If you set the value to EC2_LINUX or EC2_WINDOWS, you can't specify values for kubernetesGroups, or associate an AccessPolicy to the access entry.

    " + "documentation":"

    The type of the new access entry. Valid values are Standard, FARGATE_LINUX, EC2_LINUX, and EC2_WINDOWS.

    If the principalArn is for an IAM role that's used for self-managed Amazon EC2 nodes, specify EC2_LINUX or EC2_WINDOWS. Amazon EKS grants the necessary permissions to the node for you. If the principalArn is for any other purpose, specify STANDARD. If you don't specify a value, Amazon EKS sets the value to STANDARD. It's unnecessary to create access entries for IAM roles used with Fargate profiles or managed Amazon EC2 nodes, because Amazon EKS creates entries in the aws-auth ConfigMap for the roles. You can't change this value once you've created the access entry.

    If you set the value to EC2_LINUX or EC2_WINDOWS, you can't specify values for kubernetesGroups, or associate an AccessPolicy to the access entry.

    " } } }, @@ -2318,6 +2385,36 @@ } } }, + "DeprecationDetail":{ + "type":"structure", + "members":{ + "usage":{ + "shape":"String", + "documentation":"

    The deprecated version of the resource.

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

    The newer version of the resource to migrate to if applicable.

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

    The version of the software where the deprecated resource version will stop being served.

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

    The version of the software where the newer resource version became available to migrate to if applicable.

    " + }, + "clientStats":{ + "shape":"ClientStats", + "documentation":"

    Details about Kubernetes clients using the deprecated resources.

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

    The summary information about deprecated resource usage for an insight check in the UPGRADE_READINESS category.

    " + }, + "DeprecationDetails":{ + "type":"list", + "member":{"shape":"DeprecationDetail"} + }, "DeregisterClusterRequest":{ "type":"structure", "required":["name"], @@ -2597,6 +2694,36 @@ } } }, + "DescribeInsightRequest":{ + "type":"structure", + "required":[ + "clusterName", + "id" + ], + "members":{ + "clusterName":{ + "shape":"String", + "documentation":"

    The name of the cluster to describe the insight for.

    ", + "location":"uri", + "locationName":"name" + }, + "id":{ + "shape":"String", + "documentation":"

    The identity of the insight to describe.

    ", + "location":"uri", + "locationName":"id" + } + } + }, + "DescribeInsightResponse":{ + "type":"structure", + "members":{ + "insight":{ + "shape":"Insight", + "documentation":"

    The full description of the insight.

    " + } + } + }, "DescribeNodegroupRequest":{ "type":"structure", "required":[ @@ -3054,6 +3181,179 @@ "type":"list", "member":{"shape":"String"} }, + "Insight":{ + "type":"structure", + "members":{ + "id":{ + "shape":"String", + "documentation":"

    The ID of the insight.

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

    The name of the insight.

    " + }, + "category":{ + "shape":"Category", + "documentation":"

    The category of the insight.

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

    The Kubernetes minor version associated with an insight if applicable.

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

    The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.

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

    The time the status of the insight last changed.

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

    The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).

    " + }, + "insightStatus":{ + "shape":"InsightStatus", + "documentation":"

    An object containing more detail on the status of the insight resource.

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

    A summary of how to remediate the finding of this insight if applicable.

    " + }, + "additionalInfo":{ + "shape":"AdditionalInfoMap", + "documentation":"

    Links to sources that provide additional context on the insight.

    " + }, + "resources":{ + "shape":"InsightResourceDetails", + "documentation":"

    The details about each resource listed in the insight check result.

    " + }, + "categorySpecificSummary":{ + "shape":"InsightCategorySpecificSummary", + "documentation":"

    Summary information that relates to the category of the insight. Currently only returned with certain insights having category UPGRADE_READINESS.

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

    A check that provides recommendations to remedy potential upgrade-impacting issues.

    " + }, + "InsightCategorySpecificSummary":{ + "type":"structure", + "members":{ + "deprecationDetails":{ + "shape":"DeprecationDetails", + "documentation":"

    The summary information about deprecated resource usage for an insight check in the UPGRADE_READINESS category.

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

    Summary information that relates to the category of the insight. Currently only returned with certain insights having category UPGRADE_READINESS.

    " + }, + "InsightResourceDetail":{ + "type":"structure", + "members":{ + "insightStatus":{ + "shape":"InsightStatus", + "documentation":"

    An object containing more detail on the status of the insight resource.

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

    The Kubernetes resource URI if applicable.

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

    The Amazon Resource Name (ARN) if applicable.

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

    Returns information about the resource being evaluated.

    " + }, + "InsightResourceDetails":{ + "type":"list", + "member":{"shape":"InsightResourceDetail"} + }, + "InsightStatus":{ + "type":"structure", + "members":{ + "status":{ + "shape":"InsightStatusValue", + "documentation":"

    The status of the resource.

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

    Explanation on the reasoning for the status of the resource.

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

    The status of the insight.

    " + }, + "InsightStatusValue":{ + "type":"string", + "enum":[ + "PASSING", + "WARNING", + "ERROR", + "UNKNOWN" + ] + }, + "InsightStatusValueList":{ + "type":"list", + "member":{"shape":"InsightStatusValue"} + }, + "InsightSummaries":{ + "type":"list", + "member":{"shape":"InsightSummary"} + }, + "InsightSummary":{ + "type":"structure", + "members":{ + "id":{ + "shape":"String", + "documentation":"

    The ID of the insight.

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

    The name of the insight.

    " + }, + "category":{ + "shape":"Category", + "documentation":"

    The category of the insight.

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

    The Kubernetes minor version associated with an insight if applicable.

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

    The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.

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

    The time the status of the insight last changed.

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

    The description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).

    " + }, + "insightStatus":{ + "shape":"InsightStatus", + "documentation":"

    An object containing more detail on the status of the insight.

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

    The summarized description of the insight.

    " + }, + "InsightsFilter":{ + "type":"structure", + "members":{ + "categories":{ + "shape":"CategoryList", + "documentation":"

    The categories to use to filter insights.

    " + }, + "kubernetesVersions":{ + "shape":"StringList", + "documentation":"

    The Kubernetes versions to use to filter the insights.

    " + }, + "statuses":{ + "shape":"InsightStatusValueList", + "documentation":"

    The statuses to use to filter the insights.

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

    The criteria to use for the insights.

    " + }, "Integer":{"type":"integer"}, "InvalidParameterException":{ "type":"structure", @@ -3542,7 +3842,50 @@ }, "nextToken":{ "shape":"String", - "documentation":"

    The nextToken value to include in a future ListIdentityProviderConfigsResponse request. When the results of a ListIdentityProviderConfigsResponse request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.

    " + "documentation":"

    The nextToken value to include in a future ListIdentityProviderConfigsResponse request. When the results of a ListIdentityProviderConfigsResponse request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.

    This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.

    " + } + } + }, + "ListInsightsMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListInsightsRequest":{ + "type":"structure", + "required":["clusterName"], + "members":{ + "clusterName":{ + "shape":"String", + "documentation":"

    The name of the Amazon EKS cluster associated with the insights.

    ", + "location":"uri", + "locationName":"name" + }, + "filter":{ + "shape":"InsightsFilter", + "documentation":"

    The criteria to filter your list of insights for your cluster. You can filter which insights are returned by category, associated Kubernetes version, and status.

    " + }, + "maxResults":{ + "shape":"ListInsightsMaxResults", + "documentation":"

    The maximum number of identity provider configurations returned by ListInsights in paginated output. When you use this parameter, ListInsights returns only maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListInsights request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListInsights returns up to 100 results and a nextToken value, if applicable.

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

    The nextToken value returned from a previous paginated ListInsights request. When the results of a ListInsights request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.

    " + } + } + }, + "ListInsightsResponse":{ + "type":"structure", + "members":{ + "insights":{ + "shape":"InsightSummaries", + "documentation":"

    The returned list of insights.

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

    The nextToken value to include in a future ListInsights request. When the results of a ListInsights request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.

    " } } }, diff --git a/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json b/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json index 68d5976fbf8..f4392f7fa2e 100644 --- a/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json +++ b/tools/code-generation/api-descriptions/guardduty-2017-11-28.normal.json @@ -117,7 +117,7 @@ {"shape":"BadRequestException"}, {"shape":"InternalServerErrorException"} ], - "documentation":"

    Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.

    As a delegated administrator, using CreateMembers will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.

    If you are adding accounts by invitation, before using InviteMembers, use CreateMembers after GuardDuty has been enabled in potential member accounts.

    If you disassociate a member from a GuardDuty delegated administrator, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

    " + "documentation":"

    Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.

    As a delegated administrator, using CreateMembers will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.

    When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.

    If you are adding accounts by invitation, before using InviteMembers, use CreateMembers after GuardDuty has been enabled in potential member accounts.

    If you disassociate a member from a GuardDuty delegated administrator, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

    " }, "CreatePublishingDestination":{ "name":"CreatePublishingDestination", @@ -434,7 +434,7 @@ {"shape":"BadRequestException"}, {"shape":"InternalServerErrorException"} ], - "documentation":"

    Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled EKS Runtime Monitoring and have the GuardDuty agent running on their EKS nodes.

    " + "documentation":"

    Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their resources.

    " }, "GetDetector":{ "name":"GetDetector", @@ -588,6 +588,20 @@ ], "documentation":"

    Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.

    " }, + "GetOrganizationStatistics":{ + "name":"GetOrganizationStatistics", + "http":{ + "method":"GET", + "requestUri":"/organization/statistics", + "responseCode":200 + }, + "output":{"shape":"GetOrganizationStatisticsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"InternalServerErrorException"} + ], + "documentation":"

    Retrieves how many active member accounts in your Amazon Web Services organization have each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.

    When you create a new Amazon Web Services organization, it might take up to 24 hours to generate the statistics for the entire organization.

    " + }, "GetRemainingFreeTrialDays":{ "name":"GetRemainingFreeTrialDays", "http":{ @@ -661,7 +675,7 @@ {"shape":"BadRequestException"}, {"shape":"InternalServerErrorException"} ], - "documentation":"

    Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all resources associated with the active member accounts in your organization.

    Make sure the accounts have EKS Runtime Monitoring enabled and GuardDuty agent running on their EKS nodes.

    " + "documentation":"

    Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all resources associated with the active member accounts in your organization.

    Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources.

    " }, "ListDetectors":{ "name":"ListDetectors", @@ -1863,11 +1877,11 @@ }, "ManagementType":{ "shape":"ManagementType", - "documentation":"

    Indicates how the GuardDuty security agent is managed for this resource.

    • AUTO_MANAGED indicates that GuardDuty deploys and manages updates for this resource.

    • MANUAL indicates that you are responsible to deploy, update, and manage the GuardDuty security agent updates for this resource.

    The DISABLED status doesn't apply to Amazon EC2 instances and Amazon EKS clusters that run on Amazon EC2 instances.

    ", + "documentation":"

    Indicates how the GuardDuty security agent is managed for this resource.

    • AUTO_MANAGED indicates that GuardDuty deploys and manages updates for this resource.

    • MANUAL indicates that you are responsible to deploy, update, and manage the GuardDuty security agent updates for this resource.

    The DISABLED status doesn't apply to Amazon EC2 instances and Amazon EKS clusters.

    ", "locationName":"managementType" } }, - "documentation":"

    This API is also used when you use GuardDuty Runtime Monitoring for your Amazon EC2 instances (currently in preview release) and is subject to change.

    Contains information about the Amazon EC2 instance runtime coverage details.

    " + "documentation":"

    This API is also used when you use GuardDuty Runtime Monitoring for your Amazon EC2 instances (currently in preview release) and is subject to change. The use of this API is subject to Section 2 of the Amazon Web Services Service Terms (\"Betas and Previews\").

    Contains information about the Amazon EC2 instance runtime coverage details.

    " }, "CoverageEcsClusterDetails":{ "type":"structure", @@ -2047,7 +2061,7 @@ }, "Ec2InstanceDetails":{ "shape":"CoverageEc2InstanceDetails", - "documentation":"

    This API is also used when you use GuardDuty Runtime Monitoring for your Amazon EC2 instances (currently in preview release) and is subject to change.

    Information about the Amazon EC2 instance assessed for runtime coverage.

    ", + "documentation":"

    This API is also used when you use GuardDuty Runtime Monitoring for your Amazon EC2 instances (currently in preview release) and is subject to change. The use of this API is subject to Section 2 of the Amazon Web Services Service Terms (\"Betas and Previews\").

    Information about the Amazon EC2 instance assessed for runtime coverage.

    ", "locationName":"ec2InstanceDetails" } }, @@ -3595,16 +3609,16 @@ "members":{ "Issues":{ "shape":"Issues", - "documentation":"

    Runtime coverage issues identified for the resource running on AWS Fargate.

    ", + "documentation":"

    Runtime coverage issues identified for the resource running on Amazon Web Services Fargate.

    ", "locationName":"issues" }, "ManagementType":{ "shape":"ManagementType", - "documentation":"

    Indicates how the GuardDuty security agent is managed for this resource.

    • AUTO_MANAGED indicates that GuardDuty deploys and manages updates for this resource.

    • MANUAL indicates that you are responsible to deploy, update, and manage the GuardDuty security agent updates for this resource.

    • DISABLED indicates that the deployment of the GuardDuty security agent is disabled for this resource.

    ", + "documentation":"

    Indicates how the GuardDuty security agent is managed for this resource.

    • AUTO_MANAGED indicates that GuardDuty deploys and manages updates for this resource.

    • DISABLED indicates that the deployment of the GuardDuty security agent is disabled for this resource.

    The MANUAL status doesn't apply to the Amazon Web Services Fargate (Amazon ECS only) woprkloads.

    ", "locationName":"managementType" } }, - "documentation":"

    Contains information about AWS Fargate details associated with an Amazon ECS cluster.

    " + "documentation":"

    Contains information about Amazon Web Services Fargate details associated with an Amazon ECS cluster.

    " }, "FeatureAdditionalConfiguration":{ "type":"string", @@ -4400,6 +4414,16 @@ } } }, + "GetOrganizationStatisticsResponse":{ + "type":"structure", + "members":{ + "OrganizationDetails":{ + "shape":"OrganizationDetails", + "documentation":"

    Information about the statistics report for your organization.

    ", + "locationName":"organizationDetails" + } + } + }, "GetRemainingFreeTrialDaysRequest":{ "type":"structure", "required":["DetectorId"], @@ -6273,6 +6297,22 @@ }, "documentation":"

    An object that contains information on which data sources are automatically enabled for new members within the organization.

    " }, + "OrganizationDetails":{ + "type":"structure", + "members":{ + "UpdatedAt":{ + "shape":"Timestamp", + "documentation":"

    The timestamp at which the organization statistics was last updated. This is in UTC format.

    ", + "locationName":"updatedAt" + }, + "OrganizationStatistics":{ + "shape":"OrganizationStatistics", + "documentation":"

    Information about the GuardDuty coverage statistics for members in your Amazon Web Services organization.

    ", + "locationName":"organizationStatistics" + } + }, + "documentation":"

    Information about GuardDuty coverage statistics for members in your Amazon Web Services organization.

    " + }, "OrganizationEbsVolumes":{ "type":"structure", "members":{ @@ -6337,6 +6377,51 @@ }, "documentation":"

    A list of features which will be configured for the organization.

    " }, + "OrganizationFeatureStatistics":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"OrgFeature", + "documentation":"

    Name of the feature.

    ", + "locationName":"name" + }, + "EnabledAccountsCount":{ + "shape":"Integer", + "documentation":"

    Total number of accounts that have enabled a specific feature.

    ", + "locationName":"enabledAccountsCount" + }, + "AdditionalConfiguration":{ + "shape":"OrganizationFeatureStatisticsAdditionalConfigurations", + "documentation":"

    Name of the additional configuration.

    ", + "locationName":"additionalConfiguration" + } + }, + "documentation":"

    Information about the number of accounts that have enabled a specific feature.

    " + }, + "OrganizationFeatureStatisticsAdditionalConfiguration":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"OrgFeatureAdditionalConfiguration", + "documentation":"

    Name of the additional configuration within a feature.

    ", + "locationName":"name" + }, + "EnabledAccountsCount":{ + "shape":"Integer", + "documentation":"

    Total number of accounts that have enabled the additional configuration.

    ", + "locationName":"enabledAccountsCount" + } + }, + "documentation":"

    Information about the coverage statistic for the additional configuration of the feature.

    " + }, + "OrganizationFeatureStatisticsAdditionalConfigurations":{ + "type":"list", + "member":{"shape":"OrganizationFeatureStatisticsAdditionalConfiguration"} + }, + "OrganizationFeatureStatisticsResults":{ + "type":"list", + "member":{"shape":"OrganizationFeatureStatistics"} + }, "OrganizationFeaturesConfigurations":{ "type":"list", "member":{"shape":"OrganizationFeatureConfiguration"} @@ -6461,6 +6546,37 @@ }, "documentation":"

    An object that contains information on the status of scanning EC2 instances with findings for an organization.

    " }, + "OrganizationStatistics":{ + "type":"structure", + "members":{ + "TotalAccountsCount":{ + "shape":"Integer", + "documentation":"

    Total number of accounts in your Amazon Web Services organization.

    ", + "locationName":"totalAccountsCount" + }, + "MemberAccountsCount":{ + "shape":"Integer", + "documentation":"

    Total number of accounts in your Amazon Web Services organization that are associated with GuardDuty.

    ", + "locationName":"memberAccountsCount" + }, + "ActiveAccountsCount":{ + "shape":"Integer", + "documentation":"

    Total number of active accounts in your Amazon Web Services organization that are associated with GuardDuty.

    ", + "locationName":"activeAccountsCount" + }, + "EnabledAccountsCount":{ + "shape":"Integer", + "documentation":"

    Total number of accounts that have enabled GuardDuty.

    ", + "locationName":"enabledAccountsCount" + }, + "CountByFeature":{ + "shape":"OrganizationFeatureStatisticsResults", + "documentation":"

    Retrieves the coverage statistics for each feature.

    ", + "locationName":"countByFeature" + } + }, + "documentation":"

    Information about the coverage statistics of the features for the entire Amazon Web Services organization.

    When you create a new Amazon Web Services organization, it might take up to 24 hours to generate the statistics summary for this organization.

    " + }, "Owner":{ "type":"structure", "members":{ @@ -8432,7 +8548,8 @@ "SUM_BY_DATA_SOURCE", "SUM_BY_RESOURCE", "TOP_RESOURCES", - "SUM_BY_FEATURES" + "SUM_BY_FEATURES", + "TOP_ACCOUNTS_BY_FEATURE" ] }, "UsageStatistics":{ @@ -8443,6 +8560,11 @@ "documentation":"

    The usage statistic sum organized by account ID.

    ", "locationName":"sumByAccount" }, + "TopAccountsByFeature":{ + "shape":"UsageTopAccountsResultList", + "documentation":"

    Lists the top 50 accounts by feature that have generated the most GuardDuty usage, in the order from most to least expensive.

    Currently, this doesn't support RDS_LOGIN_EVENTS.

    ", + "locationName":"topAccountsByFeature" + }, "SumByDataSource":{ "shape":"UsageDataSourceResultList", "documentation":"

    The usage statistic sum organized by on data source.

    ", @@ -8466,6 +8588,45 @@ }, "documentation":"

    Contains the result of GuardDuty usage. If a UsageStatisticType is provided the result for other types will be null.

    " }, + "UsageTopAccountResult":{ + "type":"structure", + "members":{ + "AccountId":{ + "shape":"AccountId", + "documentation":"

    The unique account ID.

    ", + "locationName":"accountId" + }, + "Total":{ + "shape":"Total", + "locationName":"total" + } + }, + "documentation":"

    Contains information on the total of usage based on the topmost 50 account IDs.

    " + }, + "UsageTopAccountsByFeatureList":{ + "type":"list", + "member":{"shape":"UsageTopAccountResult"} + }, + "UsageTopAccountsResult":{ + "type":"structure", + "members":{ + "Feature":{ + "shape":"UsageFeature", + "documentation":"

    Features by which you can generate the usage statistics.

    RDS_LOGIN_EVENTS is currently not supported with topAccountsByFeature.

    ", + "locationName":"feature" + }, + "Accounts":{ + "shape":"UsageTopAccountsByFeatureList", + "documentation":"

    The accounts that contributed to the total usage cost.

    ", + "locationName":"accounts" + } + }, + "documentation":"

    Information about the usage statistics, calculated by top accounts by feature.

    " + }, + "UsageTopAccountsResultList":{ + "type":"list", + "member":{"shape":"UsageTopAccountsResult"} + }, "Volume":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/managedblockchain-query-2023-05-04.normal.json b/tools/code-generation/api-descriptions/managedblockchain-query-2023-05-04.normal.json index 156405a2f3c..079d0b26ad3 100644 --- a/tools/code-generation/api-descriptions/managedblockchain-query-2023-05-04.normal.json +++ b/tools/code-generation/api-descriptions/managedblockchain-query-2023-05-04.normal.json @@ -321,6 +321,10 @@ "type":"string", "pattern":"[-A-Za-z0-9]{13,74}" }, + "ConfirmationStatus":{ + "type":"string", + "enum":["FINAL"] + }, "ContractFilter":{ "type":"structure", "required":[ @@ -391,6 +395,13 @@ "type":"string", "min":1 }, + "ExecutionStatus":{ + "type":"string", + "enum":[ + "FAILED", + "SUCCEEDED" + ] + }, "GetAssetContractInput":{ "type":"structure", "required":["contractIdentifier"], @@ -749,9 +760,9 @@ "type":"string", "enum":[ "ETHEREUM_MAINNET", + "ETHEREUM_SEPOLIA_TESTNET", "BITCOIN_MAINNET", - "BITCOIN_TESTNET", - "ETHEREUM_SEPOLIA_TESTNET" + "BITCOIN_TESTNET" ] }, "QueryTokenId":{ @@ -992,7 +1003,6 @@ "transactionTimestamp", "transactionIndex", "numberOfTransactions", - "status", "to" ], "members":{ @@ -1026,7 +1036,9 @@ }, "status":{ "shape":"QueryTransactionStatus", - "documentation":"

    The status of the transaction.

    " + "documentation":"

    The status of the transaction.

    This property is deprecated. You must use the confirmationStatus and the executionStatus properties to determine if the status of the transaction is FINAL or FAILED.

    • Transactions with a status of FINAL will now have the confirmationStatus set to FINAL and the executionStatus set to SUCCEEDED.

    • Transactions with a status of FAILED will now have the confirmationStatus set to FINAL and the executionStatus set to FAILED.

    ", + "deprecated":true, + "deprecatedMessage":"The status field in the GetTransaction response is deprecated and is replaced with the confirmationStatus and executionStatus fields." }, "to":{ "shape":"ChainAddress", @@ -1071,6 +1083,14 @@ "transactionId":{ "shape":"String", "documentation":"

    The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.

    " + }, + "confirmationStatus":{ + "shape":"ConfirmationStatus", + "documentation":"

    Specifies whether the transaction has reached Finality.

    " + }, + "executionStatus":{ + "shape":"ExecutionStatus", + "documentation":"

    Identifies whether the transaction has succeeded or failed.

    " } }, "documentation":"

    There are two possible types of transactions used for this data type:

    • A Bitcoin transaction is a movement of BTC from one address to another.

    • An Ethereum transaction refers to an action initiated by an externally owned account, which is an account managed by a human, not a contract. For example, if Bob sends Alice 1 ETH, Bob's account must be debited and Alice's must be credited. This state-changing action occurs within a transaction.

    " diff --git a/tools/code-generation/api-descriptions/mediatailor-2018-04-23.normal.json b/tools/code-generation/api-descriptions/mediatailor-2018-04-23.normal.json index 9df187fb779..6c2ce501978 100644 --- a/tools/code-generation/api-descriptions/mediatailor-2018-04-23.normal.json +++ b/tools/code-generation/api-descriptions/mediatailor-2018-04-23.normal.json @@ -939,6 +939,10 @@ "Tier":{ "shape":"Tier", "documentation":"

    The tier of the channel.

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

    The time-shifted viewing configuration you want to associate to the channel.

    " } } }, @@ -985,6 +989,10 @@ "Tier":{ "shape":"__string", "documentation":"

    The tier of the channel.

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

    The time-shifted viewing configuration assigned to the channel.

    " } } }, @@ -1648,6 +1656,10 @@ "Tier":{ "shape":"__string", "documentation":"

    The channel's tier.

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

    The time-shifted viewing configuration for the channel.

    " } } }, @@ -3302,6 +3314,17 @@ "STANDARD" ] }, + "TimeShiftConfiguration":{ + "type":"structure", + "required":["MaxTimeDelaySeconds"], + "members":{ + "MaxTimeDelaySeconds":{ + "shape":"__integer", + "documentation":"

    The maximum time delay for time-shifted viewing. The minimum allowed maximum time delay is 0 seconds, and the maximum allowed maximum time delay is 21600 seconds (6 hours).

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

    The configuration for time-shifted viewing.

    " + }, "TimeSignalMessage":{ "type":"structure", "members":{ @@ -3390,6 +3413,10 @@ "Outputs":{ "shape":"RequestOutputs", "documentation":"

    The channel's output properties.

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

    The time-shifted viewing configuration you want to associate to the channel.

    " } } }, @@ -3436,6 +3463,10 @@ "Tier":{ "shape":"__string", "documentation":"

    The tier associated with this Channel.

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

    The time-shifted viewing configuration for the channel.

    " } } }, diff --git a/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json b/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json index d743abf64a5..bd65ed924a8 100644 --- a/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json +++ b/tools/code-generation/api-descriptions/route53-2013-04-01.normal.json @@ -1782,7 +1782,8 @@ "us-iso-west-1", "us-isob-east-1", "ap-southeast-4", - "il-central-1" + "il-central-1", + "ca-west-1" ], "max":64, "min":1 @@ -5382,7 +5383,7 @@ "members":{ "Name":{ "shape":"DNSName", - "documentation":"

    For ChangeResourceRecordSets requests, the name of the record that you want to create, update, or delete. For ListResourceRecordSets responses, the name of a record in the specified hosted zone.

    ChangeResourceRecordSets Only

    Enter a fully qualified domain name, for example, www.example.com. You can optionally include a trailing dot. If you omit the trailing dot, Amazon Route 53 assumes that the domain name that you specify is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

    For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see DNS Domain Name Format in the Amazon Route 53 Developer Guide.

    You can use the asterisk (*) wildcard to replace the leftmost label in a domain name, for example, *.example.com. Note the following:

    • The * must replace the entire label. For example, you can't specify *prod.example.com or prod*.example.com.

    • The * can't replace any of the middle labels, for example, marketing.*.example.com.

    • If you include * in any position other than the leftmost label in a domain name, DNS treats it as an * character (ASCII 42), not as a wildcard.

      You can't use the * wildcard for resource records sets that have a type of NS.

    You can use the * wildcard as the leftmost label in a domain name, for example, *.example.com. You can't use an * for one of the middle labels, for example, marketing.*.example.com. In addition, the * must replace the entire label; for example, you can't specify prod*.example.com.

    " + "documentation":"

    For ChangeResourceRecordSets requests, the name of the record that you want to create, update, or delete. For ListResourceRecordSets responses, the name of a record in the specified hosted zone.

    ChangeResourceRecordSets Only

    Enter a fully qualified domain name, for example, www.example.com. You can optionally include a trailing dot. If you omit the trailing dot, Amazon Route 53 assumes that the domain name that you specify is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

    For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see DNS Domain Name Format in the Amazon Route 53 Developer Guide.

    You can use the asterisk (*) wildcard to replace the leftmost label in a domain name, for example, *.example.com. Note the following:

    • The * must replace the entire label. For example, you can't specify *prod.example.com or prod*.example.com.

    • The * can't replace any of the middle labels, for example, marketing.*.example.com.

    • If you include * in any position other than the leftmost label in a domain name, DNS treats it as an * character (ASCII 42), not as a wildcard.

      You can't use the * wildcard for resource records sets that have a type of NS.

    " }, "Type":{ "shape":"RRType", @@ -5481,7 +5482,8 @@ "eu-south-1", "eu-south-2", "ap-southeast-4", - "il-central-1" + "il-central-1", + "ca-west-1" ], "max":64, "min":1 @@ -6357,7 +6359,8 @@ "eu-south-1", "eu-south-2", "ap-southeast-4", - "il-central-1" + "il-central-1", + "ca-west-1" ], "max":64, "min":1 diff --git a/tools/code-generation/endpoints/route53-2013-04-01.endpoint-tests.json b/tools/code-generation/endpoints/route53-2013-04-01.endpoint-tests.json index b14b05eb81e..42145ddb1cb 100644 --- a/tools/code-generation/endpoints/route53-2013-04-01.endpoint-tests.json +++ b/tools/code-generation/endpoints/route53-2013-04-01.endpoint-tests.json @@ -469,6 +469,50 @@ "UseDualStack": false } }, + { + "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "eu-isoe-west-1" + } + ] + }, + "url": "https://route53.cloud.adc-e.uk" + } + }, + "params": { + "Region": "eu-isoe-west-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "route53", + "signingRegion": "us-isof-south-1" + } + ] + }, + "url": "https://route53.csp.hci.ic.gov" + } + }, + "params": { + "Region": "us-isof-south-1", + "UseFIPS": false, + "UseDualStack": false + } + }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { @@ -525,17 +569,6 @@ "expect": { "error": "Invalid Configuration: Missing Region" } - }, - { - "documentation": "Partition doesn't support DualStack", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } } ], "version": "1.0" diff --git a/tools/code-generation/partitions/partitions.json b/tools/code-generation/partitions/partitions.json index ab107ca5511..f376f6908aa 100644 --- a/tools/code-generation/partitions/partitions.json +++ b/tools/code-generation/partitions/partitions.json @@ -50,6 +50,9 @@ "ca-central-1" : { "description" : "Canada (Central)" }, + "ca-west-1" : { + "description" : "Canada West (Calgary)" + }, "eu-central-1" : { "description" : "Europe (Frankfurt)" },