diff --git a/VERSION b/VERSION index eb648b3b646..c8084839106 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.161 \ No newline at end of file +1.11.162 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h index ca73986f2e8..5fd1ca665c1 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2Client.h @@ -11258,6 +11258,43 @@ namespace EC2 return SubmitAsync(&EC2Client::DisableFastSnapshotRestores, request, handler, context); } + /** + *

Disables block public access for AMIs at the account level in the + * specified Amazon Web Services Region. This removes the block public + * access restriction from your account. With the restriction removed, you can + * publicly share your AMIs in the specified Amazon Web Services Region.

The + * API can take up to 10 minutes to configure this setting. During this time, if + * you run GetImageBlockPublicAccessState, + * the response will be block-new-sharing. When the API has completed + * the configuration, the response will be unblocked.

For more + * information, see Block + * public access to your AMIs in the Amazon EC2 User + * Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::DisableImageBlockPublicAccessOutcome DisableImageBlockPublicAccess(const Model::DisableImageBlockPublicAccessRequest& request) const; + + /** + * A Callable wrapper for DisableImageBlockPublicAccess that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DisableImageBlockPublicAccessOutcomeCallable DisableImageBlockPublicAccessCallable(const DisableImageBlockPublicAccessRequestT& request) const + { + return SubmitCallable(&EC2Client::DisableImageBlockPublicAccess, request); + } + + /** + * An Async wrapper for DisableImageBlockPublicAccess that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DisableImageBlockPublicAccessAsync(const DisableImageBlockPublicAccessRequestT& request, const DisableImageBlockPublicAccessResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EC2Client::DisableImageBlockPublicAccess, request, handler, context); + } + /** *

Cancels the deprecation of the specified AMI.

For more information, * see Enables block public access for AMIs at the account level in the + * specified Amazon Web Services Region. This prevents the public sharing of your + * AMIs. However, if you already have public AMIs, they will remain publicly + * available.

The API can take up to 10 minutes to configure this setting. + * During this time, if you run GetImageBlockPublicAccessState, + * the response will be unblocked. When the API has completed the + * configuration, the response will be block-new-sharing.

For + * more information, see Block + * public access to your AMIs in the Amazon EC2 User + * Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::EnableImageBlockPublicAccessOutcome EnableImageBlockPublicAccess(const Model::EnableImageBlockPublicAccessRequest& request) const; + + /** + * A Callable wrapper for EnableImageBlockPublicAccess that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::EnableImageBlockPublicAccessOutcomeCallable EnableImageBlockPublicAccessCallable(const EnableImageBlockPublicAccessRequestT& request) const + { + return SubmitCallable(&EC2Client::EnableImageBlockPublicAccess, request); + } + + /** + * An Async wrapper for EnableImageBlockPublicAccess that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void EnableImageBlockPublicAccessAsync(const EnableImageBlockPublicAccessRequestT& request, const EnableImageBlockPublicAccessResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EC2Client::EnableImageBlockPublicAccess, request, handler, context); + } + /** *

Enables deprecation of the specified AMI at the specified date and time.

*

For more information, see Gets the current state of block public access for AMIs at the account + * level in the specified Amazon Web Services Region.

For more information, + * see Block + * public access to your AMIs in the Amazon EC2 User + * Guide.

See Also:

AWS + * API Reference

+ */ + virtual Model::GetImageBlockPublicAccessStateOutcome GetImageBlockPublicAccessState(const Model::GetImageBlockPublicAccessStateRequest& request) const; + + /** + * A Callable wrapper for GetImageBlockPublicAccessState that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetImageBlockPublicAccessStateOutcomeCallable GetImageBlockPublicAccessStateCallable(const GetImageBlockPublicAccessStateRequestT& request) const + { + return SubmitCallable(&EC2Client::GetImageBlockPublicAccessState, request); + } + + /** + * An Async wrapper for GetImageBlockPublicAccessState that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetImageBlockPublicAccessStateAsync(const GetImageBlockPublicAccessStateRequestT& request, const GetImageBlockPublicAccessStateResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&EC2Client::GetImageBlockPublicAccessState, request, handler, context); + } + /** *

Returns a list of instance types with the specified instance attributes. You * can use the response to preview the instance types without launching instances. diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h index c251a3029c0..a62247ccca6 100644 --- a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/EC2ServiceClientModel.h @@ -361,6 +361,7 @@ #include #include #include +#include #include #include #include @@ -384,6 +385,7 @@ #include #include #include +#include #include #include #include @@ -408,6 +410,7 @@ #include #include #include +#include #include #include #include @@ -971,6 +974,7 @@ namespace Aws class DisableEbsEncryptionByDefaultRequest; class DisableFastLaunchRequest; class DisableFastSnapshotRestoresRequest; + class DisableImageBlockPublicAccessRequest; class DisableImageDeprecationRequest; class DisableIpamOrganizationAdminAccountRequest; class DisableSerialConsoleAccessRequest; @@ -997,6 +1001,7 @@ namespace Aws class EnableEbsEncryptionByDefaultRequest; class EnableFastLaunchRequest; class EnableFastSnapshotRestoresRequest; + class EnableImageBlockPublicAccessRequest; class EnableImageDeprecationRequest; class EnableIpamOrganizationAdminAccountRequest; class EnableReachabilityAnalyzerOrganizationSharingRequest; @@ -1023,6 +1028,7 @@ namespace Aws class GetFlowLogsIntegrationTemplateRequest; class GetGroupsForCapacityReservationRequest; class GetHostReservationPurchasePreviewRequest; + class GetImageBlockPublicAccessStateRequest; class GetInstanceTypesFromInstanceRequirementsRequest; class GetInstanceUefiDataRequest; class GetIpamAddressHistoryRequest; @@ -1568,6 +1574,7 @@ namespace Aws typedef Aws::Utils::Outcome DisableEbsEncryptionByDefaultOutcome; typedef Aws::Utils::Outcome DisableFastLaunchOutcome; typedef Aws::Utils::Outcome DisableFastSnapshotRestoresOutcome; + typedef Aws::Utils::Outcome DisableImageBlockPublicAccessOutcome; typedef Aws::Utils::Outcome DisableImageDeprecationOutcome; typedef Aws::Utils::Outcome DisableIpamOrganizationAdminAccountOutcome; typedef Aws::Utils::Outcome DisableSerialConsoleAccessOutcome; @@ -1594,6 +1601,7 @@ namespace Aws typedef Aws::Utils::Outcome EnableEbsEncryptionByDefaultOutcome; typedef Aws::Utils::Outcome EnableFastLaunchOutcome; typedef Aws::Utils::Outcome EnableFastSnapshotRestoresOutcome; + typedef Aws::Utils::Outcome EnableImageBlockPublicAccessOutcome; typedef Aws::Utils::Outcome EnableImageDeprecationOutcome; typedef Aws::Utils::Outcome EnableIpamOrganizationAdminAccountOutcome; typedef Aws::Utils::Outcome EnableReachabilityAnalyzerOrganizationSharingOutcome; @@ -1620,6 +1628,7 @@ namespace Aws typedef Aws::Utils::Outcome GetFlowLogsIntegrationTemplateOutcome; typedef Aws::Utils::Outcome GetGroupsForCapacityReservationOutcome; typedef Aws::Utils::Outcome GetHostReservationPurchasePreviewOutcome; + typedef Aws::Utils::Outcome GetImageBlockPublicAccessStateOutcome; typedef Aws::Utils::Outcome GetInstanceTypesFromInstanceRequirementsOutcome; typedef Aws::Utils::Outcome GetInstanceUefiDataOutcome; typedef Aws::Utils::Outcome GetIpamAddressHistoryOutcome; @@ -2165,6 +2174,7 @@ namespace Aws typedef std::future DisableEbsEncryptionByDefaultOutcomeCallable; typedef std::future DisableFastLaunchOutcomeCallable; typedef std::future DisableFastSnapshotRestoresOutcomeCallable; + typedef std::future DisableImageBlockPublicAccessOutcomeCallable; typedef std::future DisableImageDeprecationOutcomeCallable; typedef std::future DisableIpamOrganizationAdminAccountOutcomeCallable; typedef std::future DisableSerialConsoleAccessOutcomeCallable; @@ -2191,6 +2201,7 @@ namespace Aws typedef std::future EnableEbsEncryptionByDefaultOutcomeCallable; typedef std::future EnableFastLaunchOutcomeCallable; typedef std::future EnableFastSnapshotRestoresOutcomeCallable; + typedef std::future EnableImageBlockPublicAccessOutcomeCallable; typedef std::future EnableImageDeprecationOutcomeCallable; typedef std::future EnableIpamOrganizationAdminAccountOutcomeCallable; typedef std::future EnableReachabilityAnalyzerOrganizationSharingOutcomeCallable; @@ -2217,6 +2228,7 @@ namespace Aws typedef std::future GetFlowLogsIntegrationTemplateOutcomeCallable; typedef std::future GetGroupsForCapacityReservationOutcomeCallable; typedef std::future GetHostReservationPurchasePreviewOutcomeCallable; + typedef std::future GetImageBlockPublicAccessStateOutcomeCallable; typedef std::future GetInstanceTypesFromInstanceRequirementsOutcomeCallable; typedef std::future GetInstanceUefiDataOutcomeCallable; typedef std::future GetIpamAddressHistoryOutcomeCallable; @@ -2765,6 +2777,7 @@ namespace Aws typedef std::function&) > DisableEbsEncryptionByDefaultResponseReceivedHandler; typedef std::function&) > DisableFastLaunchResponseReceivedHandler; typedef std::function&) > DisableFastSnapshotRestoresResponseReceivedHandler; + typedef std::function&) > DisableImageBlockPublicAccessResponseReceivedHandler; typedef std::function&) > DisableImageDeprecationResponseReceivedHandler; typedef std::function&) > DisableIpamOrganizationAdminAccountResponseReceivedHandler; typedef std::function&) > DisableSerialConsoleAccessResponseReceivedHandler; @@ -2791,6 +2804,7 @@ namespace Aws typedef std::function&) > EnableEbsEncryptionByDefaultResponseReceivedHandler; typedef std::function&) > EnableFastLaunchResponseReceivedHandler; typedef std::function&) > EnableFastSnapshotRestoresResponseReceivedHandler; + typedef std::function&) > EnableImageBlockPublicAccessResponseReceivedHandler; typedef std::function&) > EnableImageDeprecationResponseReceivedHandler; typedef std::function&) > EnableIpamOrganizationAdminAccountResponseReceivedHandler; typedef std::function&) > EnableReachabilityAnalyzerOrganizationSharingResponseReceivedHandler; @@ -2817,6 +2831,7 @@ namespace Aws typedef std::function&) > GetFlowLogsIntegrationTemplateResponseReceivedHandler; typedef std::function&) > GetGroupsForCapacityReservationResponseReceivedHandler; typedef std::function&) > GetHostReservationPurchasePreviewResponseReceivedHandler; + typedef std::function&) > GetImageBlockPublicAccessStateResponseReceivedHandler; typedef std::function&) > GetInstanceTypesFromInstanceRequirementsResponseReceivedHandler; typedef std::function&) > GetInstanceUefiDataResponseReceivedHandler; typedef std::function&) > GetIpamAddressHistoryResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DisableImageBlockPublicAccessRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DisableImageBlockPublicAccessRequest.h new file mode 100644 index 00000000000..0512611fb50 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DisableImageBlockPublicAccessRequest.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + + /** + */ + class DisableImageBlockPublicAccessRequest : public EC2Request + { + public: + AWS_EC2_API DisableImageBlockPublicAccessRequest(); + + // 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 "DisableImageBlockPublicAccess"; } + + AWS_EC2_API Aws::String SerializePayload() const override; + + protected: + AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool GetDryRun() const{ return m_dryRun; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline DisableImageBlockPublicAccessRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} + + private: + + bool m_dryRun; + bool m_dryRunHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DisableImageBlockPublicAccessResponse.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DisableImageBlockPublicAccessResponse.h new file mode 100644 index 00000000000..85f652eb206 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/DisableImageBlockPublicAccessResponse.h @@ -0,0 +1,91 @@ +/** + * 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 Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + class DisableImageBlockPublicAccessResponse + { + public: + AWS_EC2_API DisableImageBlockPublicAccessResponse(); + AWS_EC2_API DisableImageBlockPublicAccessResponse(const Aws::AmazonWebServiceResult& result); + AWS_EC2_API DisableImageBlockPublicAccessResponse& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Returns unblocked if the request succeeds; otherwise, it returns + * an error.

+ */ + inline const ImageBlockPublicAccessDisabledState& GetImageBlockPublicAccessState() const{ return m_imageBlockPublicAccessState; } + + /** + *

Returns unblocked if the request succeeds; otherwise, it returns + * an error.

+ */ + inline void SetImageBlockPublicAccessState(const ImageBlockPublicAccessDisabledState& value) { m_imageBlockPublicAccessState = value; } + + /** + *

Returns unblocked if the request succeeds; otherwise, it returns + * an error.

+ */ + inline void SetImageBlockPublicAccessState(ImageBlockPublicAccessDisabledState&& value) { m_imageBlockPublicAccessState = std::move(value); } + + /** + *

Returns unblocked if the request succeeds; otherwise, it returns + * an error.

+ */ + inline DisableImageBlockPublicAccessResponse& WithImageBlockPublicAccessState(const ImageBlockPublicAccessDisabledState& value) { SetImageBlockPublicAccessState(value); return *this;} + + /** + *

Returns unblocked if the request succeeds; otherwise, it returns + * an error.

+ */ + inline DisableImageBlockPublicAccessResponse& WithImageBlockPublicAccessState(ImageBlockPublicAccessDisabledState&& value) { SetImageBlockPublicAccessState(std::move(value)); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline DisableImageBlockPublicAccessResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline DisableImageBlockPublicAccessResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + ImageBlockPublicAccessDisabledState m_imageBlockPublicAccessState; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EnableImageBlockPublicAccessRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EnableImageBlockPublicAccessRequest.h new file mode 100644 index 00000000000..1b6b65d91bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EnableImageBlockPublicAccessRequest.h @@ -0,0 +1,125 @@ +/** + * 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 EC2 +{ +namespace Model +{ + + /** + */ + class EnableImageBlockPublicAccessRequest : public EC2Request + { + public: + AWS_EC2_API EnableImageBlockPublicAccessRequest(); + + // 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 "EnableImageBlockPublicAccess"; } + + AWS_EC2_API Aws::String SerializePayload() const override; + + protected: + AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

Specify block-new-sharing to enable block public access for AMIs + * at the account level in the specified Region. This will block any attempt to + * publicly share your AMIs in the specified Region.

+ */ + inline const ImageBlockPublicAccessEnabledState& GetImageBlockPublicAccessState() const{ return m_imageBlockPublicAccessState; } + + /** + *

Specify block-new-sharing to enable block public access for AMIs + * at the account level in the specified Region. This will block any attempt to + * publicly share your AMIs in the specified Region.

+ */ + inline bool ImageBlockPublicAccessStateHasBeenSet() const { return m_imageBlockPublicAccessStateHasBeenSet; } + + /** + *

Specify block-new-sharing to enable block public access for AMIs + * at the account level in the specified Region. This will block any attempt to + * publicly share your AMIs in the specified Region.

+ */ + inline void SetImageBlockPublicAccessState(const ImageBlockPublicAccessEnabledState& value) { m_imageBlockPublicAccessStateHasBeenSet = true; m_imageBlockPublicAccessState = value; } + + /** + *

Specify block-new-sharing to enable block public access for AMIs + * at the account level in the specified Region. This will block any attempt to + * publicly share your AMIs in the specified Region.

+ */ + inline void SetImageBlockPublicAccessState(ImageBlockPublicAccessEnabledState&& value) { m_imageBlockPublicAccessStateHasBeenSet = true; m_imageBlockPublicAccessState = std::move(value); } + + /** + *

Specify block-new-sharing to enable block public access for AMIs + * at the account level in the specified Region. This will block any attempt to + * publicly share your AMIs in the specified Region.

+ */ + inline EnableImageBlockPublicAccessRequest& WithImageBlockPublicAccessState(const ImageBlockPublicAccessEnabledState& value) { SetImageBlockPublicAccessState(value); return *this;} + + /** + *

Specify block-new-sharing to enable block public access for AMIs + * at the account level in the specified Region. This will block any attempt to + * publicly share your AMIs in the specified Region.

+ */ + inline EnableImageBlockPublicAccessRequest& WithImageBlockPublicAccessState(ImageBlockPublicAccessEnabledState&& value) { SetImageBlockPublicAccessState(std::move(value)); return *this;} + + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool GetDryRun() const{ return m_dryRun; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline EnableImageBlockPublicAccessRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} + + private: + + ImageBlockPublicAccessEnabledState m_imageBlockPublicAccessState; + bool m_imageBlockPublicAccessStateHasBeenSet = false; + + bool m_dryRun; + bool m_dryRunHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EnableImageBlockPublicAccessResponse.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EnableImageBlockPublicAccessResponse.h new file mode 100644 index 00000000000..2cde1345a4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/EnableImageBlockPublicAccessResponse.h @@ -0,0 +1,91 @@ +/** + * 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 Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + class EnableImageBlockPublicAccessResponse + { + public: + AWS_EC2_API EnableImageBlockPublicAccessResponse(); + AWS_EC2_API EnableImageBlockPublicAccessResponse(const Aws::AmazonWebServiceResult& result); + AWS_EC2_API EnableImageBlockPublicAccessResponse& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

Returns block-new-sharing if the request succeeds; otherwise, it + * returns an error.

+ */ + inline const ImageBlockPublicAccessEnabledState& GetImageBlockPublicAccessState() const{ return m_imageBlockPublicAccessState; } + + /** + *

Returns block-new-sharing if the request succeeds; otherwise, it + * returns an error.

+ */ + inline void SetImageBlockPublicAccessState(const ImageBlockPublicAccessEnabledState& value) { m_imageBlockPublicAccessState = value; } + + /** + *

Returns block-new-sharing if the request succeeds; otherwise, it + * returns an error.

+ */ + inline void SetImageBlockPublicAccessState(ImageBlockPublicAccessEnabledState&& value) { m_imageBlockPublicAccessState = std::move(value); } + + /** + *

Returns block-new-sharing if the request succeeds; otherwise, it + * returns an error.

+ */ + inline EnableImageBlockPublicAccessResponse& WithImageBlockPublicAccessState(const ImageBlockPublicAccessEnabledState& value) { SetImageBlockPublicAccessState(value); return *this;} + + /** + *

Returns block-new-sharing if the request succeeds; otherwise, it + * returns an error.

+ */ + inline EnableImageBlockPublicAccessResponse& WithImageBlockPublicAccessState(ImageBlockPublicAccessEnabledState&& value) { SetImageBlockPublicAccessState(std::move(value)); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline EnableImageBlockPublicAccessResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline EnableImageBlockPublicAccessResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + ImageBlockPublicAccessEnabledState m_imageBlockPublicAccessState; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetImageBlockPublicAccessStateRequest.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetImageBlockPublicAccessStateRequest.h new file mode 100644 index 00000000000..f5c44c3bbf5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetImageBlockPublicAccessStateRequest.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace EC2 +{ +namespace Model +{ + + /** + */ + class GetImageBlockPublicAccessStateRequest : public EC2Request + { + public: + AWS_EC2_API GetImageBlockPublicAccessStateRequest(); + + // 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 "GetImageBlockPublicAccessState"; } + + AWS_EC2_API Aws::String SerializePayload() const override; + + protected: + AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; + + public: + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool GetDryRun() const{ return m_dryRun; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } + + /** + *

Checks whether you have the required permissions for the action, without + * actually making the request, and provides an error response. If you have the + * required permissions, the error response is DryRunOperation. + * Otherwise, it is UnauthorizedOperation.

+ */ + inline GetImageBlockPublicAccessStateRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} + + private: + + bool m_dryRun; + bool m_dryRunHasBeenSet = false; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetImageBlockPublicAccessStateResponse.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetImageBlockPublicAccessStateResponse.h new file mode 100644 index 00000000000..eb8d91140fa --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/GetImageBlockPublicAccessStateResponse.h @@ -0,0 +1,124 @@ +/** + * 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 Xml +{ + class XmlDocument; +} // namespace Xml +} // namespace Utils +namespace EC2 +{ +namespace Model +{ + class GetImageBlockPublicAccessStateResponse + { + public: + AWS_EC2_API GetImageBlockPublicAccessStateResponse(); + AWS_EC2_API GetImageBlockPublicAccessStateResponse(const Aws::AmazonWebServiceResult& result); + AWS_EC2_API GetImageBlockPublicAccessStateResponse& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

+ */ + inline const Aws::String& GetImageBlockPublicAccessState() const{ return m_imageBlockPublicAccessState; } + + /** + *

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

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

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

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

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

+ */ + inline void SetImageBlockPublicAccessState(const char* value) { m_imageBlockPublicAccessState.assign(value); } + + /** + *

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

+ */ + inline GetImageBlockPublicAccessStateResponse& WithImageBlockPublicAccessState(const Aws::String& value) { SetImageBlockPublicAccessState(value); return *this;} + + /** + *

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

+ */ + inline GetImageBlockPublicAccessStateResponse& WithImageBlockPublicAccessState(Aws::String&& value) { SetImageBlockPublicAccessState(std::move(value)); return *this;} + + /** + *

The current state of block public access for AMIs at the account level in the + * specified Amazon Web Services Region.

Possible values:

  • + * block-new-sharing - Any attempt to publicly share your AMIs in the + * specified Region is blocked.

  • unblocked - Your + * AMIs in the specified Region can be publicly shared.

+ */ + inline GetImageBlockPublicAccessStateResponse& WithImageBlockPublicAccessState(const char* value) { SetImageBlockPublicAccessState(value); return *this;} + + + + inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } + + + inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } + + + inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } + + + inline GetImageBlockPublicAccessStateResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} + + + inline GetImageBlockPublicAccessStateResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} + + private: + + Aws::String m_imageBlockPublicAccessState; + + ResponseMetadata m_responseMetadata; + }; + +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ImageBlockPublicAccessDisabledState.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ImageBlockPublicAccessDisabledState.h new file mode 100644 index 00000000000..316c40b37ce --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ImageBlockPublicAccessDisabledState.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 EC2 +{ +namespace Model +{ + enum class ImageBlockPublicAccessDisabledState + { + NOT_SET, + unblocked + }; + +namespace ImageBlockPublicAccessDisabledStateMapper +{ +AWS_EC2_API ImageBlockPublicAccessDisabledState GetImageBlockPublicAccessDisabledStateForName(const Aws::String& name); + +AWS_EC2_API Aws::String GetNameForImageBlockPublicAccessDisabledState(ImageBlockPublicAccessDisabledState value); +} // namespace ImageBlockPublicAccessDisabledStateMapper +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ImageBlockPublicAccessEnabledState.h b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ImageBlockPublicAccessEnabledState.h new file mode 100644 index 00000000000..320738198b5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/include/aws/ec2/model/ImageBlockPublicAccessEnabledState.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 EC2 +{ +namespace Model +{ + enum class ImageBlockPublicAccessEnabledState + { + NOT_SET, + block_new_sharing + }; + +namespace ImageBlockPublicAccessEnabledStateMapper +{ +AWS_EC2_API ImageBlockPublicAccessEnabledState GetImageBlockPublicAccessEnabledStateForName(const Aws::String& name); + +AWS_EC2_API Aws::String GetNameForImageBlockPublicAccessEnabledState(ImageBlockPublicAccessEnabledState value); +} // namespace ImageBlockPublicAccessEnabledStateMapper +} // namespace Model +} // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp index 261c5ed4e5f..cd8c44ca039 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client3.cpp @@ -38,8 +38,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -579,52 +579,52 @@ DescribePublicIpv4PoolsOutcome EC2Client::DescribePublicIpv4Pools(const Describe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -EnableImageDeprecationOutcome EC2Client::EnableImageDeprecation(const EnableImageDeprecationRequest& request) const +DisableSerialConsoleAccessOutcome EC2Client::DisableSerialConsoleAccess(const DisableSerialConsoleAccessRequest& request) const { - AWS_OPERATION_GUARD(EnableImageDeprecation); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisableSerialConsoleAccess); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableSerialConsoleAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableSerialConsoleAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, EnableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisableSerialConsoleAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ 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( - [&]()-> EnableImageDeprecationOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisableSerialConsoleAccessOutcome { 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, EnableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return EnableImageDeprecationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableSerialConsoleAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisableSerialConsoleAccessOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -DisableSerialConsoleAccessOutcome EC2Client::DisableSerialConsoleAccess(const DisableSerialConsoleAccessRequest& request) const +DisableImageBlockPublicAccessOutcome EC2Client::DisableImageBlockPublicAccess(const DisableImageBlockPublicAccessRequest& request) const { - AWS_OPERATION_GUARD(DisableSerialConsoleAccess); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableSerialConsoleAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableSerialConsoleAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_GUARD(DisableImageBlockPublicAccess); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DisableImageBlockPublicAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DisableImageBlockPublicAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DisableSerialConsoleAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); + AWS_OPERATION_CHECK_PTR(meter, DisableImageBlockPublicAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), {{ 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( - [&]()-> DisableSerialConsoleAccessOutcome { + return TracingUtils::MakeCallWithTiming( + [&]()-> DisableImageBlockPublicAccessOutcome { 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, DisableSerialConsoleAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return DisableSerialConsoleAccessOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DisableImageBlockPublicAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DisableImageBlockPublicAccessOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); }, TracingUtils::SMITHY_CLIENT_DURATION_METRIC, *meter, diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp index b4c4674df92..15927f51314 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client4.cpp @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -36,10 +35,13 @@ #include #include #include +#include +#include #include #include #include #include +#include #include #include #include @@ -58,7 +60,6 @@ #include #include #include -#include #include #include #include @@ -103,7 +104,6 @@ #include #include #include -#include #include #include #include @@ -267,32 +267,6 @@ GetCapacityReservationUsageOutcome EC2Client::GetCapacityReservationUsage(const {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifySpotFleetRequestOutcome EC2Client::ModifySpotFleetRequest(const ModifySpotFleetRequestRequest& request) const -{ - AWS_OPERATION_GUARD(ModifySpotFleetRequest); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySpotFleetRequest, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySpotFleetRequest, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifySpotFleetRequest, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ 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( - [&]()-> ModifySpotFleetRequestOutcome { - 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, ModifySpotFleetRequest, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifySpotFleetRequestOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - ModifyPrivateDnsNameOptionsOutcome EC2Client::ModifyPrivateDnsNameOptions(const ModifyPrivateDnsNameOptionsRequest& request) const { AWS_OPERATION_GUARD(ModifyPrivateDnsNameOptions); @@ -527,6 +501,58 @@ ModifyInstanceMetadataOptionsOutcome EC2Client::ModifyInstanceMetadataOptions(co {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +EnableImageBlockPublicAccessOutcome EC2Client::EnableImageBlockPublicAccess(const EnableImageBlockPublicAccessRequest& request) const +{ + AWS_OPERATION_GUARD(EnableImageBlockPublicAccess); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableImageBlockPublicAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableImageBlockPublicAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, EnableImageBlockPublicAccess, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ 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( + [&]()-> EnableImageBlockPublicAccessOutcome { + 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, EnableImageBlockPublicAccess, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableImageBlockPublicAccessOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +EnableImageDeprecationOutcome EC2Client::EnableImageDeprecation(const EnableImageDeprecationRequest& request) const +{ + AWS_OPERATION_GUARD(EnableImageDeprecation); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, EnableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, EnableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, EnableImageDeprecation, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ 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( + [&]()-> EnableImageDeprecationOutcome { + 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, EnableImageDeprecation, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return EnableImageDeprecationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ImportImageOutcome EC2Client::ImportImage(const ImportImageRequest& request) const { AWS_OPERATION_GUARD(ImportImage); @@ -631,6 +657,32 @@ GetSubnetCidrReservationsOutcome EC2Client::GetSubnetCidrReservations(const GetS {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetImageBlockPublicAccessStateOutcome EC2Client::GetImageBlockPublicAccessState(const GetImageBlockPublicAccessStateRequest& request) const +{ + AWS_OPERATION_GUARD(GetImageBlockPublicAccessState); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetImageBlockPublicAccessState, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetImageBlockPublicAccessState, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetImageBlockPublicAccessState, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ 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( + [&]()-> GetImageBlockPublicAccessStateOutcome { + 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, GetImageBlockPublicAccessState, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetImageBlockPublicAccessStateOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetNetworkInsightsAccessScopeAnalysisFindingsOutcome EC2Client::GetNetworkInsightsAccessScopeAnalysisFindings(const GetNetworkInsightsAccessScopeAnalysisFindingsRequest& request) const { AWS_OPERATION_GUARD(GetNetworkInsightsAccessScopeAnalysisFindings); @@ -1099,32 +1151,6 @@ EnableVpcClassicLinkOutcome EC2Client::EnableVpcClassicLink(const EnableVpcClass {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifySubnetAttributeOutcome EC2Client::ModifySubnetAttribute(const ModifySubnetAttributeRequest& request) const -{ - AWS_OPERATION_GUARD(ModifySubnetAttribute); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySubnetAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySubnetAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifySubnetAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ 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( - [&]()-> ModifySubnetAttributeOutcome { - 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, ModifySubnetAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifySubnetAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - GetIpamAddressHistoryOutcome EC2Client::GetIpamAddressHistory(const GetIpamAddressHistoryRequest& request) const { AWS_OPERATION_GUARD(GetIpamAddressHistory); @@ -2269,32 +2295,6 @@ GetInstanceTypesFromInstanceRequirementsOutcome EC2Client::GetInstanceTypesFromI {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } -ModifySnapshotTierOutcome EC2Client::ModifySnapshotTier(const ModifySnapshotTierRequest& request) const -{ - AWS_OPERATION_GUARD(ModifySnapshotTier); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySnapshotTier, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySnapshotTier, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ModifySnapshotTier, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), - {{ 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( - [&]()-> ModifySnapshotTierOutcome { - 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, ModifySnapshotTier, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - return ModifySnapshotTierOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - GetHostReservationPurchasePreviewOutcome EC2Client::GetHostReservationPurchasePreview(const GetHostReservationPurchasePreviewRequest& request) const { AWS_OPERATION_GUARD(GetHostReservationPurchasePreview); diff --git a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp index a44cc035772..b080b1270f5 100644 --- a/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp +++ b/generated/src/aws-cpp-sdk-ec2/source/EC2Client5.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -84,6 +85,7 @@ #include #include #include +#include #include #include #include @@ -104,6 +106,7 @@ #include #include #include +#include #include #include #include @@ -313,6 +316,32 @@ ModifyVpcAttributeOutcome EC2Client::ModifyVpcAttribute(const ModifyVpcAttribute {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifySpotFleetRequestOutcome EC2Client::ModifySpotFleetRequest(const ModifySpotFleetRequestRequest& request) const +{ + AWS_OPERATION_GUARD(ModifySpotFleetRequest); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySpotFleetRequest, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySpotFleetRequest, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifySpotFleetRequest, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ 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( + [&]()-> ModifySpotFleetRequestOutcome { + 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, ModifySpotFleetRequest, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifySpotFleetRequestOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ModifyVpcEndpointConnectionNotificationOutcome EC2Client::ModifyVpcEndpointConnectionNotification(const ModifyVpcEndpointConnectionNotificationRequest& request) const { AWS_OPERATION_GUARD(ModifyVpcEndpointConnectionNotification); @@ -1769,6 +1798,32 @@ ModifyVpcEndpointServicePermissionsOutcome EC2Client::ModifyVpcEndpointServicePe {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifySnapshotTierOutcome EC2Client::ModifySnapshotTier(const ModifySnapshotTierRequest& request) const +{ + AWS_OPERATION_GUARD(ModifySnapshotTier); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySnapshotTier, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySnapshotTier, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifySnapshotTier, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ 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( + [&]()-> ModifySnapshotTierOutcome { + 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, ModifySnapshotTier, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifySnapshotTierOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ResetFpgaImageAttributeOutcome EC2Client::ResetFpgaImageAttribute(const ResetFpgaImageAttributeRequest& request) const { AWS_OPERATION_GUARD(ResetFpgaImageAttribute); @@ -2289,6 +2344,32 @@ RejectVpcPeeringConnectionOutcome EC2Client::RejectVpcPeeringConnection(const Re {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ModifySubnetAttributeOutcome EC2Client::ModifySubnetAttribute(const ModifySubnetAttributeRequest& request) const +{ + AWS_OPERATION_GUARD(ModifySubnetAttribute); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ModifySubnetAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ModifySubnetAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ModifySubnetAttribute, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + "." + request.GetServiceRequestName(), + {{ 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( + [&]()-> ModifySubnetAttributeOutcome { + 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, ModifySubnetAttribute, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ModifySubnetAttributeOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + SendDiagnosticInterruptOutcome EC2Client::SendDiagnosticInterrupt(const SendDiagnosticInterruptRequest& request) const { AWS_OPERATION_GUARD(SendDiagnosticInterrupt); diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DisableImageBlockPublicAccessRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DisableImageBlockPublicAccessRequest.cpp new file mode 100644 index 00000000000..e99553ad9f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DisableImageBlockPublicAccessRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils; + +DisableImageBlockPublicAccessRequest::DisableImageBlockPublicAccessRequest() : + m_dryRun(false), + m_dryRunHasBeenSet(false) +{ +} + +Aws::String DisableImageBlockPublicAccessRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=DisableImageBlockPublicAccess&"; + if(m_dryRunHasBeenSet) + { + ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; + } + + ss << "Version=2016-11-15"; + return ss.str(); +} + + +void DisableImageBlockPublicAccessRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/DisableImageBlockPublicAccessResponse.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/DisableImageBlockPublicAccessResponse.cpp new file mode 100644 index 00000000000..c137f115fd1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/DisableImageBlockPublicAccessResponse.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +DisableImageBlockPublicAccessResponse::DisableImageBlockPublicAccessResponse() : + m_imageBlockPublicAccessState(ImageBlockPublicAccessDisabledState::NOT_SET) +{ +} + +DisableImageBlockPublicAccessResponse::DisableImageBlockPublicAccessResponse(const Aws::AmazonWebServiceResult& result) : + m_imageBlockPublicAccessState(ImageBlockPublicAccessDisabledState::NOT_SET) +{ + *this = result; +} + +DisableImageBlockPublicAccessResponse& DisableImageBlockPublicAccessResponse::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "DisableImageBlockPublicAccessResponse")) + { + resultNode = rootNode.FirstChild("DisableImageBlockPublicAccessResponse"); + } + + if(!resultNode.IsNull()) + { + XmlNode imageBlockPublicAccessStateNode = resultNode.FirstChild("imageBlockPublicAccessState"); + if(!imageBlockPublicAccessStateNode.IsNull()) + { + m_imageBlockPublicAccessState = ImageBlockPublicAccessDisabledStateMapper::GetImageBlockPublicAccessDisabledStateForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(imageBlockPublicAccessStateNode.GetText()).c_str()).c_str()); + } + } + + if (!rootNode.IsNull()) { + XmlNode requestIdNode = rootNode.FirstChild("requestId"); + if (!requestIdNode.IsNull()) + { + m_responseMetadata.SetRequestId(StringUtils::Trim(requestIdNode.GetText().c_str())); + } + AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::DisableImageBlockPublicAccessResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EnableImageBlockPublicAccessRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EnableImageBlockPublicAccessRequest.cpp new file mode 100644 index 00000000000..bf469765535 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EnableImageBlockPublicAccessRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils; + +EnableImageBlockPublicAccessRequest::EnableImageBlockPublicAccessRequest() : + m_imageBlockPublicAccessState(ImageBlockPublicAccessEnabledState::NOT_SET), + m_imageBlockPublicAccessStateHasBeenSet(false), + m_dryRun(false), + m_dryRunHasBeenSet(false) +{ +} + +Aws::String EnableImageBlockPublicAccessRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=EnableImageBlockPublicAccess&"; + if(m_imageBlockPublicAccessStateHasBeenSet) + { + ss << "ImageBlockPublicAccessState=" << ImageBlockPublicAccessEnabledStateMapper::GetNameForImageBlockPublicAccessEnabledState(m_imageBlockPublicAccessState) << "&"; + } + + if(m_dryRunHasBeenSet) + { + ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; + } + + ss << "Version=2016-11-15"; + return ss.str(); +} + + +void EnableImageBlockPublicAccessRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/EnableImageBlockPublicAccessResponse.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/EnableImageBlockPublicAccessResponse.cpp new file mode 100644 index 00000000000..6c7fca1f052 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/EnableImageBlockPublicAccessResponse.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +EnableImageBlockPublicAccessResponse::EnableImageBlockPublicAccessResponse() : + m_imageBlockPublicAccessState(ImageBlockPublicAccessEnabledState::NOT_SET) +{ +} + +EnableImageBlockPublicAccessResponse::EnableImageBlockPublicAccessResponse(const Aws::AmazonWebServiceResult& result) : + m_imageBlockPublicAccessState(ImageBlockPublicAccessEnabledState::NOT_SET) +{ + *this = result; +} + +EnableImageBlockPublicAccessResponse& EnableImageBlockPublicAccessResponse::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "EnableImageBlockPublicAccessResponse")) + { + resultNode = rootNode.FirstChild("EnableImageBlockPublicAccessResponse"); + } + + if(!resultNode.IsNull()) + { + XmlNode imageBlockPublicAccessStateNode = resultNode.FirstChild("imageBlockPublicAccessState"); + if(!imageBlockPublicAccessStateNode.IsNull()) + { + m_imageBlockPublicAccessState = ImageBlockPublicAccessEnabledStateMapper::GetImageBlockPublicAccessEnabledStateForName(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(imageBlockPublicAccessStateNode.GetText()).c_str()).c_str()); + } + } + + if (!rootNode.IsNull()) { + XmlNode requestIdNode = rootNode.FirstChild("requestId"); + if (!requestIdNode.IsNull()) + { + m_responseMetadata.SetRequestId(StringUtils::Trim(requestIdNode.GetText().c_str())); + } + AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::EnableImageBlockPublicAccessResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/GetImageBlockPublicAccessStateRequest.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/GetImageBlockPublicAccessStateRequest.cpp new file mode 100644 index 00000000000..def43ba297b --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/GetImageBlockPublicAccessStateRequest.cpp @@ -0,0 +1,36 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::EC2::Model; +using namespace Aws::Utils; + +GetImageBlockPublicAccessStateRequest::GetImageBlockPublicAccessStateRequest() : + m_dryRun(false), + m_dryRunHasBeenSet(false) +{ +} + +Aws::String GetImageBlockPublicAccessStateRequest::SerializePayload() const +{ + Aws::StringStream ss; + ss << "Action=GetImageBlockPublicAccessState&"; + if(m_dryRunHasBeenSet) + { + ss << "DryRun=" << std::boolalpha << m_dryRun << "&"; + } + + ss << "Version=2016-11-15"; + return ss.str(); +} + + +void GetImageBlockPublicAccessStateRequest::DumpBodyToUrl(Aws::Http::URI& uri ) const +{ + uri.SetQueryString(SerializePayload()); +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/GetImageBlockPublicAccessStateResponse.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/GetImageBlockPublicAccessStateResponse.cpp new file mode 100644 index 00000000000..0d3d4a9f140 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/GetImageBlockPublicAccessStateResponse.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 + +using namespace Aws::EC2::Model; +using namespace Aws::Utils::Xml; +using namespace Aws::Utils::Logging; +using namespace Aws::Utils; +using namespace Aws; + +GetImageBlockPublicAccessStateResponse::GetImageBlockPublicAccessStateResponse() +{ +} + +GetImageBlockPublicAccessStateResponse::GetImageBlockPublicAccessStateResponse(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetImageBlockPublicAccessStateResponse& GetImageBlockPublicAccessStateResponse::operator =(const Aws::AmazonWebServiceResult& result) +{ + const XmlDocument& xmlDocument = result.GetPayload(); + XmlNode rootNode = xmlDocument.GetRootElement(); + XmlNode resultNode = rootNode; + if (!rootNode.IsNull() && (rootNode.GetName() != "GetImageBlockPublicAccessStateResponse")) + { + resultNode = rootNode.FirstChild("GetImageBlockPublicAccessStateResponse"); + } + + if(!resultNode.IsNull()) + { + XmlNode imageBlockPublicAccessStateNode = resultNode.FirstChild("imageBlockPublicAccessState"); + if(!imageBlockPublicAccessStateNode.IsNull()) + { + m_imageBlockPublicAccessState = Aws::Utils::Xml::DecodeEscapedXmlText(imageBlockPublicAccessStateNode.GetText()); + } + } + + if (!rootNode.IsNull()) { + XmlNode requestIdNode = rootNode.FirstChild("requestId"); + if (!requestIdNode.IsNull()) + { + m_responseMetadata.SetRequestId(StringUtils::Trim(requestIdNode.GetText().c_str())); + } + AWS_LOGSTREAM_DEBUG("Aws::EC2::Model::GetImageBlockPublicAccessStateResponse", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); + } + return *this; +} diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp new file mode 100644 index 00000000000..2cac35e58f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessDisabledState.cpp @@ -0,0 +1,63 @@ +/** + * 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 EC2 + { + namespace Model + { + namespace ImageBlockPublicAccessDisabledStateMapper + { + + static const int unblocked_HASH = HashingUtils::HashString("unblocked"); + + + ImageBlockPublicAccessDisabledState GetImageBlockPublicAccessDisabledStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == unblocked_HASH) + { + return ImageBlockPublicAccessDisabledState::unblocked; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ImageBlockPublicAccessDisabledState::NOT_SET; + } + + Aws::String GetNameForImageBlockPublicAccessDisabledState(ImageBlockPublicAccessDisabledState enumValue) + { + switch(enumValue) + { + case ImageBlockPublicAccessDisabledState::unblocked: + return "unblocked"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ImageBlockPublicAccessDisabledStateMapper + } // namespace Model + } // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp new file mode 100644 index 00000000000..357d564f892 --- /dev/null +++ b/generated/src/aws-cpp-sdk-ec2/source/model/ImageBlockPublicAccessEnabledState.cpp @@ -0,0 +1,63 @@ +/** + * 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 EC2 + { + namespace Model + { + namespace ImageBlockPublicAccessEnabledStateMapper + { + + static const int block_new_sharing_HASH = HashingUtils::HashString("block-new-sharing"); + + + ImageBlockPublicAccessEnabledState GetImageBlockPublicAccessEnabledStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == block_new_sharing_HASH) + { + return ImageBlockPublicAccessEnabledState::block_new_sharing; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ImageBlockPublicAccessEnabledState::NOT_SET; + } + + Aws::String GetNameForImageBlockPublicAccessEnabledState(ImageBlockPublicAccessEnabledState enumValue) + { + switch(enumValue) + { + case ImageBlockPublicAccessEnabledState::block_new_sharing: + return "block-new-sharing"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ImageBlockPublicAccessEnabledStateMapper + } // namespace Model + } // namespace EC2 +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/KendraClient.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/KendraClient.h index 9446bc48e98..945e0c8b1ed 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/KendraClient.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/KendraClient.h @@ -141,7 +141,11 @@ namespace kendra * added with the BatchPutDocument API.

The documents are * deleted asynchronously. You can see the progress of the deletion by using Amazon * Web Services CloudWatch. Any error messages related to the processing of the - * batch are sent to you CloudWatch log.

See Also:

BatchGetDocumentStatus API to monitor the progress of deleting your + * documents.

Deleting documents from an index using + * BatchDeleteDocument could take up to an hour or more, depending on + * the number of documents you want to delete.

See Also:

AWS * API Reference

*/ @@ -237,8 +241,10 @@ namespace kendra * to attach an access control list to the documents added to the index.

The * documents are indexed asynchronously. You can see the progress of the batch * using Amazon Web Services CloudWatch. Any error messages related to processing - * the batch are sent to your Amazon Web Services CloudWatch log.

For an - * example of ingesting inline documents using Python and Java SDKs, see BatchGetDocumentStatus API to monitor the progress of indexing + * your documents.

For an example of ingesting inline documents using Python + * and Java SDKs, see Adding * files directly to an index.

See Also:

AWS @@ -475,10 +481,11 @@ namespace kendra * determine if index creation has completed, check the Status field * returned from a call to DescribeIndex. The Status * field is set to ACTIVE when the index is ready to use.

Once - * the index is active you can index your documents using the - * BatchPutDocument API or using one of the supported data - * sources.

For an example of creating an index and data source using the - * Python SDK, see BatchPutDocument API or using one of the supported data + * sources.

For an example of creating an index and data source using + * the Python SDK, see Getting * started with Python SDK. For an example of creating an index and data source * using the Java SDK, see DescribeDataSource API is set to DELETING. For more * information, see Deleting - * Data Sources.

See Also:

.

Deleting an entire data source or re-syncing your index + * after deleting specific documents from a data source could take up to an hour or + * more, depending on the number of documents you want to delete.

See + * Also:

AWS * API Reference

*/ @@ -1638,13 +1648,20 @@ namespace kendra * relevant passages. This doesn't include question-answer or FAQ type responses * from your index. The passages are text excerpts that can be semantically * extracted from multiple documents and multiple parts of the same document. If in - * extreme cases your documents produce no relevant passages using the - * Retrieve API, you can alternatively use the Query - * API.

You can also do the following:

  • Override boosting at - * the index level

  • Filter based on document fields or - * attributes

  • Filter based on the user or their group access to - * documents

You can also include certain fields in the response - * that might provide useful additional information.

See Also:

Retrieve API, you can alternatively use the Query API + * and its types of responses.

You can also do the following:

  • + *

    Override boosting at the index level

  • Filter based on + * document fields or attributes

  • Filter based on the user or + * their group access to documents

You can also include certain + * fields in the response that might provide useful additional information.

+ *

The Retrieve API shares the number of query + * capacity units that you set for your index. For more information on what's + * included in a single capacity unit and the default base capacity for an index, + * see Adjusting + * capacity.

See Also:

AWS API * Reference

*/ @@ -1671,7 +1688,10 @@ namespace kendra /** *

Starts a synchronization job for a data source connector. If a * synchronization job is already in progress, Amazon Kendra returns a - * ResourceInUseException exception.

See Also:

ResourceInUseException exception.

Re-syncing your data + * source with your index after modifying, adding, or deleting documents from your + * data source respository could take up to an hour or more, depending on the + * number of documents to sync.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/AttributeFilter.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/AttributeFilter.h index 8ba978092e8..187bd80b456 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/AttributeFilter.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/AttributeFilter.h @@ -25,19 +25,31 @@ namespace Model { /** - *

Provides filtering the query results based on document attributes or metadata - * fields.

When you use the AndAllFilters or - * OrAllFilters, filters you can use 2 layers under the first - * attribute filter. For example, you can use:

- * <AndAllFilters>

  1. - * <OrAllFilters>

  2. <EqualsTo> - *

If you use more than 2 layers, you receive a - * ValidationException exception with the message - * "AttributeFilter cannot have a depth of more than 2."

If you - * use more than 10 attribute filters in a given list for + *

Filters the search results based on document attributes or fields.

You + * can filter results using attributes for your particular documents. The + * attributes must exist in your index. For example, if your documents include the + * custom attribute "Department", you can filter documents that belong to the "HR" + * department. You would use the EqualsTo operation to filter results + * or documents with "Department" equals to "HR".

You can use + * AndAllFilters and AndOrFilters in combination with + * each other or with other operations such as EqualsTo. For + * example:

AndAllFilters

  • + * EqualsTo: "Department", "HR"

  • + * AndOrFilters

    • ContainsAny: "Project + * Name", ["new hires", "new hiring"]

This example + * filters results or documents that belong to the HR department and belong + * to projects that contain "new hires" or "new hiring" in the project name + * (must use ContainAny with StringListValue). This + * example is filtering with a depth of 2.

You cannot filter more than a + * depth of 2, otherwise you receive a ValidationException exception + * with the message "AttributeFilter cannot have a depth of more than 2." Also, if + * you use more than 10 attribute filters in a given list for * AndAllFilters or OrAllFilters, you receive a - * ValidationException with the message "AttributeFilter - * cannot have a length of more than 10".

See Also:

ValidationException with the message "AttributeFilter cannot have a + * length of more than 10".

For examples of using + * AttributeFilter, see Using + * document attributes to filter search results.

See Also:

AWS * API Reference

*/ @@ -51,409 +63,455 @@ namespace Model /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline const Aws::Vector& GetAndAllFilters() const{ return m_andAllFilters; } /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline bool AndAllFiltersHasBeenSet() const { return m_andAllFiltersHasBeenSet; } /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline void SetAndAllFilters(const Aws::Vector& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters = value; } /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline void SetAndAllFilters(Aws::Vector&& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters = std::move(value); } /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline AttributeFilter& WithAndAllFilters(const Aws::Vector& value) { SetAndAllFilters(value); return *this;} /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline AttributeFilter& WithAndAllFilters(Aws::Vector&& value) { SetAndAllFilters(std::move(value)); return *this;} /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline AttributeFilter& AddAndAllFilters(const AttributeFilter& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters.push_back(value); return *this; } /** - *

Performs a logical AND operation on all supplied filters.

+ *

Performs a logical AND operation on all filters that you + * specify.

*/ inline AttributeFilter& AddAndAllFilters(AttributeFilter&& value) { m_andAllFiltersHasBeenSet = true; m_andAllFilters.push_back(std::move(value)); return *this; } /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline const Aws::Vector& GetOrAllFilters() const{ return m_orAllFilters; } /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline bool OrAllFiltersHasBeenSet() const { return m_orAllFiltersHasBeenSet; } /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline void SetOrAllFilters(const Aws::Vector& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters = value; } /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline void SetOrAllFilters(Aws::Vector&& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters = std::move(value); } /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline AttributeFilter& WithOrAllFilters(const Aws::Vector& value) { SetOrAllFilters(value); return *this;} /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline AttributeFilter& WithOrAllFilters(Aws::Vector&& value) { SetOrAllFilters(std::move(value)); return *this;} /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline AttributeFilter& AddOrAllFilters(const AttributeFilter& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters.push_back(value); return *this; } /** - *

Performs a logical OR operation on all supplied filters.

+ *

Performs a logical OR operation on all filters that you + * specify.

*/ inline AttributeFilter& AddOrAllFilters(AttributeFilter&& value) { m_orAllFiltersHasBeenSet = true; m_orAllFilters.push_back(std::move(value)); return *this; } /** - *

Performs a logical NOT operation on all supplied filters.

+ *

Performs a logical NOT operation on all filters that you + * specify.

*/ AWS_KENDRA_API const AttributeFilter& GetNotFilter() const; /** - *

Performs a logical NOT operation on all supplied filters.

+ *

Performs a logical NOT operation on all filters that you + * specify.

*/ AWS_KENDRA_API bool NotFilterHasBeenSet() const; /** - *

Performs a logical NOT operation on all supplied filters.

+ *

Performs a logical NOT operation on all filters that you + * specify.

*/ AWS_KENDRA_API void SetNotFilter(const AttributeFilter& value); /** - *

Performs a logical NOT operation on all supplied filters.

+ *

Performs a logical NOT operation on all filters that you + * specify.

*/ AWS_KENDRA_API void SetNotFilter(AttributeFilter&& value); /** - *

Performs a logical NOT operation on all supplied filters.

+ *

Performs a logical NOT operation on all filters that you + * specify.

*/ AWS_KENDRA_API AttributeFilter& WithNotFilter(const AttributeFilter& value); /** - *

Performs a logical NOT operation on all supplied filters.

+ *

Performs a logical NOT operation on all filters that you + * specify.

*/ AWS_KENDRA_API AttributeFilter& WithNotFilter(AttributeFilter&& value); /** - *

Performs an equals operation on two document attributes or metadata - * fields.

+ *

Performs an equals operation on document attributes/fields and their + * values.

*/ inline const DocumentAttribute& GetEqualsTo() const{ return m_equalsTo; } /** - *

Performs an equals operation on two document attributes or metadata - * fields.

+ *

Performs an equals operation on document attributes/fields and their + * values.

*/ inline bool EqualsToHasBeenSet() const { return m_equalsToHasBeenSet; } /** - *

Performs an equals operation on two document attributes or metadata - * fields.

+ *

Performs an equals operation on document attributes/fields and their + * values.

*/ inline void SetEqualsTo(const DocumentAttribute& value) { m_equalsToHasBeenSet = true; m_equalsTo = value; } /** - *

Performs an equals operation on two document attributes or metadata - * fields.

+ *

Performs an equals operation on document attributes/fields and their + * values.

*/ inline void SetEqualsTo(DocumentAttribute&& value) { m_equalsToHasBeenSet = true; m_equalsTo = std::move(value); } /** - *

Performs an equals operation on two document attributes or metadata - * fields.

+ *

Performs an equals operation on document attributes/fields and their + * values.

*/ inline AttributeFilter& WithEqualsTo(const DocumentAttribute& value) { SetEqualsTo(value); return *this;} /** - *

Performs an equals operation on two document attributes or metadata - * fields.

+ *

Performs an equals operation on document attributes/fields and their + * values.

*/ inline AttributeFilter& WithEqualsTo(DocumentAttribute&& value) { SetEqualsTo(std::move(value)); return *this;} /** *

Returns true when a document contains all of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline const DocumentAttribute& GetContainsAll() const{ return m_containsAll; } /** *

Returns true when a document contains all of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline bool ContainsAllHasBeenSet() const { return m_containsAllHasBeenSet; } /** *

Returns true when a document contains all of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline void SetContainsAll(const DocumentAttribute& value) { m_containsAllHasBeenSet = true; m_containsAll = value; } /** *

Returns true when a document contains all of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline void SetContainsAll(DocumentAttribute&& value) { m_containsAllHasBeenSet = true; m_containsAll = std::move(value); } /** *

Returns true when a document contains all of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline AttributeFilter& WithContainsAll(const DocumentAttribute& value) { SetContainsAll(value); return *this;} /** *

Returns true when a document contains all of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline AttributeFilter& WithContainsAll(DocumentAttribute&& value) { SetContainsAll(std::move(value)); return *this;} /** *

Returns true when a document contains any of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline const DocumentAttribute& GetContainsAny() const{ return m_containsAny; } /** *

Returns true when a document contains any of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline bool ContainsAnyHasBeenSet() const { return m_containsAnyHasBeenSet; } /** *

Returns true when a document contains any of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline void SetContainsAny(const DocumentAttribute& value) { m_containsAnyHasBeenSet = true; m_containsAny = value; } /** *

Returns true when a document contains any of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline void SetContainsAny(DocumentAttribute&& value) { m_containsAnyHasBeenSet = true; m_containsAny = std::move(value); } /** *

Returns true when a document contains any of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline AttributeFilter& WithContainsAny(const DocumentAttribute& value) { SetContainsAny(value); return *this;} /** *

Returns true when a document contains any of the specified document - * attributes or metadata fields. This filter is only applicable to - * StringListValue metadata.

+ * attributes/fields. This filter is only applicable to StringListValue.

*/ inline AttributeFilter& WithContainsAny(DocumentAttribute&& value) { SetContainsAny(std::move(value)); return *this;} /** - *

Performs a greater than operation on two document attributes or metadata - * fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline const DocumentAttribute& GetGreaterThan() const{ return m_greaterThan; } /** - *

Performs a greater than operation on two document attributes or metadata - * fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline bool GreaterThanHasBeenSet() const { return m_greaterThanHasBeenSet; } /** - *

Performs a greater than operation on two document attributes or metadata - * fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline void SetGreaterThan(const DocumentAttribute& value) { m_greaterThanHasBeenSet = true; m_greaterThan = value; } /** - *

Performs a greater than operation on two document attributes or metadata - * fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline void SetGreaterThan(DocumentAttribute&& value) { m_greaterThanHasBeenSet = true; m_greaterThan = std::move(value); } /** - *

Performs a greater than operation on two document attributes or metadata - * fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithGreaterThan(const DocumentAttribute& value) { SetGreaterThan(value); return *this;} /** - *

Performs a greater than operation on two document attributes or metadata - * fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithGreaterThan(DocumentAttribute&& value) { SetGreaterThan(std::move(value)); return *this;} /** - *

Performs a greater or equals than operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater or equals than operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline const DocumentAttribute& GetGreaterThanOrEquals() const{ return m_greaterThanOrEquals; } /** - *

Performs a greater or equals than operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater or equals than operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline bool GreaterThanOrEqualsHasBeenSet() const { return m_greaterThanOrEqualsHasBeenSet; } /** - *

Performs a greater or equals than operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater or equals than operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline void SetGreaterThanOrEquals(const DocumentAttribute& value) { m_greaterThanOrEqualsHasBeenSet = true; m_greaterThanOrEquals = value; } /** - *

Performs a greater or equals than operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater or equals than operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline void SetGreaterThanOrEquals(DocumentAttribute&& value) { m_greaterThanOrEqualsHasBeenSet = true; m_greaterThanOrEquals = std::move(value); } /** - *

Performs a greater or equals than operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater or equals than operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithGreaterThanOrEquals(const DocumentAttribute& value) { SetGreaterThanOrEquals(value); return *this;} /** - *

Performs a greater or equals than operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a greater or equals than operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithGreaterThanOrEquals(DocumentAttribute&& value) { SetGreaterThanOrEquals(std::move(value)); return *this;} /** - *

Performs a less than operation on two document attributes or metadata fields. - * Use with a document attribute of type Date or - * Long.

+ *

Performs a less than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline const DocumentAttribute& GetLessThan() const{ return m_lessThan; } /** - *

Performs a less than operation on two document attributes or metadata fields. - * Use with a document attribute of type Date or - * Long.

+ *

Performs a less than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline bool LessThanHasBeenSet() const { return m_lessThanHasBeenSet; } /** - *

Performs a less than operation on two document attributes or metadata fields. - * Use with a document attribute of type Date or - * Long.

+ *

Performs a less than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline void SetLessThan(const DocumentAttribute& value) { m_lessThanHasBeenSet = true; m_lessThan = value; } /** - *

Performs a less than operation on two document attributes or metadata fields. - * Use with a document attribute of type Date or - * Long.

+ *

Performs a less than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline void SetLessThan(DocumentAttribute&& value) { m_lessThanHasBeenSet = true; m_lessThan = std::move(value); } /** - *

Performs a less than operation on two document attributes or metadata fields. - * Use with a document attribute of type Date or - * Long.

+ *

Performs a less than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithLessThan(const DocumentAttribute& value) { SetLessThan(value); return *this;} /** - *

Performs a less than operation on two document attributes or metadata fields. - * Use with a document attribute of type Date or - * Long.

+ *

Performs a less than operation on document attributes/fields and their + * values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithLessThan(DocumentAttribute&& value) { SetLessThan(std::move(value)); return *this;} /** - *

Performs a less than or equals operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a less than or equals operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline const DocumentAttribute& GetLessThanOrEquals() const{ return m_lessThanOrEquals; } /** - *

Performs a less than or equals operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a less than or equals operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline bool LessThanOrEqualsHasBeenSet() const { return m_lessThanOrEqualsHasBeenSet; } /** - *

Performs a less than or equals operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a less than or equals operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline void SetLessThanOrEquals(const DocumentAttribute& value) { m_lessThanOrEqualsHasBeenSet = true; m_lessThanOrEquals = value; } /** - *

Performs a less than or equals operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a less than or equals operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline void SetLessThanOrEquals(DocumentAttribute&& value) { m_lessThanOrEqualsHasBeenSet = true; m_lessThanOrEquals = std::move(value); } /** - *

Performs a less than or equals operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a less than or equals operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithLessThanOrEquals(const DocumentAttribute& value) { SetLessThanOrEquals(value); return *this;} /** - *

Performs a less than or equals operation on two document attributes or - * metadata fields. Use with a document attribute of type Date or - * Long.

+ *

Performs a less than or equals operation on document attributes/fields and + * their values. Use with the document + * attribute type Date or Long.

*/ inline AttributeFilter& WithLessThanOrEquals(DocumentAttribute&& value) { SetLessThanOrEquals(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/BatchPutDocumentResult.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/BatchPutDocumentResult.h index 05a127e653b..d345adbaf1e 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/BatchPutDocumentResult.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/BatchPutDocumentResult.h @@ -41,7 +41,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline const Aws::Vector& GetFailedDocuments() const{ return m_failedDocuments; } @@ -52,7 +52,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline void SetFailedDocuments(const Aws::Vector& value) { m_failedDocuments = value; } @@ -63,7 +63,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline void SetFailedDocuments(Aws::Vector&& value) { m_failedDocuments = std::move(value); } @@ -74,7 +74,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline BatchPutDocumentResult& WithFailedDocuments(const Aws::Vector& value) { SetFailedDocuments(value); return *this;} @@ -85,7 +85,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline BatchPutDocumentResult& WithFailedDocuments(Aws::Vector&& value) { SetFailedDocuments(std::move(value)); return *this;} @@ -96,7 +96,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline BatchPutDocumentResult& AddFailedDocuments(const BatchPutDocumentResponseFailedDocument& value) { m_failedDocuments.push_back(value); return *this; } @@ -107,7 +107,7 @@ namespace Model * an error adding a document to an index the error is reported in your Amazon Web * Services CloudWatch log. For more information, see Monitoring - * Amazon Kendra with Amazon CloudWatch Logs

+ * Amazon Kendra with Amazon CloudWatch logs.

*/ inline BatchPutDocumentResult& AddFailedDocuments(BatchPutDocumentResponseFailedDocument&& value) { m_failedDocuments.push_back(std::move(value)); return *this; } diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DataSourceToIndexFieldMapping.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DataSourceToIndexFieldMapping.h index 8ee6934900d..bd00b49f9c4 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DataSourceToIndexFieldMapping.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DataSourceToIndexFieldMapping.h @@ -24,9 +24,17 @@ namespace Model { /** - *

Maps a column or attribute in the data source to an index field. You must - * first create the fields in the index using the UpdateIndex - * API.

See Also:

Maps attributes or field names of the documents synced from the data source + * to Amazon Kendra index field names. You can set up field mappings for each data + * source when calling CreateDataSource + * or UpdateDataSource + * API. To create custom fields, use the UpdateIndex API to first + * create an index field and then map to the data source field. For more + * information, see Mapping + * data source fields.

See Also:

AWS * API Reference

*/ @@ -40,124 +48,156 @@ namespace Model /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline const Aws::String& GetDataSourceFieldName() const{ return m_dataSourceFieldName; } /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline bool DataSourceFieldNameHasBeenSet() const { return m_dataSourceFieldNameHasBeenSet; } /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline void SetDataSourceFieldName(const Aws::String& value) { m_dataSourceFieldNameHasBeenSet = true; m_dataSourceFieldName = value; } /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline void SetDataSourceFieldName(Aws::String&& value) { m_dataSourceFieldNameHasBeenSet = true; m_dataSourceFieldName = std::move(value); } /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline void SetDataSourceFieldName(const char* value) { m_dataSourceFieldNameHasBeenSet = true; m_dataSourceFieldName.assign(value); } /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline DataSourceToIndexFieldMapping& WithDataSourceFieldName(const Aws::String& value) { SetDataSourceFieldName(value); return *this;} /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline DataSourceToIndexFieldMapping& WithDataSourceFieldName(Aws::String&& value) { SetDataSourceFieldName(std::move(value)); return *this;} /** - *

The name of the column or attribute in the data source.

+ *

The name of the field in the data source. You must first create the index + * field using the UpdateIndex API.

*/ inline DataSourceToIndexFieldMapping& WithDataSourceFieldName(const char* value) { SetDataSourceFieldName(value); return *this;} /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline const Aws::String& GetDateFieldFormat() const{ return m_dateFieldFormat; } /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline bool DateFieldFormatHasBeenSet() const { return m_dateFieldFormatHasBeenSet; } /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline void SetDateFieldFormat(const Aws::String& value) { m_dateFieldFormatHasBeenSet = true; m_dateFieldFormat = value; } /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline void SetDateFieldFormat(Aws::String&& value) { m_dateFieldFormatHasBeenSet = true; m_dateFieldFormat = std::move(value); } /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline void SetDateFieldFormat(const char* value) { m_dateFieldFormatHasBeenSet = true; m_dateFieldFormat.assign(value); } /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline DataSourceToIndexFieldMapping& WithDateFieldFormat(const Aws::String& value) { SetDateFieldFormat(value); return *this;} /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline DataSourceToIndexFieldMapping& WithDateFieldFormat(Aws::String&& value) { SetDateFieldFormat(std::move(value)); return *this;} /** - *

The type of data stored in the column or attribute.

+ *

The format for date fields in the data source. If the field specified in + * DataSourceFieldName is a date field, you must specify the date + * format. If the field is not a date field, an exception is thrown.

*/ inline DataSourceToIndexFieldMapping& WithDateFieldFormat(const char* value) { SetDateFieldFormat(value); return *this;} /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline const Aws::String& GetIndexFieldName() const{ return m_indexFieldName; } /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline bool IndexFieldNameHasBeenSet() const { return m_indexFieldNameHasBeenSet; } /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline void SetIndexFieldName(const Aws::String& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = value; } /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline void SetIndexFieldName(Aws::String&& value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName = std::move(value); } /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline void SetIndexFieldName(const char* value) { m_indexFieldNameHasBeenSet = true; m_indexFieldName.assign(value); } /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline DataSourceToIndexFieldMapping& WithIndexFieldName(const Aws::String& value) { SetIndexFieldName(value); return *this;} /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline DataSourceToIndexFieldMapping& WithIndexFieldName(Aws::String&& value) { SetIndexFieldName(std::move(value)); return *this;} /** - *

The name of the field in the index.

+ *

The name of the index field to map to the data source field. The index field + * type must match the data source field type.

*/ inline DataSourceToIndexFieldMapping& WithIndexFieldName(const char* value) { SetIndexFieldName(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DatabaseConfiguration.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DatabaseConfiguration.h index 9a1c58fbef7..386491c1951 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DatabaseConfiguration.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DatabaseConfiguration.h @@ -29,8 +29,9 @@ namespace Model { /** - *

Provides the configuration information to connect to a index.

See - * Also:

Provides the configuration information to an Amazon + * Kendra supported database.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DocumentAttributeValueCountPair.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DocumentAttributeValueCountPair.h index 27142a8b343..be0520b74d8 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DocumentAttributeValueCountPair.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/DocumentAttributeValueCountPair.h @@ -27,8 +27,8 @@ namespace Model class FacetResult; /** - *

Provides the count of documents that match a particular attribute when doing - * a faceted search.

See Also:

Provides the count of documents that match a particular document attribute or + * field when doing a faceted search.

See Also:

AWS * API Reference

*/ @@ -42,63 +42,63 @@ namespace Model /** - *

The value of the attribute. For example, "HR".

+ *

The value of the attribute/field. For example, "HR".

*/ inline const DocumentAttributeValue& GetDocumentAttributeValue() const{ return m_documentAttributeValue; } /** - *

The value of the attribute. For example, "HR".

+ *

The value of the attribute/field. For example, "HR".

*/ inline bool DocumentAttributeValueHasBeenSet() const { return m_documentAttributeValueHasBeenSet; } /** - *

The value of the attribute. For example, "HR".

+ *

The value of the attribute/field. For example, "HR".

*/ inline void SetDocumentAttributeValue(const DocumentAttributeValue& value) { m_documentAttributeValueHasBeenSet = true; m_documentAttributeValue = value; } /** - *

The value of the attribute. For example, "HR".

+ *

The value of the attribute/field. For example, "HR".

*/ inline void SetDocumentAttributeValue(DocumentAttributeValue&& value) { m_documentAttributeValueHasBeenSet = true; m_documentAttributeValue = std::move(value); } /** - *

The value of the attribute. For example, "HR".

+ *

The value of the attribute/field. For example, "HR".

*/ inline DocumentAttributeValueCountPair& WithDocumentAttributeValue(const DocumentAttributeValue& value) { SetDocumentAttributeValue(value); return *this;} /** - *

The value of the attribute. For example, "HR".

+ *

The value of the attribute/field. For example, "HR".

*/ inline DocumentAttributeValueCountPair& WithDocumentAttributeValue(DocumentAttributeValue&& value) { SetDocumentAttributeValue(std::move(value)); return *this;} /** - *

The number of documents in the response that have the attribute value for the - * key.

+ *

The number of documents in the response that have the attribute/field value + * for the key.

*/ inline int GetCount() const{ return m_count; } /** - *

The number of documents in the response that have the attribute value for the - * key.

+ *

The number of documents in the response that have the attribute/field value + * for the key.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** - *

The number of documents in the response that have the attribute value for the - * key.

+ *

The number of documents in the response that have the attribute/field value + * for the key.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** - *

The number of documents in the response that have the attribute value for the - * key.

+ *

The number of documents in the response that have the attribute/field value + * for the key.

*/ inline DocumentAttributeValueCountPair& WithCount(int value) { SetCount(value); return *this;} /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -112,7 +112,7 @@ namespace Model inline const Aws::Vector& GetFacetResults() const{ return m_facetResults; } /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -126,7 +126,7 @@ namespace Model inline bool FacetResultsHasBeenSet() const { return m_facetResultsHasBeenSet; } /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -140,7 +140,7 @@ namespace Model inline void SetFacetResults(const Aws::Vector& value) { m_facetResultsHasBeenSet = true; m_facetResults = value; } /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -154,7 +154,7 @@ namespace Model inline void SetFacetResults(Aws::Vector&& value) { m_facetResultsHasBeenSet = true; m_facetResults = std::move(value); } /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -168,7 +168,7 @@ namespace Model inline DocumentAttributeValueCountPair& WithFacetResults(const Aws::Vector& value) { SetFacetResults(value); return *this;} /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -182,7 +182,7 @@ namespace Model inline DocumentAttributeValueCountPair& WithFacetResults(Aws::Vector&& value) { SetFacetResults(std::move(value)); return *this;} /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet @@ -196,7 +196,7 @@ namespace Model inline DocumentAttributeValueCountPair& AddFacetResults(const FacetResult& value) { m_facetResultsHasBeenSet = true; m_facetResults.push_back(value); return *this; } /** - *

Contains the results of a document attribute that is a nested facet. A + *

Contains the results of a document attribute/field that is a nested facet. A * FacetResult contains the counts for each facet nested within a * facet.

For example, the document attribute or facet "Department" includes * a value called "Engineering". In addition, the document attribute or facet diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/Facet.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/Facet.h index 8a2ef2081ee..93d355b4548 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/Facet.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/Facet.h @@ -25,10 +25,10 @@ namespace Model { /** - *

Information about a document attribute. You can use document attributes as - * facets.

For example, the document attribute or facet "Department" - * includes the values "HR", "Engineering", and "Accounting". You can display these - * values in the search results so that documents can be searched by + *

Information about a document attribute or field. You can use document + * attributes as facets.

For example, the document attribute or facet + * "Department" includes the values "HR", "Engineering", and "Accounting". You can + * display these values in the search results so that documents can be searched by * department.

You can display up to 10 facet values per facet for a query. * If you want to increase this limit, contact Support.

See Also:

diff --git a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/RetrieveResultItem.h b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/RetrieveResultItem.h index 6be2e7d4de1..1672afcbdd4 100644 --- a/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/RetrieveResultItem.h +++ b/generated/src/aws-cpp-sdk-kendra/include/aws/kendra/model/RetrieveResultItem.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -300,6 +301,49 @@ namespace Model */ inline RetrieveResultItem& AddDocumentAttributes(DocumentAttribute&& value) { m_documentAttributesHasBeenSet = true; m_documentAttributes.push_back(std::move(value)); return *this; } + + /** + *

The confidence score bucket for a retrieved passage result. The confidence + * bucket provides a relative ranking that indicates how confident Amazon Kendra is + * that the response is relevant to the query.

+ */ + inline const ScoreAttributes& GetScoreAttributes() const{ return m_scoreAttributes; } + + /** + *

The confidence score bucket for a retrieved passage result. The confidence + * bucket provides a relative ranking that indicates how confident Amazon Kendra is + * that the response is relevant to the query.

+ */ + inline bool ScoreAttributesHasBeenSet() const { return m_scoreAttributesHasBeenSet; } + + /** + *

The confidence score bucket for a retrieved passage result. The confidence + * bucket provides a relative ranking that indicates how confident Amazon Kendra is + * that the response is relevant to the query.

+ */ + inline void SetScoreAttributes(const ScoreAttributes& value) { m_scoreAttributesHasBeenSet = true; m_scoreAttributes = value; } + + /** + *

The confidence score bucket for a retrieved passage result. The confidence + * bucket provides a relative ranking that indicates how confident Amazon Kendra is + * that the response is relevant to the query.

+ */ + inline void SetScoreAttributes(ScoreAttributes&& value) { m_scoreAttributesHasBeenSet = true; m_scoreAttributes = std::move(value); } + + /** + *

The confidence score bucket for a retrieved passage result. The confidence + * bucket provides a relative ranking that indicates how confident Amazon Kendra is + * that the response is relevant to the query.

+ */ + inline RetrieveResultItem& WithScoreAttributes(const ScoreAttributes& value) { SetScoreAttributes(value); return *this;} + + /** + *

The confidence score bucket for a retrieved passage result. The confidence + * bucket provides a relative ranking that indicates how confident Amazon Kendra is + * that the response is relevant to the query.

+ */ + inline RetrieveResultItem& WithScoreAttributes(ScoreAttributes&& value) { SetScoreAttributes(std::move(value)); return *this;} + private: Aws::String m_id; @@ -319,6 +363,9 @@ namespace Model Aws::Vector m_documentAttributes; bool m_documentAttributesHasBeenSet = false; + + ScoreAttributes m_scoreAttributes; + bool m_scoreAttributesHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-kendra/source/KendraEndpointRules.cpp b/generated/src/aws-cpp-sdk-kendra/source/KendraEndpointRules.cpp index dc4a8ba170f..27a05db46ca 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/KendraEndpointRules.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/KendraEndpointRules.cpp @@ -10,8 +10,8 @@ namespace Aws { namespace kendra { -const size_t KendraEndpointRules::RulesBlobStrLen = 3724; -const size_t KendraEndpointRules::RulesBlobSize = 3725; +const size_t KendraEndpointRules::RulesBlobStrLen = 3472; +const size_t KendraEndpointRules::RulesBlobSize = 3473; using RulesBlobT = Aws::Array; static constexpr RulesBlobT RulesBlob = {{ @@ -59,111 +59,101 @@ static constexpr RulesBlobT RulesBlob = {{ 'n','f','i','g','u','r','a','t','i','o','n',':',' ','F','I','P','S',' ','a','n','d',' ','c','u','s', 't','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p', 'o','r','t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"', -'c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':','"','t','r', -'e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s', -'"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',', -'"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t', -'a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n', -'v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','D','u','a','l', -'s','t','a','c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t', -' ','a','r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e', -'"',':','"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':', -'[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e', -'f','"',':','"','E','n','d','p','o','i','n','t','"','}',',','"','p','r','o','p','e','r','t','i','e', -'s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e', -'"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o','n','d','i', -'t','i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"', -'r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"', -'f','n','"',':','"','i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f', -'"',':','"','R','e','g','i','o','n','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r', -'e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s', -'"',':','[','{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',', -'"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']', -',','"','a','s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l', -'t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s', -'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', -'b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"', -'r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',',','{','"', -'f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v', -'"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}', -',','t','r','u','e',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r', -'u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f', -'n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"', -':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a', -'r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e', -'s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}', -',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', -'r','g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r', -'"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i', -'o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S', -'t','a','c','k','"',']','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',', -'"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', -',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{', -'"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t', -'"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','k','e','n','d','r','a','-', -'f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R', -'e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}', -'"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r', -'s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}', -']','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r', -'r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u','a','l','S','t','a','c','k',' ', -'a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ','t','h','i','s',' ','p','a','r', -'t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','o', -'n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r', -'"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"', -':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', -'{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']', -',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{', -'"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l', -'e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',','{', -'"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"', -'r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"', -'s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',']',',','"','t','y','p','e','"', -':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t', -'i','o','n','s','"',':','[',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r', -'u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"', -'e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/', -'/','k','e','n','d','r','a','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a', -'r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"', -',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s', -'"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']', -'}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r', -'o','r','"',':','"','F','I','P','S',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ', -'t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s', -'u','p','p','o','r','t',' ','F','I','P','S','"',',','"','t','y','p','e','"',':','"','e','r','r','o', +'c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e', +'a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':', +'"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"', +'e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a', +'t','i','o','n',':',' ','D','u','a','l','s','t','a','c','k',' ','a','n','d',' ','c','u','s','t','o', +'m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p','o','r', +'t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{', +'"','u','r','l','"',':','{','"','r','e','f','"',':','"','E','n','d','p','o','i','n','t','"','}',',', +'"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"', +':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']','}', +',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s', +'S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i', +'o','n','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u', +'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n', +'"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r','g','v','"',':', +'[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a','s','s','i','g', +'n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',']',',','"','t', +'y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',',','{','"','f','n','"',':','"','b','o', +'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e', +'f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}', +']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[', +'{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o', +'l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',', +'{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{', +'"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',', +'"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"',':', +'"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t', +'r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v', +'"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l', +'t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}', +']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"', +':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o', +'i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','k','e','n','d', +'r','a','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i', +'o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f', +'i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a', +'d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n', +'t','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e', +'r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u','a','l','S','t','a','c','k', +' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ','t','h','i','s',' ','p','a', +'r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ', +'o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e','"',':','"','e','r','r','o', 'r','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n', '"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':', -'[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t', -'r','u','e',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l', -'e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"', -':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', -'t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g', -'v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u', -'l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']', -'}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s', -'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','t','y','p','e', +'[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r','u','e',']','}', +']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[', +'{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o', +'l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',', +'{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{', +'"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',', +'"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',']',',','"','t','y','p','e', '"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i', 't','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r', -'l','"',':','"','h','t','t','p','s',':','/','/','k','e','n','d','r','a','.','{','R','e','g','i','o', -'n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S', -'t','a','c','k','D','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i', -'e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p', -'e','"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o','n','d', -'i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','D','u','a','l','S', -'t','a','c','k',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ', -'p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r', -'t',' ','D','u','a','l','S','t','a','c','k','"',',','"','t','y','p','e','"',':','"','e','r','r','o', -'r','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','t', -'y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o', -'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{', -'"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','k','e','n','d','r','a','.','{','R','e', -'g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n', +'l','"',':','"','h','t','t','p','s',':','/','/','k','e','n','d','r','a','-','f','i','p','s','.','{', +'R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#', +'d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':', +'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', +'e','n','d','p','o','i','n','t','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s', +'"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','i','s',' ','e','n','a', +'b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d', +'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','F','I','P','S','"',',','"','t','y', +'p','e','"',':','"','e','r','r','o','r','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o', +'n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s', +'"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l', +'S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','t','y','p','e','"',':','"','t', +'r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"', +',','"','a','r','g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A', +'t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t', +'i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u', +'a','l','S','t','a','c','k','"',']','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e', +'e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"', +':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t', +'t','p','s',':','/','/','k','e','n','d','r','a','.','{','R','e','g','i','o','n','}','.','{','P','a', +'r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n', 's','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}', ',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n', -'d','p','o','i','n','t','"','}',']','}',']','}',']','}',',','{','"','c','o','n','d','i','t','i','o', +'d','p','o','i','n','t','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[',']',',','"','e','r','r','o','r','"',':','"','D','u','a','l','S','t','a','c','k',' ','i','s',' ', +'e','n','a','b','l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o', +'n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','D','u','a','l','S','t', +'a','c','k','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}',',','{','"', +'c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"', +':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','k','e','n','d','r','a','.','{', +'R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#', +'d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':', +'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', +'e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o','n','d','i','t','i','o', 'n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C', 'o','n','f','i','g','u','r','a','t','i','o','n',':',' ','M','i','s','s','i','n','g',' ','R','e','g', -'i','o','n','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}',']','}','\0' +'i','o','n','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}','\0' }}; const char* KendraEndpointRules::GetRulesBlob() diff --git a/generated/src/aws-cpp-sdk-kendra/source/model/RetrieveResultItem.cpp b/generated/src/aws-cpp-sdk-kendra/source/model/RetrieveResultItem.cpp index 454fd811087..4de33302b83 100644 --- a/generated/src/aws-cpp-sdk-kendra/source/model/RetrieveResultItem.cpp +++ b/generated/src/aws-cpp-sdk-kendra/source/model/RetrieveResultItem.cpp @@ -24,7 +24,8 @@ RetrieveResultItem::RetrieveResultItem() : m_documentTitleHasBeenSet(false), m_contentHasBeenSet(false), m_documentURIHasBeenSet(false), - m_documentAttributesHasBeenSet(false) + m_documentAttributesHasBeenSet(false), + m_scoreAttributesHasBeenSet(false) { } @@ -34,7 +35,8 @@ RetrieveResultItem::RetrieveResultItem(JsonView jsonValue) : m_documentTitleHasBeenSet(false), m_contentHasBeenSet(false), m_documentURIHasBeenSet(false), - m_documentAttributesHasBeenSet(false) + m_documentAttributesHasBeenSet(false), + m_scoreAttributesHasBeenSet(false) { *this = jsonValue; } @@ -86,6 +88,13 @@ RetrieveResultItem& RetrieveResultItem::operator =(JsonView jsonValue) m_documentAttributesHasBeenSet = true; } + if(jsonValue.ValueExists("ScoreAttributes")) + { + m_scoreAttributes = jsonValue.GetObject("ScoreAttributes"); + + m_scoreAttributesHasBeenSet = true; + } + return *this; } @@ -134,6 +143,12 @@ JsonValue RetrieveResultItem::Jsonize() const } + if(m_scoreAttributesHasBeenSet) + { + payload.WithObject("ScoreAttributes", m_scoreAttributes.Jsonize()); + + } + return payload; } 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 413def72642..c92b71c7df3 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.161" +#define AWS_SDK_VERSION_STRING "1.11.162" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 161 +#define AWS_SDK_VERSION_PATCH 162 diff --git a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json index e2c60af559e..f29003cbf21 100644 --- a/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json +++ b/tools/code-generation/api-descriptions/ec2-2016-11-15.normal.json @@ -3712,6 +3712,16 @@ "output":{"shape":"DisableFastSnapshotRestoresResult"}, "documentation":"

Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

" }, + "DisableImageBlockPublicAccess":{ + "name":"DisableImageBlockPublicAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableImageBlockPublicAccessRequest"}, + "output":{"shape":"DisableImageBlockPublicAccessResult"}, + "documentation":"

Disables block public access for AMIs at the account level in the specified Amazon Web Services Region. This removes the block public access restriction from your account. With the restriction removed, you can publicly share your AMIs in the specified Amazon Web Services Region.

The API can take up to 10 minutes to configure this setting. During this time, if you run GetImageBlockPublicAccessState, the response will be block-new-sharing. When the API has completed the configuration, the response will be unblocked.

For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

" + }, "DisableImageDeprecation":{ "name":"DisableImageDeprecation", "http":{ @@ -3969,6 +3979,16 @@ "output":{"shape":"EnableFastSnapshotRestoresResult"}, "documentation":"

Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

For more information, see Amazon EBS fast snapshot restore in the Amazon Elastic Compute Cloud User Guide.

" }, + "EnableImageBlockPublicAccess":{ + "name":"EnableImageBlockPublicAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableImageBlockPublicAccessRequest"}, + "output":{"shape":"EnableImageBlockPublicAccessResult"}, + "documentation":"

Enables block public access for AMIs at the account level in the specified Amazon Web Services Region. This prevents the public sharing of your AMIs. However, if you already have public AMIs, they will remain publicly available.

The API can take up to 10 minutes to configure this setting. During this time, if you run GetImageBlockPublicAccessState, the response will be unblocked. When the API has completed the configuration, the response will be block-new-sharing.

For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

" + }, "EnableImageDeprecation":{ "name":"EnableImageDeprecation", "http":{ @@ -4227,6 +4247,16 @@ "output":{"shape":"GetHostReservationPurchasePreviewResult"}, "documentation":"

Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

" }, + "GetImageBlockPublicAccessState":{ + "name":"GetImageBlockPublicAccessState", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetImageBlockPublicAccessStateRequest"}, + "output":{"shape":"GetImageBlockPublicAccessStateResult"}, + "documentation":"

Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.

For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

" + }, "GetInstanceTypesFromInstanceRequirements":{ "name":"GetInstanceTypesFromInstanceRequirements", "http":{ @@ -25154,6 +25184,25 @@ } } }, + "DisableImageBlockPublicAccessRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + } + } + }, + "DisableImageBlockPublicAccessResult":{ + "type":"structure", + "members":{ + "ImageBlockPublicAccessState":{ + "shape":"ImageBlockPublicAccessDisabledState", + "documentation":"

Returns unblocked if the request succeeds; otherwise, it returns an error.

", + "locationName":"imageBlockPublicAccessState" + } + } + }, "DisableImageDeprecationRequest":{ "type":"structure", "required":["ImageId"], @@ -26883,6 +26932,30 @@ } } }, + "EnableImageBlockPublicAccessRequest":{ + "type":"structure", + "required":["ImageBlockPublicAccessState"], + "members":{ + "ImageBlockPublicAccessState":{ + "shape":"ImageBlockPublicAccessEnabledState", + "documentation":"

Specify block-new-sharing to enable block public access for AMIs at the account level in the specified Region. This will block any attempt to publicly share your AMIs in the specified Region.

" + }, + "DryRun":{ + "shape":"Boolean", + "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + } + } + }, + "EnableImageBlockPublicAccessResult":{ + "type":"structure", + "members":{ + "ImageBlockPublicAccessState":{ + "shape":"ImageBlockPublicAccessEnabledState", + "documentation":"

Returns block-new-sharing if the request succeeds; otherwise, it returns an error.

", + "locationName":"imageBlockPublicAccessState" + } + } + }, "EnableImageDeprecationRequest":{ "type":"structure", "required":[ @@ -29554,6 +29627,25 @@ } } }, + "GetImageBlockPublicAccessStateRequest":{ + "type":"structure", + "members":{ + "DryRun":{ + "shape":"Boolean", + "documentation":"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

" + } + } + }, + "GetImageBlockPublicAccessStateResult":{ + "type":"structure", + "members":{ + "ImageBlockPublicAccessState":{ + "shape":"String", + "documentation":"

The current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.

Possible values:

  • block-new-sharing - Any attempt to publicly share your AMIs in the specified Region is blocked.

  • unblocked - Your AMIs in the specified Region can be publicly shared.

", + "locationName":"imageBlockPublicAccessState" + } + } + }, "GetInstanceTypesFromInstanceRequirementsRequest":{ "type":"structure", "required":[ @@ -31789,6 +31881,14 @@ "imdsSupport" ] }, + "ImageBlockPublicAccessDisabledState":{ + "type":"string", + "enum":["unblocked"] + }, + "ImageBlockPublicAccessEnabledState":{ + "type":"string", + "enum":["block-new-sharing"] + }, "ImageDiskContainer":{ "type":"structure", "members":{ diff --git a/tools/code-generation/api-descriptions/eventbridge-2015-10-07.normal.json b/tools/code-generation/api-descriptions/eventbridge-2015-10-07.normal.json index 9a0d3a3d902..deba6afc697 100644 --- a/tools/code-generation/api-descriptions/eventbridge-2015-10-07.normal.json +++ b/tools/code-generation/api-descriptions/eventbridge-2015-10-07.normal.json @@ -1053,6 +1053,13 @@ "min":1, "pattern":"^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$" }, + "AuthHeaderParametersSensitive":{ + "type":"string", + "max":512, + "min":1, + "pattern":"^[ \\t]*[^\\x00-\\x1F:\\x7F]+([ \\t]+[^\\x00-\\x1F:\\x7F]+)*[ \\t]*$", + "sensitive":true + }, "AwsVpcConfiguration":{ "type":"structure", "required":["Subnets"], @@ -1317,7 +1324,7 @@ "documentation":"

The key for the parameter.

" }, "Value":{ - "shape":"String", + "shape":"SensitiveString", "documentation":"

The value associated with the key.

" }, "IsValueSecret":{ @@ -1346,7 +1353,7 @@ "documentation":"

The key for the parameter.

" }, "Value":{ - "shape":"HeaderValue", + "shape":"HeaderValueSensitive", "documentation":"

The value associated with the key.

" }, "IsValueSecret":{ @@ -1434,7 +1441,7 @@ "documentation":"

The key for a query string parameter.

" }, "Value":{ - "shape":"QueryStringValue", + "shape":"QueryStringValueSensitive", "documentation":"

The value associated with the key for the query string parameter.

" }, "IsValueSecret":{ @@ -1589,7 +1596,7 @@ "documentation":"

The name of the API key to use for authorization.

" }, "ApiKeyValue":{ - "shape":"AuthHeaderParameters", + "shape":"AuthHeaderParametersSensitive", "documentation":"

The value for the API key to use for authorization.

" } }, @@ -1629,7 +1636,7 @@ "documentation":"

The user name to use for Basic authorization.

" }, "Password":{ - "shape":"AuthHeaderParameters", + "shape":"AuthHeaderParametersSensitive", "documentation":"

The password associated with the user name to use for Basic authorization.

" } }, @@ -1647,7 +1654,7 @@ "documentation":"

The client ID to use for OAuth authorization for the connection.

" }, "ClientSecret":{ - "shape":"AuthHeaderParameters", + "shape":"AuthHeaderParametersSensitive", "documentation":"

The client secret associated with the client ID to use for OAuth authorization for the connection.

" } }, @@ -2855,6 +2862,12 @@ "max":512, "pattern":"^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$" }, + "HeaderValueSensitive":{ + "type":"string", + "max":512, + "pattern":"^[ \\t]*[\\x20-\\x7E]+([ \\t]+[\\x20-\\x7E]+)*[ \\t]*$", + "sensitive":true + }, "HealthCheck":{ "type":"string", "max":1600, @@ -3934,6 +3947,12 @@ "max":512, "pattern":"[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+" }, + "QueryStringValueSensitive":{ + "type":"string", + "max":512, + "pattern":"[^\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F]+", + "sensitive":true + }, "RedshiftDataParameters":{ "type":"structure", "required":["Database"], @@ -4417,6 +4436,10 @@ "min":20, "pattern":"^arn:aws([a-z]|\\-)*:secretsmanager:([a-z]|\\d|\\-)*:([0-9]{12})?:secret:[\\/_+=\\.@\\-A-Za-z0-9]+$" }, + "SensitiveString":{ + "type":"string", + "sensitive":true + }, "Sql":{ "type":"string", "documentation":"A single Redshift SQL", @@ -4850,7 +4873,7 @@ "documentation":"

The name of the API key to use for authorization.

" }, "ApiKeyValue":{ - "shape":"AuthHeaderParameters", + "shape":"AuthHeaderParametersSensitive", "documentation":"

The value associated with teh API key to use for authorization.

" } }, @@ -4886,7 +4909,7 @@ "documentation":"

The user name to use for Basic authorization.

" }, "Password":{ - "shape":"AuthHeaderParameters", + "shape":"AuthHeaderParametersSensitive", "documentation":"

The password associated with the user name to use for Basic authorization.

" } }, @@ -4900,7 +4923,7 @@ "documentation":"

The client ID to use for OAuth authorization.

" }, "ClientSecret":{ - "shape":"AuthHeaderParameters", + "shape":"AuthHeaderParametersSensitive", "documentation":"

The client secret assciated with the client ID to use for OAuth authorization.

" } }, diff --git a/tools/code-generation/api-descriptions/kendra-2019-02-03.normal.json b/tools/code-generation/api-descriptions/kendra-2019-02-03.normal.json index 429a73cc0fd..b8fc0e0f169 100644 --- a/tools/code-generation/api-descriptions/kendra-2019-02-03.normal.json +++ b/tools/code-generation/api-descriptions/kendra-2019-02-03.normal.json @@ -66,7 +66,7 @@ {"shape":"AccessDeniedException"}, {"shape":"InternalServerException"} ], - "documentation":"

Removes one or more documents from an index. The documents must have been added with the BatchPutDocument API.

The documents are deleted asynchronously. You can see the progress of the deletion by using Amazon Web Services CloudWatch. Any error messages related to the processing of the batch are sent to you CloudWatch log.

" + "documentation":"

Removes one or more documents from an index. The documents must have been added with the BatchPutDocument API.

The documents are deleted asynchronously. You can see the progress of the deletion by using Amazon Web Services CloudWatch. Any error messages related to the processing of the batch are sent to your Amazon Web Services CloudWatch log. You can also use the BatchGetDocumentStatus API to monitor the progress of deleting your documents.

Deleting documents from an index using BatchDeleteDocument could take up to an hour or more, depending on the number of documents you want to delete.

" }, "BatchDeleteFeaturedResultsSet":{ "name":"BatchDeleteFeaturedResultsSet", @@ -120,7 +120,7 @@ {"shape":"ServiceQuotaExceededException"}, {"shape":"InternalServerException"} ], - "documentation":"

Adds one or more documents to an index.

The BatchPutDocument API enables you to ingest inline documents or a set of documents stored in an Amazon S3 bucket. Use this API to ingest your text and unstructured text into an index, add custom attributes to the documents, and to attach an access control list to the documents added to the index.

The documents are indexed asynchronously. You can see the progress of the batch using Amazon Web Services CloudWatch. Any error messages related to processing the batch are sent to your Amazon Web Services CloudWatch log.

For an example of ingesting inline documents using Python and Java SDKs, see Adding files directly to an index.

" + "documentation":"

Adds one or more documents to an index.

The BatchPutDocument API enables you to ingest inline documents or a set of documents stored in an Amazon S3 bucket. Use this API to ingest your text and unstructured text into an index, add custom attributes to the documents, and to attach an access control list to the documents added to the index.

The documents are indexed asynchronously. You can see the progress of the batch using Amazon Web Services CloudWatch. Any error messages related to processing the batch are sent to your Amazon Web Services CloudWatch log. You can also use the BatchGetDocumentStatus API to monitor the progress of indexing your documents.

For an example of ingesting inline documents using Python and Java SDKs, see Adding files directly to an index.

" }, "ClearQuerySuggestions":{ "name":"ClearQuerySuggestions", @@ -252,7 +252,7 @@ {"shape":"ConflictException"}, {"shape":"InternalServerException"} ], - "documentation":"

Creates an Amazon Kendra index. Index creation is an asynchronous API. To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use.

Once the index is active you can index your documents using the BatchPutDocument API or using one of the supported data sources.

For an example of creating an index and data source using the Python SDK, see Getting started with Python SDK. For an example of creating an index and data source using the Java SDK, see Getting started with Java SDK.

" + "documentation":"

Creates an Amazon Kendra index. Index creation is an asynchronous API. To determine if index creation has completed, check the Status field returned from a call to DescribeIndex. The Status field is set to ACTIVE when the index is ready to use.

Once the index is active, you can index your documents using the BatchPutDocument API or using one of the supported data sources.

For an example of creating an index and data source using the Python SDK, see Getting started with Python SDK. For an example of creating an index and data source using the Java SDK, see Getting started with Java SDK.

" }, "CreateQuerySuggestionsBlockList":{ "name":"CreateQuerySuggestionsBlockList", @@ -325,7 +325,7 @@ {"shape":"ThrottlingException"}, {"shape":"InternalServerException"} ], - "documentation":"

Deletes an Amazon Kendra data source connector. An exception is not thrown if the data source is already being deleted. While the data source is being deleted, the Status field returned by a call to the DescribeDataSource API is set to DELETING. For more information, see Deleting Data Sources.

" + "documentation":"

Deletes an Amazon Kendra data source connector. An exception is not thrown if the data source is already being deleted. While the data source is being deleted, the Status field returned by a call to the DescribeDataSource API is set to DELETING. For more information, see Deleting Data Sources.

Deleting an entire data source or re-syncing your index after deleting specific documents from a data source could take up to an hour or more, depending on the number of documents you want to delete.

" }, "DeleteExperience":{ "name":"DeleteExperience", @@ -945,7 +945,7 @@ {"shape":"ServiceQuotaExceededException"}, {"shape":"InternalServerException"} ], - "documentation":"

Retrieves relevant passages or text excerpts given an input query.

This API is similar to the Query API. However, by default, the Query API only returns excerpt passages of up to 100 token words. With the Retrieve API, you can retrieve longer passages of up to 200 token words and up to 100 semantically relevant passages. This doesn't include question-answer or FAQ type responses from your index. The passages are text excerpts that can be semantically extracted from multiple documents and multiple parts of the same document. If in extreme cases your documents produce no relevant passages using the Retrieve API, you can alternatively use the Query API.

You can also do the following:

  • Override boosting at the index level

  • Filter based on document fields or attributes

  • Filter based on the user or their group access to documents

You can also include certain fields in the response that might provide useful additional information.

" + "documentation":"

Retrieves relevant passages or text excerpts given an input query.

This API is similar to the Query API. However, by default, the Query API only returns excerpt passages of up to 100 token words. With the Retrieve API, you can retrieve longer passages of up to 200 token words and up to 100 semantically relevant passages. This doesn't include question-answer or FAQ type responses from your index. The passages are text excerpts that can be semantically extracted from multiple documents and multiple parts of the same document. If in extreme cases your documents produce zero passages using the Retrieve API, you can alternatively use the Query API and its types of responses.

You can also do the following:

  • Override boosting at the index level

  • Filter based on document fields or attributes

  • Filter based on the user or their group access to documents

You can also include certain fields in the response that might provide useful additional information.

The Retrieve API shares the number of query capacity units that you set for your index. For more information on what's included in a single capacity unit and the default base capacity for an index, see Adjusting capacity.

" }, "StartDataSourceSyncJob":{ "name":"StartDataSourceSyncJob", @@ -964,7 +964,7 @@ {"shape":"ConflictException"}, {"shape":"InternalServerException"} ], - "documentation":"

Starts a synchronization job for a data source connector. If a synchronization job is already in progress, Amazon Kendra returns a ResourceInUseException exception.

" + "documentation":"

Starts a synchronization job for a data source connector. If a synchronization job is already in progress, Amazon Kendra returns a ResourceInUseException exception.

Re-syncing your data source with your index after modifying, adding, or deleting documents from your data source respository could take up to an hour or more, depending on the number of documents to sync.

" }, "StopDataSourceSyncJob":{ "name":"StopDataSourceSyncJob", @@ -1428,46 +1428,46 @@ "members":{ "AndAllFilters":{ "shape":"AttributeFilterList", - "documentation":"

Performs a logical AND operation on all supplied filters.

" + "documentation":"

Performs a logical AND operation on all filters that you specify.

" }, "OrAllFilters":{ "shape":"AttributeFilterList", - "documentation":"

Performs a logical OR operation on all supplied filters.

" + "documentation":"

Performs a logical OR operation on all filters that you specify.

" }, "NotFilter":{ "shape":"AttributeFilter", - "documentation":"

Performs a logical NOT operation on all supplied filters.

" + "documentation":"

Performs a logical NOT operation on all filters that you specify.

" }, "EqualsTo":{ "shape":"DocumentAttribute", - "documentation":"

Performs an equals operation on two document attributes or metadata fields.

" + "documentation":"

Performs an equals operation on document attributes/fields and their values.

" }, "ContainsAll":{ "shape":"DocumentAttribute", - "documentation":"

Returns true when a document contains all of the specified document attributes or metadata fields. This filter is only applicable to StringListValue metadata.

" + "documentation":"

Returns true when a document contains all of the specified document attributes/fields. This filter is only applicable to StringListValue.

" }, "ContainsAny":{ "shape":"DocumentAttribute", - "documentation":"

Returns true when a document contains any of the specified document attributes or metadata fields. This filter is only applicable to StringListValue metadata.

" + "documentation":"

Returns true when a document contains any of the specified document attributes/fields. This filter is only applicable to StringListValue.

" }, "GreaterThan":{ "shape":"DocumentAttribute", - "documentation":"

Performs a greater than operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long.

" + "documentation":"

Performs a greater than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

" }, "GreaterThanOrEquals":{ "shape":"DocumentAttribute", - "documentation":"

Performs a greater or equals than operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long.

" + "documentation":"

Performs a greater or equals than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

" }, "LessThan":{ "shape":"DocumentAttribute", - "documentation":"

Performs a less than operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long.

" + "documentation":"

Performs a less than operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

" }, "LessThanOrEquals":{ "shape":"DocumentAttribute", - "documentation":"

Performs a less than or equals operation on two document attributes or metadata fields. Use with a document attribute of type Date or Long.

" + "documentation":"

Performs a less than or equals operation on document attributes/fields and their values. Use with the document attribute type Date or Long.

" } }, - "documentation":"

Provides filtering the query results based on document attributes or metadata fields.

When you use the AndAllFilters or OrAllFilters, filters you can use 2 layers under the first attribute filter. For example, you can use:

<AndAllFilters>

  1. <OrAllFilters>

  2. <EqualsTo>

If you use more than 2 layers, you receive a ValidationException exception with the message \"AttributeFilter cannot have a depth of more than 2.\"

If you use more than 10 attribute filters in a given list for AndAllFilters or OrAllFilters, you receive a ValidationException with the message \"AttributeFilter cannot have a length of more than 10\".

" + "documentation":"

Filters the search results based on document attributes or fields.

You can filter results using attributes for your particular documents. The attributes must exist in your index. For example, if your documents include the custom attribute \"Department\", you can filter documents that belong to the \"HR\" department. You would use the EqualsTo operation to filter results or documents with \"Department\" equals to \"HR\".

You can use AndAllFilters and AndOrFilters in combination with each other or with other operations such as EqualsTo. For example:

AndAllFilters

  • EqualsTo: \"Department\", \"HR\"

  • AndOrFilters

    • ContainsAny: \"Project Name\", [\"new hires\", \"new hiring\"]

This example filters results or documents that belong to the HR department and belong to projects that contain \"new hires\" or \"new hiring\" in the project name (must use ContainAny with StringListValue). This example is filtering with a depth of 2.

You cannot filter more than a depth of 2, otherwise you receive a ValidationException exception with the message \"AttributeFilter cannot have a depth of more than 2.\" Also, if you use more than 10 attribute filters in a given list for AndAllFilters or OrAllFilters, you receive a ValidationException with the message \"AttributeFilter cannot have a length of more than 10\".

For examples of using AttributeFilter, see Using document attributes to filter search results.

" }, "AttributeFilterList":{ "type":"list", @@ -1754,7 +1754,7 @@ "members":{ "FailedDocuments":{ "shape":"BatchPutDocumentResponseFailedDocuments", - "documentation":"

A list of documents that were not added to the index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.

If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch Logs

" + "documentation":"

A list of documents that were not added to the index because the document failed a validation check. Each document contains an error message that indicates why the document couldn't be added to the index.

If there was an error adding a document to an index the error is reported in your Amazon Web Services CloudWatch log. For more information, see Monitoring Amazon Kendra with Amazon CloudWatch logs.

" } } }, @@ -3133,18 +3133,18 @@ "members":{ "DataSourceFieldName":{ "shape":"DataSourceFieldName", - "documentation":"

The name of the column or attribute in the data source.

" + "documentation":"

The name of the field in the data source. You must first create the index field using the UpdateIndex API.

" }, "DateFieldFormat":{ "shape":"DataSourceDateFieldFormat", - "documentation":"

The type of data stored in the column or attribute.

" + "documentation":"

The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

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

The name of the field in the index.

" + "documentation":"

The name of the index field to map to the data source field. The index field type must match the data source field type.

" } }, - "documentation":"

Maps a column or attribute in the data source to an index field. You must first create the fields in the index using the UpdateIndex API.

" + "documentation":"

Maps attributes or field names of the documents synced from the data source to Amazon Kendra index field names. You can set up field mappings for each data source when calling CreateDataSource or UpdateDataSource API. To create custom fields, use the UpdateIndex API to first create an index field and then map to the data source field. For more information, see Mapping data source fields.

" }, "DataSourceToIndexFieldMappingList":{ "type":"list", @@ -3224,7 +3224,7 @@ "documentation":"

Provides information about how Amazon Kendra uses quote marks around SQL identifiers when querying a database data source.

" } }, - "documentation":"

Provides the configuration information to connect to a index.

" + "documentation":"

Provides the configuration information to an Amazon Kendra supported database.

" }, "DatabaseEngineType":{ "type":"string", @@ -4255,18 +4255,18 @@ "members":{ "DocumentAttributeValue":{ "shape":"DocumentAttributeValue", - "documentation":"

The value of the attribute. For example, \"HR\".

" + "documentation":"

The value of the attribute/field. For example, \"HR\".

" }, "Count":{ "shape":"Integer", - "documentation":"

The number of documents in the response that have the attribute value for the key.

" + "documentation":"

The number of documents in the response that have the attribute/field value for the key.

" }, "FacetResults":{ "shape":"FacetResultList", - "documentation":"

Contains the results of a document attribute that is a nested facet. A FacetResult contains the counts for each facet nested within a facet.

For example, the document attribute or facet \"Department\" includes a value called \"Engineering\". In addition, the document attribute or facet \"SubDepartment\" includes the values \"Frontend\" and \"Backend\" for documents assigned to \"Engineering\". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. The counts for documents that belong to \"Frontend\" and \"Backend\" within \"Engineering\" are returned for a query.

" + "documentation":"

Contains the results of a document attribute/field that is a nested facet. A FacetResult contains the counts for each facet nested within a facet.

For example, the document attribute or facet \"Department\" includes a value called \"Engineering\". In addition, the document attribute or facet \"SubDepartment\" includes the values \"Frontend\" and \"Backend\" for documents assigned to \"Engineering\". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. The counts for documents that belong to \"Frontend\" and \"Backend\" within \"Engineering\" are returned for a query.

" } }, - "documentation":"

Provides the count of documents that match a particular attribute when doing a faceted search.

" + "documentation":"

Provides the count of documents that match a particular document attribute or field when doing a faceted search.

" }, "DocumentAttributeValueCountPairList":{ "type":"list", @@ -4682,7 +4682,7 @@ "documentation":"

Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.

" } }, - "documentation":"

Information about a document attribute. You can use document attributes as facets.

For example, the document attribute or facet \"Department\" includes the values \"HR\", \"Engineering\", and \"Accounting\". You can display these values in the search results so that documents can be searched by department.

You can display up to 10 facet values per facet for a query. If you want to increase this limit, contact Support.

" + "documentation":"

Information about a document attribute or field. You can use document attributes as facets.

For example, the document attribute or facet \"Department\" includes the values \"HR\", \"Engineering\", and \"Accounting\". You can display these values in the search results so that documents can be searched by department.

You can display up to 10 facet values per facet for a query. If you want to increase this limit, contact Support.

" }, "FacetList":{ "type":"list", @@ -7230,6 +7230,10 @@ "DocumentAttributes":{ "shape":"DocumentAttributeList", "documentation":"

An array of document fields/attributes assigned to a document in the search results. For example, the document author (_author) or the source URI (_source_uri) of the document.

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

The confidence score bucket for a retrieved passage result. The confidence bucket provides a relative ranking that indicates how confident Amazon Kendra is that the response is relevant to the query.

" } }, "documentation":"

A single retrieved relevant passage result.

" diff --git a/tools/code-generation/endpoints/kendra-2019-02-03.endpoint-rule-set.json b/tools/code-generation/endpoints/kendra-2019-02-03.endpoint-rule-set.json index 1a902c84198..6caf5607266 100644 --- a/tools/code-generation/endpoints/kendra-2019-02-03.endpoint-rule-set.json +++ b/tools/code-generation/endpoints/kendra-2019-02-03.endpoint-rule-set.json @@ -58,52 +58,56 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, { - "conditions": [], + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], "type": "tree", @@ -111,13 +115,22 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], "type": "tree", @@ -127,224 +140,175 @@ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://kendra-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsFIPS" ] } ] - }, + } + ], + "type": "tree", + "rules": [ { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://kendra-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [], "endpoint": { - "url": "https://kendra.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://kendra.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://kendra.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" } ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file