& context = nullptr, const LeaveOrganizationRequestT& request = {}) const
{
- return SubmitAsync(&OrganizationsClient::LeaveOrganization, handler, context);
+ return SubmitAsync(&OrganizationsClient::LeaveOrganization, request, handler, context);
}
+
/**
* Returns a list of the Amazon Web Services services that you enabled to
* integrate with your organization. After a service on this list creates the
diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h
index e4b7dbbbf20..1e51420ca83 100644
--- a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h
+++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/OrganizationsServiceClientModel.h
@@ -108,15 +108,19 @@ namespace Aws
class CreateOrganizationalUnitRequest;
class CreatePolicyRequest;
class DeclineHandshakeRequest;
+ class DeleteOrganizationRequest;
class DeleteOrganizationalUnitRequest;
class DeletePolicyRequest;
+ class DeleteResourcePolicyRequest;
class DeregisterDelegatedAdministratorRequest;
class DescribeAccountRequest;
class DescribeCreateAccountStatusRequest;
class DescribeEffectivePolicyRequest;
class DescribeHandshakeRequest;
+ class DescribeOrganizationRequest;
class DescribeOrganizationalUnitRequest;
class DescribePolicyRequest;
+ class DescribeResourcePolicyRequest;
class DetachPolicyRequest;
class DisableAWSServiceAccessRequest;
class DisablePolicyTypeRequest;
@@ -124,6 +128,7 @@ namespace Aws
class EnableAllFeaturesRequest;
class EnablePolicyTypeRequest;
class InviteAccountToOrganizationRequest;
+ class LeaveOrganizationRequest;
class ListAWSServiceAccessForOrganizationRequest;
class ListAccountsRequest;
class ListAccountsForParentRequest;
@@ -280,19 +285,19 @@ namespace Aws
typedef std::function&) > CreateOrganizationalUnitResponseReceivedHandler;
typedef std::function&) > CreatePolicyResponseReceivedHandler;
typedef std::function&) > DeclineHandshakeResponseReceivedHandler;
- typedef std::function&) > DeleteOrganizationResponseReceivedHandler;
+ typedef std::function&) > DeleteOrganizationResponseReceivedHandler;
typedef std::function&) > DeleteOrganizationalUnitResponseReceivedHandler;
typedef std::function&) > DeletePolicyResponseReceivedHandler;
- typedef std::function&) > DeleteResourcePolicyResponseReceivedHandler;
+ typedef std::function&) > DeleteResourcePolicyResponseReceivedHandler;
typedef std::function&) > DeregisterDelegatedAdministratorResponseReceivedHandler;
typedef std::function&) > DescribeAccountResponseReceivedHandler;
typedef std::function&) > DescribeCreateAccountStatusResponseReceivedHandler;
typedef std::function&) > DescribeEffectivePolicyResponseReceivedHandler;
typedef std::function&) > DescribeHandshakeResponseReceivedHandler;
- typedef std::function&) > DescribeOrganizationResponseReceivedHandler;
+ typedef std::function&) > DescribeOrganizationResponseReceivedHandler;
typedef std::function&) > DescribeOrganizationalUnitResponseReceivedHandler;
typedef std::function&) > DescribePolicyResponseReceivedHandler;
- typedef std::function&) > DescribeResourcePolicyResponseReceivedHandler;
+ typedef std::function&) > DescribeResourcePolicyResponseReceivedHandler;
typedef std::function&) > DetachPolicyResponseReceivedHandler;
typedef std::function&) > DisableAWSServiceAccessResponseReceivedHandler;
typedef std::function&) > DisablePolicyTypeResponseReceivedHandler;
@@ -300,7 +305,7 @@ namespace Aws
typedef std::function&) > EnableAllFeaturesResponseReceivedHandler;
typedef std::function&) > EnablePolicyTypeResponseReceivedHandler;
typedef std::function&) > InviteAccountToOrganizationResponseReceivedHandler;
- typedef std::function&) > LeaveOrganizationResponseReceivedHandler;
+ typedef std::function&) > LeaveOrganizationResponseReceivedHandler;
typedef std::function&) > ListAWSServiceAccessForOrganizationResponseReceivedHandler;
typedef std::function&) > ListAccountsResponseReceivedHandler;
typedef std::function&) > ListAccountsForParentResponseReceivedHandler;
diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h
new file mode 100644
index 00000000000..db76070cb38
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteOrganizationRequest.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Organizations
+{
+namespace Model
+{
+
+ /**
+ */
+ class DeleteOrganizationRequest : public OrganizationsRequest
+ {
+ public:
+ AWS_ORGANIZATIONS_API DeleteOrganizationRequest();
+
+ // 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 "DeleteOrganization"; }
+
+ AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
+
+ AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ };
+
+} // namespace Model
+} // namespace Organizations
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h
new file mode 100644
index 00000000000..44630d79361
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DeleteResourcePolicyRequest.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Organizations
+{
+namespace Model
+{
+
+ /**
+ */
+ class DeleteResourcePolicyRequest : public OrganizationsRequest
+ {
+ public:
+ AWS_ORGANIZATIONS_API DeleteResourcePolicyRequest();
+
+ // 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 "DeleteResourcePolicy"; }
+
+ AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
+
+ AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ };
+
+} // namespace Model
+} // namespace Organizations
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h
new file mode 100644
index 00000000000..178c6da66f3
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeOrganizationRequest.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Organizations
+{
+namespace Model
+{
+
+ /**
+ */
+ class DescribeOrganizationRequest : public OrganizationsRequest
+ {
+ public:
+ AWS_ORGANIZATIONS_API DescribeOrganizationRequest();
+
+ // 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 "DescribeOrganization"; }
+
+ AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
+
+ AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ };
+
+} // namespace Model
+} // namespace Organizations
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h
new file mode 100644
index 00000000000..849832e3fc2
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/DescribeResourcePolicyRequest.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Organizations
+{
+namespace Model
+{
+
+ /**
+ */
+ class DescribeResourcePolicyRequest : public OrganizationsRequest
+ {
+ public:
+ AWS_ORGANIZATIONS_API DescribeResourcePolicyRequest();
+
+ // 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 "DescribeResourcePolicy"; }
+
+ AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
+
+ AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ };
+
+} // namespace Model
+} // namespace Organizations
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h
new file mode 100644
index 00000000000..84a69e538af
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/include/aws/organizations/model/LeaveOrganizationRequest.h
@@ -0,0 +1,38 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#pragma once
+#include
+#include
+
+namespace Aws
+{
+namespace Organizations
+{
+namespace Model
+{
+
+ /**
+ */
+ class LeaveOrganizationRequest : public OrganizationsRequest
+ {
+ public:
+ AWS_ORGANIZATIONS_API LeaveOrganizationRequest();
+
+ // 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 "LeaveOrganization"; }
+
+ AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
+
+ AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
+
+ };
+
+} // namespace Model
+} // namespace Organizations
+} // namespace Aws
diff --git a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp
index 6f8fc528383..c771794aeba 100644
--- a/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp
+++ b/generated/src/aws-cpp-sdk-organizations/source/OrganizationsClient.cpp
@@ -31,15 +31,19 @@
#include
#include
#include
+#include
#include
#include
+#include
#include
#include
#include
#include
#include
+#include
#include
#include
+#include
#include
#include
#include
@@ -47,6 +51,7 @@
#include
#include
#include
+#include
#include
#include
#include
@@ -464,32 +469,30 @@ DeclineHandshakeOutcome OrganizationsClient::DeclineHandshake(const DeclineHands
{{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
-DeleteOrganizationOutcome OrganizationsClient::DeleteOrganization() const
+DeleteOrganizationOutcome OrganizationsClient::DeleteOrganization(const DeleteOrganizationRequest& request) const
{
-AWS_OPERATION_GUARD(DeleteOrganization);
+ AWS_OPERATION_GUARD(DeleteOrganization);
+ AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {});
auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {});
AWS_OPERATION_CHECK_PTR(meter, DeleteOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteOrganization",
- {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }},
+ {{ 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(
[&]()-> DeleteOrganizationOutcome {
-
- AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
- const Aws::Vector staticEndpointParameters;
- auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming(
- [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); },
- TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC,
- *meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
- AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
- return DeleteOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DeleteOrganization"));
+ 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, DeleteOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
+ return DeleteOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
*meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
+ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
DeleteOrganizationalUnitOutcome OrganizationsClient::DeleteOrganizationalUnit(const DeleteOrganizationalUnitRequest& request) const
@@ -544,32 +547,30 @@ DeletePolicyOutcome OrganizationsClient::DeletePolicy(const DeletePolicyRequest&
{{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
-DeleteResourcePolicyOutcome OrganizationsClient::DeleteResourcePolicy() const
+DeleteResourcePolicyOutcome OrganizationsClient::DeleteResourcePolicy(const DeleteResourcePolicyRequest& request) const
{
-AWS_OPERATION_GUARD(DeleteResourcePolicy);
+ AWS_OPERATION_GUARD(DeleteResourcePolicy);
+ AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {});
auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {});
AWS_OPERATION_CHECK_PTR(meter, DeleteResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteResourcePolicy",
- {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteResourcePolicy" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }},
+ {{ 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(
[&]()-> DeleteResourcePolicyOutcome {
-
- AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
- const Aws::Vector staticEndpointParameters;
- auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming(
- [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); },
- TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC,
- *meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
- AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
- return DeleteResourcePolicyOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DeleteResourcePolicy"));
+ 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, DeleteResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
+ return DeleteResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
*meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DeleteResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
+ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
DeregisterDelegatedAdministratorOutcome OrganizationsClient::DeregisterDelegatedAdministrator(const DeregisterDelegatedAdministratorRequest& request) const
@@ -702,32 +703,30 @@ DescribeHandshakeOutcome OrganizationsClient::DescribeHandshake(const DescribeHa
{{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
-DescribeOrganizationOutcome OrganizationsClient::DescribeOrganization() const
+DescribeOrganizationOutcome OrganizationsClient::DescribeOrganization(const DescribeOrganizationRequest& request) const
{
-AWS_OPERATION_GUARD(DescribeOrganization);
+ AWS_OPERATION_GUARD(DescribeOrganization);
+ AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {});
auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {});
AWS_OPERATION_CHECK_PTR(meter, DescribeOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeOrganization",
- {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }},
+ {{ 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(
[&]()-> DescribeOrganizationOutcome {
-
- AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
- const Aws::Vector staticEndpointParameters;
- auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming(
- [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); },
- TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC,
- *meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
- AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
- return DescribeOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeOrganization"));
+ 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, DescribeOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
+ return DescribeOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
*meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
+ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
DescribeOrganizationalUnitOutcome OrganizationsClient::DescribeOrganizationalUnit(const DescribeOrganizationalUnitRequest& request) const
@@ -782,32 +781,30 @@ DescribePolicyOutcome OrganizationsClient::DescribePolicy(const DescribePolicyRe
{{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
-DescribeResourcePolicyOutcome OrganizationsClient::DescribeResourcePolicy() const
+DescribeResourcePolicyOutcome OrganizationsClient::DescribeResourcePolicy(const DescribeResourcePolicyRequest& request) const
{
-AWS_OPERATION_GUARD(DescribeResourcePolicy);
+ AWS_OPERATION_GUARD(DescribeResourcePolicy);
+ AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {});
auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {});
AWS_OPERATION_CHECK_PTR(meter, DescribeResourcePolicy, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeResourcePolicy",
- {{ TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeResourcePolicy" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }},
+ {{ 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(
[&]()-> DescribeResourcePolicyOutcome {
-
- AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
- const Aws::Vector staticEndpointParameters;
- auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming(
- [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); },
- TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC,
- *meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
- AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
- return DescribeResourcePolicyOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "DescribeResourcePolicy"));
+ 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, DescribeResourcePolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
+ return DescribeResourcePolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
*meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "DescribeResourcePolicy"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
+ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
DetachPolicyOutcome OrganizationsClient::DetachPolicy(const DetachPolicyRequest& request) const
@@ -992,32 +989,30 @@ InviteAccountToOrganizationOutcome OrganizationsClient::InviteAccountToOrganizat
{{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
-LeaveOrganizationOutcome OrganizationsClient::LeaveOrganization() const
+LeaveOrganizationOutcome OrganizationsClient::LeaveOrganization(const LeaveOrganizationRequest& request) const
{
-AWS_OPERATION_GUARD(LeaveOrganization);
+ AWS_OPERATION_GUARD(LeaveOrganization);
+ AWS_OPERATION_CHECK_PTR(m_endpointProvider, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
AWS_OPERATION_CHECK_PTR(m_telemetryProvider, LeaveOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {});
auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {});
AWS_OPERATION_CHECK_PTR(meter, LeaveOrganization, CoreErrors, CoreErrors::NOT_INITIALIZED);
auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".LeaveOrganization",
- {{ TracingUtils::SMITHY_METHOD_DIMENSION, "LeaveOrganization" }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }},
+ {{ 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(
[&]()-> LeaveOrganizationOutcome {
-
- AWS_OPERATION_CHECK_PTR(m_endpointProvider, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE);
- const Aws::Vector staticEndpointParameters;
- auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming(
- [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(staticEndpointParameters); },
- TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC,
- *meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "LeaveOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
- AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
- return LeaveOrganizationOutcome(MakeRequest(endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER, "LeaveOrganization"));
+ 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, LeaveOrganization, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage());
+ return LeaveOrganizationOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
},
TracingUtils::SMITHY_CLIENT_DURATION_METRIC,
*meter,
- {{TracingUtils::SMITHY_METHOD_DIMENSION, "LeaveOrganization"}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
+ {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}});
}
ListAWSServiceAccessForOrganizationOutcome OrganizationsClient::ListAWSServiceAccessForOrganization(const ListAWSServiceAccessForOrganizationRequest& request) const
diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp
new file mode 100644
index 00000000000..31defe37950
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteOrganizationRequest.cpp
@@ -0,0 +1,34 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Organizations::Model;
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+DeleteOrganizationRequest::DeleteOrganizationRequest()
+{
+}
+
+Aws::String DeleteOrganizationRequest::SerializePayload() const
+{
+ return "{}";
+}
+
+Aws::Http::HeaderValueCollection DeleteOrganizationRequest::GetRequestSpecificHeaders() const
+{
+ Aws::Http::HeaderValueCollection headers;
+ headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DeleteOrganization"));
+ return headers;
+
+}
+
+
+
+
diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp
new file mode 100644
index 00000000000..d279ac76218
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/source/model/DeleteResourcePolicyRequest.cpp
@@ -0,0 +1,34 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Organizations::Model;
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+DeleteResourcePolicyRequest::DeleteResourcePolicyRequest()
+{
+}
+
+Aws::String DeleteResourcePolicyRequest::SerializePayload() const
+{
+ return "{}";
+}
+
+Aws::Http::HeaderValueCollection DeleteResourcePolicyRequest::GetRequestSpecificHeaders() const
+{
+ Aws::Http::HeaderValueCollection headers;
+ headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DeleteResourcePolicy"));
+ return headers;
+
+}
+
+
+
+
diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp
new file mode 100644
index 00000000000..3eeeec82bea
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeOrganizationRequest.cpp
@@ -0,0 +1,34 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include
+
+#include
+
+using namespace Aws::Organizations::Model;
+using namespace Aws::Utils::Json;
+using namespace Aws::Utils;
+
+DescribeOrganizationRequest::DescribeOrganizationRequest()
+{
+}
+
+Aws::String DescribeOrganizationRequest::SerializePayload() const
+{
+ return "{}";
+}
+
+Aws::Http::HeaderValueCollection DescribeOrganizationRequest::GetRequestSpecificHeaders() const
+{
+ Aws::Http::HeaderValueCollection headers;
+ headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.DescribeOrganization"));
+ return headers;
+
+}
+
+
+
+
diff --git a/generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp
new file mode 100644
index 00000000000..03f1ecdaf65
--- /dev/null
+++ b/generated/src/aws-cpp-sdk-organizations/source/model/DescribeResourcePolicyRequest.cpp
@@ -0,0 +1,34 @@
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+
+#include
+#include