@Override
    public StartLoggingResult startLogging(StartLoggingRequest request) {
        request = beforeClientExecution(request);
        return executeStartLogging(request);
    }
@ Override public StartLoggingResult startLogging ( StartLoggingRequest request ) { request = beforeClientExecution ( request ) ; return executeStartLogging ( request ) ; }
<p>
Starts the recording of AWS API calls and log file delivery for a trail. For a trail that is enabled in all
regions, this operation must be called from the region in which the trail was created. This operation cannot be
called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.
</p>

@param startLoggingRequest
The request to CloudTrail to start logging AWS API calls for an account.
@return Result of the StartLogging operation returned by the service.
@throws TrailNotFoundException
This exception is thrown when the trail with the given name is not found.
@throws InvalidTrailNameException
This exception is thrown when the provided trail name is not valid. Trail names must meet the following
requirements:</p>
<ul>
<li>
<p>
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
</p>
</li>
<li>
<p>
Start with a letter or number, and end with a letter or number
</p>
</li>
<li>
<p>
Be between 3 and 128 characters
</p>
</li>
<li>
<p>
Have no adjacent periods, underscores or dashes. Names like <code>my-_namespace</code> and
<code>my--namespace</code> are invalid.
</p>
</li>
<li>
<p>
Not be in IP address format (for example, 192.168.5.4)
</p>
</li>
@throws InvalidHomeRegionException
This exception is thrown when an operation is called on a trail from a region other than the region in
which the trail was created.
@throws UnsupportedOperationException
This exception is thrown when the requested operation is not supported.
@throws OperationNotPermittedException
This exception is thrown when the requested operation is not permitted.
@throws NotOrganizationMasterAccountException
This exception is thrown when the AWS account making the request to create or update an organization
trail is not the master account for an organization in AWS Organizations. For more information, see <a
href=
"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html"
>Prepare For Creating a Trail For Your Organization</a>.
@throws InsufficientDependencyServiceAccessPermissionException
This exception is thrown when the IAM user or role that is used to create the organization trail is
lacking one or more required permissions for creating an organization trail in a required service. For
more information, see <a href=
"https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html"
>Prepare For Creating a Trail For Your Organization</a>.
@sample AWSCloudTrail.StartLogging
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging" target="_top">AWS API
Documentation</a>