@SdkInternalApi
    final CreateStreamingDistributionWithTagsResult executeCreateStreamingDistributionWithTags(
            CreateStreamingDistributionWithTagsRequest createStreamingDistributionWithTagsRequest) {

        ExecutionContext executionContext = createExecutionContext(createStreamingDistributionWithTagsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<CreateStreamingDistributionWithTagsRequest> request = null;
        Response<CreateStreamingDistributionWithTagsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new CreateStreamingDistributionWithTagsRequestMarshaller().marshall(super
                        .beforeMarshalling(createStreamingDistributionWithTagsRequest));
                // 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, "CloudFront");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateStreamingDistributionWithTags");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            StaxResponseHandler<CreateStreamingDistributionWithTagsResult> responseHandler = new StaxResponseHandler<CreateStreamingDistributionWithTagsResult>(
                    new CreateStreamingDistributionWithTagsResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
This API is deprecated. Amazon CloudFront is deprecating real-time messaging protocol (RTMP) distributions on
December 31, 2020. For more information, <a href="http://forums.aws.amazon.com/ann.jspa?annID=7356">read the
announcement</a> on the Amazon CloudFront discussion forum.
</p>

@param createStreamingDistributionWithTagsRequest
       The request to create a new streaming distribution with tags.
@return Result of the CreateStreamingDistributionWithTags operation returned by the service.
@throws CNAMEAlreadyExistsException
        The CNAME specified is already defined for CloudFront.
@throws StreamingDistributionAlreadyExistsException
        The caller reference you attempted to create the streaming distribution with is associated with another
        distribution
@throws InvalidOriginException
        The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.
@throws InvalidOriginAccessIdentityException
        The origin access identity is not valid or doesn't exist.
@throws InvalidOriginAccessControlException
        The origin access control is not valid.
@throws AccessDeniedException
        Access denied.
@throws TooManyTrustedSignersException
        Your request contains more trusted signers than are allowed per distribution.
@throws TrustedSignerDoesNotExistException
        One or more of your trusted signers don't exist.
@throws MissingBodyException
        This operation requires a body. Ensure that the body is present and the <code>Content-Type</code> header
        is set.
@throws TooManyStreamingDistributionCNAMEsException
        Your request contains more CNAMEs than are allowed per distribution.
@throws TooManyStreamingDistributionsException
        Processing your request would cause you to exceed the maximum number of streaming distributions allowed.
@throws InvalidArgumentException
        An argument is invalid.
@throws InconsistentQuantitiesException
        The value of <code>Quantity</code> and the size of <code>Items</code> don't match.
@throws InvalidTaggingException
        The tagging specified is not valid.
@sample AmazonCloudFront.CreateStreamingDistributionWithTags
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags"
     target="_top">AWS API Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java