@SdkInternalApi
    final StartActivityStreamResult executeStartActivityStream(StartActivityStreamRequest startActivityStreamRequest) {

        ExecutionContext executionContext = createExecutionContext(startActivityStreamRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<StartActivityStreamRequest> request = null;
        Response<StartActivityStreamResult> response = null;

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

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

            StaxResponseHandler<StartActivityStreamResult> responseHandler = new StaxResponseHandler<StartActivityStreamResult>(
                    new StartActivityStreamResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Starts a database activity stream to monitor activity on the database. For more information, see <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/DBActivityStreams.html"> Monitoring Amazon
Aurora with Database Activity Streams</a> in the <i>Amazon Aurora User Guide</i> or <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/DBActivityStreams.html"> Monitoring Amazon RDS with
Database Activity Streams</a> in the <i>Amazon RDS User Guide</i>.
</p>

@param startActivityStreamRequest
@return Result of the StartActivityStream operation returned by the service.
@throws InvalidDBInstanceStateException
        The DB instance isn't in a valid state.
@throws InvalidDBClusterStateException
        The requested operation can't be performed while the cluster is in this state.
@throws ResourceNotFoundException
        The specified resource ID was not found.
@throws DBClusterNotFoundException
        <code>DBClusterIdentifier</code> doesn't refer to an existing DB cluster.
@throws DBInstanceNotFoundException
        <code>DBInstanceIdentifier</code> doesn't refer to an existing DB instance.
@throws KMSKeyNotAccessibleException
        An error occurred accessing an Amazon Web Services KMS key.
@sample AmazonRDS.StartActivityStream
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartActivityStream" target="_top">AWS API
     Documentation</a>
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/AmazonRDSClient.java