@SdkInternalApi
    final AssociateIpamByoasnResult executeAssociateIpamByoasn(AssociateIpamByoasnRequest associateIpamByoasnRequest) {

        ExecutionContext executionContext = createExecutionContext(associateIpamByoasnRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<AssociateIpamByoasnRequest> request = null;
        Response<AssociateIpamByoasnResult> response = null;

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

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

            StaxResponseHandler<AssociateIpamByoasnResult> responseHandler = new StaxResponseHandler<AssociateIpamByoasnResult>(
                    new AssociateIpamByoasnResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services
Region. For more information, see <a
href="https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-byoasn.html">Tutorial: Bring your ASN to IPAM</a> in
the <i>Amazon VPC IPAM guide</i>.
</p>
<p>
After the association succeeds, the ASN is eligible for advertisement. You can view the association with <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeByoipCidrs.html">DescribeByoipCidrs</a>.
You can advertise the CIDR with <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_AdvertiseByoipCidr.html">AdvertiseByoipCidr</a>.
</p>

@param associateIpamByoasnRequest
@return Result of the AssociateIpamByoasn operation returned by the service.
@sample AmazonEC2.AssociateIpamByoasn
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateIpamByoasn" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java