@Override
    public CreateAccessGrantsLocationResult createAccessGrantsLocation(CreateAccessGrantsLocationRequest request) {
        request = beforeClientExecution(request);
        return executeCreateAccessGrantsLocation(request);
    }
<p>
The S3 data location that you would like to register in your S3 Access Grants instance. Your S3 data must be in
the same Region as your S3 Access Grants instance. The location can be one of the following:
</p>
<ul>
<li>
<p>
The default S3 location <code>s3://</code>
</p>
</li>
<li>
<p>
A bucket - <code>S3://&lt;bucket-name&gt;</code>
</p>
</li>
<li>
<p>
A bucket and prefix - <code>S3://&lt;bucket-name&gt;/&lt;prefix&gt;</code>
</p>
</li>
</ul>
<p>
When you register a location, you must include the IAM role that has permission to manage the S3 location that
you are registering. Give S3 Access Grants permission to assume this role <a
href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-grants-location.html">using a policy</a>. S3
Access Grants assumes this role to manage access to the location and to vend temporary credentials to grantees or
client applications.
</p>
<dl>
<dt>Permissions</dt>
<dd>
<p>
You must have the <code>s3:CreateAccessGrantsLocation</code> permission to use this operation.
</p>
</dd>
<dt>Additional Permissions</dt>
<dd>
<p>
You must also have the following permission for the specified IAM role: <code>iam:PassRole</code>
</p>
</dd>
</dl>

@param createAccessGrantsLocationRequest
@return Result of the CreateAccessGrantsLocation operation returned by the service.
@sample AWSS3Control.CreateAccessGrantsLocation
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/CreateAccessGrantsLocation"
     target="_top">AWS API Documentation</a>
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/AWSS3ControlClient.java