@Override
    public CreateCloudFrontOriginAccessIdentityResult createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request) {
        request = beforeClientExecution(request);
        return executeCreateCloudFrontOriginAccessIdentity(request);
    }
<p>
Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access
identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more
information about how to use origin access identities, see <a
href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html">Serving Private
Content through CloudFront</a> in the <i>Amazon CloudFront Developer Guide</i>.
</p>

@param createCloudFrontOriginAccessIdentityRequest
       The request to create a new origin access identity (OAI). An origin access identity is a special
       CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of
       your Amazon S3 content. For more information, see <a href=
       "https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html"
       > Restricting Access to Amazon S3 Content by Using an Origin Access Identity</a> in the <i>Amazon
       CloudFront Developer Guide</i>.
@return Result of the CreateCloudFrontOriginAccessIdentity operation returned by the service.
@throws CloudFrontOriginAccessIdentityAlreadyExistsException
        If the <code>CallerReference</code> is a value you already sent in a previous request to create an
        identity but the content of the <code>CloudFrontOriginAccessIdentityConfig</code> is different from the
        original request, CloudFront returns a <code>CloudFrontOriginAccessIdentityAlreadyExists</code> error.
@throws MissingBodyException
        This operation requires a body. Ensure that the body is present and the <code>Content-Type</code> header
        is set.
@throws TooManyCloudFrontOriginAccessIdentitiesException
        Processing your request would cause you to exceed the maximum number of origin access identities 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.
@sample AmazonCloudFront.CreateCloudFrontOriginAccessIdentity
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity"
     target="_top">AWS API Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java