& 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:
+ */
+ 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:
+ */
+ 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:
+ */
+ 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:
+ */
+ 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:
+ */
+ 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:
+ */
+ 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:
+ */
+ 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