AWS SDK for .NET Documentation
UpdateTrail Method (updateTrailRequest)
Amazon ► Amazon.CloudTrail ► AmazonCloudTrail ► UpdateTrail(UpdateTrailRequest)
Did this page help you? Yes No Tell us about it...

From the command line, use update-subscription.

Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. You use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. Use a Trail data type to pass updated bucket or topic names.

Declaration Syntax

C#

    UpdateTrailResponse UpdateTrail(
    	UpdateTrailRequest updateTrailRequest
    )

Parameters

updateTrailRequest (UpdateTrailRequest)
  Container for the necessary parameters to execute the UpdateTrail service method on AmazonCloudTrail.

Return Value
The response from the UpdateTrail service method, as returned by AmazonCloudTrail.
Exceptions

Exception | Condition
--- | ---
S3BucketDoesNotExistException |
InvalidS3PrefixException |
InvalidTrailNameException |
InvalidS3BucketNameException |
TrailNotProvidedException |
InsufficientSnsTopicPolicyException |
InvalidSnsTopicNameException |
InsufficientS3BucketPolicyException |
TrailNotFoundException |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)