Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- cloudTrail :: Service
- _InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError
- _InsufficientS3BucketPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- _MaximumNumberOfTrailsExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _UnsupportedOperationException :: AsError a => Getting (First ServiceError) a ServiceError
- _KMSKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError
- _InsufficientEncryptionPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- _InsufficientSNSTopicPolicyException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidCloudWatchLogsRoleARNException :: AsError a => Getting (First ServiceError) a ServiceError
- _TagsLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _CloudTrailARNInvalidException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidLookupAttributesException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidTrailNameException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidSNSTopicNameException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceTypeNotSupportedException :: AsError a => Getting (First ServiceError) a ServiceError
- _CloudWatchLogsDeliveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError
- _KMSKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _TrailNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _TrailNotProvidedException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidS3BucketNameException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidCloudWatchLogsLogGroupARNException :: AsError a => Getting (First ServiceError) a ServiceError
- _S3BucketDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidTagParameterException :: AsError a => Getting (First ServiceError) a ServiceError
- _OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidMaxResultsException :: AsError a => Getting (First ServiceError) a ServiceError
- _TrailAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidS3PrefixException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidKMSKeyIdException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidHomeRegionException :: AsError a => Getting (First ServiceError) a ServiceError
- data LookupAttributeKey
- data Event
- event :: Event
- eUsername :: Lens' Event (Maybe Text)
- eResources :: Lens' Event [Resource]
- eEventTime :: Lens' Event (Maybe UTCTime)
- eCloudTrailEvent :: Lens' Event (Maybe Text)
- eEventName :: Lens' Event (Maybe Text)
- eEventId :: Lens' Event (Maybe Text)
- data LookupAttribute
- lookupAttribute :: LookupAttributeKey -> Text -> LookupAttribute
- laAttributeKey :: Lens' LookupAttribute LookupAttributeKey
- laAttributeValue :: Lens' LookupAttribute Text
- data PublicKey
- publicKey :: PublicKey
- pkFingerprint :: Lens' PublicKey (Maybe Text)
- pkValidityEndTime :: Lens' PublicKey (Maybe UTCTime)
- pkValue :: Lens' PublicKey (Maybe ByteString)
- pkValidityStartTime :: Lens' PublicKey (Maybe UTCTime)
- data Resource
- resource :: Resource
- rResourceType :: Lens' Resource (Maybe Text)
- rResourceName :: Lens' Resource (Maybe Text)
- data ResourceTag
- resourceTag :: ResourceTag
- rResourceId :: Lens' ResourceTag (Maybe Text)
- rTagsList :: Lens' ResourceTag [Tag]
- data Tag
- tag :: Text -> Tag
- tagValue :: Lens' Tag (Maybe Text)
- tagKey :: Lens' Tag Text
- data Trail
- trail :: Trail
- tLogFileValidationEnabled :: Lens' Trail (Maybe Bool)
- tTrailARN :: Lens' Trail (Maybe Text)
- tS3KeyPrefix :: Lens' Trail (Maybe Text)
- tSNSTopicName :: Lens' Trail (Maybe Text)
- tCloudWatchLogsLogGroupARN :: Lens' Trail (Maybe Text)
- tKMSKeyId :: Lens' Trail (Maybe Text)
- tHomeRegion :: Lens' Trail (Maybe Text)
- tName :: Lens' Trail (Maybe Text)
- tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool)
- tCloudWatchLogsRoleARN :: Lens' Trail (Maybe Text)
- tS3BucketName :: Lens' Trail (Maybe Text)
- tIsMultiRegionTrail :: Lens' Trail (Maybe Bool)
Service Configuration
cloudTrail :: Service Source #
API version '2013-11-01' of the Amazon CloudTrail SDK configuration.
Errors
_InvalidTimeRangeException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
_InsufficientS3BucketPolicyException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the policy on the S3 bucket is not sufficient.
_MaximumNumberOfTrailsExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the maximum number of trails is reached.
_UnsupportedOperationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the requested operation is not supported.
_KMSKeyDisabledException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the KMS key is disabled.
_InsufficientEncryptionPolicyException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.
_InsufficientSNSTopicPolicyException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the policy on the SNS topic is not sufficient.
_InvalidCloudWatchLogsRoleARNException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the provided role is not valid.
_TagsLimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The number of tags per trail has exceeded the permitted amount. Currently, the limit is 10.
_CloudTrailARNInvalidException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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-1:123456789012:trail\/MyTrail'.
_InvalidLookupAttributesException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Occurs when an invalid lookup attribute is specified.
_InvalidTrailNameException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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
are invalid. - Not be in IP address format (for example, 192.168.5.4)
_InvalidSNSTopicNameException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the provided SNS topic name is not valid.
_ResourceTypeNotSupportedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the specified resource type is not supported by CloudTrail.
_CloudWatchLogsDeliveryUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Cannot set a CloudWatch Logs delivery for this region.
_KMSKeyNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
_TrailNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the trail with the given name is not found.
_TrailNotProvidedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is deprecated.
_InvalidS3BucketNameException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the provided S3 bucket name is not valid.
_InvalidCloudWatchLogsLogGroupARNException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the provided CloudWatch log group is not valid.
_S3BucketDoesNotExistException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the specified S3 bucket does not exist.
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Invalid token or token that was previously used in a request with different parameters. This exception is thrown if the token is invalid.
_InvalidTagParameterException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the key or value specified for the tag does not match the regular expression '^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-']*)$'.
_OperationNotPermittedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the requested operation is not permitted.
_InvalidTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Reserved for future use.
_InvalidMaxResultsException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown if the limit specified is invalid.
_TrailAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the specified trail already exists.
_InvalidS3PrefixException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the provided S3 prefix is not valid.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the specified resource is not found.
_InvalidParameterCombinationException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the combination of parameters provided is not valid.
_InvalidKMSKeyIdException :: AsError a => Getting (First ServiceError) a ServiceError Source #
This exception is thrown when the KMS key ARN is invalid.
_InvalidHomeRegionException :: AsError a => Getting (First ServiceError) a ServiceError Source #
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.
LookupAttributeKey
data LookupAttributeKey Source #
Event
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
See: event
smart constructor.
Creates a value of Event
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
eUsername :: Lens' Event (Maybe Text) Source #
A user name or role name of the requester that called the API in the event returned.
eCloudTrailEvent :: Lens' Event (Maybe Text) Source #
A JSON string that contains a representation of the event returned.
LookupAttribute
data LookupAttribute Source #
Specifies an attribute and value that filter the events returned.
See: lookupAttribute
smart constructor.
Creates a value of LookupAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
laAttributeKey :: Lens' LookupAttribute LookupAttributeKey Source #
Specifies an attribute on which to filter the events returned.
laAttributeValue :: Lens' LookupAttribute Text Source #
Specifies a value for the specified AttributeKey.
PublicKey
Contains information about a returned public key.
See: publicKey
smart constructor.
publicKey :: PublicKey Source #
Creates a value of PublicKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pkValidityEndTime :: Lens' PublicKey (Maybe UTCTime) Source #
The ending time of validity of the public key.
pkValue :: Lens' PublicKey (Maybe ByteString) Source #
The DER encoded public key value in PKCS#1 format.
Note: This Lens
automatically encodes and decodes Base64 data,
despite what the AWS documentation might say.
The underlying isomorphism will encode to Base64 representation during
serialisation, and decode from Base64 representation during deserialisation.
This Lens
accepts and returns only raw unencoded data.
pkValidityStartTime :: Lens' PublicKey (Maybe UTCTime) Source #
The starting time of validity of the public key.
Resource
Specifies the type and name of a resource referenced by an event.
See: resource
smart constructor.
Creates a value of Resource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rResourceType :: Lens' Resource (Maybe Text) Source #
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. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.
rResourceName :: Lens' Resource (Maybe Text) Source #
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.
ResourceTag
data ResourceTag Source #
A resource tag.
See: resourceTag
smart constructor.
resourceTag :: ResourceTag Source #
Creates a value of ResourceTag
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rResourceId :: Lens' ResourceTag (Maybe Text) Source #
Specifies the ARN of the resource.
Tag
A custom key-value pair associated with a resource such as a CloudTrail trail.
See: tag
smart constructor.
tagValue :: Lens' Tag (Maybe Text) Source #
The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
tagKey :: Lens' Tag Text Source #
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.
Trail
The settings for a trail.
See: trail
smart constructor.
Creates a value of Trail
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tLogFileValidationEnabled :: Lens' Trail (Maybe Bool) Source #
Specifies whether log file validation is enabled.
tTrailARN :: Lens' Trail (Maybe Text) Source #
The Amazon Resource Name of the trail. The TrailARN
format is
'arn:aws:cloudtrail:us-east-1:123456789012:trail\/MyTrail'.
tS3KeyPrefix :: Lens' Trail (Maybe Text) Source #
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.The maximum length is 200 characters.
tSNSTopicName :: Lens' Trail (Maybe Text) Source #
Name of the existing Amazon SNS topic that CloudTrail uses to notify the account owner when new CloudTrail log files have been delivered. The maximum length is 256 characters.
tCloudWatchLogsLogGroupARN :: Lens' Trail (Maybe Text) Source #
Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.
tKMSKeyId :: Lens' Trail (Maybe Text) Source #
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-1:123456789012:key\/12345678-1234-1234-1234-123456789012'
tName :: Lens' Trail (Maybe Text) Source #
Name of the trail set by calling CreateTrail. The maximum length is 128 characters.
tIncludeGlobalServiceEvents :: Lens' Trail (Maybe Bool) Source #
Set to True to include AWS API calls from AWS global services such as IAM. Otherwise, False.
tCloudWatchLogsRoleARN :: Lens' Trail (Maybe Text) Source #
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
tS3BucketName :: Lens' Trail (Maybe Text) Source #
Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.