The AWS::S3::StorageLens resource is an Amazon S3 resource type that you can use to create Storage Lens configurations.
storage_lens_configuration
(Attributes) Specifies the details of Amazon S3 Storage Lens configuration. (see below for nested schema)tags
(Attributes Set) A set of tags (key-value pairs) for this Amazon S3 Storage Lens configuration. (see below for nested schema)id
(String) Uniquely identifies the resource.storage_lens_configuration
Required:
account_level
(Attributes) Account-level metrics configurations. (see below for nested schema)id
(String) The ID that identifies the Amazon S3 Storage Lens configuration.is_enabled
(Boolean) Specifies whether the Amazon S3 Storage Lens configuration is enabled or disabled.Optional:
aws_org
(Attributes) The AWS Organizations ARN to use in the Amazon S3 Storage Lens configuration. (see below for nested schema)data_export
(Attributes) Specifies how Amazon S3 Storage Lens metrics should be exported. (see below for nested schema)exclude
(Attributes) S3 buckets and Regions to include/exclude in the Amazon S3 Storage Lens configuration. (see below for nested schema)include
(Attributes) S3 buckets and Regions to include/exclude in the Amazon S3 Storage Lens configuration. (see below for nested schema)Read-Only:
storage_lens_arn
(String) The ARN for the Amazon S3 Storage Lens configuration.storage_lens_configuration.account_level
Required:
bucket_level
(Attributes) Bucket-level metrics configurations. (see below for nested schema)Optional:
activity_metrics
(Attributes) Enables activity metrics. (see below for nested schema)advanced_cost_optimization_metrics
(Attributes) Enables advanced cost optimization metrics. (see below for nested schema)advanced_data_protection_metrics
(Attributes) Enables advanced data protection metrics. (see below for nested schema)detailed_status_codes_metrics
(Attributes) Enables detailed status codes metrics. (see below for nested schema)storage_lens_group_level
(Attributes) Specifies the details of Amazon S3 Storage Lens Group configuration. (see below for nested schema)storage_lens_configuration.account_level.bucket_level
Optional:
activity_metrics
(Attributes) Enables activity metrics. (see below for nested schema)advanced_cost_optimization_metrics
(Attributes) Enables advanced cost optimization metrics. (see below for nested schema)advanced_data_protection_metrics
(Attributes) Enables advanced data protection metrics. (see below for nested schema)detailed_status_codes_metrics
(Attributes) Enables detailed status codes metrics. (see below for nested schema)prefix_level
(Attributes) Prefix-level metrics configurations. (see below for nested schema)storage_lens_configuration.account_level.bucket_level.activity_metrics
Optional:
is_enabled
(Boolean) Specifies whether activity metrics are enabled or disabled.storage_lens_configuration.account_level.bucket_level.advanced_cost_optimization_metrics
Optional:
is_enabled
(Boolean) Specifies whether advanced cost optimization metrics are enabled or disabled.storage_lens_configuration.account_level.bucket_level.advanced_data_protection_metrics
Optional:
is_enabled
(Boolean) Specifies whether advanced data protection metrics are enabled or disabled.storage_lens_configuration.account_level.bucket_level.detailed_status_codes_metrics
Optional:
is_enabled
(Boolean) Specifies whether detailed status codes metrics are enabled or disabled.storage_lens_configuration.account_level.bucket_level.prefix_level
Required:
storage_metrics
(Attributes) (see below for nested schema)storage_lens_configuration.account_level.bucket_level.prefix_level.storage_metrics
Optional:
is_enabled
(Boolean) Specifies whether prefix-level storage metrics are enabled or disabled.selection_criteria
(Attributes) Selection criteria for prefix-level metrics. (see below for nested schema)storage_lens_configuration.account_level.bucket_level.prefix_level.storage_metrics.selection_criteria
Optional:
delimiter
(String) Delimiter to divide S3 key into hierarchy of prefixes.max_depth
(Number) Max depth of prefixes of S3 key that Amazon S3 Storage Lens will analyze.min_storage_bytes_percentage
(Number) The minimum storage bytes threshold for the prefixes to be included in the analysis.storage_lens_configuration.account_level.activity_metrics
Optional:
is_enabled
(Boolean) Specifies whether activity metrics are enabled or disabled.storage_lens_configuration.account_level.advanced_cost_optimization_metrics
Optional:
is_enabled
(Boolean) Specifies whether advanced cost optimization metrics are enabled or disabled.storage_lens_configuration.account_level.advanced_data_protection_metrics
Optional:
is_enabled
(Boolean) Specifies whether advanced data protection metrics are enabled or disabled.storage_lens_configuration.account_level.detailed_status_codes_metrics
Optional:
is_enabled
(Boolean) Specifies whether detailed status codes metrics are enabled or disabled.storage_lens_configuration.account_level.storage_lens_group_level
Optional:
storage_lens_group_selection_criteria
(Attributes) Selection criteria for Storage Lens Group level metrics (see below for nested schema)storage_lens_configuration.account_level.storage_lens_group_level.storage_lens_group_selection_criteria
Optional:
exclude
(Set of String)include
(Set of String)storage_lens_configuration.aws_org
Required:
arn
(String) The Amazon Resource Name (ARN) of the specified resource.storage_lens_configuration.data_export
Optional:
cloudwatch_metrics
(Attributes) CloudWatch metrics settings for the Amazon S3 Storage Lens metrics export. (see below for nested schema)s3_bucket_destination
(Attributes) S3 bucket destination settings for the Amazon S3 Storage Lens metrics export. (see below for nested schema)storage_lens_configuration.data_export.cloudwatch_metrics
Required:
is_enabled
(Boolean) Specifies whether CloudWatch metrics are enabled or disabled.storage_lens_configuration.data_export.s3_bucket_destination
Required:
account_id
(String) The AWS account ID that owns the destination S3 bucket.arn
(String) The ARN of the bucket to which Amazon S3 Storage Lens exports will be placed.format
(String) Specifies the file format to use when exporting Amazon S3 Storage Lens metrics export.output_schema_version
(String) The version of the output schema to use when exporting Amazon S3 Storage Lens metrics.Optional:
encryption
(Attributes) Configures the server-side encryption for Amazon S3 Storage Lens report files with either S3-managed keys (SSE-S3) or KMS-managed keys (SSE-KMS). (see below for nested schema)prefix
(String) The prefix to use for Amazon S3 Storage Lens export.storage_lens_configuration.data_export.s3_bucket_destination.encryption
Optional:
ssekms
(Attributes) AWS KMS server-side encryption. (see below for nested schema)sses3
(String) S3 default server-side encryption.storage_lens_configuration.data_export.s3_bucket_destination.prefix.ssekms
Required:
key_id
(String) The ARN of the KMS key to use for encryption.storage_lens_configuration.exclude
Optional:
buckets
(Set of String)regions
(Set of String)storage_lens_configuration.include
Optional:
buckets
(Set of String)regions
(Set of String)tags
Required:
key
(String)value
(String)Import is supported using the following syntax:
$ terraform import awscc_s3_storage_lens.example <resource ID>