Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data BucketMetadata = BucketMetadata' {
- accountId :: Maybe Text
- allowsUnencryptedObjectUploads :: Maybe AllowsUnencryptedObjectUploads
- bucketArn :: Maybe Text
- bucketCreatedAt :: Maybe ISO8601
- bucketName :: Maybe Text
- classifiableObjectCount :: Maybe Integer
- classifiableSizeInBytes :: Maybe Integer
- errorCode :: Maybe BucketMetadataErrorCode
- errorMessage :: Maybe Text
- jobDetails :: Maybe JobDetails
- lastAutomatedDiscoveryTime :: Maybe ISO8601
- lastUpdated :: Maybe ISO8601
- objectCount :: Maybe Integer
- objectCountByEncryptionType :: Maybe ObjectCountByEncryptionType
- publicAccess :: Maybe BucketPublicAccess
- region :: Maybe Text
- replicationDetails :: Maybe ReplicationDetails
- sensitivityScore :: Maybe Int
- serverSideEncryption :: Maybe BucketServerSideEncryption
- sharedAccess :: Maybe SharedAccess
- sizeInBytes :: Maybe Integer
- sizeInBytesCompressed :: Maybe Integer
- tags :: Maybe [KeyValuePair]
- unclassifiableObjectCount :: Maybe ObjectLevelStatistics
- unclassifiableObjectSizeInBytes :: Maybe ObjectLevelStatistics
- versioning :: Maybe Bool
- newBucketMetadata :: BucketMetadata
- bucketMetadata_accountId :: Lens' BucketMetadata (Maybe Text)
- bucketMetadata_allowsUnencryptedObjectUploads :: Lens' BucketMetadata (Maybe AllowsUnencryptedObjectUploads)
- bucketMetadata_bucketArn :: Lens' BucketMetadata (Maybe Text)
- bucketMetadata_bucketCreatedAt :: Lens' BucketMetadata (Maybe UTCTime)
- bucketMetadata_bucketName :: Lens' BucketMetadata (Maybe Text)
- bucketMetadata_classifiableObjectCount :: Lens' BucketMetadata (Maybe Integer)
- bucketMetadata_classifiableSizeInBytes :: Lens' BucketMetadata (Maybe Integer)
- bucketMetadata_errorCode :: Lens' BucketMetadata (Maybe BucketMetadataErrorCode)
- bucketMetadata_errorMessage :: Lens' BucketMetadata (Maybe Text)
- bucketMetadata_jobDetails :: Lens' BucketMetadata (Maybe JobDetails)
- bucketMetadata_lastAutomatedDiscoveryTime :: Lens' BucketMetadata (Maybe UTCTime)
- bucketMetadata_lastUpdated :: Lens' BucketMetadata (Maybe UTCTime)
- bucketMetadata_objectCount :: Lens' BucketMetadata (Maybe Integer)
- bucketMetadata_objectCountByEncryptionType :: Lens' BucketMetadata (Maybe ObjectCountByEncryptionType)
- bucketMetadata_publicAccess :: Lens' BucketMetadata (Maybe BucketPublicAccess)
- bucketMetadata_region :: Lens' BucketMetadata (Maybe Text)
- bucketMetadata_replicationDetails :: Lens' BucketMetadata (Maybe ReplicationDetails)
- bucketMetadata_sensitivityScore :: Lens' BucketMetadata (Maybe Int)
- bucketMetadata_serverSideEncryption :: Lens' BucketMetadata (Maybe BucketServerSideEncryption)
- bucketMetadata_sharedAccess :: Lens' BucketMetadata (Maybe SharedAccess)
- bucketMetadata_sizeInBytes :: Lens' BucketMetadata (Maybe Integer)
- bucketMetadata_sizeInBytesCompressed :: Lens' BucketMetadata (Maybe Integer)
- bucketMetadata_tags :: Lens' BucketMetadata (Maybe [KeyValuePair])
- bucketMetadata_unclassifiableObjectCount :: Lens' BucketMetadata (Maybe ObjectLevelStatistics)
- bucketMetadata_unclassifiableObjectSizeInBytes :: Lens' BucketMetadata (Maybe ObjectLevelStatistics)
- bucketMetadata_versioning :: Lens' BucketMetadata (Maybe Bool)
Documentation
data BucketMetadata Source #
Provides statistical data and other information about an S3 bucket that Amazon Macie monitors and analyzes for your account. If an error occurs when Macie attempts to retrieve and process metadata from Amazon S3 for the bucket and the bucket's objects, the value for the versioning property is false and the value for most other properties is null. Key exceptions are accountId, bucketArn, bucketCreatedAt, bucketName, lastUpdated, and region. To identify the cause of the error, refer to the errorCode and errorMessage values.
See: newBucketMetadata
smart constructor.
BucketMetadata' | |
|
Instances
newBucketMetadata :: BucketMetadata Source #
Create a value of BucketMetadata
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountId:BucketMetadata'
, bucketMetadata_accountId
- The unique identifier for the Amazon Web Services account that owns the
bucket.
$sel:allowsUnencryptedObjectUploads:BucketMetadata'
, bucketMetadata_allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side
encryption of objects when objects are uploaded to the bucket. Possible
values are:
- FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
- TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
- UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
$sel:bucketArn:BucketMetadata'
, bucketMetadata_bucketArn
- The Amazon Resource Name (ARN) of the bucket.
$sel:bucketCreatedAt:BucketMetadata'
, bucketMetadata_bucketCreatedAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket
was created, or changes such as edits to the bucket's policy were most
recently made to the bucket.
$sel:bucketName:BucketMetadata'
, bucketMetadata_bucketName
- The name of the bucket.
$sel:classifiableObjectCount:BucketMetadata'
, bucketMetadata_classifiableObjectCount
- The total number of objects that Amazon Macie can analyze in the bucket.
These objects use a supported storage class and have a file name
extension for a supported file or storage format.
$sel:classifiableSizeInBytes:BucketMetadata'
, bucketMetadata_classifiableSizeInBytes
- The total storage size, in bytes, of the objects that Amazon Macie can
analyze in the bucket. These objects use a supported storage class and
have a file name extension for a supported file or storage format.
If versioning is enabled for the bucket, Macie calculates this value based on the size of the latest version of each applicable object in the bucket. This value doesn't reflect the storage size of all versions of each applicable object in the bucket.
$sel:errorCode:BucketMetadata'
, bucketMetadata_errorCode
- Specifies the error code for an error that prevented Amazon Macie from
retrieving and processing information about the bucket and the bucket's
objects. If this value is ACCESS_DENIED, Macie doesn't have permission
to retrieve the information. For example, the bucket has a restrictive
bucket policy and Amazon S3 denied the request. If this value is null,
Macie was able to retrieve and process the information.
$sel:errorMessage:BucketMetadata'
, bucketMetadata_errorMessage
- A brief description of the error (errorCode) that prevented Amazon Macie
from retrieving and processing information about the bucket and the
bucket's objects. This value is null if Macie was able to retrieve and
process the information.
$sel:jobDetails:BucketMetadata'
, bucketMetadata_jobDetails
- Specifies whether any one-time or recurring classification jobs are
configured to analyze data in the bucket, and, if so, the details of the
job that ran most recently.
$sel:lastAutomatedDiscoveryTime:BucketMetadata'
, bucketMetadata_lastAutomatedDiscoveryTime
- The date and time, in UTC and extended ISO 8601 format, when Amazon
Macie most recently performed automated sensitive data discovery for the
bucket. This value is null if automated sensitive data discovery is
currently disabled for your account.
$sel:lastUpdated:BucketMetadata'
, bucketMetadata_lastUpdated
- The date and time, in UTC and extended ISO 8601 format, when Amazon
Macie most recently retrieved both bucket and object metadata from
Amazon S3 for the bucket.
$sel:objectCount:BucketMetadata'
, bucketMetadata_objectCount
- The total number of objects in the bucket.
$sel:objectCountByEncryptionType:BucketMetadata'
, bucketMetadata_objectCountByEncryptionType
- The total number of objects that are in the bucket, grouped by
server-side encryption type. This includes a grouping that reports the
total number of objects that aren't encrypted or use client-side
encryption.
$sel:publicAccess:BucketMetadata'
, bucketMetadata_publicAccess
- Specifies whether the bucket is publicly accessible due to the
combination of permissions settings that apply to the bucket, and
provides information about those settings.
$sel:region:BucketMetadata'
, bucketMetadata_region
- The Amazon Web Services Region that hosts the bucket.
$sel:replicationDetails:BucketMetadata'
, bucketMetadata_replicationDetails
- Specifies whether the bucket is configured to replicate one or more
objects to buckets for other Amazon Web Services accounts and, if so,
which accounts.
$sel:sensitivityScore:BucketMetadata'
, bucketMetadata_sensitivityScore
- The sensitivity score for the bucket, ranging from -1 (no analysis due
to an error) to 100 (sensitive). This value is null if automated
sensitive data discovery is currently disabled for your account.
$sel:serverSideEncryption:BucketMetadata'
, bucketMetadata_serverSideEncryption
- Specifies whether the bucket encrypts new objects by default and, if so,
the type of server-side encryption that's used.
$sel:sharedAccess:BucketMetadata'
, bucketMetadata_sharedAccess
- Specifies whether the bucket is shared with another Amazon Web Services
account. Possible values are:
- EXTERNAL - The bucket is shared with an Amazon Web Services account that isn't part of the same Amazon Macie organization.
- INTERNAL - The bucket is shared with an Amazon Web Services account that's part of the same Amazon Macie organization.
- NOT_SHARED - The bucket isn't shared with other Amazon Web Services accounts.
- UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
$sel:sizeInBytes:BucketMetadata'
, bucketMetadata_sizeInBytes
- The total storage size, in bytes, of the bucket.
If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest version of each object in the bucket. This value doesn't reflect the storage size of all versions of each object in the bucket.
$sel:sizeInBytesCompressed:BucketMetadata'
, bucketMetadata_sizeInBytesCompressed
- The total storage size, in bytes, of the objects that are compressed
(.gz, .gzip, .zip) files in the bucket.
If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest version of each applicable object in the bucket. This value doesn't reflect the storage size of all versions of each applicable object in the bucket.
$sel:tags:BucketMetadata'
, bucketMetadata_tags
- An array that specifies the tags (keys and values) that are associated
with the bucket.
$sel:unclassifiableObjectCount:BucketMetadata'
, bucketMetadata_unclassifiableObjectCount
- The total number of objects that Amazon Macie can't analyze in the
bucket. These objects don't use a supported storage class or don't
have a file name extension for a supported file or storage format.
$sel:unclassifiableObjectSizeInBytes:BucketMetadata'
, bucketMetadata_unclassifiableObjectSizeInBytes
- The total storage size, in bytes, of the objects that Amazon Macie
can't analyze in the bucket. These objects don't use a supported
storage class or don't have a file name extension for a supported file
or storage format.
$sel:versioning:BucketMetadata'
, bucketMetadata_versioning
- Specifies whether versioning is enabled for the bucket.
bucketMetadata_accountId :: Lens' BucketMetadata (Maybe Text) Source #
The unique identifier for the Amazon Web Services account that owns the bucket.
bucketMetadata_allowsUnencryptedObjectUploads :: Lens' BucketMetadata (Maybe AllowsUnencryptedObjectUploads) Source #
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:
- FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
- TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
- UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
bucketMetadata_bucketArn :: Lens' BucketMetadata (Maybe Text) Source #
The Amazon Resource Name (ARN) of the bucket.
bucketMetadata_bucketCreatedAt :: Lens' BucketMetadata (Maybe UTCTime) Source #
The date and time, in UTC and extended ISO 8601 format, when the bucket was created, or changes such as edits to the bucket's policy were most recently made to the bucket.
bucketMetadata_bucketName :: Lens' BucketMetadata (Maybe Text) Source #
The name of the bucket.
bucketMetadata_classifiableObjectCount :: Lens' BucketMetadata (Maybe Integer) Source #
The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported storage class and have a file name extension for a supported file or storage format.
bucketMetadata_classifiableSizeInBytes :: Lens' BucketMetadata (Maybe Integer) Source #
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These objects use a supported storage class and have a file name extension for a supported file or storage format.
If versioning is enabled for the bucket, Macie calculates this value based on the size of the latest version of each applicable object in the bucket. This value doesn't reflect the storage size of all versions of each applicable object in the bucket.
bucketMetadata_errorCode :: Lens' BucketMetadata (Maybe BucketMetadataErrorCode) Source #
Specifies the error code for an error that prevented Amazon Macie from retrieving and processing information about the bucket and the bucket's objects. If this value is ACCESS_DENIED, Macie doesn't have permission to retrieve the information. For example, the bucket has a restrictive bucket policy and Amazon S3 denied the request. If this value is null, Macie was able to retrieve and process the information.
bucketMetadata_errorMessage :: Lens' BucketMetadata (Maybe Text) Source #
A brief description of the error (errorCode) that prevented Amazon Macie from retrieving and processing information about the bucket and the bucket's objects. This value is null if Macie was able to retrieve and process the information.
bucketMetadata_jobDetails :: Lens' BucketMetadata (Maybe JobDetails) Source #
Specifies whether any one-time or recurring classification jobs are configured to analyze data in the bucket, and, if so, the details of the job that ran most recently.
bucketMetadata_lastAutomatedDiscoveryTime :: Lens' BucketMetadata (Maybe UTCTime) Source #
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently performed automated sensitive data discovery for the bucket. This value is null if automated sensitive data discovery is currently disabled for your account.
bucketMetadata_lastUpdated :: Lens' BucketMetadata (Maybe UTCTime) Source #
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved both bucket and object metadata from Amazon S3 for the bucket.
bucketMetadata_objectCount :: Lens' BucketMetadata (Maybe Integer) Source #
The total number of objects in the bucket.
bucketMetadata_objectCountByEncryptionType :: Lens' BucketMetadata (Maybe ObjectCountByEncryptionType) Source #
The total number of objects that are in the bucket, grouped by server-side encryption type. This includes a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.
bucketMetadata_publicAccess :: Lens' BucketMetadata (Maybe BucketPublicAccess) Source #
Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket, and provides information about those settings.
bucketMetadata_region :: Lens' BucketMetadata (Maybe Text) Source #
The Amazon Web Services Region that hosts the bucket.
bucketMetadata_replicationDetails :: Lens' BucketMetadata (Maybe ReplicationDetails) Source #
Specifies whether the bucket is configured to replicate one or more objects to buckets for other Amazon Web Services accounts and, if so, which accounts.
bucketMetadata_sensitivityScore :: Lens' BucketMetadata (Maybe Int) Source #
The sensitivity score for the bucket, ranging from -1 (no analysis due to an error) to 100 (sensitive). This value is null if automated sensitive data discovery is currently disabled for your account.
bucketMetadata_serverSideEncryption :: Lens' BucketMetadata (Maybe BucketServerSideEncryption) Source #
Specifies whether the bucket encrypts new objects by default and, if so, the type of server-side encryption that's used.
bucketMetadata_sharedAccess :: Lens' BucketMetadata (Maybe SharedAccess) Source #
Specifies whether the bucket is shared with another Amazon Web Services account. Possible values are:
- EXTERNAL - The bucket is shared with an Amazon Web Services account that isn't part of the same Amazon Macie organization.
- INTERNAL - The bucket is shared with an Amazon Web Services account that's part of the same Amazon Macie organization.
- NOT_SHARED - The bucket isn't shared with other Amazon Web Services accounts.
- UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
bucketMetadata_sizeInBytes :: Lens' BucketMetadata (Maybe Integer) Source #
The total storage size, in bytes, of the bucket.
If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest version of each object in the bucket. This value doesn't reflect the storage size of all versions of each object in the bucket.
bucketMetadata_sizeInBytesCompressed :: Lens' BucketMetadata (Maybe Integer) Source #
The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the bucket.
If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest version of each applicable object in the bucket. This value doesn't reflect the storage size of all versions of each applicable object in the bucket.
bucketMetadata_tags :: Lens' BucketMetadata (Maybe [KeyValuePair]) Source #
An array that specifies the tags (keys and values) that are associated with the bucket.
bucketMetadata_unclassifiableObjectCount :: Lens' BucketMetadata (Maybe ObjectLevelStatistics) Source #
The total number of objects that Amazon Macie can't analyze in the bucket. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.
bucketMetadata_unclassifiableObjectSizeInBytes :: Lens' BucketMetadata (Maybe ObjectLevelStatistics) Source #
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.
bucketMetadata_versioning :: Lens' BucketMetadata (Maybe Bool) Source #
Specifies whether versioning is enabled for the bucket.