Documentation ¶
Overview ¶
Package cloudtrail provides the client and types for making API requests to AWS CloudTrail.
This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.
CloudTrail is a web service that records AWS API calls for your AWS account and delivers log files to an Amazon S3 bucket. The recorded information includes the identity of the user, the start time of the AWS API call, the source IP address, the request parameters, and the response elements returned by the service.
As an alternative to the API, you can use one of the AWS SDKs, which consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWSCloudTrail. For example, the SDKs take care of cryptographically signing requests, managing errors, and retrying requests automatically. For information about the AWS SDKs, including how to download and install them, see the Tools for Amazon Web Services page (http://aws.amazon.com/tools/).
See the AWS CloudTrail User Guide (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html) for information about the data that is included with each AWS API call listed in the log files.
See https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01 for more information on this service.
See cloudtrail package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudtrail/
Using the Client ¶
To contact AWS CloudTrail with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS CloudTrail client CloudTrail for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/cloudtrail/#New
Index ¶
- Constants
- func EventCategory_Values() []string
- func InsightType_Values() []string
- func LookupAttributeKey_Values() []string
- func ReadWriteType_Values() []string
- type ARNInvalidException
- func (s *ARNInvalidException) Code() string
- func (s *ARNInvalidException) Error() string
- func (s ARNInvalidException) GoString() string
- func (s *ARNInvalidException) Message() string
- func (s *ARNInvalidException) OrigErr() error
- func (s *ARNInvalidException) RequestID() string
- func (s *ARNInvalidException) StatusCode() int
- func (s ARNInvalidException) String() string
- type AccessNotEnabledException
- func (s *AccessNotEnabledException) Code() string
- func (s *AccessNotEnabledException) Error() string
- func (s AccessNotEnabledException) GoString() string
- func (s *AccessNotEnabledException) Message() string
- func (s *AccessNotEnabledException) OrigErr() error
- func (s *AccessNotEnabledException) RequestID() string
- func (s *AccessNotEnabledException) StatusCode() int
- func (s AccessNotEnabledException) String() string
- type AddTagsInput
- type AddTagsOutput
- type CloudTrail
- func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error)
- func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput)
- func (c *CloudTrail) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error)
- func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error)
- func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.Request, output *CreateTrailOutput)
- func (c *CloudTrail) CreateTrailWithContext(ctx aws.Context, input *CreateTrailInput, opts ...request.Option) (*CreateTrailOutput, error)
- func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error)
- func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.Request, output *DeleteTrailOutput)
- func (c *CloudTrail) DeleteTrailWithContext(ctx aws.Context, input *DeleteTrailInput, opts ...request.Option) (*DeleteTrailOutput, error)
- func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrailsOutput, error)
- func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *request.Request, output *DescribeTrailsOutput)
- func (c *CloudTrail) DescribeTrailsWithContext(ctx aws.Context, input *DescribeTrailsInput, opts ...request.Option) (*DescribeTrailsOutput, error)
- func (c *CloudTrail) GetEventSelectors(input *GetEventSelectorsInput) (*GetEventSelectorsOutput, error)
- func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (req *request.Request, output *GetEventSelectorsOutput)
- func (c *CloudTrail) GetEventSelectorsWithContext(ctx aws.Context, input *GetEventSelectorsInput, opts ...request.Option) (*GetEventSelectorsOutput, error)
- func (c *CloudTrail) GetInsightSelectors(input *GetInsightSelectorsInput) (*GetInsightSelectorsOutput, error)
- func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput) (req *request.Request, output *GetInsightSelectorsOutput)
- func (c *CloudTrail) GetInsightSelectorsWithContext(ctx aws.Context, input *GetInsightSelectorsInput, opts ...request.Option) (*GetInsightSelectorsOutput, error)
- func (c *CloudTrail) GetTrail(input *GetTrailInput) (*GetTrailOutput, error)
- func (c *CloudTrail) GetTrailRequest(input *GetTrailInput) (req *request.Request, output *GetTrailOutput)
- func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error)
- func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *request.Request, output *GetTrailStatusOutput)
- func (c *CloudTrail) GetTrailStatusWithContext(ctx aws.Context, input *GetTrailStatusInput, opts ...request.Option) (*GetTrailStatusOutput, error)
- func (c *CloudTrail) GetTrailWithContext(ctx aws.Context, input *GetTrailInput, opts ...request.Option) (*GetTrailOutput, error)
- func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error)
- func (c *CloudTrail) ListPublicKeysPages(input *ListPublicKeysInput, fn func(*ListPublicKeysOutput, bool) bool) error
- func (c *CloudTrail) ListPublicKeysPagesWithContext(ctx aws.Context, input *ListPublicKeysInput, ...) error
- func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput)
- func (c *CloudTrail) ListPublicKeysWithContext(ctx aws.Context, input *ListPublicKeysInput, opts ...request.Option) (*ListPublicKeysOutput, error)
- func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error)
- func (c *CloudTrail) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error
- func (c *CloudTrail) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, ...) error
- func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput)
- func (c *CloudTrail) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error)
- func (c *CloudTrail) ListTrails(input *ListTrailsInput) (*ListTrailsOutput, error)
- func (c *CloudTrail) ListTrailsPages(input *ListTrailsInput, fn func(*ListTrailsOutput, bool) bool) error
- func (c *CloudTrail) ListTrailsPagesWithContext(ctx aws.Context, input *ListTrailsInput, fn func(*ListTrailsOutput, bool) bool, ...) error
- func (c *CloudTrail) ListTrailsRequest(input *ListTrailsInput) (req *request.Request, output *ListTrailsOutput)
- func (c *CloudTrail) ListTrailsWithContext(ctx aws.Context, input *ListTrailsInput, opts ...request.Option) (*ListTrailsOutput, error)
- func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error)
- func (c *CloudTrail) LookupEventsPages(input *LookupEventsInput, fn func(*LookupEventsOutput, bool) bool) error
- func (c *CloudTrail) LookupEventsPagesWithContext(ctx aws.Context, input *LookupEventsInput, ...) error
- func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request.Request, output *LookupEventsOutput)
- func (c *CloudTrail) LookupEventsWithContext(ctx aws.Context, input *LookupEventsInput, opts ...request.Option) (*LookupEventsOutput, error)
- func (c *CloudTrail) PutEventSelectors(input *PutEventSelectorsInput) (*PutEventSelectorsOutput, error)
- func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (req *request.Request, output *PutEventSelectorsOutput)
- func (c *CloudTrail) PutEventSelectorsWithContext(ctx aws.Context, input *PutEventSelectorsInput, opts ...request.Option) (*PutEventSelectorsOutput, error)
- func (c *CloudTrail) PutInsightSelectors(input *PutInsightSelectorsInput) (*PutInsightSelectorsOutput, error)
- func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput) (req *request.Request, output *PutInsightSelectorsOutput)
- func (c *CloudTrail) PutInsightSelectorsWithContext(ctx aws.Context, input *PutInsightSelectorsInput, opts ...request.Option) (*PutInsightSelectorsOutput, error)
- func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error)
- func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput)
- func (c *CloudTrail) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error)
- func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error)
- func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request.Request, output *StartLoggingOutput)
- func (c *CloudTrail) StartLoggingWithContext(ctx aws.Context, input *StartLoggingInput, opts ...request.Option) (*StartLoggingOutput, error)
- func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error)
- func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.Request, output *StopLoggingOutput)
- func (c *CloudTrail) StopLoggingWithContext(ctx aws.Context, input *StopLoggingInput, opts ...request.Option) (*StopLoggingOutput, error)
- func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, error)
- func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.Request, output *UpdateTrailOutput)
- func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailInput, opts ...request.Option) (*UpdateTrailOutput, error)
- type CloudWatchLogsDeliveryUnavailableException
- func (s *CloudWatchLogsDeliveryUnavailableException) Code() string
- func (s *CloudWatchLogsDeliveryUnavailableException) Error() string
- func (s CloudWatchLogsDeliveryUnavailableException) GoString() string
- func (s *CloudWatchLogsDeliveryUnavailableException) Message() string
- func (s *CloudWatchLogsDeliveryUnavailableException) OrigErr() error
- func (s *CloudWatchLogsDeliveryUnavailableException) RequestID() string
- func (s *CloudWatchLogsDeliveryUnavailableException) StatusCode() int
- func (s CloudWatchLogsDeliveryUnavailableException) String() string
- type CreateTrailInput
- func (s CreateTrailInput) GoString() string
- func (s *CreateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetCloudWatchLogsRoleArn(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetEnableLogFileValidation(v bool) *CreateTrailInput
- func (s *CreateTrailInput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailInput
- func (s *CreateTrailInput) SetIsMultiRegionTrail(v bool) *CreateTrailInput
- func (s *CreateTrailInput) SetIsOrganizationTrail(v bool) *CreateTrailInput
- func (s *CreateTrailInput) SetKmsKeyId(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetName(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetS3BucketName(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetS3KeyPrefix(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetSnsTopicName(v string) *CreateTrailInput
- func (s *CreateTrailInput) SetTagsList(v []*Tag) *CreateTrailInput
- func (s CreateTrailInput) String() string
- func (s *CreateTrailInput) Validate() error
- type CreateTrailOutput
- func (s CreateTrailOutput) GoString() string
- func (s *CreateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetCloudWatchLogsRoleArn(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailOutput
- func (s *CreateTrailOutput) SetIsMultiRegionTrail(v bool) *CreateTrailOutput
- func (s *CreateTrailOutput) SetIsOrganizationTrail(v bool) *CreateTrailOutput
- func (s *CreateTrailOutput) SetKmsKeyId(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetLogFileValidationEnabled(v bool) *CreateTrailOutput
- func (s *CreateTrailOutput) SetName(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetS3BucketName(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetS3KeyPrefix(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetSnsTopicARN(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetSnsTopicName(v string) *CreateTrailOutput
- func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput
- func (s CreateTrailOutput) String() string
- type DataResource
- type DeleteTrailInput
- type DeleteTrailOutput
- type DescribeTrailsInput
- type DescribeTrailsOutput
- type Event
- func (s Event) GoString() string
- func (s *Event) SetAccessKeyId(v string) *Event
- func (s *Event) SetCloudTrailEvent(v string) *Event
- func (s *Event) SetEventId(v string) *Event
- func (s *Event) SetEventName(v string) *Event
- func (s *Event) SetEventSource(v string) *Event
- func (s *Event) SetEventTime(v time.Time) *Event
- func (s *Event) SetReadOnly(v string) *Event
- func (s *Event) SetResources(v []*Resource) *Event
- func (s *Event) SetUsername(v string) *Event
- func (s Event) String() string
- type EventSelector
- func (s EventSelector) GoString() string
- func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector
- func (s *EventSelector) SetExcludeManagementEventSources(v []*string) *EventSelector
- func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector
- func (s *EventSelector) SetReadWriteType(v string) *EventSelector
- func (s EventSelector) String() string
- type GetEventSelectorsInput
- type GetEventSelectorsOutput
- type GetInsightSelectorsInput
- type GetInsightSelectorsOutput
- type GetTrailInput
- type GetTrailOutput
- type GetTrailStatusInput
- type GetTrailStatusOutput
- func (s GetTrailStatusOutput) GoString() string
- func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryError(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryTime(v time.Time) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptSucceeded(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptTime(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestDeliveryError(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestDeliveryTime(v time.Time) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestDigestDeliveryError(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestDigestDeliveryTime(v time.Time) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestNotificationAttemptSucceeded(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestNotificationAttemptTime(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestNotificationError(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetLatestNotificationTime(v time.Time) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput
- func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput
- func (s GetTrailStatusOutput) String() string
- type InsightNotEnabledException
- func (s *InsightNotEnabledException) Code() string
- func (s *InsightNotEnabledException) Error() string
- func (s InsightNotEnabledException) GoString() string
- func (s *InsightNotEnabledException) Message() string
- func (s *InsightNotEnabledException) OrigErr() error
- func (s *InsightNotEnabledException) RequestID() string
- func (s *InsightNotEnabledException) StatusCode() int
- func (s InsightNotEnabledException) String() string
- type InsightSelector
- type InsufficientDependencyServiceAccessPermissionException
- func (s *InsufficientDependencyServiceAccessPermissionException) Code() string
- func (s *InsufficientDependencyServiceAccessPermissionException) Error() string
- func (s InsufficientDependencyServiceAccessPermissionException) GoString() string
- func (s *InsufficientDependencyServiceAccessPermissionException) Message() string
- func (s *InsufficientDependencyServiceAccessPermissionException) OrigErr() error
- func (s *InsufficientDependencyServiceAccessPermissionException) RequestID() string
- func (s *InsufficientDependencyServiceAccessPermissionException) StatusCode() int
- func (s InsufficientDependencyServiceAccessPermissionException) String() string
- type InsufficientEncryptionPolicyException
- func (s *InsufficientEncryptionPolicyException) Code() string
- func (s *InsufficientEncryptionPolicyException) Error() string
- func (s InsufficientEncryptionPolicyException) GoString() string
- func (s *InsufficientEncryptionPolicyException) Message() string
- func (s *InsufficientEncryptionPolicyException) OrigErr() error
- func (s *InsufficientEncryptionPolicyException) RequestID() string
- func (s *InsufficientEncryptionPolicyException) StatusCode() int
- func (s InsufficientEncryptionPolicyException) String() string
- type InsufficientS3BucketPolicyException
- func (s *InsufficientS3BucketPolicyException) Code() string
- func (s *InsufficientS3BucketPolicyException) Error() string
- func (s InsufficientS3BucketPolicyException) GoString() string
- func (s *InsufficientS3BucketPolicyException) Message() string
- func (s *InsufficientS3BucketPolicyException) OrigErr() error
- func (s *InsufficientS3BucketPolicyException) RequestID() string
- func (s *InsufficientS3BucketPolicyException) StatusCode() int
- func (s InsufficientS3BucketPolicyException) String() string
- type InsufficientSnsTopicPolicyException
- func (s *InsufficientSnsTopicPolicyException) Code() string
- func (s *InsufficientSnsTopicPolicyException) Error() string
- func (s InsufficientSnsTopicPolicyException) GoString() string
- func (s *InsufficientSnsTopicPolicyException) Message() string
- func (s *InsufficientSnsTopicPolicyException) OrigErr() error
- func (s *InsufficientSnsTopicPolicyException) RequestID() string
- func (s *InsufficientSnsTopicPolicyException) StatusCode() int
- func (s InsufficientSnsTopicPolicyException) String() string
- type InvalidCloudWatchLogsLogGroupArnException
- func (s *InvalidCloudWatchLogsLogGroupArnException) Code() string
- func (s *InvalidCloudWatchLogsLogGroupArnException) Error() string
- func (s InvalidCloudWatchLogsLogGroupArnException) GoString() string
- func (s *InvalidCloudWatchLogsLogGroupArnException) Message() string
- func (s *InvalidCloudWatchLogsLogGroupArnException) OrigErr() error
- func (s *InvalidCloudWatchLogsLogGroupArnException) RequestID() string
- func (s *InvalidCloudWatchLogsLogGroupArnException) StatusCode() int
- func (s InvalidCloudWatchLogsLogGroupArnException) String() string
- type InvalidCloudWatchLogsRoleArnException
- func (s *InvalidCloudWatchLogsRoleArnException) Code() string
- func (s *InvalidCloudWatchLogsRoleArnException) Error() string
- func (s InvalidCloudWatchLogsRoleArnException) GoString() string
- func (s *InvalidCloudWatchLogsRoleArnException) Message() string
- func (s *InvalidCloudWatchLogsRoleArnException) OrigErr() error
- func (s *InvalidCloudWatchLogsRoleArnException) RequestID() string
- func (s *InvalidCloudWatchLogsRoleArnException) StatusCode() int
- func (s InvalidCloudWatchLogsRoleArnException) String() string
- type InvalidEventCategoryException
- func (s *InvalidEventCategoryException) Code() string
- func (s *InvalidEventCategoryException) Error() string
- func (s InvalidEventCategoryException) GoString() string
- func (s *InvalidEventCategoryException) Message() string
- func (s *InvalidEventCategoryException) OrigErr() error
- func (s *InvalidEventCategoryException) RequestID() string
- func (s *InvalidEventCategoryException) StatusCode() int
- func (s InvalidEventCategoryException) String() string
- type InvalidEventSelectorsException
- func (s *InvalidEventSelectorsException) Code() string
- func (s *InvalidEventSelectorsException) Error() string
- func (s InvalidEventSelectorsException) GoString() string
- func (s *InvalidEventSelectorsException) Message() string
- func (s *InvalidEventSelectorsException) OrigErr() error
- func (s *InvalidEventSelectorsException) RequestID() string
- func (s *InvalidEventSelectorsException) StatusCode() int
- func (s InvalidEventSelectorsException) String() string
- type InvalidHomeRegionException
- func (s *InvalidHomeRegionException) Code() string
- func (s *InvalidHomeRegionException) Error() string
- func (s InvalidHomeRegionException) GoString() string
- func (s *InvalidHomeRegionException) Message() string
- func (s *InvalidHomeRegionException) OrigErr() error
- func (s *InvalidHomeRegionException) RequestID() string
- func (s *InvalidHomeRegionException) StatusCode() int
- func (s InvalidHomeRegionException) String() string
- type InvalidInsightSelectorsException
- func (s *InvalidInsightSelectorsException) Code() string
- func (s *InvalidInsightSelectorsException) Error() string
- func (s InvalidInsightSelectorsException) GoString() string
- func (s *InvalidInsightSelectorsException) Message() string
- func (s *InvalidInsightSelectorsException) OrigErr() error
- func (s *InvalidInsightSelectorsException) RequestID() string
- func (s *InvalidInsightSelectorsException) StatusCode() int
- func (s InvalidInsightSelectorsException) String() string
- type InvalidKmsKeyIdException
- func (s *InvalidKmsKeyIdException) Code() string
- func (s *InvalidKmsKeyIdException) Error() string
- func (s InvalidKmsKeyIdException) GoString() string
- func (s *InvalidKmsKeyIdException) Message() string
- func (s *InvalidKmsKeyIdException) OrigErr() error
- func (s *InvalidKmsKeyIdException) RequestID() string
- func (s *InvalidKmsKeyIdException) StatusCode() int
- func (s InvalidKmsKeyIdException) String() string
- type InvalidLookupAttributesException
- func (s *InvalidLookupAttributesException) Code() string
- func (s *InvalidLookupAttributesException) Error() string
- func (s InvalidLookupAttributesException) GoString() string
- func (s *InvalidLookupAttributesException) Message() string
- func (s *InvalidLookupAttributesException) OrigErr() error
- func (s *InvalidLookupAttributesException) RequestID() string
- func (s *InvalidLookupAttributesException) StatusCode() int
- func (s InvalidLookupAttributesException) String() string
- type InvalidMaxResultsException
- func (s *InvalidMaxResultsException) Code() string
- func (s *InvalidMaxResultsException) Error() string
- func (s InvalidMaxResultsException) GoString() string
- func (s *InvalidMaxResultsException) Message() string
- func (s *InvalidMaxResultsException) OrigErr() error
- func (s *InvalidMaxResultsException) RequestID() string
- func (s *InvalidMaxResultsException) StatusCode() int
- func (s InvalidMaxResultsException) String() string
- type InvalidNextTokenException
- func (s *InvalidNextTokenException) Code() string
- func (s *InvalidNextTokenException) Error() string
- func (s InvalidNextTokenException) GoString() string
- func (s *InvalidNextTokenException) Message() string
- func (s *InvalidNextTokenException) OrigErr() error
- func (s *InvalidNextTokenException) RequestID() string
- func (s *InvalidNextTokenException) StatusCode() int
- func (s InvalidNextTokenException) String() string
- type InvalidParameterCombinationException
- func (s *InvalidParameterCombinationException) Code() string
- func (s *InvalidParameterCombinationException) Error() string
- func (s InvalidParameterCombinationException) GoString() string
- func (s *InvalidParameterCombinationException) Message() string
- func (s *InvalidParameterCombinationException) OrigErr() error
- func (s *InvalidParameterCombinationException) RequestID() string
- func (s *InvalidParameterCombinationException) StatusCode() int
- func (s InvalidParameterCombinationException) String() string
- type InvalidS3BucketNameException
- func (s *InvalidS3BucketNameException) Code() string
- func (s *InvalidS3BucketNameException) Error() string
- func (s InvalidS3BucketNameException) GoString() string
- func (s *InvalidS3BucketNameException) Message() string
- func (s *InvalidS3BucketNameException) OrigErr() error
- func (s *InvalidS3BucketNameException) RequestID() string
- func (s *InvalidS3BucketNameException) StatusCode() int
- func (s InvalidS3BucketNameException) String() string
- type InvalidS3PrefixException
- func (s *InvalidS3PrefixException) Code() string
- func (s *InvalidS3PrefixException) Error() string
- func (s InvalidS3PrefixException) GoString() string
- func (s *InvalidS3PrefixException) Message() string
- func (s *InvalidS3PrefixException) OrigErr() error
- func (s *InvalidS3PrefixException) RequestID() string
- func (s *InvalidS3PrefixException) StatusCode() int
- func (s InvalidS3PrefixException) String() string
- type InvalidSnsTopicNameException
- func (s *InvalidSnsTopicNameException) Code() string
- func (s *InvalidSnsTopicNameException) Error() string
- func (s InvalidSnsTopicNameException) GoString() string
- func (s *InvalidSnsTopicNameException) Message() string
- func (s *InvalidSnsTopicNameException) OrigErr() error
- func (s *InvalidSnsTopicNameException) RequestID() string
- func (s *InvalidSnsTopicNameException) StatusCode() int
- func (s InvalidSnsTopicNameException) String() string
- type InvalidTagParameterException
- func (s *InvalidTagParameterException) Code() string
- func (s *InvalidTagParameterException) Error() string
- func (s InvalidTagParameterException) GoString() string
- func (s *InvalidTagParameterException) Message() string
- func (s *InvalidTagParameterException) OrigErr() error
- func (s *InvalidTagParameterException) RequestID() string
- func (s *InvalidTagParameterException) StatusCode() int
- func (s InvalidTagParameterException) String() string
- type InvalidTimeRangeException
- func (s *InvalidTimeRangeException) Code() string
- func (s *InvalidTimeRangeException) Error() string
- func (s InvalidTimeRangeException) GoString() string
- func (s *InvalidTimeRangeException) Message() string
- func (s *InvalidTimeRangeException) OrigErr() error
- func (s *InvalidTimeRangeException) RequestID() string
- func (s *InvalidTimeRangeException) StatusCode() int
- func (s InvalidTimeRangeException) String() string
- type InvalidTokenException
- func (s *InvalidTokenException) Code() string
- func (s *InvalidTokenException) Error() string
- func (s InvalidTokenException) GoString() string
- func (s *InvalidTokenException) Message() string
- func (s *InvalidTokenException) OrigErr() error
- func (s *InvalidTokenException) RequestID() string
- func (s *InvalidTokenException) StatusCode() int
- func (s InvalidTokenException) String() string
- type InvalidTrailNameException
- func (s *InvalidTrailNameException) Code() string
- func (s *InvalidTrailNameException) Error() string
- func (s InvalidTrailNameException) GoString() string
- func (s *InvalidTrailNameException) Message() string
- func (s *InvalidTrailNameException) OrigErr() error
- func (s *InvalidTrailNameException) RequestID() string
- func (s *InvalidTrailNameException) StatusCode() int
- func (s InvalidTrailNameException) String() string
- type KmsException
- func (s *KmsException) Code() string
- func (s *KmsException) Error() string
- func (s KmsException) GoString() string
- func (s *KmsException) Message() string
- func (s *KmsException) OrigErr() error
- func (s *KmsException) RequestID() string
- func (s *KmsException) StatusCode() int
- func (s KmsException) String() string
- type KmsKeyDisabledExceptiondeprecated
- func (s *KmsKeyDisabledException) Code() string
- func (s *KmsKeyDisabledException) Error() string
- func (s KmsKeyDisabledException) GoString() string
- func (s *KmsKeyDisabledException) Message() string
- func (s *KmsKeyDisabledException) OrigErr() error
- func (s *KmsKeyDisabledException) RequestID() string
- func (s *KmsKeyDisabledException) StatusCode() int
- func (s KmsKeyDisabledException) String() string
- type KmsKeyNotFoundException
- func (s *KmsKeyNotFoundException) Code() string
- func (s *KmsKeyNotFoundException) Error() string
- func (s KmsKeyNotFoundException) GoString() string
- func (s *KmsKeyNotFoundException) Message() string
- func (s *KmsKeyNotFoundException) OrigErr() error
- func (s *KmsKeyNotFoundException) RequestID() string
- func (s *KmsKeyNotFoundException) StatusCode() int
- func (s KmsKeyNotFoundException) String() string
- type ListPublicKeysInput
- func (s ListPublicKeysInput) GoString() string
- func (s *ListPublicKeysInput) SetEndTime(v time.Time) *ListPublicKeysInput
- func (s *ListPublicKeysInput) SetNextToken(v string) *ListPublicKeysInput
- func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput
- func (s ListPublicKeysInput) String() string
- type ListPublicKeysOutput
- type ListTagsInput
- type ListTagsOutput
- type ListTrailsInput
- type ListTrailsOutput
- type LookupAttribute
- type LookupEventsInput
- func (s LookupEventsInput) GoString() string
- func (s *LookupEventsInput) SetEndTime(v time.Time) *LookupEventsInput
- func (s *LookupEventsInput) SetEventCategory(v string) *LookupEventsInput
- func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput
- func (s *LookupEventsInput) SetMaxResults(v int64) *LookupEventsInput
- func (s *LookupEventsInput) SetNextToken(v string) *LookupEventsInput
- func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput
- func (s LookupEventsInput) String() string
- func (s *LookupEventsInput) Validate() error
- type LookupEventsOutput
- type MaximumNumberOfTrailsExceededException
- func (s *MaximumNumberOfTrailsExceededException) Code() string
- func (s *MaximumNumberOfTrailsExceededException) Error() string
- func (s MaximumNumberOfTrailsExceededException) GoString() string
- func (s *MaximumNumberOfTrailsExceededException) Message() string
- func (s *MaximumNumberOfTrailsExceededException) OrigErr() error
- func (s *MaximumNumberOfTrailsExceededException) RequestID() string
- func (s *MaximumNumberOfTrailsExceededException) StatusCode() int
- func (s MaximumNumberOfTrailsExceededException) String() string
- type NotOrganizationMasterAccountException
- func (s *NotOrganizationMasterAccountException) Code() string
- func (s *NotOrganizationMasterAccountException) Error() string
- func (s NotOrganizationMasterAccountException) GoString() string
- func (s *NotOrganizationMasterAccountException) Message() string
- func (s *NotOrganizationMasterAccountException) OrigErr() error
- func (s *NotOrganizationMasterAccountException) RequestID() string
- func (s *NotOrganizationMasterAccountException) StatusCode() int
- func (s NotOrganizationMasterAccountException) String() string
- type OperationNotPermittedException
- func (s *OperationNotPermittedException) Code() string
- func (s *OperationNotPermittedException) Error() string
- func (s OperationNotPermittedException) GoString() string
- func (s *OperationNotPermittedException) Message() string
- func (s *OperationNotPermittedException) OrigErr() error
- func (s *OperationNotPermittedException) RequestID() string
- func (s *OperationNotPermittedException) StatusCode() int
- func (s OperationNotPermittedException) String() string
- type OrganizationNotInAllFeaturesModeException
- func (s *OrganizationNotInAllFeaturesModeException) Code() string
- func (s *OrganizationNotInAllFeaturesModeException) Error() string
- func (s OrganizationNotInAllFeaturesModeException) GoString() string
- func (s *OrganizationNotInAllFeaturesModeException) Message() string
- func (s *OrganizationNotInAllFeaturesModeException) OrigErr() error
- func (s *OrganizationNotInAllFeaturesModeException) RequestID() string
- func (s *OrganizationNotInAllFeaturesModeException) StatusCode() int
- func (s OrganizationNotInAllFeaturesModeException) String() string
- type OrganizationsNotInUseException
- func (s *OrganizationsNotInUseException) Code() string
- func (s *OrganizationsNotInUseException) Error() string
- func (s OrganizationsNotInUseException) GoString() string
- func (s *OrganizationsNotInUseException) Message() string
- func (s *OrganizationsNotInUseException) OrigErr() error
- func (s *OrganizationsNotInUseException) RequestID() string
- func (s *OrganizationsNotInUseException) StatusCode() int
- func (s OrganizationsNotInUseException) String() string
- type PublicKey
- func (s PublicKey) GoString() string
- func (s *PublicKey) SetFingerprint(v string) *PublicKey
- func (s *PublicKey) SetValidityEndTime(v time.Time) *PublicKey
- func (s *PublicKey) SetValidityStartTime(v time.Time) *PublicKey
- func (s *PublicKey) SetValue(v []byte) *PublicKey
- func (s PublicKey) String() string
- type PutEventSelectorsInput
- func (s PutEventSelectorsInput) GoString() string
- func (s *PutEventSelectorsInput) SetEventSelectors(v []*EventSelector) *PutEventSelectorsInput
- func (s *PutEventSelectorsInput) SetTrailName(v string) *PutEventSelectorsInput
- func (s PutEventSelectorsInput) String() string
- func (s *PutEventSelectorsInput) Validate() error
- type PutEventSelectorsOutput
- type PutInsightSelectorsInput
- func (s PutInsightSelectorsInput) GoString() string
- func (s *PutInsightSelectorsInput) SetInsightSelectors(v []*InsightSelector) *PutInsightSelectorsInput
- func (s *PutInsightSelectorsInput) SetTrailName(v string) *PutInsightSelectorsInput
- func (s PutInsightSelectorsInput) String() string
- func (s *PutInsightSelectorsInput) Validate() error
- type PutInsightSelectorsOutput
- type RemoveTagsInput
- type RemoveTagsOutput
- type Resource
- type ResourceNotFoundException
- func (s *ResourceNotFoundException) Code() string
- func (s *ResourceNotFoundException) Error() string
- func (s ResourceNotFoundException) GoString() string
- func (s *ResourceNotFoundException) Message() string
- func (s *ResourceNotFoundException) OrigErr() error
- func (s *ResourceNotFoundException) RequestID() string
- func (s *ResourceNotFoundException) StatusCode() int
- func (s ResourceNotFoundException) String() string
- type ResourceTag
- type ResourceTypeNotSupportedException
- func (s *ResourceTypeNotSupportedException) Code() string
- func (s *ResourceTypeNotSupportedException) Error() string
- func (s ResourceTypeNotSupportedException) GoString() string
- func (s *ResourceTypeNotSupportedException) Message() string
- func (s *ResourceTypeNotSupportedException) OrigErr() error
- func (s *ResourceTypeNotSupportedException) RequestID() string
- func (s *ResourceTypeNotSupportedException) StatusCode() int
- func (s ResourceTypeNotSupportedException) String() string
- type S3BucketDoesNotExistException
- func (s *S3BucketDoesNotExistException) Code() string
- func (s *S3BucketDoesNotExistException) Error() string
- func (s S3BucketDoesNotExistException) GoString() string
- func (s *S3BucketDoesNotExistException) Message() string
- func (s *S3BucketDoesNotExistException) OrigErr() error
- func (s *S3BucketDoesNotExistException) RequestID() string
- func (s *S3BucketDoesNotExistException) StatusCode() int
- func (s S3BucketDoesNotExistException) String() string
- type StartLoggingInput
- type StartLoggingOutput
- type StopLoggingInput
- type StopLoggingOutput
- type Tag
- type TagsLimitExceededException
- func (s *TagsLimitExceededException) Code() string
- func (s *TagsLimitExceededException) Error() string
- func (s TagsLimitExceededException) GoString() string
- func (s *TagsLimitExceededException) Message() string
- func (s *TagsLimitExceededException) OrigErr() error
- func (s *TagsLimitExceededException) RequestID() string
- func (s *TagsLimitExceededException) StatusCode() int
- func (s TagsLimitExceededException) String() string
- type Trail
- func (s Trail) GoString() string
- func (s *Trail) SetCloudWatchLogsLogGroupArn(v string) *Trail
- func (s *Trail) SetCloudWatchLogsRoleArn(v string) *Trail
- func (s *Trail) SetHasCustomEventSelectors(v bool) *Trail
- func (s *Trail) SetHasInsightSelectors(v bool) *Trail
- func (s *Trail) SetHomeRegion(v string) *Trail
- func (s *Trail) SetIncludeGlobalServiceEvents(v bool) *Trail
- func (s *Trail) SetIsMultiRegionTrail(v bool) *Trail
- func (s *Trail) SetIsOrganizationTrail(v bool) *Trail
- func (s *Trail) SetKmsKeyId(v string) *Trail
- func (s *Trail) SetLogFileValidationEnabled(v bool) *Trail
- func (s *Trail) SetName(v string) *Trail
- func (s *Trail) SetS3BucketName(v string) *Trail
- func (s *Trail) SetS3KeyPrefix(v string) *Trail
- func (s *Trail) SetSnsTopicARN(v string) *Trail
- func (s *Trail) SetSnsTopicName(v string) *Trail
- func (s *Trail) SetTrailARN(v string) *Trail
- func (s Trail) String() string
- type TrailAlreadyExistsException
- func (s *TrailAlreadyExistsException) Code() string
- func (s *TrailAlreadyExistsException) Error() string
- func (s TrailAlreadyExistsException) GoString() string
- func (s *TrailAlreadyExistsException) Message() string
- func (s *TrailAlreadyExistsException) OrigErr() error
- func (s *TrailAlreadyExistsException) RequestID() string
- func (s *TrailAlreadyExistsException) StatusCode() int
- func (s TrailAlreadyExistsException) String() string
- type TrailInfo
- type TrailNotFoundException
- func (s *TrailNotFoundException) Code() string
- func (s *TrailNotFoundException) Error() string
- func (s TrailNotFoundException) GoString() string
- func (s *TrailNotFoundException) Message() string
- func (s *TrailNotFoundException) OrigErr() error
- func (s *TrailNotFoundException) RequestID() string
- func (s *TrailNotFoundException) StatusCode() int
- func (s TrailNotFoundException) String() string
- type TrailNotProvidedException
- func (s *TrailNotProvidedException) Code() string
- func (s *TrailNotProvidedException) Error() string
- func (s TrailNotProvidedException) GoString() string
- func (s *TrailNotProvidedException) Message() string
- func (s *TrailNotProvidedException) OrigErr() error
- func (s *TrailNotProvidedException) RequestID() string
- func (s *TrailNotProvidedException) StatusCode() int
- func (s TrailNotProvidedException) String() string
- type UnsupportedOperationException
- func (s *UnsupportedOperationException) Code() string
- func (s *UnsupportedOperationException) Error() string
- func (s UnsupportedOperationException) GoString() string
- func (s *UnsupportedOperationException) Message() string
- func (s *UnsupportedOperationException) OrigErr() error
- func (s *UnsupportedOperationException) RequestID() string
- func (s *UnsupportedOperationException) StatusCode() int
- func (s UnsupportedOperationException) String() string
- type UpdateTrailInput
- func (s UpdateTrailInput) GoString() string
- func (s *UpdateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailInput
- func (s *UpdateTrailInput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailInput
- func (s *UpdateTrailInput) SetEnableLogFileValidation(v bool) *UpdateTrailInput
- func (s *UpdateTrailInput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailInput
- func (s *UpdateTrailInput) SetIsMultiRegionTrail(v bool) *UpdateTrailInput
- func (s *UpdateTrailInput) SetIsOrganizationTrail(v bool) *UpdateTrailInput
- func (s *UpdateTrailInput) SetKmsKeyId(v string) *UpdateTrailInput
- func (s *UpdateTrailInput) SetName(v string) *UpdateTrailInput
- func (s *UpdateTrailInput) SetS3BucketName(v string) *UpdateTrailInput
- func (s *UpdateTrailInput) SetS3KeyPrefix(v string) *UpdateTrailInput
- func (s *UpdateTrailInput) SetSnsTopicName(v string) *UpdateTrailInput
- func (s UpdateTrailInput) String() string
- func (s *UpdateTrailInput) Validate() error
- type UpdateTrailOutput
- func (s UpdateTrailOutput) GoString() string
- func (s *UpdateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetIsMultiRegionTrail(v bool) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetIsOrganizationTrail(v bool) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetKmsKeyId(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetLogFileValidationEnabled(v bool) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetName(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetS3BucketName(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetS3KeyPrefix(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetSnsTopicARN(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetSnsTopicName(v string) *UpdateTrailOutput
- func (s *UpdateTrailOutput) SetTrailARN(v string) *UpdateTrailOutput
- func (s UpdateTrailOutput) String() string
Constants ¶
const ( // LookupAttributeKeyEventId is a LookupAttributeKey enum value LookupAttributeKeyEventId = "EventId" // LookupAttributeKeyEventName is a LookupAttributeKey enum value LookupAttributeKeyEventName = "EventName" // LookupAttributeKeyReadOnly is a LookupAttributeKey enum value LookupAttributeKeyReadOnly = "ReadOnly" // LookupAttributeKeyUsername is a LookupAttributeKey enum value LookupAttributeKeyUsername = "Username" // LookupAttributeKeyResourceType is a LookupAttributeKey enum value LookupAttributeKeyResourceType = "ResourceType" // LookupAttributeKeyResourceName is a LookupAttributeKey enum value LookupAttributeKeyResourceName = "ResourceName" // LookupAttributeKeyEventSource is a LookupAttributeKey enum value LookupAttributeKeyEventSource = "EventSource" // LookupAttributeKeyAccessKeyId is a LookupAttributeKey enum value LookupAttributeKeyAccessKeyId = "AccessKeyId" )
const ( // ReadWriteTypeReadOnly is a ReadWriteType enum value ReadWriteTypeReadOnly = "ReadOnly" // ReadWriteTypeWriteOnly is a ReadWriteType enum value ReadWriteTypeWriteOnly = "WriteOnly" // ReadWriteTypeAll is a ReadWriteType enum value ReadWriteTypeAll = "All" )
const ( // ErrCodeARNInvalidException for service response error code // "CloudTrailARNInvalidException". // // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail ErrCodeARNInvalidException = "CloudTrailARNInvalidException" // ErrCodeAccessNotEnabledException for service response error code // "CloudTrailAccessNotEnabledException". // // This exception is thrown when trusted access has not been enabled between // AWS CloudTrail and AWS Organizations. For more information, see Enabling // Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). ErrCodeAccessNotEnabledException = "CloudTrailAccessNotEnabledException" // "CloudWatchLogsDeliveryUnavailableException". // // Cannot set a CloudWatch Logs delivery for this region. ErrCodeCloudWatchLogsDeliveryUnavailableException = "CloudWatchLogsDeliveryUnavailableException" // ErrCodeInsightNotEnabledException for service response error code // "InsightNotEnabledException". // // If you run GetInsightSelectors on a trail that does not have Insights events // enabled, the operation throws the exception InsightNotEnabledException. ErrCodeInsightNotEnabledException = "InsightNotEnabledException" // ErrCodeInsufficientDependencyServiceAccessPermissionException for service response error code // "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 Prepare // For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). ErrCodeInsufficientDependencyServiceAccessPermissionException = "InsufficientDependencyServiceAccessPermissionException" // ErrCodeInsufficientEncryptionPolicyException for service response error code // "InsufficientEncryptionPolicyException". // // This exception is thrown when the policy on the S3 bucket or KMS key is not // sufficient. ErrCodeInsufficientEncryptionPolicyException = "InsufficientEncryptionPolicyException" // ErrCodeInsufficientS3BucketPolicyException for service response error code // "InsufficientS3BucketPolicyException". // // This exception is thrown when the policy on the S3 bucket is not sufficient. ErrCodeInsufficientS3BucketPolicyException = "InsufficientS3BucketPolicyException" // ErrCodeInsufficientSnsTopicPolicyException for service response error code // "InsufficientSnsTopicPolicyException". // // This exception is thrown when the policy on the SNS topic is not sufficient. ErrCodeInsufficientSnsTopicPolicyException = "InsufficientSnsTopicPolicyException" // ErrCodeInvalidCloudWatchLogsLogGroupArnException for service response error code // "InvalidCloudWatchLogsLogGroupArnException". // // This exception is thrown when the provided CloudWatch log group is not valid. ErrCodeInvalidCloudWatchLogsLogGroupArnException = "InvalidCloudWatchLogsLogGroupArnException" // ErrCodeInvalidCloudWatchLogsRoleArnException for service response error code // "InvalidCloudWatchLogsRoleArnException". // // This exception is thrown when the provided role is not valid. ErrCodeInvalidCloudWatchLogsRoleArnException = "InvalidCloudWatchLogsRoleArnException" // ErrCodeInvalidEventCategoryException for service response error code // "InvalidEventCategoryException". // // Occurs if an event category that is not valid is specified as a value of // EventCategory. ErrCodeInvalidEventCategoryException = "InvalidEventCategoryException" // ErrCodeInvalidEventSelectorsException for service response error code // "InvalidEventSelectorsException". // // This exception is thrown when the PutEventSelectors operation is called with // a number of event selectors or data resources that is not valid. The combination // of event selectors and data resources is not valid. A trail can have up to // 5 event selectors. A trail is limited to 250 data resources. These data resources // can be distributed across event selectors, but the overall total cannot exceed // 250. // // You can: // // * Specify a valid number of event selectors (1 to 5) for a trail. // // * Specify a valid number of data resources (1 to 250) for an event selector. // The limit of number of resources on an individual event selector is configurable // up to 250. However, this upper limit is allowed only if the total number // of data resources does not exceed 250 across all event selectors for a // trail. // // * Specify a valid value for a parameter. For example, specifying the ReadWriteType // parameter with a value of read-only is invalid. ErrCodeInvalidEventSelectorsException = "InvalidEventSelectorsException" // ErrCodeInvalidHomeRegionException for service response error code // "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. ErrCodeInvalidHomeRegionException = "InvalidHomeRegionException" // ErrCodeInvalidInsightSelectorsException for service response error code // "InvalidInsightSelectorsException". // // The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors // or GetInsightSelectors request is not valid, or the specified insight type // in the InsightSelectors statement is not a valid insight type. ErrCodeInvalidInsightSelectorsException = "InvalidInsightSelectorsException" // ErrCodeInvalidKmsKeyIdException for service response error code // "InvalidKmsKeyIdException". // // This exception is thrown when the KMS key ARN is invalid. ErrCodeInvalidKmsKeyIdException = "InvalidKmsKeyIdException" // ErrCodeInvalidLookupAttributesException for service response error code // "InvalidLookupAttributesException". // // Occurs when an invalid lookup attribute is specified. ErrCodeInvalidLookupAttributesException = "InvalidLookupAttributesException" // ErrCodeInvalidMaxResultsException for service response error code // "InvalidMaxResultsException". // // This exception is thrown if the limit specified is invalid. ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException" // ErrCodeInvalidNextTokenException for service response error code // "InvalidNextTokenException". // // Invalid token or token that was previously used in a request with different // parameters. This exception is thrown if the token is invalid. ErrCodeInvalidNextTokenException = "InvalidNextTokenException" // ErrCodeInvalidParameterCombinationException for service response error code // "InvalidParameterCombinationException". // // This exception is thrown when the combination of parameters provided is not // valid. ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException" // ErrCodeInvalidS3BucketNameException for service response error code // "InvalidS3BucketNameException". // // This exception is thrown when the provided S3 bucket name is not valid. ErrCodeInvalidS3BucketNameException = "InvalidS3BucketNameException" // ErrCodeInvalidS3PrefixException for service response error code // "InvalidS3PrefixException". // // This exception is thrown when the provided S3 prefix is not valid. ErrCodeInvalidS3PrefixException = "InvalidS3PrefixException" // ErrCodeInvalidSnsTopicNameException for service response error code // "InvalidSnsTopicNameException". // // This exception is thrown when the provided SNS topic name is not valid. ErrCodeInvalidSnsTopicNameException = "InvalidSnsTopicNameException" // ErrCodeInvalidTagParameterException for service response error code // "InvalidTagParameterException". // // This exception is thrown when the specified tag key or values are not valid. // It can also occur if there are duplicate tags or too many tags on the resource. ErrCodeInvalidTagParameterException = "InvalidTagParameterException" // ErrCodeInvalidTimeRangeException for service response error code // "InvalidTimeRangeException". // // Occurs if the timestamp values are invalid. Either the start time occurs // after the end time or the time range is outside the range of possible values. ErrCodeInvalidTimeRangeException = "InvalidTimeRangeException" // ErrCodeInvalidTokenException for service response error code // "InvalidTokenException". // // Reserved for future use. ErrCodeInvalidTokenException = "InvalidTokenException" // ErrCodeInvalidTrailNameException for service response error code // "InvalidTrailNameException". // // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores // (_), or dashes (-) // // * Start with a letter or number, and end with a letter or number // // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace // and my--namespace are invalid. // // * Not be in IP address format (for example, 192.168.5.4) ErrCodeInvalidTrailNameException = "InvalidTrailNameException" // ErrCodeKmsException for service response error code // "KmsException". // // This exception is thrown when there is an issue with the specified KMS key // and the trail can’t be updated. ErrCodeKmsException = "KmsException" // ErrCodeKmsKeyDisabledException for service response error code // "KmsKeyDisabledException". // // This exception is no longer in use. ErrCodeKmsKeyDisabledException = "KmsKeyDisabledException" // ErrCodeKmsKeyNotFoundException for service response error code // "KmsKeyNotFoundException". // // This exception is thrown when the KMS key does not exist, or when the S3 // bucket and the KMS key are not in the same region. ErrCodeKmsKeyNotFoundException = "KmsKeyNotFoundException" // ErrCodeMaximumNumberOfTrailsExceededException for service response error code // "MaximumNumberOfTrailsExceededException". // // This exception is thrown when the maximum number of trails is reached. ErrCodeMaximumNumberOfTrailsExceededException = "MaximumNumberOfTrailsExceededException" // ErrCodeNotOrganizationMasterAccountException for service response error code // "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 Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). ErrCodeNotOrganizationMasterAccountException = "NotOrganizationMasterAccountException" // ErrCodeOperationNotPermittedException for service response error code // "OperationNotPermittedException". // // This exception is thrown when the requested operation is not permitted. ErrCodeOperationNotPermittedException = "OperationNotPermittedException" // ErrCodeOrganizationNotInAllFeaturesModeException for service response error code // "OrganizationNotInAllFeaturesModeException". // // This exception is thrown when AWS Organizations is not configured to support // all features. All features must be enabled in AWS Organization to support // creating an organization trail. For more information, see Prepare For Creating // a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). ErrCodeOrganizationNotInAllFeaturesModeException = "OrganizationNotInAllFeaturesModeException" // ErrCodeOrganizationsNotInUseException for service response error code // "OrganizationsNotInUseException". // // This exception is thrown when the request is made from an AWS account that // is not a member of an organization. To make this request, sign in using the // credentials of an account that belongs to an organization. ErrCodeOrganizationsNotInUseException = "OrganizationsNotInUseException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // This exception is thrown when the specified resource is not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeResourceTypeNotSupportedException for service response error code // "ResourceTypeNotSupportedException". // // This exception is thrown when the specified resource type is not supported // by CloudTrail. ErrCodeResourceTypeNotSupportedException = "ResourceTypeNotSupportedException" // ErrCodeS3BucketDoesNotExistException for service response error code // "S3BucketDoesNotExistException". // // This exception is thrown when the specified S3 bucket does not exist. ErrCodeS3BucketDoesNotExistException = "S3BucketDoesNotExistException" // ErrCodeTagsLimitExceededException for service response error code // "TagsLimitExceededException". // // The number of tags per trail has exceeded the permitted amount. Currently, // the limit is 50. ErrCodeTagsLimitExceededException = "TagsLimitExceededException" // ErrCodeTrailAlreadyExistsException for service response error code // "TrailAlreadyExistsException". // // This exception is thrown when the specified trail already exists. ErrCodeTrailAlreadyExistsException = "TrailAlreadyExistsException" // ErrCodeTrailNotFoundException for service response error code // "TrailNotFoundException". // // This exception is thrown when the trail with the given name is not found. ErrCodeTrailNotFoundException = "TrailNotFoundException" // ErrCodeTrailNotProvidedException for service response error code // "TrailNotProvidedException". // // This exception is no longer in use. ErrCodeTrailNotProvidedException = "TrailNotProvidedException" // ErrCodeUnsupportedOperationException for service response error code // "UnsupportedOperationException". // // This exception is thrown when the requested operation is not supported. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" )
const ( ServiceName = "cloudtrail" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "CloudTrail" // ServiceID is a unique identifier of a specific service. )
Service information constants
const (
// EventCategoryInsight is a EventCategory enum value
EventCategoryInsight = "insight"
)
const (
// InsightTypeApiCallRateInsight is a InsightType enum value
InsightTypeApiCallRateInsight = "ApiCallRateInsight"
)
Variables ¶
This section is empty.
Functions ¶
func EventCategory_Values ¶ added in v1.34.3
func EventCategory_Values() []string
EventCategory_Values returns all elements of the EventCategory enum
func InsightType_Values ¶ added in v1.34.3
func InsightType_Values() []string
InsightType_Values returns all elements of the InsightType enum
func LookupAttributeKey_Values ¶ added in v1.34.3
func LookupAttributeKey_Values() []string
LookupAttributeKey_Values returns all elements of the LookupAttributeKey enum
func ReadWriteType_Values ¶ added in v1.34.3
func ReadWriteType_Values() []string
ReadWriteType_Values returns all elements of the ReadWriteType enum
Types ¶
type ARNInvalidException ¶ added in v1.28.0
type ARNInvalidException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when an operation is called with an invalid trail ARN. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
func (*ARNInvalidException) Code ¶ added in v1.28.0
func (s *ARNInvalidException) Code() string
Code returns the exception type name.
func (*ARNInvalidException) Error ¶ added in v1.28.0
func (s *ARNInvalidException) Error() string
func (ARNInvalidException) GoString ¶ added in v1.28.0
func (s ARNInvalidException) GoString() string
GoString returns the string representation
func (*ARNInvalidException) Message ¶ added in v1.28.0
func (s *ARNInvalidException) Message() string
Message returns the exception's message.
func (*ARNInvalidException) OrigErr ¶ added in v1.28.0
func (s *ARNInvalidException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ARNInvalidException) RequestID ¶ added in v1.28.0
func (s *ARNInvalidException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ARNInvalidException) StatusCode ¶ added in v1.28.0
func (s *ARNInvalidException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ARNInvalidException) String ¶ added in v1.28.0
func (s ARNInvalidException) String() string
String returns the string representation
type AccessNotEnabledException ¶ added in v1.28.0
type AccessNotEnabledException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when trusted access has not been enabled between AWS CloudTrail and AWS Organizations. For more information, see Enabling Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
func (*AccessNotEnabledException) Code ¶ added in v1.28.0
func (s *AccessNotEnabledException) Code() string
Code returns the exception type name.
func (*AccessNotEnabledException) Error ¶ added in v1.28.0
func (s *AccessNotEnabledException) Error() string
func (AccessNotEnabledException) GoString ¶ added in v1.28.0
func (s AccessNotEnabledException) GoString() string
GoString returns the string representation
func (*AccessNotEnabledException) Message ¶ added in v1.28.0
func (s *AccessNotEnabledException) Message() string
Message returns the exception's message.
func (*AccessNotEnabledException) OrigErr ¶ added in v1.28.0
func (s *AccessNotEnabledException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*AccessNotEnabledException) RequestID ¶ added in v1.28.0
func (s *AccessNotEnabledException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*AccessNotEnabledException) StatusCode ¶ added in v1.28.0
func (s *AccessNotEnabledException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (AccessNotEnabledException) String ¶ added in v1.28.0
func (s AccessNotEnabledException) String() string
String returns the string representation
type AddTagsInput ¶ added in v0.9.11
type AddTagsInput struct { // Specifies the ARN of the trail to which one or more tags will be added. The // format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` // Contains a list of CloudTrail tags, up to a limit of 50 TagsList []*Tag `type:"list"` // contains filtered or unexported fields }
Specifies the tags to add to a trail.
func (AddTagsInput) GoString ¶ added in v0.9.11
func (s AddTagsInput) GoString() string
GoString returns the string representation
func (*AddTagsInput) SetResourceId ¶ added in v1.5.0
func (s *AddTagsInput) SetResourceId(v string) *AddTagsInput
SetResourceId sets the ResourceId field's value.
func (*AddTagsInput) SetTagsList ¶ added in v1.5.0
func (s *AddTagsInput) SetTagsList(v []*Tag) *AddTagsInput
SetTagsList sets the TagsList field's value.
func (AddTagsInput) String ¶ added in v0.9.11
func (s AddTagsInput) String() string
String returns the string representation
func (*AddTagsInput) Validate ¶ added in v1.1.21
func (s *AddTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AddTagsOutput ¶ added in v0.9.11
type AddTagsOutput struct {
// contains filtered or unexported fields
}
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (AddTagsOutput) GoString ¶ added in v0.9.11
func (s AddTagsOutput) GoString() string
GoString returns the string representation
func (AddTagsOutput) String ¶ added in v0.9.11
func (s AddTagsOutput) String() string
String returns the string representation
type CloudTrail ¶
CloudTrail provides the API operation methods for making requests to AWS CloudTrail. See this package's package overview docs for details on the service.
CloudTrail methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudTrail
New creates a new instance of the CloudTrail client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a CloudTrail client from just a session. svc := cloudtrail.New(mySession) // Create a CloudTrail client with additional configuration svc := cloudtrail.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*CloudTrail) AddTags ¶ added in v0.9.11
func (c *CloudTrail) AddTags(input *AddTagsInput) (*AddTagsOutput, error)
AddTags API operation for AWS CloudTrail.
Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique for a trail; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all AWS Regions only from the Region in which the trail was created (also known as its home region).
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation AddTags for usage and error information.
Returned Error Types:
ResourceNotFoundException This exception is thrown when the specified resource is not found.
ARNInvalidException This exception is thrown when an operation is called with an invalid trail ARN. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
ResourceTypeNotSupportedException This exception is thrown when the specified resource type is not supported by CloudTrail.
TagsLimitExceededException The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
InvalidTagParameterException This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags
func (*CloudTrail) AddTagsRequest ¶ added in v0.9.11
func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput)
AddTagsRequest generates a "aws/request.Request" representing the client's request for the AddTags operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See AddTags for more information on using the AddTags API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the AddTagsRequest method. req, resp := client.AddTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AddTags
func (*CloudTrail) AddTagsWithContext ¶ added in v1.8.0
func (c *CloudTrail) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error)
AddTagsWithContext is the same as AddTags with the addition of the ability to pass a context and additional request options.
See AddTags for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) CreateTrail ¶
func (c *CloudTrail) CreateTrail(input *CreateTrailInput) (*CreateTrailOutput, error)
CreateTrail API operation for AWS CloudTrail.
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation CreateTrail for usage and error information.
Returned Error Types:
MaximumNumberOfTrailsExceededException This exception is thrown when the maximum number of trails is reached.
TrailAlreadyExistsException This exception is thrown when the specified trail already exists.
S3BucketDoesNotExistException This exception is thrown when the specified S3 bucket does not exist.
InsufficientS3BucketPolicyException This exception is thrown when the policy on the S3 bucket is not sufficient.
InsufficientSnsTopicPolicyException This exception is thrown when the policy on the SNS topic is not sufficient.
InsufficientEncryptionPolicyException This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.
InvalidS3BucketNameException This exception is thrown when the provided S3 bucket name is not valid.
InvalidS3PrefixException This exception is thrown when the provided S3 prefix is not valid.
InvalidSnsTopicNameException This exception is thrown when the provided SNS topic name is not valid.
InvalidKmsKeyIdException This exception is thrown when the KMS key ARN is invalid.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
TrailNotProvidedException This exception is no longer in use.
InvalidParameterCombinationException This exception is thrown when the combination of parameters provided is not valid.
KmsKeyNotFoundException This exception is thrown when the KMS key does not exist, or when the S3 bucket and the KMS key are not in the same region.
KmsKeyDisabledException This exception is no longer in use.
KmsException This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.
InvalidCloudWatchLogsLogGroupArnException This exception is thrown when the provided CloudWatch log group is not valid.
InvalidCloudWatchLogsRoleArnException This exception is thrown when the provided role is not valid.
CloudWatchLogsDeliveryUnavailableException Cannot set a CloudWatch Logs delivery for this region.
InvalidTagParameterException This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
AccessNotEnabledException This exception is thrown when trusted access has not been enabled between AWS CloudTrail and AWS Organizations. For more information, see Enabling Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
OrganizationsNotInUseException This exception is thrown when the request is made from an AWS account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.
OrganizationNotInAllFeaturesModeException This exception is thrown when AWS Organizations is not configured to support all features. All features must be enabled in AWS Organization to support creating an organization trail. For more information, see Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail
func (*CloudTrail) CreateTrailRequest ¶
func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.Request, output *CreateTrailOutput)
CreateTrailRequest generates a "aws/request.Request" representing the client's request for the CreateTrail operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateTrail for more information on using the CreateTrail API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateTrailRequest method. req, resp := client.CreateTrailRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateTrail
func (*CloudTrail) CreateTrailWithContext ¶ added in v1.8.0
func (c *CloudTrail) CreateTrailWithContext(ctx aws.Context, input *CreateTrailInput, opts ...request.Option) (*CreateTrailOutput, error)
CreateTrailWithContext is the same as CreateTrail with the addition of the ability to pass a context and additional request options.
See CreateTrail for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) DeleteTrail ¶
func (c *CloudTrail) DeleteTrail(input *DeleteTrailInput) (*DeleteTrailOutput, error)
DeleteTrail API operation for AWS CloudTrail.
Deletes a trail. This operation must be called from the region in which the trail was created. DeleteTrail cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation DeleteTrail for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
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.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail
func (*CloudTrail) DeleteTrailRequest ¶
func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.Request, output *DeleteTrailOutput)
DeleteTrailRequest generates a "aws/request.Request" representing the client's request for the DeleteTrail operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteTrail for more information on using the DeleteTrail API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteTrailRequest method. req, resp := client.DeleteTrailRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteTrail
func (*CloudTrail) DeleteTrailWithContext ¶ added in v1.8.0
func (c *CloudTrail) DeleteTrailWithContext(ctx aws.Context, input *DeleteTrailInput, opts ...request.Option) (*DeleteTrailOutput, error)
DeleteTrailWithContext is the same as DeleteTrail with the addition of the ability to pass a context and additional request options.
See DeleteTrail for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) DescribeTrails ¶
func (c *CloudTrail) DescribeTrails(input *DescribeTrailsInput) (*DescribeTrailsOutput, error)
DescribeTrails API operation for AWS CloudTrail.
Retrieves settings for one or more trails associated with the current region for your account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation DescribeTrails for usage and error information.
Returned Error Types:
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails
func (*CloudTrail) DescribeTrailsRequest ¶
func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *request.Request, output *DescribeTrailsOutput)
DescribeTrailsRequest generates a "aws/request.Request" representing the client's request for the DescribeTrails operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeTrails for more information on using the DescribeTrails API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeTrailsRequest method. req, resp := client.DescribeTrailsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeTrails
func (*CloudTrail) DescribeTrailsWithContext ¶ added in v1.8.0
func (c *CloudTrail) DescribeTrailsWithContext(ctx aws.Context, input *DescribeTrailsInput, opts ...request.Option) (*DescribeTrailsOutput, error)
DescribeTrailsWithContext is the same as DescribeTrails with the addition of the ability to pass a context and additional request options.
See DescribeTrails for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) GetEventSelectors ¶ added in v1.5.9
func (c *CloudTrail) GetEventSelectors(input *GetEventSelectorsInput) (*GetEventSelectorsOutput, error)
GetEventSelectors API operation for AWS CloudTrail.
Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:
If your event selector includes read-only events, write-only events, or all events. This applies to both management events and data events.
If your event selector includes management events.
If your event selector includes data events, the Amazon S3 objects or AWS Lambda functions that you are logging for data events.
For more information, see Logging Data and Management Events for Trails (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html) in the AWS CloudTrail User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation GetEventSelectors for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors
func (*CloudTrail) GetEventSelectorsRequest ¶ added in v1.5.9
func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (req *request.Request, output *GetEventSelectorsOutput)
GetEventSelectorsRequest generates a "aws/request.Request" representing the client's request for the GetEventSelectors operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetEventSelectors for more information on using the GetEventSelectors API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetEventSelectorsRequest method. req, resp := client.GetEventSelectorsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors
func (*CloudTrail) GetEventSelectorsWithContext ¶ added in v1.8.0
func (c *CloudTrail) GetEventSelectorsWithContext(ctx aws.Context, input *GetEventSelectorsInput, opts ...request.Option) (*GetEventSelectorsOutput, error)
GetEventSelectorsWithContext is the same as GetEventSelectors with the addition of the ability to pass a context and additional request options.
See GetEventSelectors for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) GetInsightSelectors ¶ added in v1.25.39
func (c *CloudTrail) GetInsightSelectors(input *GetInsightSelectorsInput) (*GetInsightSelectorsOutput, error)
GetInsightSelectors API operation for AWS CloudTrail.
Describes the settings for the Insights event selectors that you configured for your trail. GetInsightSelectors shows if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled. If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
For more information, see Logging CloudTrail Insights Events for Trails (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html) in the AWS CloudTrail User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation GetInsightSelectors for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
InsightNotEnabledException If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectors
func (*CloudTrail) GetInsightSelectorsRequest ¶ added in v1.25.39
func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput) (req *request.Request, output *GetInsightSelectorsOutput)
GetInsightSelectorsRequest generates a "aws/request.Request" representing the client's request for the GetInsightSelectors operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetInsightSelectors for more information on using the GetInsightSelectors API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetInsightSelectorsRequest method. req, resp := client.GetInsightSelectorsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectors
func (*CloudTrail) GetInsightSelectorsWithContext ¶ added in v1.25.39
func (c *CloudTrail) GetInsightSelectorsWithContext(ctx aws.Context, input *GetInsightSelectorsInput, opts ...request.Option) (*GetInsightSelectorsOutput, error)
GetInsightSelectorsWithContext is the same as GetInsightSelectors with the addition of the ability to pass a context and additional request options.
See GetInsightSelectors for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) GetTrail ¶ added in v1.25.25
func (c *CloudTrail) GetTrail(input *GetTrailInput) (*GetTrailOutput, error)
GetTrail API operation for AWS CloudTrail.
Returns settings information for a specified trail.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation GetTrail for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrail
func (*CloudTrail) GetTrailRequest ¶ added in v1.25.25
func (c *CloudTrail) GetTrailRequest(input *GetTrailInput) (req *request.Request, output *GetTrailOutput)
GetTrailRequest generates a "aws/request.Request" representing the client's request for the GetTrail operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetTrail for more information on using the GetTrail API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetTrailRequest method. req, resp := client.GetTrailRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrail
func (*CloudTrail) GetTrailStatus ¶
func (c *CloudTrail) GetTrailStatus(input *GetTrailStatusInput) (*GetTrailStatusOutput, error)
GetTrailStatus API operation for AWS CloudTrail.
Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation GetTrailStatus for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus
func (*CloudTrail) GetTrailStatusRequest ¶
func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *request.Request, output *GetTrailStatusOutput)
GetTrailStatusRequest generates a "aws/request.Request" representing the client's request for the GetTrailStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetTrailStatus for more information on using the GetTrailStatus API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetTrailStatusRequest method. req, resp := client.GetTrailStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus
func (*CloudTrail) GetTrailStatusWithContext ¶ added in v1.8.0
func (c *CloudTrail) GetTrailStatusWithContext(ctx aws.Context, input *GetTrailStatusInput, opts ...request.Option) (*GetTrailStatusOutput, error)
GetTrailStatusWithContext is the same as GetTrailStatus with the addition of the ability to pass a context and additional request options.
See GetTrailStatus for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) GetTrailWithContext ¶ added in v1.25.25
func (c *CloudTrail) GetTrailWithContext(ctx aws.Context, input *GetTrailInput, opts ...request.Option) (*GetTrailOutput, error)
GetTrailWithContext is the same as GetTrail with the addition of the ability to pass a context and additional request options.
See GetTrail for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) ListPublicKeys ¶ added in v0.9.11
func (c *CloudTrail) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error)
ListPublicKeys API operation for AWS CloudTrail.
Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.
CloudTrail uses different private/public key pairs per region. Each digest file is signed with a private key unique to its region. Therefore, when you validate a digest file from a particular region, you must look in the same region for its corresponding public key.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation ListPublicKeys for usage and error information.
Returned Error Types:
InvalidTimeRangeException Occurs if the timestamp values are invalid. Either the start time occurs after the end time or the time range is outside the range of possible values.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
InvalidTokenException Reserved for future use.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys
func (*CloudTrail) ListPublicKeysPages ¶ added in v1.25.25
func (c *CloudTrail) ListPublicKeysPages(input *ListPublicKeysInput, fn func(*ListPublicKeysOutput, bool) bool) error
ListPublicKeysPages iterates over the pages of a ListPublicKeys operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListPublicKeys method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListPublicKeys operation. pageNum := 0 err := client.ListPublicKeysPages(params, func(page *cloudtrail.ListPublicKeysOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CloudTrail) ListPublicKeysPagesWithContext ¶ added in v1.25.25
func (c *CloudTrail) ListPublicKeysPagesWithContext(ctx aws.Context, input *ListPublicKeysInput, fn func(*ListPublicKeysOutput, bool) bool, opts ...request.Option) error
ListPublicKeysPagesWithContext same as ListPublicKeysPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) ListPublicKeysRequest ¶ added in v0.9.11
func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput)
ListPublicKeysRequest generates a "aws/request.Request" representing the client's request for the ListPublicKeys operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListPublicKeys for more information on using the ListPublicKeys API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListPublicKeysRequest method. req, resp := client.ListPublicKeysRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys
func (*CloudTrail) ListPublicKeysWithContext ¶ added in v1.8.0
func (c *CloudTrail) ListPublicKeysWithContext(ctx aws.Context, input *ListPublicKeysInput, opts ...request.Option) (*ListPublicKeysOutput, error)
ListPublicKeysWithContext is the same as ListPublicKeys with the addition of the ability to pass a context and additional request options.
See ListPublicKeys for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) ListTags ¶ added in v0.9.11
func (c *CloudTrail) ListTags(input *ListTagsInput) (*ListTagsOutput, error)
ListTags API operation for AWS CloudTrail.
Lists the tags for the trail in the current region.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation ListTags for usage and error information.
Returned Error Types:
ResourceNotFoundException This exception is thrown when the specified resource is not found.
ARNInvalidException This exception is thrown when an operation is called with an invalid trail ARN. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
ResourceTypeNotSupportedException This exception is thrown when the specified resource type is not supported by CloudTrail.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
InvalidTokenException Reserved for future use.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags
func (*CloudTrail) ListTagsPages ¶ added in v1.25.25
func (c *CloudTrail) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error
ListTagsPages iterates over the pages of a ListTags operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListTags method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListTags operation. pageNum := 0 err := client.ListTagsPages(params, func(page *cloudtrail.ListTagsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CloudTrail) ListTagsPagesWithContext ¶ added in v1.25.25
func (c *CloudTrail) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error
ListTagsPagesWithContext same as ListTagsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) ListTagsRequest ¶ added in v0.9.11
func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput)
ListTagsRequest generates a "aws/request.Request" representing the client's request for the ListTags operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListTags for more information on using the ListTags API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListTagsRequest method. req, resp := client.ListTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags
func (*CloudTrail) ListTagsWithContext ¶ added in v1.8.0
func (c *CloudTrail) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error)
ListTagsWithContext is the same as ListTags with the addition of the ability to pass a context and additional request options.
See ListTags for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) ListTrails ¶ added in v1.25.25
func (c *CloudTrail) ListTrails(input *ListTrailsInput) (*ListTrailsOutput, error)
ListTrails API operation for AWS CloudTrail.
Lists trails that are in the current account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation ListTrails for usage and error information.
Returned Error Types:
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTrails
func (*CloudTrail) ListTrailsPages ¶ added in v1.25.25
func (c *CloudTrail) ListTrailsPages(input *ListTrailsInput, fn func(*ListTrailsOutput, bool) bool) error
ListTrailsPages iterates over the pages of a ListTrails operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListTrails method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListTrails operation. pageNum := 0 err := client.ListTrailsPages(params, func(page *cloudtrail.ListTrailsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CloudTrail) ListTrailsPagesWithContext ¶ added in v1.25.25
func (c *CloudTrail) ListTrailsPagesWithContext(ctx aws.Context, input *ListTrailsInput, fn func(*ListTrailsOutput, bool) bool, opts ...request.Option) error
ListTrailsPagesWithContext same as ListTrailsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) ListTrailsRequest ¶ added in v1.25.25
func (c *CloudTrail) ListTrailsRequest(input *ListTrailsInput) (req *request.Request, output *ListTrailsOutput)
ListTrailsRequest generates a "aws/request.Request" representing the client's request for the ListTrails operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListTrails for more information on using the ListTrails API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListTrailsRequest method. req, resp := client.ListTrailsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTrails
func (*CloudTrail) ListTrailsWithContext ¶ added in v1.25.25
func (c *CloudTrail) ListTrailsWithContext(ctx aws.Context, input *ListTrailsInput, opts ...request.Option) (*ListTrailsOutput, error)
ListTrailsWithContext is the same as ListTrails with the addition of the ability to pass a context and additional request options.
See ListTrails for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) LookupEvents ¶
func (c *CloudTrail) LookupEvents(input *LookupEventsInput) (*LookupEventsOutput, error)
LookupEvents API operation for AWS CloudTrail.
Looks up management events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events) or CloudTrail Insights events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events) that are captured by CloudTrail. You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:
AWS access key
Event ID
Event name
Event source
Read only
Resource name
Resource type
User name
Lookup supports the following attributes for Insights events:
Event ID
Event name
Event source
All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
The rate of lookup requests is limited to two per second per account. If this limit is exceeded, a throttling error occurs.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation LookupEvents for usage and error information.
Returned Error Types:
InvalidLookupAttributesException Occurs when an invalid lookup attribute is specified.
InvalidTimeRangeException Occurs if the timestamp values are invalid. Either the start time occurs after the end time or the time range is outside the range of possible values.
InvalidMaxResultsException This exception is thrown if the limit specified is invalid.
InvalidNextTokenException Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.
InvalidEventCategoryException Occurs if an event category that is not valid is specified as a value of EventCategory.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents
func (*CloudTrail) LookupEventsPages ¶ added in v1.6.5
func (c *CloudTrail) LookupEventsPages(input *LookupEventsInput, fn func(*LookupEventsOutput, bool) bool) error
LookupEventsPages iterates over the pages of a LookupEvents operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See LookupEvents method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a LookupEvents operation. pageNum := 0 err := client.LookupEventsPages(params, func(page *cloudtrail.LookupEventsOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CloudTrail) LookupEventsPagesWithContext ¶ added in v1.8.0
func (c *CloudTrail) LookupEventsPagesWithContext(ctx aws.Context, input *LookupEventsInput, fn func(*LookupEventsOutput, bool) bool, opts ...request.Option) error
LookupEventsPagesWithContext same as LookupEventsPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) LookupEventsRequest ¶
func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request.Request, output *LookupEventsOutput)
LookupEventsRequest generates a "aws/request.Request" representing the client's request for the LookupEvents operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See LookupEvents for more information on using the LookupEvents API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the LookupEventsRequest method. req, resp := client.LookupEventsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents
func (*CloudTrail) LookupEventsWithContext ¶ added in v1.8.0
func (c *CloudTrail) LookupEventsWithContext(ctx aws.Context, input *LookupEventsInput, opts ...request.Option) (*LookupEventsOutput, error)
LookupEventsWithContext is the same as LookupEvents with the addition of the ability to pass a context and additional request options.
See LookupEvents for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) PutEventSelectors ¶ added in v1.5.9
func (c *CloudTrail) PutEventSelectors(input *PutEventSelectorsInput) (*PutEventSelectorsOutput, error)
PutEventSelectors API operation for AWS CloudTrail.
Configures an event selector for your trail. Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events.
When an event occurs in your account, CloudTrail evaluates the event selectors in all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.
Example ¶
You create an event selector for a trail and specify that you want write-only events.
The EC2 GetConsoleOutput and RunInstances API operations occur in your account.
CloudTrail evaluates whether the events match your event selectors.
The RunInstances is a write-only event and it matches your event selector. The trail logs the event.
The GetConsoleOutput is a read-only event but it doesn't match your event selector. The trail doesn't log the event.
The PutEventSelectors operation must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.
You can configure up to five event selectors for each trail. For more information, see Logging Data and Management Events for Trails (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html) and Limits in AWS CloudTrail (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) in the AWS CloudTrail User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation PutEventSelectors for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
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.
InvalidEventSelectorsException This exception is thrown when the PutEventSelectors operation is called with a number of event selectors or data resources that is not valid. The combination of event selectors and data resources is not valid. A trail can have up to 5 event selectors. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.
You can:
Specify a valid number of event selectors (1 to 5) for a trail.
Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.
Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is invalid.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors
func (*CloudTrail) PutEventSelectorsRequest ¶ added in v1.5.9
func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (req *request.Request, output *PutEventSelectorsOutput)
PutEventSelectorsRequest generates a "aws/request.Request" representing the client's request for the PutEventSelectors operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See PutEventSelectors for more information on using the PutEventSelectors API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the PutEventSelectorsRequest method. req, resp := client.PutEventSelectorsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors
func (*CloudTrail) PutEventSelectorsWithContext ¶ added in v1.8.0
func (c *CloudTrail) PutEventSelectorsWithContext(ctx aws.Context, input *PutEventSelectorsInput, opts ...request.Option) (*PutEventSelectorsOutput, error)
PutEventSelectorsWithContext is the same as PutEventSelectors with the addition of the ability to pass a context and additional request options.
See PutEventSelectors for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) PutInsightSelectors ¶ added in v1.25.39
func (c *CloudTrail) PutInsightSelectors(input *PutInsightSelectorsInput) (*PutInsightSelectorsOutput, error)
PutInsightSelectors API operation for AWS CloudTrail.
Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail. You also use PutInsightSelectors to turn off Insights event logging, by passing an empty list of insight types. In this release, only ApiCallRateInsight is supported as an Insights selector.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation PutInsightSelectors for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
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.
InvalidInsightSelectorsException The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors or GetInsightSelectors request is not valid, or the specified insight type in the InsightSelectors statement is not a valid insight type.
InsufficientS3BucketPolicyException This exception is thrown when the policy on the S3 bucket is not sufficient.
InsufficientEncryptionPolicyException This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectors
func (*CloudTrail) PutInsightSelectorsRequest ¶ added in v1.25.39
func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput) (req *request.Request, output *PutInsightSelectorsOutput)
PutInsightSelectorsRequest generates a "aws/request.Request" representing the client's request for the PutInsightSelectors operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See PutInsightSelectors for more information on using the PutInsightSelectors API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the PutInsightSelectorsRequest method. req, resp := client.PutInsightSelectorsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectors
func (*CloudTrail) PutInsightSelectorsWithContext ¶ added in v1.25.39
func (c *CloudTrail) PutInsightSelectorsWithContext(ctx aws.Context, input *PutInsightSelectorsInput, opts ...request.Option) (*PutInsightSelectorsOutput, error)
PutInsightSelectorsWithContext is the same as PutInsightSelectors with the addition of the ability to pass a context and additional request options.
See PutInsightSelectors for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) RemoveTags ¶ added in v0.9.11
func (c *CloudTrail) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error)
RemoveTags API operation for AWS CloudTrail.
Removes the specified tags from a trail.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation RemoveTags for usage and error information.
Returned Error Types:
ResourceNotFoundException This exception is thrown when the specified resource is not found.
ARNInvalidException This exception is thrown when an operation is called with an invalid trail ARN. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
ResourceTypeNotSupportedException This exception is thrown when the specified resource type is not supported by CloudTrail.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
InvalidTagParameterException This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags
func (*CloudTrail) RemoveTagsRequest ¶ added in v0.9.11
func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput)
RemoveTagsRequest generates a "aws/request.Request" representing the client's request for the RemoveTags operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See RemoveTags for more information on using the RemoveTags API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the RemoveTagsRequest method. req, resp := client.RemoveTagsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RemoveTags
func (*CloudTrail) RemoveTagsWithContext ¶ added in v1.8.0
func (c *CloudTrail) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error)
RemoveTagsWithContext is the same as RemoveTags with the addition of the ability to pass a context and additional request options.
See RemoveTags for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) StartLogging ¶
func (c *CloudTrail) StartLogging(input *StartLoggingInput) (*StartLoggingOutput, error)
StartLogging API operation for AWS CloudTrail.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation StartLogging for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
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.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging
func (*CloudTrail) StartLoggingRequest ¶
func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request.Request, output *StartLoggingOutput)
StartLoggingRequest generates a "aws/request.Request" representing the client's request for the StartLogging operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StartLogging for more information on using the StartLogging API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StartLoggingRequest method. req, resp := client.StartLoggingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartLogging
func (*CloudTrail) StartLoggingWithContext ¶ added in v1.8.0
func (c *CloudTrail) StartLoggingWithContext(ctx aws.Context, input *StartLoggingInput, opts ...request.Option) (*StartLoggingOutput, error)
StartLoggingWithContext is the same as StartLogging with the addition of the ability to pass a context and additional request options.
See StartLogging for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) StopLogging ¶
func (c *CloudTrail) StopLogging(input *StopLoggingInput) (*StopLoggingOutput, error)
StopLogging API operation for AWS CloudTrail.
Suspends the recording of AWS API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all regions, this operation must be called from the region in which the trail was created, or an InvalidHomeRegionException will occur. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail enabled in all regions.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation StopLogging for usage and error information.
Returned Error Types:
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
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.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging
func (*CloudTrail) StopLoggingRequest ¶
func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.Request, output *StopLoggingOutput)
StopLoggingRequest generates a "aws/request.Request" representing the client's request for the StopLogging operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See StopLogging for more information on using the StopLogging API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the StopLoggingRequest method. req, resp := client.StopLoggingRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StopLogging
func (*CloudTrail) StopLoggingWithContext ¶ added in v1.8.0
func (c *CloudTrail) StopLoggingWithContext(ctx aws.Context, input *StopLoggingInput, opts ...request.Option) (*StopLoggingOutput, error)
StopLoggingWithContext is the same as StopLogging with the addition of the ability to pass a context and additional request options.
See StopLogging for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*CloudTrail) UpdateTrail ¶
func (c *CloudTrail) UpdateTrail(input *UpdateTrailInput) (*UpdateTrailOutput, error)
UpdateTrail API operation for AWS CloudTrail.
Updates the settings that specify delivery of log files. Changes to a trail do not require stopping the CloudTrail service. 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. UpdateTrail must be called from the region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for AWS CloudTrail's API operation UpdateTrail for usage and error information.
Returned Error Types:
S3BucketDoesNotExistException This exception is thrown when the specified S3 bucket does not exist.
InsufficientS3BucketPolicyException This exception is thrown when the policy on the S3 bucket is not sufficient.
InsufficientSnsTopicPolicyException This exception is thrown when the policy on the SNS topic is not sufficient.
InsufficientEncryptionPolicyException This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.
TrailNotFoundException This exception is thrown when the trail with the given name is not found.
InvalidS3BucketNameException This exception is thrown when the provided S3 bucket name is not valid.
InvalidS3PrefixException This exception is thrown when the provided S3 prefix is not valid.
InvalidSnsTopicNameException This exception is thrown when the provided SNS topic name is not valid.
InvalidKmsKeyIdException This exception is thrown when the KMS key ARN is invalid.
InvalidTrailNameException This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
TrailNotProvidedException This exception is no longer in use.
InvalidEventSelectorsException This exception is thrown when the PutEventSelectors operation is called with a number of event selectors or data resources that is not valid. The combination of event selectors and data resources is not valid. A trail can have up to 5 event selectors. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.
You can:
Specify a valid number of event selectors (1 to 5) for a trail.
Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.
Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is invalid.
InvalidParameterCombinationException This exception is thrown when the combination of parameters provided is not valid.
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.
KmsKeyNotFoundException This exception is thrown when the KMS key does not exist, or when the S3 bucket and the KMS key are not in the same region.
KmsKeyDisabledException This exception is no longer in use.
KmsException This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.
InvalidCloudWatchLogsLogGroupArnException This exception is thrown when the provided CloudWatch log group is not valid.
InvalidCloudWatchLogsRoleArnException This exception is thrown when the provided role is not valid.
CloudWatchLogsDeliveryUnavailableException Cannot set a CloudWatch Logs delivery for this region.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
AccessNotEnabledException This exception is thrown when trusted access has not been enabled between AWS CloudTrail and AWS Organizations. For more information, see Enabling Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
OrganizationsNotInUseException This exception is thrown when the request is made from an AWS account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
OrganizationNotInAllFeaturesModeException This exception is thrown when AWS Organizations is not configured to support all features. All features must be enabled in AWS Organization to support creating an organization trail. For more information, see Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail
func (*CloudTrail) UpdateTrailRequest ¶
func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.Request, output *UpdateTrailOutput)
UpdateTrailRequest generates a "aws/request.Request" representing the client's request for the UpdateTrail operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateTrail for more information on using the UpdateTrail API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateTrailRequest method. req, resp := client.UpdateTrailRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrail
func (*CloudTrail) UpdateTrailWithContext ¶ added in v1.8.0
func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailInput, opts ...request.Option) (*UpdateTrailOutput, error)
UpdateTrailWithContext is the same as UpdateTrail with the addition of the ability to pass a context and additional request options.
See UpdateTrail for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type CloudWatchLogsDeliveryUnavailableException ¶ added in v1.28.0
type CloudWatchLogsDeliveryUnavailableException struct { // contains filtered or unexported fields }
Cannot set a CloudWatch Logs delivery for this region.
func (*CloudWatchLogsDeliveryUnavailableException) Code ¶ added in v1.28.0
func (s *CloudWatchLogsDeliveryUnavailableException) Code() string
Code returns the exception type name.
func (*CloudWatchLogsDeliveryUnavailableException) Error ¶ added in v1.28.0
func (s *CloudWatchLogsDeliveryUnavailableException) Error() string
func (CloudWatchLogsDeliveryUnavailableException) GoString ¶ added in v1.28.0
func (s CloudWatchLogsDeliveryUnavailableException) GoString() string
GoString returns the string representation
func (*CloudWatchLogsDeliveryUnavailableException) Message ¶ added in v1.28.0
func (s *CloudWatchLogsDeliveryUnavailableException) Message() string
Message returns the exception's message.
func (*CloudWatchLogsDeliveryUnavailableException) OrigErr ¶ added in v1.28.0
func (s *CloudWatchLogsDeliveryUnavailableException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*CloudWatchLogsDeliveryUnavailableException) RequestID ¶ added in v1.28.0
func (s *CloudWatchLogsDeliveryUnavailableException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*CloudWatchLogsDeliveryUnavailableException) StatusCode ¶ added in v1.28.0
func (s *CloudWatchLogsDeliveryUnavailableException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (CloudWatchLogsDeliveryUnavailableException) String ¶ added in v1.28.0
func (s CloudWatchLogsDeliveryUnavailableException) String() string
String returns the string representation
type CreateTrailInput ¶
type CreateTrailInput struct { // Specifies a log group name using an Amazon Resource Name (ARN), a unique // identifier that represents the log group to which CloudTrail logs will be // delivered. Not required unless you specify CloudWatchLogsRoleArn. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to // a user's log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether log file integrity validation is enabled. The default is // false. // // When you disable log file integrity validation, the chain of digest files // is broken after one hour. CloudTrail will not create digest files for log // files that were delivered during a period in which log file integrity validation // was disabled. For example, if you enable log file integrity validation at // noon on January 1, disable it at noon on January 2, and re-enable it at noon // on January 10, digest files will not be created for the log files delivered // from noon on January 2 to noon on January 10. The same applies whenever you // stop CloudTrail logging or delete a trail. EnableLogFileValidation *bool `type:"boolean"` // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` // Specifies whether the trail is created in the current region or in all regions. // The default is false, which creates a trail only in the region where you // are signed in. As a best practice, consider creating trails that log events // in all regions. IsMultiRegionTrail *bool `type:"boolean"` // Specifies whether the trail is created for all accounts in an organization // in AWS Organizations, or only for the current AWS account. The default is // false, and cannot be true unless the call is made on behalf of an AWS account // that is the master account for an organization in AWS Organizations. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. // The value can be an alias name prefixed by "alias/", a fully specified ARN // to an alias, a fully specified ARN to a key, or a globally unique identifier. // // Examples: // // * alias/MyAliasName // // * arn:aws:kms:us-east-2:123456789012:alias/MyAliasName // // * arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 // // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies the name of the trail. The name must meet the following requirements: // // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores // (_), or dashes (-) // // * Start with a letter or number, and end with a letter or number // // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace // and my--namespace are invalid. // // * Not be in IP address format (for example, 192.168.5.4) // // Name is a required field Name *string `type:"string" required:"true"` // Specifies the name of the Amazon S3 bucket designated for publishing log // files. See Amazon S3 Bucket Naming Requirements (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html). // // S3BucketName is a required field S3BucketName *string `type:"string" required:"true"` // Specifies the Amazon S3 key prefix that comes after the name of the bucket // you have designated for log file delivery. For more information, see Finding // Your CloudTrail Log Files (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). // The maximum length is 200 characters. S3KeyPrefix *string `type:"string"` // Specifies the name of the Amazon SNS topic defined for notification of log // file delivery. The maximum length is 256 characters. SnsTopicName *string `type:"string"` // A list of tags. TagsList []*Tag `type:"list"` // contains filtered or unexported fields }
Specifies the settings for each trail.
func (CreateTrailInput) GoString ¶ added in v0.6.5
func (s CreateTrailInput) GoString() string
GoString returns the string representation
func (*CreateTrailInput) SetCloudWatchLogsLogGroupArn ¶ added in v1.5.0
func (s *CreateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailInput
SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value.
func (*CreateTrailInput) SetCloudWatchLogsRoleArn ¶ added in v1.5.0
func (s *CreateTrailInput) SetCloudWatchLogsRoleArn(v string) *CreateTrailInput
SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
func (*CreateTrailInput) SetEnableLogFileValidation ¶ added in v1.5.0
func (s *CreateTrailInput) SetEnableLogFileValidation(v bool) *CreateTrailInput
SetEnableLogFileValidation sets the EnableLogFileValidation field's value.
func (*CreateTrailInput) SetIncludeGlobalServiceEvents ¶ added in v1.5.0
func (s *CreateTrailInput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailInput
SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value.
func (*CreateTrailInput) SetIsMultiRegionTrail ¶ added in v1.5.0
func (s *CreateTrailInput) SetIsMultiRegionTrail(v bool) *CreateTrailInput
SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value.
func (*CreateTrailInput) SetIsOrganizationTrail ¶ added in v1.15.79
func (s *CreateTrailInput) SetIsOrganizationTrail(v bool) *CreateTrailInput
SetIsOrganizationTrail sets the IsOrganizationTrail field's value.
func (*CreateTrailInput) SetKmsKeyId ¶ added in v1.5.0
func (s *CreateTrailInput) SetKmsKeyId(v string) *CreateTrailInput
SetKmsKeyId sets the KmsKeyId field's value.
func (*CreateTrailInput) SetName ¶ added in v1.5.0
func (s *CreateTrailInput) SetName(v string) *CreateTrailInput
SetName sets the Name field's value.
func (*CreateTrailInput) SetS3BucketName ¶ added in v1.5.0
func (s *CreateTrailInput) SetS3BucketName(v string) *CreateTrailInput
SetS3BucketName sets the S3BucketName field's value.
func (*CreateTrailInput) SetS3KeyPrefix ¶ added in v1.5.0
func (s *CreateTrailInput) SetS3KeyPrefix(v string) *CreateTrailInput
SetS3KeyPrefix sets the S3KeyPrefix field's value.
func (*CreateTrailInput) SetSnsTopicName ¶ added in v1.5.0
func (s *CreateTrailInput) SetSnsTopicName(v string) *CreateTrailInput
SetSnsTopicName sets the SnsTopicName field's value.
func (*CreateTrailInput) SetTagsList ¶ added in v1.25.25
func (s *CreateTrailInput) SetTagsList(v []*Tag) *CreateTrailInput
SetTagsList sets the TagsList field's value.
func (CreateTrailInput) String ¶ added in v0.6.5
func (s CreateTrailInput) String() string
String returns the string representation
func (*CreateTrailInput) Validate ¶ added in v1.1.21
func (s *CreateTrailInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateTrailOutput ¶
type CreateTrailOutput struct { // Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail // logs will be delivered. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to // a user's log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` // Specifies whether the trail exists in one region or in all regions. IsMultiRegionTrail *bool `type:"boolean"` // Specifies whether the trail is an organization trail. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // // arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. LogFileValidationEnabled *bool `type:"boolean"` // Specifies the name of the trail. Name *string `type:"string"` // Specifies the name of the Amazon S3 bucket designated for publishing log // files. S3BucketName *string `type:"string"` // Specifies the Amazon S3 key prefix that comes after the name of the bucket // you have designated for log file delivery. For more information, see Finding // Your CloudTrail Log Files (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). S3KeyPrefix *string `type:"string"` // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // // arn:aws:sns:us-east-2:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is no longer in use. Use SnsTopicARN. // // Deprecated: SnsTopicName has been deprecated SnsTopicName *string `deprecated:"true" type:"string"` // Specifies the ARN of the trail that was created. The format of a trail ARN // is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` // contains filtered or unexported fields }
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (CreateTrailOutput) GoString ¶ added in v0.6.5
func (s CreateTrailOutput) GoString() string
GoString returns the string representation
func (*CreateTrailOutput) SetCloudWatchLogsLogGroupArn ¶ added in v1.5.0
func (s *CreateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *CreateTrailOutput
SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value.
func (*CreateTrailOutput) SetCloudWatchLogsRoleArn ¶ added in v1.5.0
func (s *CreateTrailOutput) SetCloudWatchLogsRoleArn(v string) *CreateTrailOutput
SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
func (*CreateTrailOutput) SetIncludeGlobalServiceEvents ¶ added in v1.5.0
func (s *CreateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *CreateTrailOutput
SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value.
func (*CreateTrailOutput) SetIsMultiRegionTrail ¶ added in v1.5.0
func (s *CreateTrailOutput) SetIsMultiRegionTrail(v bool) *CreateTrailOutput
SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value.
func (*CreateTrailOutput) SetIsOrganizationTrail ¶ added in v1.15.79
func (s *CreateTrailOutput) SetIsOrganizationTrail(v bool) *CreateTrailOutput
SetIsOrganizationTrail sets the IsOrganizationTrail field's value.
func (*CreateTrailOutput) SetKmsKeyId ¶ added in v1.5.0
func (s *CreateTrailOutput) SetKmsKeyId(v string) *CreateTrailOutput
SetKmsKeyId sets the KmsKeyId field's value.
func (*CreateTrailOutput) SetLogFileValidationEnabled ¶ added in v1.5.0
func (s *CreateTrailOutput) SetLogFileValidationEnabled(v bool) *CreateTrailOutput
SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value.
func (*CreateTrailOutput) SetName ¶ added in v1.5.0
func (s *CreateTrailOutput) SetName(v string) *CreateTrailOutput
SetName sets the Name field's value.
func (*CreateTrailOutput) SetS3BucketName ¶ added in v1.5.0
func (s *CreateTrailOutput) SetS3BucketName(v string) *CreateTrailOutput
SetS3BucketName sets the S3BucketName field's value.
func (*CreateTrailOutput) SetS3KeyPrefix ¶ added in v1.5.0
func (s *CreateTrailOutput) SetS3KeyPrefix(v string) *CreateTrailOutput
SetS3KeyPrefix sets the S3KeyPrefix field's value.
func (*CreateTrailOutput) SetSnsTopicARN ¶ added in v1.5.0
func (s *CreateTrailOutput) SetSnsTopicARN(v string) *CreateTrailOutput
SetSnsTopicARN sets the SnsTopicARN field's value.
func (*CreateTrailOutput) SetSnsTopicName ¶ added in v1.5.0
func (s *CreateTrailOutput) SetSnsTopicName(v string) *CreateTrailOutput
SetSnsTopicName sets the SnsTopicName field's value.
func (*CreateTrailOutput) SetTrailARN ¶ added in v1.5.0
func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput
SetTrailARN sets the TrailARN field's value.
func (CreateTrailOutput) String ¶ added in v0.6.5
func (s CreateTrailOutput) String() string
String returns the string representation
type DataResource ¶ added in v1.5.9
type DataResource struct { // The resource type in which you want to log data events. You can specify AWS::S3::Object // or AWS::Lambda::Function resources. Type *string `type:"string"` // An array of Amazon Resource Name (ARN) strings or partial ARN strings for // the specified objects. // // * To log data events for all objects in all S3 buckets in your AWS account, // specify the prefix as arn:aws:s3:::. This will also enable logging of // data event activity performed by any user or role in your AWS account, // even if that activity is performed on a bucket that belongs to another // AWS account. // // * To log data events for all objects in an S3 bucket, specify the bucket // and an empty object prefix such as arn:aws:s3:::bucket-1/. The trail logs // data events for all objects in this S3 bucket. // // * To log data events for specific objects, specify the S3 bucket and object // prefix such as arn:aws:s3:::bucket-1/example-images. The trail logs data // events for objects in this S3 bucket that match the prefix. // // * To log data events for all functions in your AWS account, specify the // prefix as arn:aws:lambda. This will also enable logging of Invoke activity // performed by any user or role in your AWS account, even if that activity // is performed on a function that belongs to another AWS account. // // * To log data events for a specific Lambda function, specify the function // ARN. Lambda function ARNs are exact. For example, if you specify a function // ARN arn:aws:lambda:us-west-2:111111111111:function:helloworld, data events // will only be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld. // They will not be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld2. Values []*string `type:"list"` // contains filtered or unexported fields }
The Amazon S3 buckets or AWS Lambda functions that you specify in your event selectors for your trail to log data events. Data events provide information about the resource operations performed on or within a resource itself. These are also known as data plane operations. You can specify up to 250 data resources for a trail.
The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors.
The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named bucket-1. In this example, the CloudTrail user specified an empty prefix, and the option to log both Read and Write data events.
A user uploads an image file to bucket-1.
The PutObject API operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event.
A user uploads an object to an Amazon S3 bucket named arn:aws:s3:::bucket-2.
The PutObject API operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.
The following example demonstrates how logging works when you configure logging of AWS Lambda data events for a Lambda function named MyLambdaFunction, but not for all AWS Lambda functions.
A user runs a script that includes a call to the MyLambdaFunction function and the MyOtherLambdaFunction function.
The Invoke API operation on MyLambdaFunction is an AWS Lambda API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for MyLambdaFunction, any invocations of that function are logged. The trail processes and logs the event.
The Invoke API operation on MyOtherLambdaFunction is an AWS Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the Invoke operation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.
func (DataResource) GoString ¶ added in v1.5.9
func (s DataResource) GoString() string
GoString returns the string representation
func (*DataResource) SetType ¶ added in v1.5.9
func (s *DataResource) SetType(v string) *DataResource
SetType sets the Type field's value.
func (*DataResource) SetValues ¶ added in v1.5.9
func (s *DataResource) SetValues(v []*string) *DataResource
SetValues sets the Values field's value.
func (DataResource) String ¶ added in v1.5.9
func (s DataResource) String() string
String returns the string representation
type DeleteTrailInput ¶
type DeleteTrailInput struct { // Specifies the name or the CloudTrail ARN of the trail to be deleted. The // format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` // contains filtered or unexported fields }
The request that specifies the name of a trail to delete.
func (DeleteTrailInput) GoString ¶ added in v0.6.5
func (s DeleteTrailInput) GoString() string
GoString returns the string representation
func (*DeleteTrailInput) SetName ¶ added in v1.5.0
func (s *DeleteTrailInput) SetName(v string) *DeleteTrailInput
SetName sets the Name field's value.
func (DeleteTrailInput) String ¶ added in v0.6.5
func (s DeleteTrailInput) String() string
String returns the string representation
func (*DeleteTrailInput) Validate ¶ added in v1.1.21
func (s *DeleteTrailInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteTrailOutput ¶
type DeleteTrailOutput struct {
// contains filtered or unexported fields
}
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (DeleteTrailOutput) GoString ¶ added in v0.6.5
func (s DeleteTrailOutput) GoString() string
GoString returns the string representation
func (DeleteTrailOutput) String ¶ added in v0.6.5
func (s DeleteTrailOutput) String() string
String returns the string representation
type DescribeTrailsInput ¶
type DescribeTrailsInput struct { // Specifies whether to include shadow trails in the response. A shadow trail // is the replication in a region of a trail that was created in a different // region, or in the case of an organization trail, the replication of an organization // trail in member accounts. If you do not include shadow trails, organization // trails in a member account and region replication trails will not be returned. // The default is true. IncludeShadowTrails *bool `locationName:"includeShadowTrails" type:"boolean"` // Specifies a list of trail names, trail ARNs, or both, of the trails to describe. // The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // If an empty list is specified, information for the trail in the current region // is returned. // // * If an empty list is specified and IncludeShadowTrails is false, then // information for all trails in the current region is returned. // // * If an empty list is specified and IncludeShadowTrails is null or true, // then information for all trails in the current region and any associated // shadow trails in other regions is returned. // // If one or more trail names are specified, information is returned only if // the names match the names of trails belonging only to the current region. // To return information about a trail in another region, you must specify its // trail ARN. TrailNameList []*string `locationName:"trailNameList" type:"list"` // contains filtered or unexported fields }
Returns information about the trail.
func (DescribeTrailsInput) GoString ¶ added in v0.6.5
func (s DescribeTrailsInput) GoString() string
GoString returns the string representation
func (*DescribeTrailsInput) SetIncludeShadowTrails ¶ added in v1.5.0
func (s *DescribeTrailsInput) SetIncludeShadowTrails(v bool) *DescribeTrailsInput
SetIncludeShadowTrails sets the IncludeShadowTrails field's value.
func (*DescribeTrailsInput) SetTrailNameList ¶ added in v1.5.0
func (s *DescribeTrailsInput) SetTrailNameList(v []*string) *DescribeTrailsInput
SetTrailNameList sets the TrailNameList field's value.
func (DescribeTrailsInput) String ¶ added in v0.6.5
func (s DescribeTrailsInput) String() string
String returns the string representation
type DescribeTrailsOutput ¶
type DescribeTrailsOutput struct { // The list of trail objects. Trail objects with string values are only returned // if values for the objects exist in a trail's configuration. For example, // SNSTopicName and SNSTopicARN are only returned in results if a trail is configured // to send SNS notifications. Similarly, KMSKeyId only appears in results if // a trail's log files are encrypted with AWS KMS-managed keys. TrailList []*Trail `locationName:"trailList" type:"list"` // contains filtered or unexported fields }
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (DescribeTrailsOutput) GoString ¶ added in v0.6.5
func (s DescribeTrailsOutput) GoString() string
GoString returns the string representation
func (*DescribeTrailsOutput) SetTrailList ¶ added in v1.5.0
func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput
SetTrailList sets the TrailList field's value.
func (DescribeTrailsOutput) String ¶ added in v0.6.5
func (s DescribeTrailsOutput) String() string
String returns the string representation
type Event ¶
type Event struct { // The AWS access key ID that was used to sign the request. If the request was // made with temporary security credentials, this is the access key ID of the // temporary credentials. AccessKeyId *string `type:"string"` // A JSON string that contains a representation of the event returned. CloudTrailEvent *string `type:"string"` // The CloudTrail ID of the event returned. EventId *string `type:"string"` // The name of the event returned. EventName *string `type:"string"` // The AWS service that the request was made to. EventSource *string `type:"string"` // The date and time of the event returned. EventTime *time.Time `type:"timestamp"` // Information about whether the event is a write event or a read event. ReadOnly *string `type:"string"` // A list of resources referenced by the event returned. Resources []*Resource `type:"list"` // A user name or role name of the requester that called the API in the event // returned. Username *string `type:"string"` // contains filtered or unexported fields }
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
func (*Event) SetAccessKeyId ¶ added in v1.15.54
SetAccessKeyId sets the AccessKeyId field's value.
func (*Event) SetCloudTrailEvent ¶ added in v1.5.0
SetCloudTrailEvent sets the CloudTrailEvent field's value.
func (*Event) SetEventId ¶ added in v1.5.0
SetEventId sets the EventId field's value.
func (*Event) SetEventName ¶ added in v1.5.0
SetEventName sets the EventName field's value.
func (*Event) SetEventSource ¶ added in v1.5.9
SetEventSource sets the EventSource field's value.
func (*Event) SetEventTime ¶ added in v1.5.0
SetEventTime sets the EventTime field's value.
func (*Event) SetReadOnly ¶ added in v1.15.54
SetReadOnly sets the ReadOnly field's value.
func (*Event) SetResources ¶ added in v1.5.0
SetResources sets the Resources field's value.
func (*Event) SetUsername ¶ added in v1.5.0
SetUsername sets the Username field's value.
type EventSelector ¶ added in v1.5.9
type EventSelector struct { // CloudTrail supports data event logging for Amazon S3 objects and AWS Lambda // functions. You can specify up to 250 resources for an individual event selector, // but the total number of data resources cannot exceed 250 across all event // selectors in a trail. This limit does not apply if you configure resource // logging for all data events. // // For more information, see Data Events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-data-events) // and Limits in AWS CloudTrail (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) // in the AWS CloudTrail User Guide. DataResources []*DataResource `type:"list"` // An optional list of service event sources from which you do not want management // events to be logged on your trail. In this release, the list can be empty // (disables the filter), or it can filter out AWS Key Management Service events // by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources // is empty, and AWS KMS events are included in events that are logged to your // trail. ExcludeManagementEventSources []*string `type:"list"` // Specify if you want your event selector to include management events for // your trail. // // For more information, see Management Events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events) // in the AWS CloudTrail User Guide. // // By default, the value is true. IncludeManagementEvents *bool `type:"boolean"` // Specify if you want your trail to log read-only events, write-only events, // or all. For example, the EC2 GetConsoleOutput is a read-only API operation // and RunInstances is a write-only API operation. // // By default, the value is All. ReadWriteType *string `type:"string" enum:"ReadWriteType"` // contains filtered or unexported fields }
Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.
You can configure up to five event selectors for a trail.
func (EventSelector) GoString ¶ added in v1.5.9
func (s EventSelector) GoString() string
GoString returns the string representation
func (*EventSelector) SetDataResources ¶ added in v1.5.9
func (s *EventSelector) SetDataResources(v []*DataResource) *EventSelector
SetDataResources sets the DataResources field's value.
func (*EventSelector) SetExcludeManagementEventSources ¶ added in v1.25.39
func (s *EventSelector) SetExcludeManagementEventSources(v []*string) *EventSelector
SetExcludeManagementEventSources sets the ExcludeManagementEventSources field's value.
func (*EventSelector) SetIncludeManagementEvents ¶ added in v1.5.9
func (s *EventSelector) SetIncludeManagementEvents(v bool) *EventSelector
SetIncludeManagementEvents sets the IncludeManagementEvents field's value.
func (*EventSelector) SetReadWriteType ¶ added in v1.5.9
func (s *EventSelector) SetReadWriteType(v string) *EventSelector
SetReadWriteType sets the ReadWriteType field's value.
func (EventSelector) String ¶ added in v1.5.9
func (s EventSelector) String() string
String returns the string representation
type GetEventSelectorsInput ¶ added in v1.5.9
type GetEventSelectorsInput struct { // Specifies the name of the trail or trail ARN. If you specify a trail name, // the string must meet the following requirements: // // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores // (_), or dashes (-) // // * Start with a letter or number, and end with a letter or number // // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace // and my--namespace are not valid. // // * Not be in IP address format (for example, 192.168.5.4) // // If you specify a trail ARN, it must be in the format: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // TrailName is a required field TrailName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (GetEventSelectorsInput) GoString ¶ added in v1.5.9
func (s GetEventSelectorsInput) GoString() string
GoString returns the string representation
func (*GetEventSelectorsInput) SetTrailName ¶ added in v1.5.9
func (s *GetEventSelectorsInput) SetTrailName(v string) *GetEventSelectorsInput
SetTrailName sets the TrailName field's value.
func (GetEventSelectorsInput) String ¶ added in v1.5.9
func (s GetEventSelectorsInput) String() string
String returns the string representation
func (*GetEventSelectorsInput) Validate ¶ added in v1.8.2
func (s *GetEventSelectorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetEventSelectorsOutput ¶ added in v1.5.9
type GetEventSelectorsOutput struct { // The event selectors that are configured for the trail. EventSelectors []*EventSelector `type:"list"` // The specified trail ARN that has the event selectors. TrailARN *string `type:"string"` // contains filtered or unexported fields }
func (GetEventSelectorsOutput) GoString ¶ added in v1.5.9
func (s GetEventSelectorsOutput) GoString() string
GoString returns the string representation
func (*GetEventSelectorsOutput) SetEventSelectors ¶ added in v1.5.9
func (s *GetEventSelectorsOutput) SetEventSelectors(v []*EventSelector) *GetEventSelectorsOutput
SetEventSelectors sets the EventSelectors field's value.
func (*GetEventSelectorsOutput) SetTrailARN ¶ added in v1.5.9
func (s *GetEventSelectorsOutput) SetTrailARN(v string) *GetEventSelectorsOutput
SetTrailARN sets the TrailARN field's value.
func (GetEventSelectorsOutput) String ¶ added in v1.5.9
func (s GetEventSelectorsOutput) String() string
String returns the string representation
type GetInsightSelectorsInput ¶ added in v1.25.39
type GetInsightSelectorsInput struct { // Specifies the name of the trail or trail ARN. If you specify a trail name, // the string must meet the following requirements: // // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores // (_), or dashes (-) // // * Start with a letter or number, and end with a letter or number // // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace // and my--namespace are not valid. // // * Not be in IP address format (for example, 192.168.5.4) // // If you specify a trail ARN, it must be in the format: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // TrailName is a required field TrailName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (GetInsightSelectorsInput) GoString ¶ added in v1.25.39
func (s GetInsightSelectorsInput) GoString() string
GoString returns the string representation
func (*GetInsightSelectorsInput) SetTrailName ¶ added in v1.25.39
func (s *GetInsightSelectorsInput) SetTrailName(v string) *GetInsightSelectorsInput
SetTrailName sets the TrailName field's value.
func (GetInsightSelectorsInput) String ¶ added in v1.25.39
func (s GetInsightSelectorsInput) String() string
String returns the string representation
func (*GetInsightSelectorsInput) Validate ¶ added in v1.25.39
func (s *GetInsightSelectorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetInsightSelectorsOutput ¶ added in v1.25.39
type GetInsightSelectorsOutput struct { // A JSON string that contains the insight types you want to log on a trail. // In this release, only ApiCallRateInsight is supported as an insight type. InsightSelectors []*InsightSelector `type:"list"` // The Amazon Resource Name (ARN) of a trail for which you want to get Insights // selectors. TrailARN *string `type:"string"` // contains filtered or unexported fields }
func (GetInsightSelectorsOutput) GoString ¶ added in v1.25.39
func (s GetInsightSelectorsOutput) GoString() string
GoString returns the string representation
func (*GetInsightSelectorsOutput) SetInsightSelectors ¶ added in v1.25.39
func (s *GetInsightSelectorsOutput) SetInsightSelectors(v []*InsightSelector) *GetInsightSelectorsOutput
SetInsightSelectors sets the InsightSelectors field's value.
func (*GetInsightSelectorsOutput) SetTrailARN ¶ added in v1.25.39
func (s *GetInsightSelectorsOutput) SetTrailARN(v string) *GetInsightSelectorsOutput
SetTrailARN sets the TrailARN field's value.
func (GetInsightSelectorsOutput) String ¶ added in v1.25.39
func (s GetInsightSelectorsOutput) String() string
String returns the string representation
type GetTrailInput ¶ added in v1.25.25
type GetTrailInput struct { // The name or the Amazon Resource Name (ARN) of the trail for which you want // to retrieve settings information. // // Name is a required field Name *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (GetTrailInput) GoString ¶ added in v1.25.25
func (s GetTrailInput) GoString() string
GoString returns the string representation
func (*GetTrailInput) SetName ¶ added in v1.25.25
func (s *GetTrailInput) SetName(v string) *GetTrailInput
SetName sets the Name field's value.
func (GetTrailInput) String ¶ added in v1.25.25
func (s GetTrailInput) String() string
String returns the string representation
func (*GetTrailInput) Validate ¶ added in v1.25.25
func (s *GetTrailInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetTrailOutput ¶ added in v1.25.25
type GetTrailOutput struct { // The settings for a trail. Trail *Trail `type:"structure"` // contains filtered or unexported fields }
func (GetTrailOutput) GoString ¶ added in v1.25.25
func (s GetTrailOutput) GoString() string
GoString returns the string representation
func (*GetTrailOutput) SetTrail ¶ added in v1.25.25
func (s *GetTrailOutput) SetTrail(v *Trail) *GetTrailOutput
SetTrail sets the Trail field's value.
func (GetTrailOutput) String ¶ added in v1.25.25
func (s GetTrailOutput) String() string
String returns the string representation
type GetTrailStatusInput ¶
type GetTrailStatusInput struct { // Specifies the name or the CloudTrail ARN of the trail for which you are requesting // status. To get the status of a shadow trail (a replication of the trail in // another region), you must specify its ARN. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` // contains filtered or unexported fields }
The name of a trail about which you want the current status.
func (GetTrailStatusInput) GoString ¶ added in v0.6.5
func (s GetTrailStatusInput) GoString() string
GoString returns the string representation
func (*GetTrailStatusInput) SetName ¶ added in v1.5.0
func (s *GetTrailStatusInput) SetName(v string) *GetTrailStatusInput
SetName sets the Name field's value.
func (GetTrailStatusInput) String ¶ added in v0.6.5
func (s GetTrailStatusInput) String() string
String returns the string representation
func (*GetTrailStatusInput) Validate ¶ added in v1.1.21
func (s *GetTrailStatusInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetTrailStatusOutput ¶
type GetTrailStatusOutput struct { // Whether the CloudTrail is currently logging AWS API calls. IsLogging *bool `type:"boolean"` // Displays any CloudWatch Logs error that CloudTrail encountered when attempting // to deliver logs to CloudWatch Logs. LatestCloudWatchLogsDeliveryError *string `type:"string"` // Displays the most recent date and time when CloudTrail delivered logs to // CloudWatch Logs. LatestCloudWatchLogsDeliveryTime *time.Time `type:"timestamp"` // This field is no longer in use. LatestDeliveryAttemptSucceeded *string `type:"string"` // This field is no longer in use. LatestDeliveryAttemptTime *string `type:"string"` // Displays any Amazon S3 error that CloudTrail encountered when attempting // to deliver log files to the designated bucket. For more information see the // topic Error Responses (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. // // This error occurs only when there is a problem with the destination S3 bucket // and will not occur for timeouts. To resolve the issue, create a new bucket // and call UpdateTrail to specify the new bucket, or fix the existing objects // so that CloudTrail can again write to the bucket. LatestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered log files to an // account's Amazon S3 bucket. LatestDeliveryTime *time.Time `type:"timestamp"` // Displays any Amazon S3 error that CloudTrail encountered when attempting // to deliver a digest file to the designated bucket. For more information see // the topic Error Responses (https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html) // in the Amazon S3 API Reference. // // This error occurs only when there is a problem with the destination S3 bucket // and will not occur for timeouts. To resolve the issue, create a new bucket // and call UpdateTrail to specify the new bucket, or fix the existing objects // so that CloudTrail can again write to the bucket. LatestDigestDeliveryError *string `type:"string"` // Specifies the date and time that CloudTrail last delivered a digest file // to an account's Amazon S3 bucket. LatestDigestDeliveryTime *time.Time `type:"timestamp"` // This field is no longer in use. LatestNotificationAttemptSucceeded *string `type:"string"` // This field is no longer in use. LatestNotificationAttemptTime *string `type:"string"` // Displays any Amazon SNS error that CloudTrail encountered when attempting // to send a notification. For more information about Amazon SNS errors, see // the Amazon SNS Developer Guide (https://docs.aws.amazon.com/sns/latest/dg/welcome.html). LatestNotificationError *string `type:"string"` // Specifies the date and time of the most recent Amazon SNS notification that // CloudTrail has written a new log file to an account's Amazon S3 bucket. LatestNotificationTime *time.Time `type:"timestamp"` // Specifies the most recent date and time when CloudTrail started recording // API calls for an AWS account. StartLoggingTime *time.Time `type:"timestamp"` // Specifies the most recent date and time when CloudTrail stopped recording // API calls for an AWS account. StopLoggingTime *time.Time `type:"timestamp"` // This field is no longer in use. TimeLoggingStarted *string `type:"string"` // This field is no longer in use. TimeLoggingStopped *string `type:"string"` // contains filtered or unexported fields }
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (GetTrailStatusOutput) GoString ¶ added in v0.6.5
func (s GetTrailStatusOutput) GoString() string
GoString returns the string representation
func (*GetTrailStatusOutput) SetIsLogging ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetIsLogging(v bool) *GetTrailStatusOutput
SetIsLogging sets the IsLogging field's value.
func (*GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryError ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryError(v string) *GetTrailStatusOutput
SetLatestCloudWatchLogsDeliveryError sets the LatestCloudWatchLogsDeliveryError field's value.
func (*GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestCloudWatchLogsDeliveryTime(v time.Time) *GetTrailStatusOutput
SetLatestCloudWatchLogsDeliveryTime sets the LatestCloudWatchLogsDeliveryTime field's value.
func (*GetTrailStatusOutput) SetLatestDeliveryAttemptSucceeded ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptSucceeded(v string) *GetTrailStatusOutput
SetLatestDeliveryAttemptSucceeded sets the LatestDeliveryAttemptSucceeded field's value.
func (*GetTrailStatusOutput) SetLatestDeliveryAttemptTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestDeliveryAttemptTime(v string) *GetTrailStatusOutput
SetLatestDeliveryAttemptTime sets the LatestDeliveryAttemptTime field's value.
func (*GetTrailStatusOutput) SetLatestDeliveryError ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestDeliveryError(v string) *GetTrailStatusOutput
SetLatestDeliveryError sets the LatestDeliveryError field's value.
func (*GetTrailStatusOutput) SetLatestDeliveryTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestDeliveryTime(v time.Time) *GetTrailStatusOutput
SetLatestDeliveryTime sets the LatestDeliveryTime field's value.
func (*GetTrailStatusOutput) SetLatestDigestDeliveryError ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestDigestDeliveryError(v string) *GetTrailStatusOutput
SetLatestDigestDeliveryError sets the LatestDigestDeliveryError field's value.
func (*GetTrailStatusOutput) SetLatestDigestDeliveryTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestDigestDeliveryTime(v time.Time) *GetTrailStatusOutput
SetLatestDigestDeliveryTime sets the LatestDigestDeliveryTime field's value.
func (*GetTrailStatusOutput) SetLatestNotificationAttemptSucceeded ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestNotificationAttemptSucceeded(v string) *GetTrailStatusOutput
SetLatestNotificationAttemptSucceeded sets the LatestNotificationAttemptSucceeded field's value.
func (*GetTrailStatusOutput) SetLatestNotificationAttemptTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestNotificationAttemptTime(v string) *GetTrailStatusOutput
SetLatestNotificationAttemptTime sets the LatestNotificationAttemptTime field's value.
func (*GetTrailStatusOutput) SetLatestNotificationError ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestNotificationError(v string) *GetTrailStatusOutput
SetLatestNotificationError sets the LatestNotificationError field's value.
func (*GetTrailStatusOutput) SetLatestNotificationTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetLatestNotificationTime(v time.Time) *GetTrailStatusOutput
SetLatestNotificationTime sets the LatestNotificationTime field's value.
func (*GetTrailStatusOutput) SetStartLoggingTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetStartLoggingTime(v time.Time) *GetTrailStatusOutput
SetStartLoggingTime sets the StartLoggingTime field's value.
func (*GetTrailStatusOutput) SetStopLoggingTime ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetStopLoggingTime(v time.Time) *GetTrailStatusOutput
SetStopLoggingTime sets the StopLoggingTime field's value.
func (*GetTrailStatusOutput) SetTimeLoggingStarted ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetTimeLoggingStarted(v string) *GetTrailStatusOutput
SetTimeLoggingStarted sets the TimeLoggingStarted field's value.
func (*GetTrailStatusOutput) SetTimeLoggingStopped ¶ added in v1.5.0
func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOutput
SetTimeLoggingStopped sets the TimeLoggingStopped field's value.
func (GetTrailStatusOutput) String ¶ added in v0.6.5
func (s GetTrailStatusOutput) String() string
String returns the string representation
type InsightNotEnabledException ¶ added in v1.28.0
type InsightNotEnabledException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException.
func (*InsightNotEnabledException) Code ¶ added in v1.28.0
func (s *InsightNotEnabledException) Code() string
Code returns the exception type name.
func (*InsightNotEnabledException) Error ¶ added in v1.28.0
func (s *InsightNotEnabledException) Error() string
func (InsightNotEnabledException) GoString ¶ added in v1.28.0
func (s InsightNotEnabledException) GoString() string
GoString returns the string representation
func (*InsightNotEnabledException) Message ¶ added in v1.28.0
func (s *InsightNotEnabledException) Message() string
Message returns the exception's message.
func (*InsightNotEnabledException) OrigErr ¶ added in v1.28.0
func (s *InsightNotEnabledException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InsightNotEnabledException) RequestID ¶ added in v1.28.0
func (s *InsightNotEnabledException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InsightNotEnabledException) StatusCode ¶ added in v1.28.0
func (s *InsightNotEnabledException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InsightNotEnabledException) String ¶ added in v1.28.0
func (s InsightNotEnabledException) String() string
String returns the string representation
type InsightSelector ¶ added in v1.25.39
type InsightSelector struct { // The type of insights to log on a trail. In this release, only ApiCallRateInsight // is supported as an insight type. InsightType *string `type:"string" enum:"InsightType"` // contains filtered or unexported fields }
A JSON string that contains a list of insight types that are logged on a trail.
func (InsightSelector) GoString ¶ added in v1.25.39
func (s InsightSelector) GoString() string
GoString returns the string representation
func (*InsightSelector) SetInsightType ¶ added in v1.25.39
func (s *InsightSelector) SetInsightType(v string) *InsightSelector
SetInsightType sets the InsightType field's value.
func (InsightSelector) String ¶ added in v1.25.39
func (s InsightSelector) String() string
String returns the string representation
type InsufficientDependencyServiceAccessPermissionException ¶ added in v1.28.0
type InsufficientDependencyServiceAccessPermissionException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
func (*InsufficientDependencyServiceAccessPermissionException) Code ¶ added in v1.28.0
func (s *InsufficientDependencyServiceAccessPermissionException) Code() string
Code returns the exception type name.
func (*InsufficientDependencyServiceAccessPermissionException) Error ¶ added in v1.28.0
func (s *InsufficientDependencyServiceAccessPermissionException) Error() string
func (InsufficientDependencyServiceAccessPermissionException) GoString ¶ added in v1.28.0
func (s InsufficientDependencyServiceAccessPermissionException) GoString() string
GoString returns the string representation
func (*InsufficientDependencyServiceAccessPermissionException) Message ¶ added in v1.28.0
func (s *InsufficientDependencyServiceAccessPermissionException) Message() string
Message returns the exception's message.
func (*InsufficientDependencyServiceAccessPermissionException) OrigErr ¶ added in v1.28.0
func (s *InsufficientDependencyServiceAccessPermissionException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InsufficientDependencyServiceAccessPermissionException) RequestID ¶ added in v1.28.0
func (s *InsufficientDependencyServiceAccessPermissionException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InsufficientDependencyServiceAccessPermissionException) StatusCode ¶ added in v1.28.0
func (s *InsufficientDependencyServiceAccessPermissionException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InsufficientDependencyServiceAccessPermissionException) String ¶ added in v1.28.0
func (s InsufficientDependencyServiceAccessPermissionException) String() string
String returns the string representation
type InsufficientEncryptionPolicyException ¶ added in v1.28.0
type InsufficientEncryptionPolicyException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.
func (*InsufficientEncryptionPolicyException) Code ¶ added in v1.28.0
func (s *InsufficientEncryptionPolicyException) Code() string
Code returns the exception type name.
func (*InsufficientEncryptionPolicyException) Error ¶ added in v1.28.0
func (s *InsufficientEncryptionPolicyException) Error() string
func (InsufficientEncryptionPolicyException) GoString ¶ added in v1.28.0
func (s InsufficientEncryptionPolicyException) GoString() string
GoString returns the string representation
func (*InsufficientEncryptionPolicyException) Message ¶ added in v1.28.0
func (s *InsufficientEncryptionPolicyException) Message() string
Message returns the exception's message.
func (*InsufficientEncryptionPolicyException) OrigErr ¶ added in v1.28.0
func (s *InsufficientEncryptionPolicyException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InsufficientEncryptionPolicyException) RequestID ¶ added in v1.28.0
func (s *InsufficientEncryptionPolicyException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InsufficientEncryptionPolicyException) StatusCode ¶ added in v1.28.0
func (s *InsufficientEncryptionPolicyException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InsufficientEncryptionPolicyException) String ¶ added in v1.28.0
func (s InsufficientEncryptionPolicyException) String() string
String returns the string representation
type InsufficientS3BucketPolicyException ¶ added in v1.28.0
type InsufficientS3BucketPolicyException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the policy on the S3 bucket is not sufficient.
func (*InsufficientS3BucketPolicyException) Code ¶ added in v1.28.0
func (s *InsufficientS3BucketPolicyException) Code() string
Code returns the exception type name.
func (*InsufficientS3BucketPolicyException) Error ¶ added in v1.28.0
func (s *InsufficientS3BucketPolicyException) Error() string
func (InsufficientS3BucketPolicyException) GoString ¶ added in v1.28.0
func (s InsufficientS3BucketPolicyException) GoString() string
GoString returns the string representation
func (*InsufficientS3BucketPolicyException) Message ¶ added in v1.28.0
func (s *InsufficientS3BucketPolicyException) Message() string
Message returns the exception's message.
func (*InsufficientS3BucketPolicyException) OrigErr ¶ added in v1.28.0
func (s *InsufficientS3BucketPolicyException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InsufficientS3BucketPolicyException) RequestID ¶ added in v1.28.0
func (s *InsufficientS3BucketPolicyException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InsufficientS3BucketPolicyException) StatusCode ¶ added in v1.28.0
func (s *InsufficientS3BucketPolicyException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InsufficientS3BucketPolicyException) String ¶ added in v1.28.0
func (s InsufficientS3BucketPolicyException) String() string
String returns the string representation
type InsufficientSnsTopicPolicyException ¶ added in v1.28.0
type InsufficientSnsTopicPolicyException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the policy on the SNS topic is not sufficient.
func (*InsufficientSnsTopicPolicyException) Code ¶ added in v1.28.0
func (s *InsufficientSnsTopicPolicyException) Code() string
Code returns the exception type name.
func (*InsufficientSnsTopicPolicyException) Error ¶ added in v1.28.0
func (s *InsufficientSnsTopicPolicyException) Error() string
func (InsufficientSnsTopicPolicyException) GoString ¶ added in v1.28.0
func (s InsufficientSnsTopicPolicyException) GoString() string
GoString returns the string representation
func (*InsufficientSnsTopicPolicyException) Message ¶ added in v1.28.0
func (s *InsufficientSnsTopicPolicyException) Message() string
Message returns the exception's message.
func (*InsufficientSnsTopicPolicyException) OrigErr ¶ added in v1.28.0
func (s *InsufficientSnsTopicPolicyException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InsufficientSnsTopicPolicyException) RequestID ¶ added in v1.28.0
func (s *InsufficientSnsTopicPolicyException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InsufficientSnsTopicPolicyException) StatusCode ¶ added in v1.28.0
func (s *InsufficientSnsTopicPolicyException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InsufficientSnsTopicPolicyException) String ¶ added in v1.28.0
func (s InsufficientSnsTopicPolicyException) String() string
String returns the string representation
type InvalidCloudWatchLogsLogGroupArnException ¶ added in v1.28.0
type InvalidCloudWatchLogsLogGroupArnException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the provided CloudWatch log group is not valid.
func (*InvalidCloudWatchLogsLogGroupArnException) Code ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsLogGroupArnException) Code() string
Code returns the exception type name.
func (*InvalidCloudWatchLogsLogGroupArnException) Error ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsLogGroupArnException) Error() string
func (InvalidCloudWatchLogsLogGroupArnException) GoString ¶ added in v1.28.0
func (s InvalidCloudWatchLogsLogGroupArnException) GoString() string
GoString returns the string representation
func (*InvalidCloudWatchLogsLogGroupArnException) Message ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsLogGroupArnException) Message() string
Message returns the exception's message.
func (*InvalidCloudWatchLogsLogGroupArnException) OrigErr ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsLogGroupArnException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidCloudWatchLogsLogGroupArnException) RequestID ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsLogGroupArnException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidCloudWatchLogsLogGroupArnException) StatusCode ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsLogGroupArnException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidCloudWatchLogsLogGroupArnException) String ¶ added in v1.28.0
func (s InvalidCloudWatchLogsLogGroupArnException) String() string
String returns the string representation
type InvalidCloudWatchLogsRoleArnException ¶ added in v1.28.0
type InvalidCloudWatchLogsRoleArnException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the provided role is not valid.
func (*InvalidCloudWatchLogsRoleArnException) Code ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsRoleArnException) Code() string
Code returns the exception type name.
func (*InvalidCloudWatchLogsRoleArnException) Error ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsRoleArnException) Error() string
func (InvalidCloudWatchLogsRoleArnException) GoString ¶ added in v1.28.0
func (s InvalidCloudWatchLogsRoleArnException) GoString() string
GoString returns the string representation
func (*InvalidCloudWatchLogsRoleArnException) Message ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsRoleArnException) Message() string
Message returns the exception's message.
func (*InvalidCloudWatchLogsRoleArnException) OrigErr ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsRoleArnException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidCloudWatchLogsRoleArnException) RequestID ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsRoleArnException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidCloudWatchLogsRoleArnException) StatusCode ¶ added in v1.28.0
func (s *InvalidCloudWatchLogsRoleArnException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidCloudWatchLogsRoleArnException) String ¶ added in v1.28.0
func (s InvalidCloudWatchLogsRoleArnException) String() string
String returns the string representation
type InvalidEventCategoryException ¶ added in v1.28.0
type InvalidEventCategoryException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
Occurs if an event category that is not valid is specified as a value of EventCategory.
func (*InvalidEventCategoryException) Code ¶ added in v1.28.0
func (s *InvalidEventCategoryException) Code() string
Code returns the exception type name.
func (*InvalidEventCategoryException) Error ¶ added in v1.28.0
func (s *InvalidEventCategoryException) Error() string
func (InvalidEventCategoryException) GoString ¶ added in v1.28.0
func (s InvalidEventCategoryException) GoString() string
GoString returns the string representation
func (*InvalidEventCategoryException) Message ¶ added in v1.28.0
func (s *InvalidEventCategoryException) Message() string
Message returns the exception's message.
func (*InvalidEventCategoryException) OrigErr ¶ added in v1.28.0
func (s *InvalidEventCategoryException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidEventCategoryException) RequestID ¶ added in v1.28.0
func (s *InvalidEventCategoryException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidEventCategoryException) StatusCode ¶ added in v1.28.0
func (s *InvalidEventCategoryException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidEventCategoryException) String ¶ added in v1.28.0
func (s InvalidEventCategoryException) String() string
String returns the string representation
type InvalidEventSelectorsException ¶ added in v1.28.0
type InvalidEventSelectorsException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the PutEventSelectors operation is called with a number of event selectors or data resources that is not valid. The combination of event selectors and data resources is not valid. A trail can have up to 5 event selectors. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.
You can:
Specify a valid number of event selectors (1 to 5) for a trail.
Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.
Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is invalid.
func (*InvalidEventSelectorsException) Code ¶ added in v1.28.0
func (s *InvalidEventSelectorsException) Code() string
Code returns the exception type name.
func (*InvalidEventSelectorsException) Error ¶ added in v1.28.0
func (s *InvalidEventSelectorsException) Error() string
func (InvalidEventSelectorsException) GoString ¶ added in v1.28.0
func (s InvalidEventSelectorsException) GoString() string
GoString returns the string representation
func (*InvalidEventSelectorsException) Message ¶ added in v1.28.0
func (s *InvalidEventSelectorsException) Message() string
Message returns the exception's message.
func (*InvalidEventSelectorsException) OrigErr ¶ added in v1.28.0
func (s *InvalidEventSelectorsException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidEventSelectorsException) RequestID ¶ added in v1.28.0
func (s *InvalidEventSelectorsException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidEventSelectorsException) StatusCode ¶ added in v1.28.0
func (s *InvalidEventSelectorsException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidEventSelectorsException) String ¶ added in v1.28.0
func (s InvalidEventSelectorsException) String() string
String returns the string representation
type InvalidHomeRegionException ¶ added in v1.28.0
type InvalidHomeRegionException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
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.
func (*InvalidHomeRegionException) Code ¶ added in v1.28.0
func (s *InvalidHomeRegionException) Code() string
Code returns the exception type name.
func (*InvalidHomeRegionException) Error ¶ added in v1.28.0
func (s *InvalidHomeRegionException) Error() string
func (InvalidHomeRegionException) GoString ¶ added in v1.28.0
func (s InvalidHomeRegionException) GoString() string
GoString returns the string representation
func (*InvalidHomeRegionException) Message ¶ added in v1.28.0
func (s *InvalidHomeRegionException) Message() string
Message returns the exception's message.
func (*InvalidHomeRegionException) OrigErr ¶ added in v1.28.0
func (s *InvalidHomeRegionException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidHomeRegionException) RequestID ¶ added in v1.28.0
func (s *InvalidHomeRegionException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidHomeRegionException) StatusCode ¶ added in v1.28.0
func (s *InvalidHomeRegionException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidHomeRegionException) String ¶ added in v1.28.0
func (s InvalidHomeRegionException) String() string
String returns the string representation
type InvalidInsightSelectorsException ¶ added in v1.28.0
type InvalidInsightSelectorsException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors or GetInsightSelectors request is not valid, or the specified insight type in the InsightSelectors statement is not a valid insight type.
func (*InvalidInsightSelectorsException) Code ¶ added in v1.28.0
func (s *InvalidInsightSelectorsException) Code() string
Code returns the exception type name.
func (*InvalidInsightSelectorsException) Error ¶ added in v1.28.0
func (s *InvalidInsightSelectorsException) Error() string
func (InvalidInsightSelectorsException) GoString ¶ added in v1.28.0
func (s InvalidInsightSelectorsException) GoString() string
GoString returns the string representation
func (*InvalidInsightSelectorsException) Message ¶ added in v1.28.0
func (s *InvalidInsightSelectorsException) Message() string
Message returns the exception's message.
func (*InvalidInsightSelectorsException) OrigErr ¶ added in v1.28.0
func (s *InvalidInsightSelectorsException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidInsightSelectorsException) RequestID ¶ added in v1.28.0
func (s *InvalidInsightSelectorsException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidInsightSelectorsException) StatusCode ¶ added in v1.28.0
func (s *InvalidInsightSelectorsException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidInsightSelectorsException) String ¶ added in v1.28.0
func (s InvalidInsightSelectorsException) String() string
String returns the string representation
type InvalidKmsKeyIdException ¶ added in v1.28.0
type InvalidKmsKeyIdException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the KMS key ARN is invalid.
func (*InvalidKmsKeyIdException) Code ¶ added in v1.28.0
func (s *InvalidKmsKeyIdException) Code() string
Code returns the exception type name.
func (*InvalidKmsKeyIdException) Error ¶ added in v1.28.0
func (s *InvalidKmsKeyIdException) Error() string
func (InvalidKmsKeyIdException) GoString ¶ added in v1.28.0
func (s InvalidKmsKeyIdException) GoString() string
GoString returns the string representation
func (*InvalidKmsKeyIdException) Message ¶ added in v1.28.0
func (s *InvalidKmsKeyIdException) Message() string
Message returns the exception's message.
func (*InvalidKmsKeyIdException) OrigErr ¶ added in v1.28.0
func (s *InvalidKmsKeyIdException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidKmsKeyIdException) RequestID ¶ added in v1.28.0
func (s *InvalidKmsKeyIdException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidKmsKeyIdException) StatusCode ¶ added in v1.28.0
func (s *InvalidKmsKeyIdException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidKmsKeyIdException) String ¶ added in v1.28.0
func (s InvalidKmsKeyIdException) String() string
String returns the string representation
type InvalidLookupAttributesException ¶ added in v1.28.0
type InvalidLookupAttributesException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
Occurs when an invalid lookup attribute is specified.
func (*InvalidLookupAttributesException) Code ¶ added in v1.28.0
func (s *InvalidLookupAttributesException) Code() string
Code returns the exception type name.
func (*InvalidLookupAttributesException) Error ¶ added in v1.28.0
func (s *InvalidLookupAttributesException) Error() string
func (InvalidLookupAttributesException) GoString ¶ added in v1.28.0
func (s InvalidLookupAttributesException) GoString() string
GoString returns the string representation
func (*InvalidLookupAttributesException) Message ¶ added in v1.28.0
func (s *InvalidLookupAttributesException) Message() string
Message returns the exception's message.
func (*InvalidLookupAttributesException) OrigErr ¶ added in v1.28.0
func (s *InvalidLookupAttributesException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidLookupAttributesException) RequestID ¶ added in v1.28.0
func (s *InvalidLookupAttributesException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidLookupAttributesException) StatusCode ¶ added in v1.28.0
func (s *InvalidLookupAttributesException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidLookupAttributesException) String ¶ added in v1.28.0
func (s InvalidLookupAttributesException) String() string
String returns the string representation
type InvalidMaxResultsException ¶ added in v1.28.0
type InvalidMaxResultsException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown if the limit specified is invalid.
func (*InvalidMaxResultsException) Code ¶ added in v1.28.0
func (s *InvalidMaxResultsException) Code() string
Code returns the exception type name.
func (*InvalidMaxResultsException) Error ¶ added in v1.28.0
func (s *InvalidMaxResultsException) Error() string
func (InvalidMaxResultsException) GoString ¶ added in v1.28.0
func (s InvalidMaxResultsException) GoString() string
GoString returns the string representation
func (*InvalidMaxResultsException) Message ¶ added in v1.28.0
func (s *InvalidMaxResultsException) Message() string
Message returns the exception's message.
func (*InvalidMaxResultsException) OrigErr ¶ added in v1.28.0
func (s *InvalidMaxResultsException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidMaxResultsException) RequestID ¶ added in v1.28.0
func (s *InvalidMaxResultsException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidMaxResultsException) StatusCode ¶ added in v1.28.0
func (s *InvalidMaxResultsException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidMaxResultsException) String ¶ added in v1.28.0
func (s InvalidMaxResultsException) String() string
String returns the string representation
type InvalidNextTokenException ¶ added in v1.28.0
type InvalidNextTokenException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.
func (*InvalidNextTokenException) Code ¶ added in v1.28.0
func (s *InvalidNextTokenException) Code() string
Code returns the exception type name.
func (*InvalidNextTokenException) Error ¶ added in v1.28.0
func (s *InvalidNextTokenException) Error() string
func (InvalidNextTokenException) GoString ¶ added in v1.28.0
func (s InvalidNextTokenException) GoString() string
GoString returns the string representation
func (*InvalidNextTokenException) Message ¶ added in v1.28.0
func (s *InvalidNextTokenException) Message() string
Message returns the exception's message.
func (*InvalidNextTokenException) OrigErr ¶ added in v1.28.0
func (s *InvalidNextTokenException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidNextTokenException) RequestID ¶ added in v1.28.0
func (s *InvalidNextTokenException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidNextTokenException) StatusCode ¶ added in v1.28.0
func (s *InvalidNextTokenException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidNextTokenException) String ¶ added in v1.28.0
func (s InvalidNextTokenException) String() string
String returns the string representation
type InvalidParameterCombinationException ¶ added in v1.28.0
type InvalidParameterCombinationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the combination of parameters provided is not valid.
func (*InvalidParameterCombinationException) Code ¶ added in v1.28.0
func (s *InvalidParameterCombinationException) Code() string
Code returns the exception type name.
func (*InvalidParameterCombinationException) Error ¶ added in v1.28.0
func (s *InvalidParameterCombinationException) Error() string
func (InvalidParameterCombinationException) GoString ¶ added in v1.28.0
func (s InvalidParameterCombinationException) GoString() string
GoString returns the string representation
func (*InvalidParameterCombinationException) Message ¶ added in v1.28.0
func (s *InvalidParameterCombinationException) Message() string
Message returns the exception's message.
func (*InvalidParameterCombinationException) OrigErr ¶ added in v1.28.0
func (s *InvalidParameterCombinationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidParameterCombinationException) RequestID ¶ added in v1.28.0
func (s *InvalidParameterCombinationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidParameterCombinationException) StatusCode ¶ added in v1.28.0
func (s *InvalidParameterCombinationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidParameterCombinationException) String ¶ added in v1.28.0
func (s InvalidParameterCombinationException) String() string
String returns the string representation
type InvalidS3BucketNameException ¶ added in v1.28.0
type InvalidS3BucketNameException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the provided S3 bucket name is not valid.
func (*InvalidS3BucketNameException) Code ¶ added in v1.28.0
func (s *InvalidS3BucketNameException) Code() string
Code returns the exception type name.
func (*InvalidS3BucketNameException) Error ¶ added in v1.28.0
func (s *InvalidS3BucketNameException) Error() string
func (InvalidS3BucketNameException) GoString ¶ added in v1.28.0
func (s InvalidS3BucketNameException) GoString() string
GoString returns the string representation
func (*InvalidS3BucketNameException) Message ¶ added in v1.28.0
func (s *InvalidS3BucketNameException) Message() string
Message returns the exception's message.
func (*InvalidS3BucketNameException) OrigErr ¶ added in v1.28.0
func (s *InvalidS3BucketNameException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidS3BucketNameException) RequestID ¶ added in v1.28.0
func (s *InvalidS3BucketNameException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidS3BucketNameException) StatusCode ¶ added in v1.28.0
func (s *InvalidS3BucketNameException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidS3BucketNameException) String ¶ added in v1.28.0
func (s InvalidS3BucketNameException) String() string
String returns the string representation
type InvalidS3PrefixException ¶ added in v1.28.0
type InvalidS3PrefixException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the provided S3 prefix is not valid.
func (*InvalidS3PrefixException) Code ¶ added in v1.28.0
func (s *InvalidS3PrefixException) Code() string
Code returns the exception type name.
func (*InvalidS3PrefixException) Error ¶ added in v1.28.0
func (s *InvalidS3PrefixException) Error() string
func (InvalidS3PrefixException) GoString ¶ added in v1.28.0
func (s InvalidS3PrefixException) GoString() string
GoString returns the string representation
func (*InvalidS3PrefixException) Message ¶ added in v1.28.0
func (s *InvalidS3PrefixException) Message() string
Message returns the exception's message.
func (*InvalidS3PrefixException) OrigErr ¶ added in v1.28.0
func (s *InvalidS3PrefixException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidS3PrefixException) RequestID ¶ added in v1.28.0
func (s *InvalidS3PrefixException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidS3PrefixException) StatusCode ¶ added in v1.28.0
func (s *InvalidS3PrefixException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidS3PrefixException) String ¶ added in v1.28.0
func (s InvalidS3PrefixException) String() string
String returns the string representation
type InvalidSnsTopicNameException ¶ added in v1.28.0
type InvalidSnsTopicNameException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the provided SNS topic name is not valid.
func (*InvalidSnsTopicNameException) Code ¶ added in v1.28.0
func (s *InvalidSnsTopicNameException) Code() string
Code returns the exception type name.
func (*InvalidSnsTopicNameException) Error ¶ added in v1.28.0
func (s *InvalidSnsTopicNameException) Error() string
func (InvalidSnsTopicNameException) GoString ¶ added in v1.28.0
func (s InvalidSnsTopicNameException) GoString() string
GoString returns the string representation
func (*InvalidSnsTopicNameException) Message ¶ added in v1.28.0
func (s *InvalidSnsTopicNameException) Message() string
Message returns the exception's message.
func (*InvalidSnsTopicNameException) OrigErr ¶ added in v1.28.0
func (s *InvalidSnsTopicNameException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidSnsTopicNameException) RequestID ¶ added in v1.28.0
func (s *InvalidSnsTopicNameException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidSnsTopicNameException) StatusCode ¶ added in v1.28.0
func (s *InvalidSnsTopicNameException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidSnsTopicNameException) String ¶ added in v1.28.0
func (s InvalidSnsTopicNameException) String() string
String returns the string representation
type InvalidTagParameterException ¶ added in v1.28.0
type InvalidTagParameterException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.
func (*InvalidTagParameterException) Code ¶ added in v1.28.0
func (s *InvalidTagParameterException) Code() string
Code returns the exception type name.
func (*InvalidTagParameterException) Error ¶ added in v1.28.0
func (s *InvalidTagParameterException) Error() string
func (InvalidTagParameterException) GoString ¶ added in v1.28.0
func (s InvalidTagParameterException) GoString() string
GoString returns the string representation
func (*InvalidTagParameterException) Message ¶ added in v1.28.0
func (s *InvalidTagParameterException) Message() string
Message returns the exception's message.
func (*InvalidTagParameterException) OrigErr ¶ added in v1.28.0
func (s *InvalidTagParameterException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidTagParameterException) RequestID ¶ added in v1.28.0
func (s *InvalidTagParameterException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidTagParameterException) StatusCode ¶ added in v1.28.0
func (s *InvalidTagParameterException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidTagParameterException) String ¶ added in v1.28.0
func (s InvalidTagParameterException) String() string
String returns the string representation
type InvalidTimeRangeException ¶ added in v1.28.0
type InvalidTimeRangeException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
Occurs if the timestamp values are invalid. Either the start time occurs after the end time or the time range is outside the range of possible values.
func (*InvalidTimeRangeException) Code ¶ added in v1.28.0
func (s *InvalidTimeRangeException) Code() string
Code returns the exception type name.
func (*InvalidTimeRangeException) Error ¶ added in v1.28.0
func (s *InvalidTimeRangeException) Error() string
func (InvalidTimeRangeException) GoString ¶ added in v1.28.0
func (s InvalidTimeRangeException) GoString() string
GoString returns the string representation
func (*InvalidTimeRangeException) Message ¶ added in v1.28.0
func (s *InvalidTimeRangeException) Message() string
Message returns the exception's message.
func (*InvalidTimeRangeException) OrigErr ¶ added in v1.28.0
func (s *InvalidTimeRangeException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidTimeRangeException) RequestID ¶ added in v1.28.0
func (s *InvalidTimeRangeException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidTimeRangeException) StatusCode ¶ added in v1.28.0
func (s *InvalidTimeRangeException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidTimeRangeException) String ¶ added in v1.28.0
func (s InvalidTimeRangeException) String() string
String returns the string representation
type InvalidTokenException ¶ added in v1.28.0
type InvalidTokenException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
Reserved for future use.
func (*InvalidTokenException) Code ¶ added in v1.28.0
func (s *InvalidTokenException) Code() string
Code returns the exception type name.
func (*InvalidTokenException) Error ¶ added in v1.28.0
func (s *InvalidTokenException) Error() string
func (InvalidTokenException) GoString ¶ added in v1.28.0
func (s InvalidTokenException) GoString() string
GoString returns the string representation
func (*InvalidTokenException) Message ¶ added in v1.28.0
func (s *InvalidTokenException) Message() string
Message returns the exception's message.
func (*InvalidTokenException) OrigErr ¶ added in v1.28.0
func (s *InvalidTokenException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidTokenException) RequestID ¶ added in v1.28.0
func (s *InvalidTokenException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidTokenException) StatusCode ¶ added in v1.28.0
func (s *InvalidTokenException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidTokenException) String ¶ added in v1.28.0
func (s InvalidTokenException) String() string
String returns the string representation
type InvalidTrailNameException ¶ added in v1.28.0
type InvalidTrailNameException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
Start with a letter or number, and end with a letter or number
Be between 3 and 128 characters
Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are invalid.
Not be in IP address format (for example, 192.168.5.4)
func (*InvalidTrailNameException) Code ¶ added in v1.28.0
func (s *InvalidTrailNameException) Code() string
Code returns the exception type name.
func (*InvalidTrailNameException) Error ¶ added in v1.28.0
func (s *InvalidTrailNameException) Error() string
func (InvalidTrailNameException) GoString ¶ added in v1.28.0
func (s InvalidTrailNameException) GoString() string
GoString returns the string representation
func (*InvalidTrailNameException) Message ¶ added in v1.28.0
func (s *InvalidTrailNameException) Message() string
Message returns the exception's message.
func (*InvalidTrailNameException) OrigErr ¶ added in v1.28.0
func (s *InvalidTrailNameException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InvalidTrailNameException) RequestID ¶ added in v1.28.0
func (s *InvalidTrailNameException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InvalidTrailNameException) StatusCode ¶ added in v1.28.0
func (s *InvalidTrailNameException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InvalidTrailNameException) String ¶ added in v1.28.0
func (s InvalidTrailNameException) String() string
String returns the string representation
type KmsException ¶ added in v1.28.0
type KmsException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.
func (*KmsException) Code ¶ added in v1.28.0
func (s *KmsException) Code() string
Code returns the exception type name.
func (*KmsException) Error ¶ added in v1.28.0
func (s *KmsException) Error() string
func (KmsException) GoString ¶ added in v1.28.0
func (s KmsException) GoString() string
GoString returns the string representation
func (*KmsException) Message ¶ added in v1.28.0
func (s *KmsException) Message() string
Message returns the exception's message.
func (*KmsException) OrigErr ¶ added in v1.28.0
func (s *KmsException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*KmsException) RequestID ¶ added in v1.28.0
func (s *KmsException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*KmsException) StatusCode ¶ added in v1.28.0
func (s *KmsException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (KmsException) String ¶ added in v1.28.0
func (s KmsException) String() string
String returns the string representation
type KmsKeyDisabledException
deprecated
added in
v1.28.0
type KmsKeyDisabledException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is no longer in use.
Deprecated: KmsKeyDisabledException has been deprecated
func (*KmsKeyDisabledException) Code ¶ added in v1.28.0
func (s *KmsKeyDisabledException) Code() string
Code returns the exception type name.
func (*KmsKeyDisabledException) Error ¶ added in v1.28.0
func (s *KmsKeyDisabledException) Error() string
func (KmsKeyDisabledException) GoString ¶ added in v1.28.0
func (s KmsKeyDisabledException) GoString() string
GoString returns the string representation
func (*KmsKeyDisabledException) Message ¶ added in v1.28.0
func (s *KmsKeyDisabledException) Message() string
Message returns the exception's message.
func (*KmsKeyDisabledException) OrigErr ¶ added in v1.28.0
func (s *KmsKeyDisabledException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*KmsKeyDisabledException) RequestID ¶ added in v1.28.0
func (s *KmsKeyDisabledException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*KmsKeyDisabledException) StatusCode ¶ added in v1.28.0
func (s *KmsKeyDisabledException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (KmsKeyDisabledException) String ¶ added in v1.28.0
func (s KmsKeyDisabledException) String() string
String returns the string representation
type KmsKeyNotFoundException ¶ added in v1.28.0
type KmsKeyNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the KMS key does not exist, or when the S3 bucket and the KMS key are not in the same region.
func (*KmsKeyNotFoundException) Code ¶ added in v1.28.0
func (s *KmsKeyNotFoundException) Code() string
Code returns the exception type name.
func (*KmsKeyNotFoundException) Error ¶ added in v1.28.0
func (s *KmsKeyNotFoundException) Error() string
func (KmsKeyNotFoundException) GoString ¶ added in v1.28.0
func (s KmsKeyNotFoundException) GoString() string
GoString returns the string representation
func (*KmsKeyNotFoundException) Message ¶ added in v1.28.0
func (s *KmsKeyNotFoundException) Message() string
Message returns the exception's message.
func (*KmsKeyNotFoundException) OrigErr ¶ added in v1.28.0
func (s *KmsKeyNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*KmsKeyNotFoundException) RequestID ¶ added in v1.28.0
func (s *KmsKeyNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*KmsKeyNotFoundException) StatusCode ¶ added in v1.28.0
func (s *KmsKeyNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (KmsKeyNotFoundException) String ¶ added in v1.28.0
func (s KmsKeyNotFoundException) String() string
String returns the string representation
type ListPublicKeysInput ¶ added in v0.9.11
type ListPublicKeysInput struct { // Optionally specifies, in UTC, the end of the time range to look up public // keys for CloudTrail digest files. If not specified, the current time is used. EndTime *time.Time `type:"timestamp"` // Reserved for future use. NextToken *string `type:"string"` // Optionally specifies, in UTC, the start of the time range to look up public // keys for CloudTrail digest files. If not specified, the current time is used, // and the current public key is returned. StartTime *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Requests the public keys for a specified time range.
func (ListPublicKeysInput) GoString ¶ added in v0.9.11
func (s ListPublicKeysInput) GoString() string
GoString returns the string representation
func (*ListPublicKeysInput) SetEndTime ¶ added in v1.5.0
func (s *ListPublicKeysInput) SetEndTime(v time.Time) *ListPublicKeysInput
SetEndTime sets the EndTime field's value.
func (*ListPublicKeysInput) SetNextToken ¶ added in v1.5.0
func (s *ListPublicKeysInput) SetNextToken(v string) *ListPublicKeysInput
SetNextToken sets the NextToken field's value.
func (*ListPublicKeysInput) SetStartTime ¶ added in v1.5.0
func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput
SetStartTime sets the StartTime field's value.
func (ListPublicKeysInput) String ¶ added in v0.9.11
func (s ListPublicKeysInput) String() string
String returns the string representation
type ListPublicKeysOutput ¶ added in v0.9.11
type ListPublicKeysOutput struct { // Reserved for future use. NextToken *string `type:"string"` // Contains an array of PublicKey objects. // // The returned public keys may have validity time ranges that overlap. PublicKeyList []*PublicKey `type:"list"` // contains filtered or unexported fields }
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (ListPublicKeysOutput) GoString ¶ added in v0.9.11
func (s ListPublicKeysOutput) GoString() string
GoString returns the string representation
func (*ListPublicKeysOutput) SetNextToken ¶ added in v1.5.0
func (s *ListPublicKeysOutput) SetNextToken(v string) *ListPublicKeysOutput
SetNextToken sets the NextToken field's value.
func (*ListPublicKeysOutput) SetPublicKeyList ¶ added in v1.5.0
func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput
SetPublicKeyList sets the PublicKeyList field's value.
func (ListPublicKeysOutput) String ¶ added in v0.9.11
func (s ListPublicKeysOutput) String() string
String returns the string representation
type ListTagsInput ¶ added in v0.9.11
type ListTagsInput struct { // Reserved for future use. NextToken *string `type:"string"` // Specifies a list of trail ARNs whose tags will be listed. The list has a // limit of 20 ARNs. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // ResourceIdList is a required field ResourceIdList []*string `type:"list" required:"true"` // contains filtered or unexported fields }
Specifies a list of trail tags to return.
func (ListTagsInput) GoString ¶ added in v0.9.11
func (s ListTagsInput) GoString() string
GoString returns the string representation
func (*ListTagsInput) SetNextToken ¶ added in v1.5.0
func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput
SetNextToken sets the NextToken field's value.
func (*ListTagsInput) SetResourceIdList ¶ added in v1.5.0
func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput
SetResourceIdList sets the ResourceIdList field's value.
func (ListTagsInput) String ¶ added in v0.9.11
func (s ListTagsInput) String() string
String returns the string representation
func (*ListTagsInput) Validate ¶ added in v1.1.21
func (s *ListTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsOutput ¶ added in v0.9.11
type ListTagsOutput struct { // Reserved for future use. NextToken *string `type:"string"` // A list of resource tags. ResourceTagList []*ResourceTag `type:"list"` // contains filtered or unexported fields }
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (ListTagsOutput) GoString ¶ added in v0.9.11
func (s ListTagsOutput) GoString() string
GoString returns the string representation
func (*ListTagsOutput) SetNextToken ¶ added in v1.5.0
func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput
SetNextToken sets the NextToken field's value.
func (*ListTagsOutput) SetResourceTagList ¶ added in v1.5.0
func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput
SetResourceTagList sets the ResourceTagList field's value.
func (ListTagsOutput) String ¶ added in v0.9.11
func (s ListTagsOutput) String() string
String returns the string representation
type ListTrailsInput ¶ added in v1.25.25
type ListTrailsInput struct { // The token to use to get the next page of results after a previous API call. // This token must be passed in with the same parameters that were specified // in the the original call. For example, if the original call specified an // AttributeKey of 'Username' with a value of 'root', the call with NextToken // should include those same parameters. NextToken *string `type:"string"` // contains filtered or unexported fields }
func (ListTrailsInput) GoString ¶ added in v1.25.25
func (s ListTrailsInput) GoString() string
GoString returns the string representation
func (*ListTrailsInput) SetNextToken ¶ added in v1.25.25
func (s *ListTrailsInput) SetNextToken(v string) *ListTrailsInput
SetNextToken sets the NextToken field's value.
func (ListTrailsInput) String ¶ added in v1.25.25
func (s ListTrailsInput) String() string
String returns the string representation
type ListTrailsOutput ¶ added in v1.25.25
type ListTrailsOutput struct { // The token to use to get the next page of results after a previous API call. // If the token does not appear, there are no more results to return. The token // must be passed in with the same parameters as the previous call. For example, // if the original call specified an AttributeKey of 'Username' with a value // of 'root', the call with NextToken should include those same parameters. NextToken *string `type:"string"` // Returns the name, ARN, and home region of trails in the current account. Trails []*TrailInfo `type:"list"` // contains filtered or unexported fields }
func (ListTrailsOutput) GoString ¶ added in v1.25.25
func (s ListTrailsOutput) GoString() string
GoString returns the string representation
func (*ListTrailsOutput) SetNextToken ¶ added in v1.25.25
func (s *ListTrailsOutput) SetNextToken(v string) *ListTrailsOutput
SetNextToken sets the NextToken field's value.
func (*ListTrailsOutput) SetTrails ¶ added in v1.25.25
func (s *ListTrailsOutput) SetTrails(v []*TrailInfo) *ListTrailsOutput
SetTrails sets the Trails field's value.
func (ListTrailsOutput) String ¶ added in v1.25.25
func (s ListTrailsOutput) String() string
String returns the string representation
type LookupAttribute ¶
type LookupAttribute struct { // Specifies an attribute on which to filter the events returned. // // AttributeKey is a required field AttributeKey *string `type:"string" required:"true" enum:"LookupAttributeKey"` // Specifies a value for the specified AttributeKey. // // AttributeValue is a required field AttributeValue *string `type:"string" required:"true"` // contains filtered or unexported fields }
Specifies an attribute and value that filter the events returned.
func (LookupAttribute) GoString ¶ added in v0.6.5
func (s LookupAttribute) GoString() string
GoString returns the string representation
func (*LookupAttribute) SetAttributeKey ¶ added in v1.5.0
func (s *LookupAttribute) SetAttributeKey(v string) *LookupAttribute
SetAttributeKey sets the AttributeKey field's value.
func (*LookupAttribute) SetAttributeValue ¶ added in v1.5.0
func (s *LookupAttribute) SetAttributeValue(v string) *LookupAttribute
SetAttributeValue sets the AttributeValue field's value.
func (LookupAttribute) String ¶ added in v0.6.5
func (s LookupAttribute) String() string
String returns the string representation
func (*LookupAttribute) Validate ¶ added in v1.1.21
func (s *LookupAttribute) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LookupEventsInput ¶
type LookupEventsInput struct { // Specifies that only events that occur before or at the specified time are // returned. If the specified end time is before the specified start time, an // error is returned. EndTime *time.Time `type:"timestamp"` // Specifies the event category. If you do not specify an event category, events // of the category are not returned in the response. For example, if you do // not specify insight as the value of EventCategory, no Insights events are // returned. EventCategory *string `type:"string" enum:"EventCategory"` // Contains a list of lookup attributes. Currently the list can contain only // one item. LookupAttributes []*LookupAttribute `type:"list"` // The number of events to return. Possible values are 1 through 50. The default // is 50. MaxResults *int64 `min:"1" type:"integer"` // The token to use to get the next page of results after a previous API call. // This token must be passed in with the same parameters that were specified // in the the original call. For example, if the original call specified an // AttributeKey of 'Username' with a value of 'root', the call with NextToken // should include those same parameters. NextToken *string `type:"string"` // Specifies that only events that occur after or at the specified time are // returned. If the specified start time is after the specified end time, an // error is returned. StartTime *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Contains a request for LookupEvents.
func (LookupEventsInput) GoString ¶ added in v0.6.5
func (s LookupEventsInput) GoString() string
GoString returns the string representation
func (*LookupEventsInput) SetEndTime ¶ added in v1.5.0
func (s *LookupEventsInput) SetEndTime(v time.Time) *LookupEventsInput
SetEndTime sets the EndTime field's value.
func (*LookupEventsInput) SetEventCategory ¶ added in v1.25.39
func (s *LookupEventsInput) SetEventCategory(v string) *LookupEventsInput
SetEventCategory sets the EventCategory field's value.
func (*LookupEventsInput) SetLookupAttributes ¶ added in v1.5.0
func (s *LookupEventsInput) SetLookupAttributes(v []*LookupAttribute) *LookupEventsInput
SetLookupAttributes sets the LookupAttributes field's value.
func (*LookupEventsInput) SetMaxResults ¶ added in v1.5.0
func (s *LookupEventsInput) SetMaxResults(v int64) *LookupEventsInput
SetMaxResults sets the MaxResults field's value.
func (*LookupEventsInput) SetNextToken ¶ added in v1.5.0
func (s *LookupEventsInput) SetNextToken(v string) *LookupEventsInput
SetNextToken sets the NextToken field's value.
func (*LookupEventsInput) SetStartTime ¶ added in v1.5.0
func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput
SetStartTime sets the StartTime field's value.
func (LookupEventsInput) String ¶ added in v0.6.5
func (s LookupEventsInput) String() string
String returns the string representation
func (*LookupEventsInput) Validate ¶ added in v1.1.21
func (s *LookupEventsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LookupEventsOutput ¶
type LookupEventsOutput struct { // A list of events returned based on the lookup attributes specified and the // CloudTrail event. The events list is sorted by time. The most recent event // is listed first. Events []*Event `type:"list"` // The token to use to get the next page of results after a previous API call. // If the token does not appear, there are no more results to return. The token // must be passed in with the same parameters as the previous call. For example, // if the original call specified an AttributeKey of 'Username' with a value // of 'root', the call with NextToken should include those same parameters. NextToken *string `type:"string"` // contains filtered or unexported fields }
Contains a response to a LookupEvents action.
func (LookupEventsOutput) GoString ¶ added in v0.6.5
func (s LookupEventsOutput) GoString() string
GoString returns the string representation
func (*LookupEventsOutput) SetEvents ¶ added in v1.5.0
func (s *LookupEventsOutput) SetEvents(v []*Event) *LookupEventsOutput
SetEvents sets the Events field's value.
func (*LookupEventsOutput) SetNextToken ¶ added in v1.5.0
func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput
SetNextToken sets the NextToken field's value.
func (LookupEventsOutput) String ¶ added in v0.6.5
func (s LookupEventsOutput) String() string
String returns the string representation
type MaximumNumberOfTrailsExceededException ¶ added in v1.28.0
type MaximumNumberOfTrailsExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the maximum number of trails is reached.
func (*MaximumNumberOfTrailsExceededException) Code ¶ added in v1.28.0
func (s *MaximumNumberOfTrailsExceededException) Code() string
Code returns the exception type name.
func (*MaximumNumberOfTrailsExceededException) Error ¶ added in v1.28.0
func (s *MaximumNumberOfTrailsExceededException) Error() string
func (MaximumNumberOfTrailsExceededException) GoString ¶ added in v1.28.0
func (s MaximumNumberOfTrailsExceededException) GoString() string
GoString returns the string representation
func (*MaximumNumberOfTrailsExceededException) Message ¶ added in v1.28.0
func (s *MaximumNumberOfTrailsExceededException) Message() string
Message returns the exception's message.
func (*MaximumNumberOfTrailsExceededException) OrigErr ¶ added in v1.28.0
func (s *MaximumNumberOfTrailsExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*MaximumNumberOfTrailsExceededException) RequestID ¶ added in v1.28.0
func (s *MaximumNumberOfTrailsExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*MaximumNumberOfTrailsExceededException) StatusCode ¶ added in v1.28.0
func (s *MaximumNumberOfTrailsExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (MaximumNumberOfTrailsExceededException) String ¶ added in v1.28.0
func (s MaximumNumberOfTrailsExceededException) String() string
String returns the string representation
type NotOrganizationMasterAccountException ¶ added in v1.28.0
type NotOrganizationMasterAccountException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
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 Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
func (*NotOrganizationMasterAccountException) Code ¶ added in v1.28.0
func (s *NotOrganizationMasterAccountException) Code() string
Code returns the exception type name.
func (*NotOrganizationMasterAccountException) Error ¶ added in v1.28.0
func (s *NotOrganizationMasterAccountException) Error() string
func (NotOrganizationMasterAccountException) GoString ¶ added in v1.28.0
func (s NotOrganizationMasterAccountException) GoString() string
GoString returns the string representation
func (*NotOrganizationMasterAccountException) Message ¶ added in v1.28.0
func (s *NotOrganizationMasterAccountException) Message() string
Message returns the exception's message.
func (*NotOrganizationMasterAccountException) OrigErr ¶ added in v1.28.0
func (s *NotOrganizationMasterAccountException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*NotOrganizationMasterAccountException) RequestID ¶ added in v1.28.0
func (s *NotOrganizationMasterAccountException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*NotOrganizationMasterAccountException) StatusCode ¶ added in v1.28.0
func (s *NotOrganizationMasterAccountException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (NotOrganizationMasterAccountException) String ¶ added in v1.28.0
func (s NotOrganizationMasterAccountException) String() string
String returns the string representation
type OperationNotPermittedException ¶ added in v1.28.0
type OperationNotPermittedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the requested operation is not permitted.
func (*OperationNotPermittedException) Code ¶ added in v1.28.0
func (s *OperationNotPermittedException) Code() string
Code returns the exception type name.
func (*OperationNotPermittedException) Error ¶ added in v1.28.0
func (s *OperationNotPermittedException) Error() string
func (OperationNotPermittedException) GoString ¶ added in v1.28.0
func (s OperationNotPermittedException) GoString() string
GoString returns the string representation
func (*OperationNotPermittedException) Message ¶ added in v1.28.0
func (s *OperationNotPermittedException) Message() string
Message returns the exception's message.
func (*OperationNotPermittedException) OrigErr ¶ added in v1.28.0
func (s *OperationNotPermittedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*OperationNotPermittedException) RequestID ¶ added in v1.28.0
func (s *OperationNotPermittedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*OperationNotPermittedException) StatusCode ¶ added in v1.28.0
func (s *OperationNotPermittedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (OperationNotPermittedException) String ¶ added in v1.28.0
func (s OperationNotPermittedException) String() string
String returns the string representation
type OrganizationNotInAllFeaturesModeException ¶ added in v1.28.0
type OrganizationNotInAllFeaturesModeException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when AWS Organizations is not configured to support all features. All features must be enabled in AWS Organization to support creating an organization trail. For more information, see Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html).
func (*OrganizationNotInAllFeaturesModeException) Code ¶ added in v1.28.0
func (s *OrganizationNotInAllFeaturesModeException) Code() string
Code returns the exception type name.
func (*OrganizationNotInAllFeaturesModeException) Error ¶ added in v1.28.0
func (s *OrganizationNotInAllFeaturesModeException) Error() string
func (OrganizationNotInAllFeaturesModeException) GoString ¶ added in v1.28.0
func (s OrganizationNotInAllFeaturesModeException) GoString() string
GoString returns the string representation
func (*OrganizationNotInAllFeaturesModeException) Message ¶ added in v1.28.0
func (s *OrganizationNotInAllFeaturesModeException) Message() string
Message returns the exception's message.
func (*OrganizationNotInAllFeaturesModeException) OrigErr ¶ added in v1.28.0
func (s *OrganizationNotInAllFeaturesModeException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*OrganizationNotInAllFeaturesModeException) RequestID ¶ added in v1.28.0
func (s *OrganizationNotInAllFeaturesModeException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*OrganizationNotInAllFeaturesModeException) StatusCode ¶ added in v1.28.0
func (s *OrganizationNotInAllFeaturesModeException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (OrganizationNotInAllFeaturesModeException) String ¶ added in v1.28.0
func (s OrganizationNotInAllFeaturesModeException) String() string
String returns the string representation
type OrganizationsNotInUseException ¶ added in v1.28.0
type OrganizationsNotInUseException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the request is made from an AWS account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.
func (*OrganizationsNotInUseException) Code ¶ added in v1.28.0
func (s *OrganizationsNotInUseException) Code() string
Code returns the exception type name.
func (*OrganizationsNotInUseException) Error ¶ added in v1.28.0
func (s *OrganizationsNotInUseException) Error() string
func (OrganizationsNotInUseException) GoString ¶ added in v1.28.0
func (s OrganizationsNotInUseException) GoString() string
GoString returns the string representation
func (*OrganizationsNotInUseException) Message ¶ added in v1.28.0
func (s *OrganizationsNotInUseException) Message() string
Message returns the exception's message.
func (*OrganizationsNotInUseException) OrigErr ¶ added in v1.28.0
func (s *OrganizationsNotInUseException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*OrganizationsNotInUseException) RequestID ¶ added in v1.28.0
func (s *OrganizationsNotInUseException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*OrganizationsNotInUseException) StatusCode ¶ added in v1.28.0
func (s *OrganizationsNotInUseException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (OrganizationsNotInUseException) String ¶ added in v1.28.0
func (s OrganizationsNotInUseException) String() string
String returns the string representation
type PublicKey ¶ added in v0.9.11
type PublicKey struct { // The fingerprint of the public key. Fingerprint *string `type:"string"` // The ending time of validity of the public key. ValidityEndTime *time.Time `type:"timestamp"` // The starting time of validity of the public key. ValidityStartTime *time.Time `type:"timestamp"` // The DER encoded public key value in PKCS#1 format. // // Value is automatically base64 encoded/decoded by the SDK. Value []byte `type:"blob"` // contains filtered or unexported fields }
Contains information about a returned public key.
func (*PublicKey) SetFingerprint ¶ added in v1.5.0
SetFingerprint sets the Fingerprint field's value.
func (*PublicKey) SetValidityEndTime ¶ added in v1.5.0
SetValidityEndTime sets the ValidityEndTime field's value.
func (*PublicKey) SetValidityStartTime ¶ added in v1.5.0
SetValidityStartTime sets the ValidityStartTime field's value.
type PutEventSelectorsInput ¶ added in v1.5.9
type PutEventSelectorsInput struct { // Specifies the settings for your event selectors. You can configure up to // five event selectors for a trail. // // EventSelectors is a required field EventSelectors []*EventSelector `type:"list" required:"true"` // Specifies the name of the trail or trail ARN. If you specify a trail name, // the string must meet the following requirements: // // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores // (_), or dashes (-) // // * Start with a letter or number, and end with a letter or number // // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace // and my--namespace are invalid. // // * Not be in IP address format (for example, 192.168.5.4) // // If you specify a trail ARN, it must be in the format: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // TrailName is a required field TrailName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (PutEventSelectorsInput) GoString ¶ added in v1.5.9
func (s PutEventSelectorsInput) GoString() string
GoString returns the string representation
func (*PutEventSelectorsInput) SetEventSelectors ¶ added in v1.5.9
func (s *PutEventSelectorsInput) SetEventSelectors(v []*EventSelector) *PutEventSelectorsInput
SetEventSelectors sets the EventSelectors field's value.
func (*PutEventSelectorsInput) SetTrailName ¶ added in v1.5.9
func (s *PutEventSelectorsInput) SetTrailName(v string) *PutEventSelectorsInput
SetTrailName sets the TrailName field's value.
func (PutEventSelectorsInput) String ¶ added in v1.5.9
func (s PutEventSelectorsInput) String() string
String returns the string representation
func (*PutEventSelectorsInput) Validate ¶ added in v1.8.2
func (s *PutEventSelectorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutEventSelectorsOutput ¶ added in v1.5.9
type PutEventSelectorsOutput struct { // Specifies the event selectors configured for your trail. EventSelectors []*EventSelector `type:"list"` // Specifies the ARN of the trail that was updated with event selectors. The // format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` // contains filtered or unexported fields }
func (PutEventSelectorsOutput) GoString ¶ added in v1.5.9
func (s PutEventSelectorsOutput) GoString() string
GoString returns the string representation
func (*PutEventSelectorsOutput) SetEventSelectors ¶ added in v1.5.9
func (s *PutEventSelectorsOutput) SetEventSelectors(v []*EventSelector) *PutEventSelectorsOutput
SetEventSelectors sets the EventSelectors field's value.
func (*PutEventSelectorsOutput) SetTrailARN ¶ added in v1.5.9
func (s *PutEventSelectorsOutput) SetTrailARN(v string) *PutEventSelectorsOutput
SetTrailARN sets the TrailARN field's value.
func (PutEventSelectorsOutput) String ¶ added in v1.5.9
func (s PutEventSelectorsOutput) String() string
String returns the string representation
type PutInsightSelectorsInput ¶ added in v1.25.39
type PutInsightSelectorsInput struct { // A JSON string that contains the insight types you want to log on a trail. // In this release, only ApiCallRateInsight is supported as an insight type. // // InsightSelectors is a required field InsightSelectors []*InsightSelector `type:"list" required:"true"` // The name of the CloudTrail trail for which you want to change or add Insights // selectors. // // TrailName is a required field TrailName *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (PutInsightSelectorsInput) GoString ¶ added in v1.25.39
func (s PutInsightSelectorsInput) GoString() string
GoString returns the string representation
func (*PutInsightSelectorsInput) SetInsightSelectors ¶ added in v1.25.39
func (s *PutInsightSelectorsInput) SetInsightSelectors(v []*InsightSelector) *PutInsightSelectorsInput
SetInsightSelectors sets the InsightSelectors field's value.
func (*PutInsightSelectorsInput) SetTrailName ¶ added in v1.25.39
func (s *PutInsightSelectorsInput) SetTrailName(v string) *PutInsightSelectorsInput
SetTrailName sets the TrailName field's value.
func (PutInsightSelectorsInput) String ¶ added in v1.25.39
func (s PutInsightSelectorsInput) String() string
String returns the string representation
func (*PutInsightSelectorsInput) Validate ¶ added in v1.25.39
func (s *PutInsightSelectorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutInsightSelectorsOutput ¶ added in v1.25.39
type PutInsightSelectorsOutput struct { // A JSON string that contains the insight types you want to log on a trail. // In this release, only ApiCallRateInsight is supported as an insight type. InsightSelectors []*InsightSelector `type:"list"` // The Amazon Resource Name (ARN) of a trail for which you want to change or // add Insights selectors. TrailARN *string `type:"string"` // contains filtered or unexported fields }
func (PutInsightSelectorsOutput) GoString ¶ added in v1.25.39
func (s PutInsightSelectorsOutput) GoString() string
GoString returns the string representation
func (*PutInsightSelectorsOutput) SetInsightSelectors ¶ added in v1.25.39
func (s *PutInsightSelectorsOutput) SetInsightSelectors(v []*InsightSelector) *PutInsightSelectorsOutput
SetInsightSelectors sets the InsightSelectors field's value.
func (*PutInsightSelectorsOutput) SetTrailARN ¶ added in v1.25.39
func (s *PutInsightSelectorsOutput) SetTrailARN(v string) *PutInsightSelectorsOutput
SetTrailARN sets the TrailARN field's value.
func (PutInsightSelectorsOutput) String ¶ added in v1.25.39
func (s PutInsightSelectorsOutput) String() string
String returns the string representation
type RemoveTagsInput ¶ added in v0.9.11
type RemoveTagsInput struct { // Specifies the ARN of the trail from which tags should be removed. The format // of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` // Specifies a list of tags to be removed. TagsList []*Tag `type:"list"` // contains filtered or unexported fields }
Specifies the tags to remove from a trail.
func (RemoveTagsInput) GoString ¶ added in v0.9.11
func (s RemoveTagsInput) GoString() string
GoString returns the string representation
func (*RemoveTagsInput) SetResourceId ¶ added in v1.5.0
func (s *RemoveTagsInput) SetResourceId(v string) *RemoveTagsInput
SetResourceId sets the ResourceId field's value.
func (*RemoveTagsInput) SetTagsList ¶ added in v1.5.0
func (s *RemoveTagsInput) SetTagsList(v []*Tag) *RemoveTagsInput
SetTagsList sets the TagsList field's value.
func (RemoveTagsInput) String ¶ added in v0.9.11
func (s RemoveTagsInput) String() string
String returns the string representation
func (*RemoveTagsInput) Validate ¶ added in v1.1.21
func (s *RemoveTagsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RemoveTagsOutput ¶ added in v0.9.11
type RemoveTagsOutput struct {
// contains filtered or unexported fields
}
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (RemoveTagsOutput) GoString ¶ added in v0.9.11
func (s RemoveTagsOutput) GoString() string
GoString returns the string representation
func (RemoveTagsOutput) String ¶ added in v0.9.11
func (s RemoveTagsOutput) String() string
String returns the string representation
type Resource ¶
type Resource struct { // The name of the resource referenced by the event returned. These are user-created // names whose values will depend on the environment. For example, the resource // name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" // for an EC2 Instance. ResourceName *string `type:"string"` // The type of a resource referenced by the event returned. When the resource // type cannot be determined, null is returned. Some examples of resource types // are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey // for IAM. To learn more about how to look up and filter events by the resource // types supported for a service, see Filtering CloudTrail Events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events-console.html#filtering-cloudtrail-events). ResourceType *string `type:"string"` // contains filtered or unexported fields }
Specifies the type and name of a resource referenced by an event.
func (*Resource) SetResourceName ¶ added in v1.5.0
SetResourceName sets the ResourceName field's value.
func (*Resource) SetResourceType ¶ added in v1.5.0
SetResourceType sets the ResourceType field's value.
type ResourceNotFoundException ¶ added in v1.28.0
type ResourceNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the specified resource is not found.
func (*ResourceNotFoundException) Code ¶ added in v1.28.0
func (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (*ResourceNotFoundException) Error ¶ added in v1.28.0
func (s *ResourceNotFoundException) Error() string
func (ResourceNotFoundException) GoString ¶ added in v1.28.0
func (s ResourceNotFoundException) GoString() string
GoString returns the string representation
func (*ResourceNotFoundException) Message ¶ added in v1.28.0
func (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (*ResourceNotFoundException) OrigErr ¶ added in v1.28.0
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ResourceNotFoundException) RequestID ¶ added in v1.28.0
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ResourceNotFoundException) StatusCode ¶ added in v1.28.0
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ResourceNotFoundException) String ¶ added in v1.28.0
func (s ResourceNotFoundException) String() string
String returns the string representation
type ResourceTag ¶ added in v0.9.11
type ResourceTag struct { // Specifies the ARN of the resource. ResourceId *string `type:"string"` // A list of tags. TagsList []*Tag `type:"list"` // contains filtered or unexported fields }
A resource tag.
func (ResourceTag) GoString ¶ added in v0.9.11
func (s ResourceTag) GoString() string
GoString returns the string representation
func (*ResourceTag) SetResourceId ¶ added in v1.5.0
func (s *ResourceTag) SetResourceId(v string) *ResourceTag
SetResourceId sets the ResourceId field's value.
func (*ResourceTag) SetTagsList ¶ added in v1.5.0
func (s *ResourceTag) SetTagsList(v []*Tag) *ResourceTag
SetTagsList sets the TagsList field's value.
func (ResourceTag) String ¶ added in v0.9.11
func (s ResourceTag) String() string
String returns the string representation
type ResourceTypeNotSupportedException ¶ added in v1.28.0
type ResourceTypeNotSupportedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the specified resource type is not supported by CloudTrail.
func (*ResourceTypeNotSupportedException) Code ¶ added in v1.28.0
func (s *ResourceTypeNotSupportedException) Code() string
Code returns the exception type name.
func (*ResourceTypeNotSupportedException) Error ¶ added in v1.28.0
func (s *ResourceTypeNotSupportedException) Error() string
func (ResourceTypeNotSupportedException) GoString ¶ added in v1.28.0
func (s ResourceTypeNotSupportedException) GoString() string
GoString returns the string representation
func (*ResourceTypeNotSupportedException) Message ¶ added in v1.28.0
func (s *ResourceTypeNotSupportedException) Message() string
Message returns the exception's message.
func (*ResourceTypeNotSupportedException) OrigErr ¶ added in v1.28.0
func (s *ResourceTypeNotSupportedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ResourceTypeNotSupportedException) RequestID ¶ added in v1.28.0
func (s *ResourceTypeNotSupportedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ResourceTypeNotSupportedException) StatusCode ¶ added in v1.28.0
func (s *ResourceTypeNotSupportedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ResourceTypeNotSupportedException) String ¶ added in v1.28.0
func (s ResourceTypeNotSupportedException) String() string
String returns the string representation
type S3BucketDoesNotExistException ¶ added in v1.28.0
type S3BucketDoesNotExistException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the specified S3 bucket does not exist.
func (*S3BucketDoesNotExistException) Code ¶ added in v1.28.0
func (s *S3BucketDoesNotExistException) Code() string
Code returns the exception type name.
func (*S3BucketDoesNotExistException) Error ¶ added in v1.28.0
func (s *S3BucketDoesNotExistException) Error() string
func (S3BucketDoesNotExistException) GoString ¶ added in v1.28.0
func (s S3BucketDoesNotExistException) GoString() string
GoString returns the string representation
func (*S3BucketDoesNotExistException) Message ¶ added in v1.28.0
func (s *S3BucketDoesNotExistException) Message() string
Message returns the exception's message.
func (*S3BucketDoesNotExistException) OrigErr ¶ added in v1.28.0
func (s *S3BucketDoesNotExistException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*S3BucketDoesNotExistException) RequestID ¶ added in v1.28.0
func (s *S3BucketDoesNotExistException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*S3BucketDoesNotExistException) StatusCode ¶ added in v1.28.0
func (s *S3BucketDoesNotExistException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (S3BucketDoesNotExistException) String ¶ added in v1.28.0
func (s S3BucketDoesNotExistException) String() string
String returns the string representation
type StartLoggingInput ¶
type StartLoggingInput struct { // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail // logs AWS API calls. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` // contains filtered or unexported fields }
The request to CloudTrail to start logging AWS API calls for an account.
func (StartLoggingInput) GoString ¶ added in v0.6.5
func (s StartLoggingInput) GoString() string
GoString returns the string representation
func (*StartLoggingInput) SetName ¶ added in v1.5.0
func (s *StartLoggingInput) SetName(v string) *StartLoggingInput
SetName sets the Name field's value.
func (StartLoggingInput) String ¶ added in v0.6.5
func (s StartLoggingInput) String() string
String returns the string representation
func (*StartLoggingInput) Validate ¶ added in v1.1.21
func (s *StartLoggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StartLoggingOutput ¶
type StartLoggingOutput struct {
// contains filtered or unexported fields
}
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (StartLoggingOutput) GoString ¶ added in v0.6.5
func (s StartLoggingOutput) GoString() string
GoString returns the string representation
func (StartLoggingOutput) String ¶ added in v0.6.5
func (s StartLoggingOutput) String() string
String returns the string representation
type StopLoggingInput ¶
type StopLoggingInput struct { // Specifies the name or the CloudTrail ARN of the trail for which CloudTrail // will stop logging AWS API calls. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` // contains filtered or unexported fields }
Passes the request to CloudTrail to stop logging AWS API calls for the specified account.
func (StopLoggingInput) GoString ¶ added in v0.6.5
func (s StopLoggingInput) GoString() string
GoString returns the string representation
func (*StopLoggingInput) SetName ¶ added in v1.5.0
func (s *StopLoggingInput) SetName(v string) *StopLoggingInput
SetName sets the Name field's value.
func (StopLoggingInput) String ¶ added in v0.6.5
func (s StopLoggingInput) String() string
String returns the string representation
func (*StopLoggingInput) Validate ¶ added in v1.1.21
func (s *StopLoggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type StopLoggingOutput ¶
type StopLoggingOutput struct {
// contains filtered or unexported fields
}
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (StopLoggingOutput) GoString ¶ added in v0.6.5
func (s StopLoggingOutput) GoString() string
GoString returns the string representation
func (StopLoggingOutput) String ¶ added in v0.6.5
func (s StopLoggingOutput) String() string
String returns the string representation
type Tag ¶ added in v0.9.11
type Tag struct { // The key in a key-value pair. The key must be must be no longer than 128 Unicode // characters. The key must be unique for the resource to which it applies. // // Key is a required field Key *string `type:"string" required:"true"` // The value in a key-value pair of a tag. The value must be no longer than // 256 Unicode characters. Value *string `type:"string"` // contains filtered or unexported fields }
A custom key-value pair associated with a resource such as a CloudTrail trail.
type TagsLimitExceededException ¶ added in v1.28.0
type TagsLimitExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.
func (*TagsLimitExceededException) Code ¶ added in v1.28.0
func (s *TagsLimitExceededException) Code() string
Code returns the exception type name.
func (*TagsLimitExceededException) Error ¶ added in v1.28.0
func (s *TagsLimitExceededException) Error() string
func (TagsLimitExceededException) GoString ¶ added in v1.28.0
func (s TagsLimitExceededException) GoString() string
GoString returns the string representation
func (*TagsLimitExceededException) Message ¶ added in v1.28.0
func (s *TagsLimitExceededException) Message() string
Message returns the exception's message.
func (*TagsLimitExceededException) OrigErr ¶ added in v1.28.0
func (s *TagsLimitExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*TagsLimitExceededException) RequestID ¶ added in v1.28.0
func (s *TagsLimitExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*TagsLimitExceededException) StatusCode ¶ added in v1.28.0
func (s *TagsLimitExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (TagsLimitExceededException) String ¶ added in v1.28.0
func (s TagsLimitExceededException) String() string
String returns the string representation
type Trail ¶
type Trail struct { // Specifies an Amazon Resource Name (ARN), a unique identifier that represents // the log group to which CloudTrail logs will be delivered. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to // a user's log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies if the trail has custom event selectors. HasCustomEventSelectors *bool `type:"boolean"` // Specifies whether a trail has insight types specified in an InsightSelector // list. HasInsightSelectors *bool `type:"boolean"` // The region in which the trail was created. HomeRegion *string `type:"string"` // Set to True to include AWS API calls from AWS global services such as IAM. // Otherwise, False. IncludeGlobalServiceEvents *bool `type:"boolean"` // Specifies whether the trail exists only in one region or exists in all regions. IsMultiRegionTrail *bool `type:"boolean"` // Specifies whether the trail is an organization trail. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // // arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file validation is enabled. LogFileValidationEnabled *bool `type:"boolean"` // Name of the trail set by calling CreateTrail. The maximum length is 128 characters. Name *string `type:"string"` // Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. // See Amazon S3 Bucket Naming Requirements (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html). S3BucketName *string `type:"string"` // Specifies the Amazon S3 key prefix that comes after the name of the bucket // you have designated for log file delivery. For more information, see Finding // Your CloudTrail Log Files (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html).The // maximum length is 200 characters. S3KeyPrefix *string `type:"string"` // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // // arn:aws:sns:us-east-2:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is no longer in use. Use SnsTopicARN. // // Deprecated: SnsTopicName has been deprecated SnsTopicName *string `deprecated:"true" type:"string"` // Specifies the ARN of the trail. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` // contains filtered or unexported fields }
The settings for a trail.
func (*Trail) SetCloudWatchLogsLogGroupArn ¶ added in v1.5.0
SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value.
func (*Trail) SetCloudWatchLogsRoleArn ¶ added in v1.5.0
SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
func (*Trail) SetHasCustomEventSelectors ¶ added in v1.5.9
SetHasCustomEventSelectors sets the HasCustomEventSelectors field's value.
func (*Trail) SetHasInsightSelectors ¶ added in v1.25.39
SetHasInsightSelectors sets the HasInsightSelectors field's value.
func (*Trail) SetHomeRegion ¶ added in v1.5.0
SetHomeRegion sets the HomeRegion field's value.
func (*Trail) SetIncludeGlobalServiceEvents ¶ added in v1.5.0
SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value.
func (*Trail) SetIsMultiRegionTrail ¶ added in v1.5.0
SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value.
func (*Trail) SetIsOrganizationTrail ¶ added in v1.15.79
SetIsOrganizationTrail sets the IsOrganizationTrail field's value.
func (*Trail) SetKmsKeyId ¶ added in v1.5.0
SetKmsKeyId sets the KmsKeyId field's value.
func (*Trail) SetLogFileValidationEnabled ¶ added in v1.5.0
SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value.
func (*Trail) SetS3BucketName ¶ added in v1.5.0
SetS3BucketName sets the S3BucketName field's value.
func (*Trail) SetS3KeyPrefix ¶ added in v1.5.0
SetS3KeyPrefix sets the S3KeyPrefix field's value.
func (*Trail) SetSnsTopicARN ¶ added in v1.5.0
SetSnsTopicARN sets the SnsTopicARN field's value.
func (*Trail) SetSnsTopicName ¶ added in v1.5.0
SetSnsTopicName sets the SnsTopicName field's value.
func (*Trail) SetTrailARN ¶ added in v1.5.0
SetTrailARN sets the TrailARN field's value.
type TrailAlreadyExistsException ¶ added in v1.28.0
type TrailAlreadyExistsException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the specified trail already exists.
func (*TrailAlreadyExistsException) Code ¶ added in v1.28.0
func (s *TrailAlreadyExistsException) Code() string
Code returns the exception type name.
func (*TrailAlreadyExistsException) Error ¶ added in v1.28.0
func (s *TrailAlreadyExistsException) Error() string
func (TrailAlreadyExistsException) GoString ¶ added in v1.28.0
func (s TrailAlreadyExistsException) GoString() string
GoString returns the string representation
func (*TrailAlreadyExistsException) Message ¶ added in v1.28.0
func (s *TrailAlreadyExistsException) Message() string
Message returns the exception's message.
func (*TrailAlreadyExistsException) OrigErr ¶ added in v1.28.0
func (s *TrailAlreadyExistsException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*TrailAlreadyExistsException) RequestID ¶ added in v1.28.0
func (s *TrailAlreadyExistsException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*TrailAlreadyExistsException) StatusCode ¶ added in v1.28.0
func (s *TrailAlreadyExistsException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (TrailAlreadyExistsException) String ¶ added in v1.28.0
func (s TrailAlreadyExistsException) String() string
String returns the string representation
type TrailInfo ¶ added in v1.25.25
type TrailInfo struct { // The AWS region in which a trail was created. HomeRegion *string `type:"string"` // The name of a trail. Name *string `type:"string"` // The ARN of a trail. TrailARN *string `type:"string"` // contains filtered or unexported fields }
Information about a CloudTrail trail, including the trail's name, home region, and Amazon Resource Name (ARN).
func (*TrailInfo) SetHomeRegion ¶ added in v1.25.25
SetHomeRegion sets the HomeRegion field's value.
func (*TrailInfo) SetTrailARN ¶ added in v1.25.25
SetTrailARN sets the TrailARN field's value.
type TrailNotFoundException ¶ added in v1.28.0
type TrailNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the trail with the given name is not found.
func (*TrailNotFoundException) Code ¶ added in v1.28.0
func (s *TrailNotFoundException) Code() string
Code returns the exception type name.
func (*TrailNotFoundException) Error ¶ added in v1.28.0
func (s *TrailNotFoundException) Error() string
func (TrailNotFoundException) GoString ¶ added in v1.28.0
func (s TrailNotFoundException) GoString() string
GoString returns the string representation
func (*TrailNotFoundException) Message ¶ added in v1.28.0
func (s *TrailNotFoundException) Message() string
Message returns the exception's message.
func (*TrailNotFoundException) OrigErr ¶ added in v1.28.0
func (s *TrailNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*TrailNotFoundException) RequestID ¶ added in v1.28.0
func (s *TrailNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*TrailNotFoundException) StatusCode ¶ added in v1.28.0
func (s *TrailNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (TrailNotFoundException) String ¶ added in v1.28.0
func (s TrailNotFoundException) String() string
String returns the string representation
type TrailNotProvidedException ¶ added in v1.28.0
type TrailNotProvidedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is no longer in use.
func (*TrailNotProvidedException) Code ¶ added in v1.28.0
func (s *TrailNotProvidedException) Code() string
Code returns the exception type name.
func (*TrailNotProvidedException) Error ¶ added in v1.28.0
func (s *TrailNotProvidedException) Error() string
func (TrailNotProvidedException) GoString ¶ added in v1.28.0
func (s TrailNotProvidedException) GoString() string
GoString returns the string representation
func (*TrailNotProvidedException) Message ¶ added in v1.28.0
func (s *TrailNotProvidedException) Message() string
Message returns the exception's message.
func (*TrailNotProvidedException) OrigErr ¶ added in v1.28.0
func (s *TrailNotProvidedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*TrailNotProvidedException) RequestID ¶ added in v1.28.0
func (s *TrailNotProvidedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*TrailNotProvidedException) StatusCode ¶ added in v1.28.0
func (s *TrailNotProvidedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (TrailNotProvidedException) String ¶ added in v1.28.0
func (s TrailNotProvidedException) String() string
String returns the string representation
type UnsupportedOperationException ¶ added in v1.28.0
type UnsupportedOperationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
This exception is thrown when the requested operation is not supported.
func (*UnsupportedOperationException) Code ¶ added in v1.28.0
func (s *UnsupportedOperationException) Code() string
Code returns the exception type name.
func (*UnsupportedOperationException) Error ¶ added in v1.28.0
func (s *UnsupportedOperationException) Error() string
func (UnsupportedOperationException) GoString ¶ added in v1.28.0
func (s UnsupportedOperationException) GoString() string
GoString returns the string representation
func (*UnsupportedOperationException) Message ¶ added in v1.28.0
func (s *UnsupportedOperationException) Message() string
Message returns the exception's message.
func (*UnsupportedOperationException) OrigErr ¶ added in v1.28.0
func (s *UnsupportedOperationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*UnsupportedOperationException) RequestID ¶ added in v1.28.0
func (s *UnsupportedOperationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*UnsupportedOperationException) StatusCode ¶ added in v1.28.0
func (s *UnsupportedOperationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (UnsupportedOperationException) String ¶ added in v1.28.0
func (s UnsupportedOperationException) String() string
String returns the string representation
type UpdateTrailInput ¶
type UpdateTrailInput struct { // Specifies a log group name using an Amazon Resource Name (ARN), a unique // identifier that represents the log group to which CloudTrail logs will be // delivered. Not required unless you specify CloudWatchLogsRoleArn. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to // a user's log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether log file validation is enabled. The default is false. // // When you disable log file integrity validation, the chain of digest files // is broken after one hour. CloudTrail will not create digest files for log // files that were delivered during a period in which log file integrity validation // was disabled. For example, if you enable log file integrity validation at // noon on January 1, disable it at noon on January 2, and re-enable it at noon // on January 10, digest files will not be created for the log files delivered // from noon on January 2 to noon on January 10. The same applies whenever you // stop CloudTrail logging or delete a trail. EnableLogFileValidation *bool `type:"boolean"` // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` // Specifies whether the trail applies only to the current region or to all // regions. The default is false. If the trail exists only in the current region // and this value is set to true, shadow trails (replications of the trail) // will be created in the other regions. If the trail exists in all regions // and this value is set to false, the trail will remain in the region where // it was created, and its shadow trails in other regions will be deleted. As // a best practice, consider using trails that log events in all regions. IsMultiRegionTrail *bool `type:"boolean"` // Specifies whether the trail is applied to all accounts in an organization // in AWS Organizations, or only for the current AWS account. The default is // false, and cannot be true unless the call is made on behalf of an AWS account // that is the master account for an organization in AWS Organizations. If the // trail is not an organization trail and this is set to true, the trail will // be created in all AWS accounts that belong to the organization. If the trail // is an organization trail and this is set to false, the trail will remain // in the current AWS account but be deleted from all member accounts in the // organization. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. // The value can be an alias name prefixed by "alias/", a fully specified ARN // to an alias, a fully specified ARN to a key, or a globally unique identifier. // // Examples: // // * alias/MyAliasName // // * arn:aws:kms:us-east-2:123456789012:alias/MyAliasName // // * arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 // // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies the name of the trail or trail ARN. If Name is a trail name, the // string must meet the following requirements: // // * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores // (_), or dashes (-) // // * Start with a letter or number, and end with a letter or number // // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace // and my--namespace are invalid. // // * Not be in IP address format (for example, 192.168.5.4) // // If Name is a trail ARN, it must be in the format: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` // Specifies the name of the Amazon S3 bucket designated for publishing log // files. See Amazon S3 Bucket Naming Requirements (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html). S3BucketName *string `type:"string"` // Specifies the Amazon S3 key prefix that comes after the name of the bucket // you have designated for log file delivery. For more information, see Finding // Your CloudTrail Log Files (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). // The maximum length is 200 characters. S3KeyPrefix *string `type:"string"` // Specifies the name of the Amazon SNS topic defined for notification of log // file delivery. The maximum length is 256 characters. SnsTopicName *string `type:"string"` // contains filtered or unexported fields }
Specifies settings to update for the trail.
func (UpdateTrailInput) GoString ¶ added in v0.6.5
func (s UpdateTrailInput) GoString() string
GoString returns the string representation
func (*UpdateTrailInput) SetCloudWatchLogsLogGroupArn ¶ added in v1.5.0
func (s *UpdateTrailInput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailInput
SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value.
func (*UpdateTrailInput) SetCloudWatchLogsRoleArn ¶ added in v1.5.0
func (s *UpdateTrailInput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailInput
SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
func (*UpdateTrailInput) SetEnableLogFileValidation ¶ added in v1.5.0
func (s *UpdateTrailInput) SetEnableLogFileValidation(v bool) *UpdateTrailInput
SetEnableLogFileValidation sets the EnableLogFileValidation field's value.
func (*UpdateTrailInput) SetIncludeGlobalServiceEvents ¶ added in v1.5.0
func (s *UpdateTrailInput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailInput
SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value.
func (*UpdateTrailInput) SetIsMultiRegionTrail ¶ added in v1.5.0
func (s *UpdateTrailInput) SetIsMultiRegionTrail(v bool) *UpdateTrailInput
SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value.
func (*UpdateTrailInput) SetIsOrganizationTrail ¶ added in v1.15.79
func (s *UpdateTrailInput) SetIsOrganizationTrail(v bool) *UpdateTrailInput
SetIsOrganizationTrail sets the IsOrganizationTrail field's value.
func (*UpdateTrailInput) SetKmsKeyId ¶ added in v1.5.0
func (s *UpdateTrailInput) SetKmsKeyId(v string) *UpdateTrailInput
SetKmsKeyId sets the KmsKeyId field's value.
func (*UpdateTrailInput) SetName ¶ added in v1.5.0
func (s *UpdateTrailInput) SetName(v string) *UpdateTrailInput
SetName sets the Name field's value.
func (*UpdateTrailInput) SetS3BucketName ¶ added in v1.5.0
func (s *UpdateTrailInput) SetS3BucketName(v string) *UpdateTrailInput
SetS3BucketName sets the S3BucketName field's value.
func (*UpdateTrailInput) SetS3KeyPrefix ¶ added in v1.5.0
func (s *UpdateTrailInput) SetS3KeyPrefix(v string) *UpdateTrailInput
SetS3KeyPrefix sets the S3KeyPrefix field's value.
func (*UpdateTrailInput) SetSnsTopicName ¶ added in v1.5.0
func (s *UpdateTrailInput) SetSnsTopicName(v string) *UpdateTrailInput
SetSnsTopicName sets the SnsTopicName field's value.
func (UpdateTrailInput) String ¶ added in v0.6.5
func (s UpdateTrailInput) String() string
String returns the string representation
func (*UpdateTrailInput) Validate ¶ added in v1.1.21
func (s *UpdateTrailInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateTrailOutput ¶
type UpdateTrailOutput struct { // Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail // logs will be delivered. CloudWatchLogsLogGroupArn *string `type:"string"` // Specifies the role for the CloudWatch Logs endpoint to assume to write to // a user's log group. CloudWatchLogsRoleArn *string `type:"string"` // Specifies whether the trail is publishing events from global services such // as IAM to the log files. IncludeGlobalServiceEvents *bool `type:"boolean"` // Specifies whether the trail exists in one region or in all regions. IsMultiRegionTrail *bool `type:"boolean"` // Specifies whether the trail is an organization trail. IsOrganizationTrail *bool `type:"boolean"` // Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. // The value is a fully specified ARN to a KMS key in the format: // // arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. LogFileValidationEnabled *bool `type:"boolean"` // Specifies the name of the trail. Name *string `type:"string"` // Specifies the name of the Amazon S3 bucket designated for publishing log // files. S3BucketName *string `type:"string"` // Specifies the Amazon S3 key prefix that comes after the name of the bucket // you have designated for log file delivery. For more information, see Finding // Your CloudTrail Log Files (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html). S3KeyPrefix *string `type:"string"` // Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications // when log files are delivered. The format of a topic ARN is: // // arn:aws:sns:us-east-2:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is no longer in use. Use SnsTopicARN. // // Deprecated: SnsTopicName has been deprecated SnsTopicName *string `deprecated:"true" type:"string"` // Specifies the ARN of the trail that was updated. The format of a trail ARN // is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` // contains filtered or unexported fields }
Returns the objects or data listed below if successful. Otherwise, returns an error.
func (UpdateTrailOutput) GoString ¶ added in v0.6.5
func (s UpdateTrailOutput) GoString() string
GoString returns the string representation
func (*UpdateTrailOutput) SetCloudWatchLogsLogGroupArn ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetCloudWatchLogsLogGroupArn(v string) *UpdateTrailOutput
SetCloudWatchLogsLogGroupArn sets the CloudWatchLogsLogGroupArn field's value.
func (*UpdateTrailOutput) SetCloudWatchLogsRoleArn ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetCloudWatchLogsRoleArn(v string) *UpdateTrailOutput
SetCloudWatchLogsRoleArn sets the CloudWatchLogsRoleArn field's value.
func (*UpdateTrailOutput) SetIncludeGlobalServiceEvents ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetIncludeGlobalServiceEvents(v bool) *UpdateTrailOutput
SetIncludeGlobalServiceEvents sets the IncludeGlobalServiceEvents field's value.
func (*UpdateTrailOutput) SetIsMultiRegionTrail ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetIsMultiRegionTrail(v bool) *UpdateTrailOutput
SetIsMultiRegionTrail sets the IsMultiRegionTrail field's value.
func (*UpdateTrailOutput) SetIsOrganizationTrail ¶ added in v1.15.79
func (s *UpdateTrailOutput) SetIsOrganizationTrail(v bool) *UpdateTrailOutput
SetIsOrganizationTrail sets the IsOrganizationTrail field's value.
func (*UpdateTrailOutput) SetKmsKeyId ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetKmsKeyId(v string) *UpdateTrailOutput
SetKmsKeyId sets the KmsKeyId field's value.
func (*UpdateTrailOutput) SetLogFileValidationEnabled ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetLogFileValidationEnabled(v bool) *UpdateTrailOutput
SetLogFileValidationEnabled sets the LogFileValidationEnabled field's value.
func (*UpdateTrailOutput) SetName ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetName(v string) *UpdateTrailOutput
SetName sets the Name field's value.
func (*UpdateTrailOutput) SetS3BucketName ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetS3BucketName(v string) *UpdateTrailOutput
SetS3BucketName sets the S3BucketName field's value.
func (*UpdateTrailOutput) SetS3KeyPrefix ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetS3KeyPrefix(v string) *UpdateTrailOutput
SetS3KeyPrefix sets the S3KeyPrefix field's value.
func (*UpdateTrailOutput) SetSnsTopicARN ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetSnsTopicARN(v string) *UpdateTrailOutput
SetSnsTopicARN sets the SnsTopicARN field's value.
func (*UpdateTrailOutput) SetSnsTopicName ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetSnsTopicName(v string) *UpdateTrailOutput
SetSnsTopicName sets the SnsTopicName field's value.
func (*UpdateTrailOutput) SetTrailARN ¶ added in v1.5.0
func (s *UpdateTrailOutput) SetTrailARN(v string) *UpdateTrailOutput
SetTrailARN sets the TrailARN field's value.
func (UpdateTrailOutput) String ¶ added in v0.6.5
func (s UpdateTrailOutput) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package cloudtrailiface provides an interface to enable mocking the AWS CloudTrail service client for testing your code.
|
Package cloudtrailiface provides an interface to enable mocking the AWS CloudTrail service client for testing your code. |