@SdkInternalApi
    final PutResourceAttributesResult executePutResourceAttributes(PutResourceAttributesRequest putResourceAttributesRequest) {

        ExecutionContext executionContext = createExecutionContext(putResourceAttributesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<PutResourceAttributesRequest> request = null;
        Response<PutResourceAttributesResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new PutResourceAttributesRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(putResourceAttributesRequest));
                // 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, "Migration Hub");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutResourceAttributes");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

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

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

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Provides identifying details of the resource being migrated so that it can be associated in the Application
Discovery Service repository. This association occurs asynchronously after <code>PutResourceAttributes</code>
returns.
</p>
<important>
<ul>
<li>
<p>
Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For
example, if it is first called with a MAC address, but later, it is desired to <i>add</i> an IP address, it will
then be required to call it with <i>both</i> the IP and MAC addresses to prevent overriding the MAC address.
</p>
</li>
<li>
<p>
Note the instructions regarding the special use case of the <a href=
"https://docs.aws.amazon.com/migrationhub/latest/ug/API_PutResourceAttributes.html#migrationhub-PutResourceAttributes-request-ResourceAttributeList"
> <code>ResourceAttributeList</code> </a> parameter when specifying any "VM" related value.
</p>
</li>
</ul>
</important> <note>
<p>
Because this is an asynchronous call, it will always return 200, whether an association occurs or not. To confirm
if an association was found based on the provided details, call <code>ListDiscoveredResources</code>.
</p>
</note>

@param putResourceAttributesRequest
@return Result of the PutResourceAttributes operation returned by the service.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws ThrottlingException
        The request was denied due to request throttling.
@throws InternalServerErrorException
        Exception raised when an internal, configuration, or dependency error is encountered.
@throws ServiceUnavailableException
        Exception raised when there is an internal, configuration, or dependency error encountered.
@throws DryRunOperationException
        Exception raised to indicate a successfully authorized action when the <code>DryRun</code> flag is set to
        "true".
@throws UnauthorizedOperationException
        Exception raised to indicate a request was not authorized when the <code>DryRun</code> flag is set to
        "true".
@throws InvalidInputException
        Exception raised when the provided input violates a policy constraint or is entered in the wrong format
        or data type.
@throws ResourceNotFoundException
        Exception raised when the request references a resource (Application Discovery Service configuration,
        update stream, migration task, etc.) that does not exist in Application Discovery Service (Application
        Discovery Service) or in Migration Hub's repository.
@throws HomeRegionNotSetException
        The home region is not set. Set the home region to continue.
@sample AWSMigrationHub.PutResourceAttributes
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/PutResourceAttributes"
     target="_top">AWS API Documentation</a>
aws-java-sdk-migrationhub/src/main/java/com/amazonaws/services/migrationhub/AWSMigrationHubClient.java