Container for the parameters to the CreateTrail operation.
From the command line, use create-subscription.
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. The request includes a Trail structure that specifies the following:
- Trail name.
- The name of an existing Amazon S3 bucket to which CloudTrail delivers your log files.
- The name of the Amazon S3 key prefix that precedes each log file.
- The name of an existing Amazon SNS topic that notifies you that a new file is available in your bucket.
- Whether the log file should include AWS API calls from global services. Currently, the only global AWS API calls included in CloudTrail log files are from IAM and AWS STS.
| C# |
public class CreateTrailRequest : AmazonWebServiceRequest
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| CreateTrailRequest()()()() | Initializes a new instance of the CreateTrailRequest class | |
| Equals(Object) | (Inherited from Object.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
| IncludeGlobalServiceEvents | ||
| Name | ||
| S3BucketName | ||
| S3KeyPrefix | ||
| SnsTopicName | ||
| ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
| Trail | Obsolete.
Contains the Trail structure that specifies the settings for each trail.
| |
| WithIncludeGlobalServiceEvents(Boolean) | Obsolete.
Sets the IncludeGlobalServiceEvents property
| |
| WithName(String) | Obsolete.
Sets the Name property
| |
| WithS3BucketName(String) | Obsolete.
Sets the S3BucketName property
| |
| WithS3KeyPrefix(String) | Obsolete.
Sets the S3KeyPrefix property
| |
| WithSnsTopicName(String) | Obsolete.
Sets the SnsTopicName property
| |
| WithTrail(Trail) | Obsolete.
Sets the Trail property
|
| Object | ||
| AmazonWebServiceRequest | ||
| CreateTrailRequest | ||