@SdkInternalApi
    final AssociateAccessGrantsIdentityCenterResult executeAssociateAccessGrantsIdentityCenter(
            AssociateAccessGrantsIdentityCenterRequest associateAccessGrantsIdentityCenterRequest) {

        ExecutionContext executionContext = createExecutionContext(associateAccessGrantsIdentityCenterRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<AssociateAccessGrantsIdentityCenterRequest> request = null;
        Response<AssociateAccessGrantsIdentityCenterResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new AssociateAccessGrantsIdentityCenterRequestMarshaller().marshall(super
                        .beforeMarshalling(associateAccessGrantsIdentityCenterRequest));
                // 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, "S3 Control");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "AssociateAccessGrantsIdentityCenter");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

            URI endpointTraitHost = null;
            if (!clientConfiguration.isDisableHostPrefixInjection()) {
                ValidationUtils.assertStringNotEmpty(associateAccessGrantsIdentityCenterRequest.getAccountId(), "AccountId");
                HostnameValidator.validateHostnameCompliant(associateAccessGrantsIdentityCenterRequest.getAccountId(), "AccountId",
                        "associateAccessGrantsIdentityCenterRequest");

                String hostPrefix = "{AccountId}.";
                String resolvedHostPrefix = String.format("%s.", associateAccessGrantsIdentityCenterRequest.getAccountId());

                endpointTraitHost = UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);
            }

            StaxResponseHandler<AssociateAccessGrantsIdentityCenterResult> responseHandler = new com.amazonaws.services.s3control.internal.S3ControlStaxResponseHandler<AssociateAccessGrantsIdentityCenterResult>(
                    new AssociateAccessGrantsIdentityCenterResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext, null, endpointTraitHost);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Associate your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance. Use this
action if you want to create access grants for users or groups from your corporate identity directory. First, you
must add your corporate identity directory to Amazon Web Services IAM Identity Center. Then, you can associate
this IAM Identity Center instance with your S3 Access Grants instance.
</p>
<dl>
<dt>Permissions</dt>
<dd>
<p>
You must have the <code>s3:AssociateAccessGrantsIdentityCenter</code> permission to use this operation.
</p>
</dd>
<dt>Additional Permissions</dt>
<dd>
<p>
You must also have the following permissions: <code>sso:CreateApplication</code>,
<code>sso:PutApplicationGrant</code>, and <code>sso:PutApplicationAuthenticationMethod</code>.
</p>
</dd>
</dl>

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