types

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudTrailARNInvalidException

type CloudTrailARNInvalidException struct {
	Message *string
}

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 (*CloudTrailARNInvalidException) Error

func (*CloudTrailARNInvalidException) ErrorCode

func (e *CloudTrailARNInvalidException) ErrorCode() string

func (*CloudTrailARNInvalidException) ErrorFault

func (*CloudTrailARNInvalidException) ErrorMessage

func (e *CloudTrailARNInvalidException) ErrorMessage() string

func (*CloudTrailARNInvalidException) GetMessage

func (e *CloudTrailARNInvalidException) GetMessage() string

func (*CloudTrailARNInvalidException) HasMessage

func (e *CloudTrailARNInvalidException) HasMessage() bool

type CloudTrailAccessNotEnabledException

type CloudTrailAccessNotEnabledException struct {
	Message *string
}

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 (*CloudTrailAccessNotEnabledException) Error

func (*CloudTrailAccessNotEnabledException) ErrorCode

func (*CloudTrailAccessNotEnabledException) ErrorFault

func (*CloudTrailAccessNotEnabledException) ErrorMessage

func (e *CloudTrailAccessNotEnabledException) ErrorMessage() string

func (*CloudTrailAccessNotEnabledException) GetMessage

func (*CloudTrailAccessNotEnabledException) HasMessage

func (e *CloudTrailAccessNotEnabledException) HasMessage() bool

type CloudWatchLogsDeliveryUnavailableException

type CloudWatchLogsDeliveryUnavailableException struct {
	Message *string
}

Cannot set a CloudWatch Logs delivery for this region.

func (*CloudWatchLogsDeliveryUnavailableException) Error

func (*CloudWatchLogsDeliveryUnavailableException) ErrorCode

func (*CloudWatchLogsDeliveryUnavailableException) ErrorFault

func (*CloudWatchLogsDeliveryUnavailableException) ErrorMessage

func (*CloudWatchLogsDeliveryUnavailableException) GetMessage

func (*CloudWatchLogsDeliveryUnavailableException) HasMessage

type DataResource

type DataResource struct {
	// 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
	// The resource type in which you want to log data events. You can specify
	// AWS::S3::Object or AWS::Lambda::Function resources.
	Type *string
}

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.

type Event

type Event struct {
	// A user name or role name of the requester that called the API in the event
	// returned.
	Username *string
	// Information about whether the event is a write event or a read event.
	ReadOnly *string
	// The AWS service that the request was made to.
	EventSource *string
	// A JSON string that contains a representation of the event returned.
	CloudTrailEvent *string
	// The CloudTrail ID of the event returned.
	EventId *string
	// The name of the event returned.
	EventName *string
	// A list of resources referenced by the event returned.
	Resources []*Resource
	// 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
	// The date and time of the event returned.
	EventTime *time.Time
}

Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

type EventCategory

type EventCategory string
const (
	EventCategoryInsight EventCategory = "insight"
)

Enum values for EventCategory

type EventSelector

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
	// 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
	// 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 ReadWriteType
	// 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.  <p>By default, the value is
	// <code>true</code>.</p>
	IncludeManagementEvents *bool
}

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.

type InsightNotEnabledException

type InsightNotEnabledException struct {
	Message *string
}

If you run GetInsightSelectors on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException.

func (*InsightNotEnabledException) Error

func (*InsightNotEnabledException) ErrorCode

func (e *InsightNotEnabledException) ErrorCode() string

func (*InsightNotEnabledException) ErrorFault

func (*InsightNotEnabledException) ErrorMessage

func (e *InsightNotEnabledException) ErrorMessage() string

func (*InsightNotEnabledException) GetMessage

func (e *InsightNotEnabledException) GetMessage() string

func (*InsightNotEnabledException) HasMessage

func (e *InsightNotEnabledException) HasMessage() bool

type InsightSelector

type InsightSelector struct {
	// The type of insights to log on a trail. In this release, only ApiCallRateInsight
	// is supported as an insight type.
	InsightType InsightType
}

A JSON string that contains a list of insight types that are logged on a trail.

type InsightType

type InsightType string
const (
	InsightTypeApicallrateinsight InsightType = "ApiCallRateInsight"
)

Enum values for InsightType

type InsufficientDependencyServiceAccessPermissionException

type InsufficientDependencyServiceAccessPermissionException struct {
	Message *string
}

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) Error

func (*InsufficientDependencyServiceAccessPermissionException) ErrorCode

func (*InsufficientDependencyServiceAccessPermissionException) ErrorFault

func (*InsufficientDependencyServiceAccessPermissionException) ErrorMessage

func (*InsufficientDependencyServiceAccessPermissionException) GetMessage

func (*InsufficientDependencyServiceAccessPermissionException) HasMessage

type InsufficientEncryptionPolicyException

type InsufficientEncryptionPolicyException struct {
	Message *string
}

This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.

func (*InsufficientEncryptionPolicyException) Error

func (*InsufficientEncryptionPolicyException) ErrorCode

func (*InsufficientEncryptionPolicyException) ErrorFault

func (*InsufficientEncryptionPolicyException) ErrorMessage

func (*InsufficientEncryptionPolicyException) GetMessage

func (*InsufficientEncryptionPolicyException) HasMessage

type InsufficientS3BucketPolicyException

type InsufficientS3BucketPolicyException struct {
	Message *string
}

This exception is thrown when the policy on the S3 bucket is not sufficient.

func (*InsufficientS3BucketPolicyException) Error

func (*InsufficientS3BucketPolicyException) ErrorCode

func (*InsufficientS3BucketPolicyException) ErrorFault

func (*InsufficientS3BucketPolicyException) ErrorMessage

func (e *InsufficientS3BucketPolicyException) ErrorMessage() string

func (*InsufficientS3BucketPolicyException) GetMessage

func (*InsufficientS3BucketPolicyException) HasMessage

func (e *InsufficientS3BucketPolicyException) HasMessage() bool

type InsufficientSnsTopicPolicyException

type InsufficientSnsTopicPolicyException struct {
	Message *string
}

This exception is thrown when the policy on the SNS topic is not sufficient.

func (*InsufficientSnsTopicPolicyException) Error

func (*InsufficientSnsTopicPolicyException) ErrorCode

func (*InsufficientSnsTopicPolicyException) ErrorFault

func (*InsufficientSnsTopicPolicyException) ErrorMessage

func (e *InsufficientSnsTopicPolicyException) ErrorMessage() string

func (*InsufficientSnsTopicPolicyException) GetMessage

func (*InsufficientSnsTopicPolicyException) HasMessage

func (e *InsufficientSnsTopicPolicyException) HasMessage() bool

type InvalidCloudWatchLogsLogGroupArnException

type InvalidCloudWatchLogsLogGroupArnException struct {
	Message *string
}

This exception is thrown when the provided CloudWatch log group is not valid.

func (*InvalidCloudWatchLogsLogGroupArnException) Error

func (*InvalidCloudWatchLogsLogGroupArnException) ErrorCode

func (*InvalidCloudWatchLogsLogGroupArnException) ErrorFault

func (*InvalidCloudWatchLogsLogGroupArnException) ErrorMessage

func (*InvalidCloudWatchLogsLogGroupArnException) GetMessage

func (*InvalidCloudWatchLogsLogGroupArnException) HasMessage

type InvalidCloudWatchLogsRoleArnException

type InvalidCloudWatchLogsRoleArnException struct {
	Message *string
}

This exception is thrown when the provided role is not valid.

func (*InvalidCloudWatchLogsRoleArnException) Error

func (*InvalidCloudWatchLogsRoleArnException) ErrorCode

func (*InvalidCloudWatchLogsRoleArnException) ErrorFault

func (*InvalidCloudWatchLogsRoleArnException) ErrorMessage

func (*InvalidCloudWatchLogsRoleArnException) GetMessage

func (*InvalidCloudWatchLogsRoleArnException) HasMessage

type InvalidEventCategoryException

type InvalidEventCategoryException struct {
	Message *string
}

Occurs if an event category that is not valid is specified as a value of EventCategory.

func (*InvalidEventCategoryException) Error

func (*InvalidEventCategoryException) ErrorCode

func (e *InvalidEventCategoryException) ErrorCode() string

func (*InvalidEventCategoryException) ErrorFault

func (*InvalidEventCategoryException) ErrorMessage

func (e *InvalidEventCategoryException) ErrorMessage() string

func (*InvalidEventCategoryException) GetMessage

func (e *InvalidEventCategoryException) GetMessage() string

func (*InvalidEventCategoryException) HasMessage

func (e *InvalidEventCategoryException) HasMessage() bool

type InvalidEventSelectorsException

type InvalidEventSelectorsException struct {
	Message *string
}

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) Error

func (*InvalidEventSelectorsException) ErrorCode

func (e *InvalidEventSelectorsException) ErrorCode() string

func (*InvalidEventSelectorsException) ErrorFault

func (*InvalidEventSelectorsException) ErrorMessage

func (e *InvalidEventSelectorsException) ErrorMessage() string

func (*InvalidEventSelectorsException) GetMessage

func (e *InvalidEventSelectorsException) GetMessage() string

func (*InvalidEventSelectorsException) HasMessage

func (e *InvalidEventSelectorsException) HasMessage() bool

type InvalidHomeRegionException

type InvalidHomeRegionException struct {
	Message *string
}

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) Error

func (*InvalidHomeRegionException) ErrorCode

func (e *InvalidHomeRegionException) ErrorCode() string

func (*InvalidHomeRegionException) ErrorFault

func (*InvalidHomeRegionException) ErrorMessage

func (e *InvalidHomeRegionException) ErrorMessage() string

func (*InvalidHomeRegionException) GetMessage

func (e *InvalidHomeRegionException) GetMessage() string

func (*InvalidHomeRegionException) HasMessage

func (e *InvalidHomeRegionException) HasMessage() bool

type InvalidInsightSelectorsException

type InvalidInsightSelectorsException struct {
	Message *string
}

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) Error

func (*InvalidInsightSelectorsException) ErrorCode

func (*InvalidInsightSelectorsException) ErrorFault

func (*InvalidInsightSelectorsException) ErrorMessage

func (e *InvalidInsightSelectorsException) ErrorMessage() string

func (*InvalidInsightSelectorsException) GetMessage

func (e *InvalidInsightSelectorsException) GetMessage() string

func (*InvalidInsightSelectorsException) HasMessage

func (e *InvalidInsightSelectorsException) HasMessage() bool

type InvalidKmsKeyIdException

type InvalidKmsKeyIdException struct {
	Message *string
}

This exception is thrown when the KMS key ARN is invalid.

func (*InvalidKmsKeyIdException) Error

func (e *InvalidKmsKeyIdException) Error() string

func (*InvalidKmsKeyIdException) ErrorCode

func (e *InvalidKmsKeyIdException) ErrorCode() string

func (*InvalidKmsKeyIdException) ErrorFault

func (e *InvalidKmsKeyIdException) ErrorFault() smithy.ErrorFault

func (*InvalidKmsKeyIdException) ErrorMessage

func (e *InvalidKmsKeyIdException) ErrorMessage() string

func (*InvalidKmsKeyIdException) GetMessage

func (e *InvalidKmsKeyIdException) GetMessage() string

func (*InvalidKmsKeyIdException) HasMessage

func (e *InvalidKmsKeyIdException) HasMessage() bool

type InvalidLookupAttributesException

type InvalidLookupAttributesException struct {
	Message *string
}

Occurs when an invalid lookup attribute is specified.

func (*InvalidLookupAttributesException) Error

func (*InvalidLookupAttributesException) ErrorCode

func (*InvalidLookupAttributesException) ErrorFault

func (*InvalidLookupAttributesException) ErrorMessage

func (e *InvalidLookupAttributesException) ErrorMessage() string

func (*InvalidLookupAttributesException) GetMessage

func (e *InvalidLookupAttributesException) GetMessage() string

func (*InvalidLookupAttributesException) HasMessage

func (e *InvalidLookupAttributesException) HasMessage() bool

type InvalidMaxResultsException

type InvalidMaxResultsException struct {
	Message *string
}

This exception is thrown if the limit specified is invalid.

func (*InvalidMaxResultsException) Error

func (*InvalidMaxResultsException) ErrorCode

func (e *InvalidMaxResultsException) ErrorCode() string

func (*InvalidMaxResultsException) ErrorFault

func (*InvalidMaxResultsException) ErrorMessage

func (e *InvalidMaxResultsException) ErrorMessage() string

func (*InvalidMaxResultsException) GetMessage

func (e *InvalidMaxResultsException) GetMessage() string

func (*InvalidMaxResultsException) HasMessage

func (e *InvalidMaxResultsException) HasMessage() bool

type InvalidNextTokenException

type InvalidNextTokenException struct {
	Message *string
}

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) Error

func (e *InvalidNextTokenException) Error() string

func (*InvalidNextTokenException) ErrorCode

func (e *InvalidNextTokenException) ErrorCode() string

func (*InvalidNextTokenException) ErrorFault

func (*InvalidNextTokenException) ErrorMessage

func (e *InvalidNextTokenException) ErrorMessage() string

func (*InvalidNextTokenException) GetMessage

func (e *InvalidNextTokenException) GetMessage() string

func (*InvalidNextTokenException) HasMessage

func (e *InvalidNextTokenException) HasMessage() bool

type InvalidParameterCombinationException

type InvalidParameterCombinationException struct {
	Message *string
}

This exception is thrown when the combination of parameters provided is not valid.

func (*InvalidParameterCombinationException) Error

func (*InvalidParameterCombinationException) ErrorCode

func (*InvalidParameterCombinationException) ErrorFault

func (*InvalidParameterCombinationException) ErrorMessage

func (e *InvalidParameterCombinationException) ErrorMessage() string

func (*InvalidParameterCombinationException) GetMessage

func (*InvalidParameterCombinationException) HasMessage

type InvalidS3BucketNameException

type InvalidS3BucketNameException struct {
	Message *string
}

This exception is thrown when the provided S3 bucket name is not valid.

func (*InvalidS3BucketNameException) Error

func (*InvalidS3BucketNameException) ErrorCode

func (e *InvalidS3BucketNameException) ErrorCode() string

func (*InvalidS3BucketNameException) ErrorFault

func (*InvalidS3BucketNameException) ErrorMessage

func (e *InvalidS3BucketNameException) ErrorMessage() string

func (*InvalidS3BucketNameException) GetMessage

func (e *InvalidS3BucketNameException) GetMessage() string

func (*InvalidS3BucketNameException) HasMessage

func (e *InvalidS3BucketNameException) HasMessage() bool

type InvalidS3PrefixException

type InvalidS3PrefixException struct {
	Message *string
}

This exception is thrown when the provided S3 prefix is not valid.

func (*InvalidS3PrefixException) Error

func (e *InvalidS3PrefixException) Error() string

func (*InvalidS3PrefixException) ErrorCode

func (e *InvalidS3PrefixException) ErrorCode() string

func (*InvalidS3PrefixException) ErrorFault

func (e *InvalidS3PrefixException) ErrorFault() smithy.ErrorFault

func (*InvalidS3PrefixException) ErrorMessage

func (e *InvalidS3PrefixException) ErrorMessage() string

func (*InvalidS3PrefixException) GetMessage

func (e *InvalidS3PrefixException) GetMessage() string

func (*InvalidS3PrefixException) HasMessage

func (e *InvalidS3PrefixException) HasMessage() bool

type InvalidSnsTopicNameException

type InvalidSnsTopicNameException struct {
	Message *string
}

This exception is thrown when the provided SNS topic name is not valid.

func (*InvalidSnsTopicNameException) Error

func (*InvalidSnsTopicNameException) ErrorCode

func (e *InvalidSnsTopicNameException) ErrorCode() string

func (*InvalidSnsTopicNameException) ErrorFault

func (*InvalidSnsTopicNameException) ErrorMessage

func (e *InvalidSnsTopicNameException) ErrorMessage() string

func (*InvalidSnsTopicNameException) GetMessage

func (e *InvalidSnsTopicNameException) GetMessage() string

func (*InvalidSnsTopicNameException) HasMessage

func (e *InvalidSnsTopicNameException) HasMessage() bool

type InvalidTagParameterException

type InvalidTagParameterException struct {
	Message *string
}

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) Error

func (*InvalidTagParameterException) ErrorCode

func (e *InvalidTagParameterException) ErrorCode() string

func (*InvalidTagParameterException) ErrorFault

func (*InvalidTagParameterException) ErrorMessage

func (e *InvalidTagParameterException) ErrorMessage() string

func (*InvalidTagParameterException) GetMessage

func (e *InvalidTagParameterException) GetMessage() string

func (*InvalidTagParameterException) HasMessage

func (e *InvalidTagParameterException) HasMessage() bool

type InvalidTimeRangeException

type InvalidTimeRangeException struct {
	Message *string
}

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) Error

func (e *InvalidTimeRangeException) Error() string

func (*InvalidTimeRangeException) ErrorCode

func (e *InvalidTimeRangeException) ErrorCode() string

func (*InvalidTimeRangeException) ErrorFault

func (*InvalidTimeRangeException) ErrorMessage

func (e *InvalidTimeRangeException) ErrorMessage() string

func (*InvalidTimeRangeException) GetMessage

func (e *InvalidTimeRangeException) GetMessage() string

func (*InvalidTimeRangeException) HasMessage

func (e *InvalidTimeRangeException) HasMessage() bool

type InvalidTokenException

type InvalidTokenException struct {
	Message *string
}

Reserved for future use.

func (*InvalidTokenException) Error

func (e *InvalidTokenException) Error() string

func (*InvalidTokenException) ErrorCode

func (e *InvalidTokenException) ErrorCode() string

func (*InvalidTokenException) ErrorFault

func (e *InvalidTokenException) ErrorFault() smithy.ErrorFault

func (*InvalidTokenException) ErrorMessage

func (e *InvalidTokenException) ErrorMessage() string

func (*InvalidTokenException) GetMessage

func (e *InvalidTokenException) GetMessage() string

func (*InvalidTokenException) HasMessage

func (e *InvalidTokenException) HasMessage() bool

type InvalidTrailNameException

type InvalidTrailNameException struct {
	Message *string
}

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) Error

func (e *InvalidTrailNameException) Error() string

func (*InvalidTrailNameException) ErrorCode

func (e *InvalidTrailNameException) ErrorCode() string

func (*InvalidTrailNameException) ErrorFault

func (*InvalidTrailNameException) ErrorMessage

func (e *InvalidTrailNameException) ErrorMessage() string

func (*InvalidTrailNameException) GetMessage

func (e *InvalidTrailNameException) GetMessage() string

func (*InvalidTrailNameException) HasMessage

func (e *InvalidTrailNameException) HasMessage() bool

type KmsException

type KmsException struct {
	Message *string
}

This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.

func (*KmsException) Error

func (e *KmsException) Error() string

func (*KmsException) ErrorCode

func (e *KmsException) ErrorCode() string

func (*KmsException) ErrorFault

func (e *KmsException) ErrorFault() smithy.ErrorFault

func (*KmsException) ErrorMessage

func (e *KmsException) ErrorMessage() string

func (*KmsException) GetMessage

func (e *KmsException) GetMessage() string

func (*KmsException) HasMessage

func (e *KmsException) HasMessage() bool

type KmsKeyDisabledException

type KmsKeyDisabledException struct {
	Message *string
}

This exception is no longer in use.

func (*KmsKeyDisabledException) Error

func (e *KmsKeyDisabledException) Error() string

func (*KmsKeyDisabledException) ErrorCode

func (e *KmsKeyDisabledException) ErrorCode() string

func (*KmsKeyDisabledException) ErrorFault

func (e *KmsKeyDisabledException) ErrorFault() smithy.ErrorFault

func (*KmsKeyDisabledException) ErrorMessage

func (e *KmsKeyDisabledException) ErrorMessage() string

func (*KmsKeyDisabledException) GetMessage

func (e *KmsKeyDisabledException) GetMessage() string

func (*KmsKeyDisabledException) HasMessage

func (e *KmsKeyDisabledException) HasMessage() bool

type KmsKeyNotFoundException

type KmsKeyNotFoundException struct {
	Message *string
}

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) Error

func (e *KmsKeyNotFoundException) Error() string

func (*KmsKeyNotFoundException) ErrorCode

func (e *KmsKeyNotFoundException) ErrorCode() string

func (*KmsKeyNotFoundException) ErrorFault

func (e *KmsKeyNotFoundException) ErrorFault() smithy.ErrorFault

func (*KmsKeyNotFoundException) ErrorMessage

func (e *KmsKeyNotFoundException) ErrorMessage() string

func (*KmsKeyNotFoundException) GetMessage

func (e *KmsKeyNotFoundException) GetMessage() string

func (*KmsKeyNotFoundException) HasMessage

func (e *KmsKeyNotFoundException) HasMessage() bool

type LookupAttribute

type LookupAttribute struct {
	// Specifies an attribute on which to filter the events returned.
	AttributeKey LookupAttributeKey
	// Specifies a value for the specified AttributeKey.
	AttributeValue *string
}

Specifies an attribute and value that filter the events returned.

type LookupAttributeKey

type LookupAttributeKey string
const (
	LookupAttributeKeyEvent_id      LookupAttributeKey = "EventId"
	LookupAttributeKeyEvent_name    LookupAttributeKey = "EventName"
	LookupAttributeKeyRead_only     LookupAttributeKey = "ReadOnly"
	LookupAttributeKeyUsername      LookupAttributeKey = "Username"
	LookupAttributeKeyResource_type LookupAttributeKey = "ResourceType"
	LookupAttributeKeyResource_name LookupAttributeKey = "ResourceName"
	LookupAttributeKeyEvent_source  LookupAttributeKey = "EventSource"
	LookupAttributeKeyAccess_key_id LookupAttributeKey = "AccessKeyId"
)

Enum values for LookupAttributeKey

type MaximumNumberOfTrailsExceededException

type MaximumNumberOfTrailsExceededException struct {
	Message *string
}

This exception is thrown when the maximum number of trails is reached.

func (*MaximumNumberOfTrailsExceededException) Error

func (*MaximumNumberOfTrailsExceededException) ErrorCode

func (*MaximumNumberOfTrailsExceededException) ErrorFault

func (*MaximumNumberOfTrailsExceededException) ErrorMessage

func (*MaximumNumberOfTrailsExceededException) GetMessage

func (*MaximumNumberOfTrailsExceededException) HasMessage

type NotOrganizationMasterAccountException

type NotOrganizationMasterAccountException struct {
	Message *string
}

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) Error

func (*NotOrganizationMasterAccountException) ErrorCode

func (*NotOrganizationMasterAccountException) ErrorFault

func (*NotOrganizationMasterAccountException) ErrorMessage

func (*NotOrganizationMasterAccountException) GetMessage

func (*NotOrganizationMasterAccountException) HasMessage

type OperationNotPermittedException

type OperationNotPermittedException struct {
	Message *string
}

This exception is thrown when the requested operation is not permitted.

func (*OperationNotPermittedException) Error

func (*OperationNotPermittedException) ErrorCode

func (e *OperationNotPermittedException) ErrorCode() string

func (*OperationNotPermittedException) ErrorFault

func (*OperationNotPermittedException) ErrorMessage

func (e *OperationNotPermittedException) ErrorMessage() string

func (*OperationNotPermittedException) GetMessage

func (e *OperationNotPermittedException) GetMessage() string

func (*OperationNotPermittedException) HasMessage

func (e *OperationNotPermittedException) HasMessage() bool

type OrganizationNotInAllFeaturesModeException

type OrganizationNotInAllFeaturesModeException struct {
	Message *string
}

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) Error

func (*OrganizationNotInAllFeaturesModeException) ErrorCode

func (*OrganizationNotInAllFeaturesModeException) ErrorFault

func (*OrganizationNotInAllFeaturesModeException) ErrorMessage

func (*OrganizationNotInAllFeaturesModeException) GetMessage

func (*OrganizationNotInAllFeaturesModeException) HasMessage

type OrganizationsNotInUseException

type OrganizationsNotInUseException struct {
	Message *string
}

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) Error

func (*OrganizationsNotInUseException) ErrorCode

func (e *OrganizationsNotInUseException) ErrorCode() string

func (*OrganizationsNotInUseException) ErrorFault

func (*OrganizationsNotInUseException) ErrorMessage

func (e *OrganizationsNotInUseException) ErrorMessage() string

func (*OrganizationsNotInUseException) GetMessage

func (e *OrganizationsNotInUseException) GetMessage() string

func (*OrganizationsNotInUseException) HasMessage

func (e *OrganizationsNotInUseException) HasMessage() bool

type PublicKey

type PublicKey struct {
	// The fingerprint of the public key.
	Fingerprint *string
	// The DER encoded public key value in PKCS#1 format.
	Value []byte
	// The ending time of validity of the public key.
	ValidityEndTime *time.Time
	// The starting time of validity of the public key.
	ValidityStartTime *time.Time
}

Contains information about a returned public key.

type ReadWriteType

type ReadWriteType string
const (
	ReadWriteTypeReadonly  ReadWriteType = "ReadOnly"
	ReadWriteTypeWriteonly ReadWriteType = "WriteOnly"
	ReadWriteTypeAll       ReadWriteType = "All"
)

Enum values for ReadWriteType

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
	// 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
}

Specifies the type and name of a resource referenced by an event.

type ResourceNotFoundException

type ResourceNotFoundException struct {
	Message *string
}

This exception is thrown when the specified resource is not found.

func (*ResourceNotFoundException) Error

func (e *ResourceNotFoundException) Error() string

func (*ResourceNotFoundException) ErrorCode

func (e *ResourceNotFoundException) ErrorCode() string

func (*ResourceNotFoundException) ErrorFault

func (*ResourceNotFoundException) ErrorMessage

func (e *ResourceNotFoundException) ErrorMessage() string

func (*ResourceNotFoundException) GetMessage

func (e *ResourceNotFoundException) GetMessage() string

func (*ResourceNotFoundException) HasMessage

func (e *ResourceNotFoundException) HasMessage() bool

type ResourceTag

type ResourceTag struct {
	// Specifies the ARN of the resource.
	ResourceId *string
	// A list of tags.
	TagsList []*Tag
}

A resource tag.

type ResourceTypeNotSupportedException

type ResourceTypeNotSupportedException struct {
	Message *string
}

This exception is thrown when the specified resource type is not supported by CloudTrail.

func (*ResourceTypeNotSupportedException) Error

func (*ResourceTypeNotSupportedException) ErrorCode

func (*ResourceTypeNotSupportedException) ErrorFault

func (*ResourceTypeNotSupportedException) ErrorMessage

func (e *ResourceTypeNotSupportedException) ErrorMessage() string

func (*ResourceTypeNotSupportedException) GetMessage

func (e *ResourceTypeNotSupportedException) GetMessage() string

func (*ResourceTypeNotSupportedException) HasMessage

func (e *ResourceTypeNotSupportedException) HasMessage() bool

type S3BucketDoesNotExistException

type S3BucketDoesNotExistException struct {
	Message *string
}

This exception is thrown when the specified S3 bucket does not exist.

func (*S3BucketDoesNotExistException) Error

func (*S3BucketDoesNotExistException) ErrorCode

func (e *S3BucketDoesNotExistException) ErrorCode() string

func (*S3BucketDoesNotExistException) ErrorFault

func (*S3BucketDoesNotExistException) ErrorMessage

func (e *S3BucketDoesNotExistException) ErrorMessage() string

func (*S3BucketDoesNotExistException) GetMessage

func (e *S3BucketDoesNotExistException) GetMessage() string

func (*S3BucketDoesNotExistException) HasMessage

func (e *S3BucketDoesNotExistException) HasMessage() bool

type Tag

type Tag struct {
	// The value in a key-value pair of a tag. The value must be no longer than 256
	// Unicode characters.
	Value *string
	// 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 *string
}

A custom key-value pair associated with a resource such as a CloudTrail trail.

type TagsLimitExceededException

type TagsLimitExceededException struct {
	Message *string
}

The number of tags per trail has exceeded the permitted amount. Currently, the limit is 50.

func (*TagsLimitExceededException) Error

func (*TagsLimitExceededException) ErrorCode

func (e *TagsLimitExceededException) ErrorCode() string

func (*TagsLimitExceededException) ErrorFault

func (*TagsLimitExceededException) ErrorMessage

func (e *TagsLimitExceededException) ErrorMessage() string

func (*TagsLimitExceededException) GetMessage

func (e *TagsLimitExceededException) GetMessage() string

func (*TagsLimitExceededException) HasMessage

func (e *TagsLimitExceededException) HasMessage() bool

type Trail

type Trail struct {
	// Specifies the ARN of the trail. The format of a trail ARN is:
	// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
	TrailARN *string
	// Specifies whether the trail exists only in one region or exists in all regions.
	IsMultiRegionTrail *bool
	// Specifies if the trail has custom event selectors.
	HasCustomEventSelectors *bool
	// Name of the trail set by calling CreateTrail (). The maximum length is 128
	// characters.
	Name *string
	// Specifies the role for the CloudWatch Logs endpoint to assume to write to a
	// user's log group.
	CloudWatchLogsRoleArn *string
	// Specifies whether the trail is an organization trail.
	IsOrganizationTrail *bool
	// This field is no longer in use. Use SnsTopicARN.
	SnsTopicName *string
	// Set to True to include AWS API calls from AWS global services such as IAM.
	// Otherwise, False.
	IncludeGlobalServiceEvents *bool
	// 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
	// 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
	// The region in which the trail was created.
	HomeRegion *string
	// Specifies whether a trail has insight types specified in an InsightSelector
	// list.
	HasInsightSelectors *bool
	// 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
	// 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
	// Specifies whether log file validation is enabled.
	LogFileValidationEnabled *bool
	// Specifies an Amazon Resource Name (ARN), a unique identifier that represents the
	// log group to which CloudTrail logs will be delivered.
	CloudWatchLogsLogGroupArn *string
}

The settings for a trail.

type TrailAlreadyExistsException

type TrailAlreadyExistsException struct {
	Message *string
}

This exception is thrown when the specified trail already exists.

func (*TrailAlreadyExistsException) Error

func (*TrailAlreadyExistsException) ErrorCode

func (e *TrailAlreadyExistsException) ErrorCode() string

func (*TrailAlreadyExistsException) ErrorFault

func (*TrailAlreadyExistsException) ErrorMessage

func (e *TrailAlreadyExistsException) ErrorMessage() string

func (*TrailAlreadyExistsException) GetMessage

func (e *TrailAlreadyExistsException) GetMessage() string

func (*TrailAlreadyExistsException) HasMessage

func (e *TrailAlreadyExistsException) HasMessage() bool

type TrailInfo

type TrailInfo struct {
	// The ARN of a trail.
	TrailARN *string
	// The name of a trail.
	Name *string
	// The AWS region in which a trail was created.
	HomeRegion *string
}

Information about a CloudTrail trail, including the trail's name, home region, and Amazon Resource Name (ARN).

type TrailNotFoundException

type TrailNotFoundException struct {
	Message *string
}

This exception is thrown when the trail with the given name is not found.

func (*TrailNotFoundException) Error

func (e *TrailNotFoundException) Error() string

func (*TrailNotFoundException) ErrorCode

func (e *TrailNotFoundException) ErrorCode() string

func (*TrailNotFoundException) ErrorFault

func (e *TrailNotFoundException) ErrorFault() smithy.ErrorFault

func (*TrailNotFoundException) ErrorMessage

func (e *TrailNotFoundException) ErrorMessage() string

func (*TrailNotFoundException) GetMessage

func (e *TrailNotFoundException) GetMessage() string

func (*TrailNotFoundException) HasMessage

func (e *TrailNotFoundException) HasMessage() bool

type TrailNotProvidedException

type TrailNotProvidedException struct {
	Message *string
}

This exception is no longer in use.

func (*TrailNotProvidedException) Error

func (e *TrailNotProvidedException) Error() string

func (*TrailNotProvidedException) ErrorCode

func (e *TrailNotProvidedException) ErrorCode() string

func (*TrailNotProvidedException) ErrorFault

func (*TrailNotProvidedException) ErrorMessage

func (e *TrailNotProvidedException) ErrorMessage() string

func (*TrailNotProvidedException) GetMessage

func (e *TrailNotProvidedException) GetMessage() string

func (*TrailNotProvidedException) HasMessage

func (e *TrailNotProvidedException) HasMessage() bool

type UnsupportedOperationException

type UnsupportedOperationException struct {
	Message *string
}

This exception is thrown when the requested operation is not supported.

func (*UnsupportedOperationException) Error

func (*UnsupportedOperationException) ErrorCode

func (e *UnsupportedOperationException) ErrorCode() string

func (*UnsupportedOperationException) ErrorFault

func (*UnsupportedOperationException) ErrorMessage

func (e *UnsupportedOperationException) ErrorMessage() string

func (*UnsupportedOperationException) GetMessage

func (e *UnsupportedOperationException) GetMessage() string

func (*UnsupportedOperationException) HasMessage

func (e *UnsupportedOperationException) HasMessage() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL