The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of ServiceControllerClient.
The optional options argument may be used to configure aspects of the returned ServiceControllerConnection. Expected options are any of the types in the following option lists:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe latest release candidate for the Service Control API is version 2.37.0-rc, while the most recent stable version available is 2.36.0.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides access to various versions of the Service Control API, ranging from the latest candidate release 2.37.0-rc, down to the older version 2.11.0, including links to the documentation for each.\u003c/p\u003e\n"],["\u003cp\u003eKey classes include \u003ccode\u003eServiceControllerClient\u003c/code\u003e, \u003ccode\u003eServiceControllerConnection\u003c/code\u003e, and several retry and idempotency policy classes that users can utilize to improve the reliability of their services.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeServiceControllerConnection\u003c/code\u003e function allows for the creation of a \u003ccode\u003eServiceControllerConnection\u003c/code\u003e object, accepting various options for configuration, as well as a series of common options, GRPC, and credentials option lists.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeDefaultServiceControllerConnectionIdempotencyPolicy\u003c/code\u003e function enables users to generate a default idempotency policy for \u003ccode\u003eServiceControllerConnection\u003c/code\u003e objects, enhancing the connection's resilience to errors.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::servicecontrol_v2 (2.17.0)\n\nVersion 2.17.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/servicecontrol/latest/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.41.0](/cpp/docs/reference/servicecontrol/2.41.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.40.0](/cpp/docs/reference/servicecontrol/2.40.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.39.0](/cpp/docs/reference/servicecontrol/2.39.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.38.0](/cpp/docs/reference/servicecontrol/2.38.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.37.0](/cpp/docs/reference/servicecontrol/2.37.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.36.0](/cpp/docs/reference/servicecontrol/2.36.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.35.0](/cpp/docs/reference/servicecontrol/2.35.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.34.0](/cpp/docs/reference/servicecontrol/2.34.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.33.0](/cpp/docs/reference/servicecontrol/2.33.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.32.0](/cpp/docs/reference/servicecontrol/2.32.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.31.0](/cpp/docs/reference/servicecontrol/2.31.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.30.0](/cpp/docs/reference/servicecontrol/2.30.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.29.0](/cpp/docs/reference/servicecontrol/2.29.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.28.0](/cpp/docs/reference/servicecontrol/2.28.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.27.0](/cpp/docs/reference/servicecontrol/2.27.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.26.0](/cpp/docs/reference/servicecontrol/2.26.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.25.1](/cpp/docs/reference/servicecontrol/2.25.1/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.24.0](/cpp/docs/reference/servicecontrol/2.24.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.23.0](/cpp/docs/reference/servicecontrol/2.23.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.22.1](/cpp/docs/reference/servicecontrol/2.22.1/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.21.0](/cpp/docs/reference/servicecontrol/2.21.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.20.0](/cpp/docs/reference/servicecontrol/2.20.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.19.0](/cpp/docs/reference/servicecontrol/2.19.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.18.0](/cpp/docs/reference/servicecontrol/2.18.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.17.0](/cpp/docs/reference/servicecontrol/2.17.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.16.0](/cpp/docs/reference/servicecontrol/2.16.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.15.1](/cpp/docs/reference/servicecontrol/2.15.1/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.14.0](/cpp/docs/reference/servicecontrol/2.14.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.13.0](/cpp/docs/reference/servicecontrol/2.13.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.12.0](/cpp/docs/reference/servicecontrol/2.12.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n- [2.11.0](/cpp/docs/reference/servicecontrol/2.11.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2) \n\nClasses\n-------\n\n### [ServiceControllerClient](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerClient)\n\n[Service Control API v2](https://cloud.google.com/service-infrastructure/docs/service-control/access-control)\n\n### [ServiceControllerConnection](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection)\n\nThe [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection) object for [`ServiceControllerClient`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerClient).\n\n### [ServiceControllerConnectionIdempotencyPolicy](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnectionIdempotencyPolicy)\n\n### [ServiceControllerLimitedErrorCountRetryPolicy](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerLimitedErrorCountRetryPolicy)\n\nA retry policy for [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection) based on counting errors.\n\n### [ServiceControllerLimitedTimeRetryPolicy](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerLimitedTimeRetryPolicy)\n\nA retry policy for [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection) based on elapsed time.\n\n### [ServiceControllerRetryPolicy](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerRetryPolicy)\n\nThe retry policy for [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection).\n\nStructs\n-------\n\n### [ServiceControllerBackoffPolicyOption](/cpp/docs/reference/servicecontrol/2.17.0/structgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerBackoffPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.\n\n### [ServiceControllerConnectionIdempotencyPolicyOption](/cpp/docs/reference/servicecontrol/2.17.0/structgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnectionIdempotencyPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.\n\n### [ServiceControllerRetryPolicyOption](/cpp/docs/reference/servicecontrol/2.17.0/structgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerRetryPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.\n\nFunctions\n---------\n\n### MakeServiceControllerConnection(Options)\n\nA factory function to construct an object of type [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [ServiceControllerClient](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`ServiceControllerConnection`](/cpp/docs/reference/servicecontrol/2.17.0/classgoogle_1_1cloud_1_1servicecontrol__v2_1_1ServiceControllerConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::GrpcOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::UnifiedCredentialsOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::servicecontrol_v2::ServiceControllerPolicyOptionList`](/cpp/docs/reference/servicecontrol/2.17.0/namespacegoogle_1_1cloud_1_1servicecontrol__v2)\n\n| **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.\n\n### MakeDefaultServiceControllerConnectionIdempotencyPolicy()\n\nType Aliases\n------------\n\n### ServiceControllerPolicyOptionList\n\n**Alias Of** : `OptionList\u003c ServiceControllerRetryPolicyOption, ServiceControllerBackoffPolicyOption, ServiceControllerConnectionIdempotencyPolicyOption \u003e` \nThe options applicable to ServiceController."]]