@SdkInternalApi
    final CreateSinkResult executeCreateSink(CreateSinkRequest createSinkRequest) {

        ExecutionContext executionContext = createExecutionContext(createSinkRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<CreateSinkRequest> request = null;
        Response<CreateSinkResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new CreateSinkRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createSinkRequest));
                // 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, "OAM");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSink");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Use this to create a <i>sink</i> in the current account, so that it can be used as a monitoring account in
CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring
account. Source accounts can link to the sink to send observability data.
</p>
<p>
After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more
information, see <a
href="https://docs.aws.amazon.com/OAM/latest/APIReference/API_PutSinkPolicy.html">PutSinkPolicy</a>.
</p>
<p>
Each account can contain one sink per Region. If you delete a sink, you can then create a new one in that Region.
</p>

@param createSinkRequest
@return Result of the CreateSink operation returned by the service.
@throws InternalServiceException
        Unexpected error while processing the request. Retry the request.
@throws ConflictException
        A resource was in an inconsistent state during an update or a deletion.
@throws MissingRequiredParameterException
        A required parameter is missing from the request.
@throws ServiceQuotaExceededException
        The request would cause a service quota to be exceeded.
@throws InvalidParameterException
        A parameter is specified incorrectly.
@sample AWSOAM.CreateSink
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/oam-2022-06-10/CreateSink" target="_top">AWS API
     Documentation</a>
aws-java-sdk-oam/src/main/java/com/amazonaws/services/oam/AWSOAMClient.java