@SdkInternalApi
    final GetOrganizationCustomRulePolicyResult executeGetOrganizationCustomRulePolicy(
            GetOrganizationCustomRulePolicyRequest getOrganizationCustomRulePolicyRequest) {

        ExecutionContext executionContext = createExecutionContext(getOrganizationCustomRulePolicyRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetOrganizationCustomRulePolicyRequest> request = null;
        Response<GetOrganizationCustomRulePolicyResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetOrganizationCustomRulePolicyRequestProtocolMarshaller(protocolFactory).marshall(super
                        .beforeMarshalling(getOrganizationCustomRulePolicyRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Config Service");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetOrganizationCustomRulePolicy");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<GetOrganizationCustomRulePolicyResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
                    new GetOrganizationCustomRulePolicyResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Returns the policy definition containing the logic for your organization Config Custom Policy rule.
</p>

@param getOrganizationCustomRulePolicyRequest
@return Result of the GetOrganizationCustomRulePolicy operation returned by the service.
@throws NoSuchOrganizationConfigRuleException
        The Config rule in the request is not valid. Verify that the rule is an organization Config Process Check
        rule, that the rule name is correct, and that valid Amazon Resouce Names (ARNs) are used before trying
        again.
@throws OrganizationAccessDeniedException
        For <code>PutConfigurationAggregator</code> API, you can see this exception for the following
        reasons:</p>
        <ul>
        <li>
        <p>
        No permission to call <code>EnableAWSServiceAccess</code> API
        </p>
        </li>
        <li>
        <p>
        The configuration aggregator cannot be updated because your Amazon Web Services Organization management
        account or the delegated administrator role changed. Delete this aggregator and create a new one with the
        current Amazon Web Services Organization.
        </p>
        </li>
        <li>
        <p>
        The configuration aggregator is associated with a previous Amazon Web Services Organization and Config
        cannot aggregate data with current Amazon Web Services Organization. Delete this aggregator and create a
        new one with the current Amazon Web Services Organization.
        </p>
        </li>
        <li>
        <p>
        You are not a registered delegated administrator for Config with permissions to call
        <code>ListDelegatedAdministrators</code> API. Ensure that the management account registers delagated
        administrator for Config service principle name before the delegated administrator creates an aggregator.
        </p>
        </li>
        </ul>
        <p>
        For all <code>OrganizationConfigRule</code> and <code>OrganizationConformancePack</code> APIs, Config
        throws an exception if APIs are called from member accounts. All APIs must be called from organization
        management account.
@sample AmazonConfig.GetOrganizationCustomRulePolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetOrganizationCustomRulePolicy"
     target="_top">AWS API Documentation</a>
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/AmazonConfigClient.java