CfnStorageLensPropsMixin
- class aws_cdk.mixins_preview.aws_s3.mixins.CfnStorageLensPropsMixin(props, *, strategy=None)
Bases:
MixinThe AWS::S3::StorageLens resource creates an Amazon S3 Storage Lens configuration.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-storagelens.html
- CloudformationResource:
AWS::S3::StorageLens
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins # sses3: Any cfn_storage_lens_props_mixin = s3_mixins.CfnStorageLensPropsMixin(s3_mixins.CfnStorageLensMixinProps( storage_lens_configuration=s3_mixins.CfnStorageLensPropsMixin.StorageLensConfigurationProperty( account_level=s3_mixins.CfnStorageLensPropsMixin.AccountLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), bucket_level=s3_mixins.CfnStorageLensPropsMixin.BucketLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), prefix_level=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelProperty( storage_metrics=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty( is_enabled=False, selection_criteria=s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 ) ) ) ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), storage_lens_group_level=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupLevelProperty( storage_lens_group_selection_criteria=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupSelectionCriteriaProperty( exclude=["exclude"], include=["include"] ) ) ), aws_org=s3_mixins.CfnStorageLensPropsMixin.AwsOrgProperty( arn="arn" ), data_export=s3_mixins.CfnStorageLensPropsMixin.DataExportProperty( cloud_watch_metrics=s3_mixins.CfnStorageLensPropsMixin.CloudWatchMetricsProperty( is_enabled=False ), s3_bucket_destination=s3_mixins.CfnStorageLensPropsMixin.S3BucketDestinationProperty( account_id="accountId", arn="arn", encryption=s3_mixins.CfnStorageLensPropsMixin.EncryptionProperty( ssekms=s3_mixins.CfnStorageLensPropsMixin.SSEKMSProperty( key_id="keyId" ), sses3=sses3 ), format="format", output_schema_version="outputSchemaVersion", prefix="prefix" ) ), exclude=s3_mixins.CfnStorageLensPropsMixin.BucketsAndRegionsProperty( buckets=["buckets"], regions=["regions"] ), id="id", include=s3_mixins.CfnStorageLensPropsMixin.BucketsAndRegionsProperty( buckets=["buckets"], regions=["regions"] ), is_enabled=False, storage_lens_arn="storageLensArn" ), tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::S3::StorageLens.- Parameters:
props (
Union[CfnStorageLensMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['storageLensConfiguration', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AccountLevelProperty
- class CfnStorageLensPropsMixin.AccountLevelProperty(*, activity_metrics=None, advanced_cost_optimization_metrics=None, advanced_data_protection_metrics=None, bucket_level=None, detailed_status_codes_metrics=None, storage_lens_group_level=None)
Bases:
objectThis resource contains the details of the account-level metrics for Amazon S3 Storage Lens.
- Parameters:
activity_metrics (
Union[IResolvable,ActivityMetricsProperty,Dict[str,Any],None]) – This property contains the details of account-level activity metrics for S3 Storage Lens.advanced_cost_optimization_metrics (
Union[IResolvable,AdvancedCostOptimizationMetricsProperty,Dict[str,Any],None]) – This property contains the details of account-level advanced cost optimization metrics for S3 Storage Lens.advanced_data_protection_metrics (
Union[IResolvable,AdvancedDataProtectionMetricsProperty,Dict[str,Any],None]) – This property contains the details of account-level advanced data protection metrics for S3 Storage Lens.bucket_level (
Union[IResolvable,BucketLevelProperty,Dict[str,Any],None]) – This property contains the details of the account-level bucket-level configurations for Amazon S3 Storage Lens. To enable bucket-level configurations, make sure to also set the same metrics at the account level.detailed_status_codes_metrics (
Union[IResolvable,DetailedStatusCodesMetricsProperty,Dict[str,Any],None]) – This property contains the details of account-level detailed status code metrics for S3 Storage Lens.storage_lens_group_level (
Union[IResolvable,StorageLensGroupLevelProperty,Dict[str,Any],None]) – This property determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins account_level_property = s3_mixins.CfnStorageLensPropsMixin.AccountLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), bucket_level=s3_mixins.CfnStorageLensPropsMixin.BucketLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), prefix_level=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelProperty( storage_metrics=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty( is_enabled=False, selection_criteria=s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 ) ) ) ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), storage_lens_group_level=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupLevelProperty( storage_lens_group_selection_criteria=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupSelectionCriteriaProperty( exclude=["exclude"], include=["include"] ) ) )
Attributes
- activity_metrics
This property contains the details of account-level activity metrics for S3 Storage Lens.
- advanced_cost_optimization_metrics
This property contains the details of account-level advanced cost optimization metrics for S3 Storage Lens.
- advanced_data_protection_metrics
This property contains the details of account-level advanced data protection metrics for S3 Storage Lens.
- bucket_level
This property contains the details of the account-level bucket-level configurations for Amazon S3 Storage Lens.
To enable bucket-level configurations, make sure to also set the same metrics at the account level.
- detailed_status_codes_metrics
This property contains the details of account-level detailed status code metrics for S3 Storage Lens.
- storage_lens_group_level
This property determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.
ActivityMetricsProperty
- class CfnStorageLensPropsMixin.ActivityMetricsProperty(*, is_enabled=None)
Bases:
objectThis resource enables Amazon S3 Storage Lens activity metrics.
Activity metrics show details about how your storage is requested, such as requests (for example, All requests, Get requests, Put requests), bytes uploaded or downloaded, and errors.
For more information, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide . For a complete list of metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide .
- Parameters:
is_enabled (
Union[bool,IResolvable,None]) – A property that indicates whether the activity metrics is enabled.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins activity_metrics_property = s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False )
Attributes
- is_enabled
A property that indicates whether the activity metrics is enabled.
AdvancedCostOptimizationMetricsProperty
- class CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty(*, is_enabled=None)
Bases:
objectThis resource enables Amazon S3 Storage Lens advanced cost optimization metrics.
Advanced cost optimization metrics provide insights that you can use to manage and optimize your storage costs, for example, lifecycle rule counts for transitions, expirations, and incomplete multipart uploads.
For more information, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide . For a complete list of metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide .
- Parameters:
is_enabled (
Union[bool,IResolvable,None]) – Indicates whether advanced cost optimization metrics are enabled.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins advanced_cost_optimization_metrics_property = s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False )
Attributes
- is_enabled
Indicates whether advanced cost optimization metrics are enabled.
AdvancedDataProtectionMetricsProperty
- class CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty(*, is_enabled=None)
Bases:
objectThis resource enables Amazon S3 Storage Lens advanced data protection metrics.
Advanced data protection metrics provide insights that you can use to perform audits and protect your data, for example replication rule counts within and across Regions.
For more information, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide . For a complete list of metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide .
- Parameters:
is_enabled (
Union[bool,IResolvable,None]) – Indicates whether advanced data protection metrics are enabled.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins advanced_data_protection_metrics_property = s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False )
Attributes
- is_enabled
Indicates whether advanced data protection metrics are enabled.
AwsOrgProperty
- class CfnStorageLensPropsMixin.AwsOrgProperty(*, arn=None)
Bases:
objectThis resource contains the details of the AWS Organization for Amazon S3 Storage Lens.
- Parameters:
arn (
Optional[str]) – This resource contains the ARN of the AWS Organization.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins aws_org_property = s3_mixins.CfnStorageLensPropsMixin.AwsOrgProperty( arn="arn" )
Attributes
- arn
This resource contains the ARN of the AWS Organization.
BucketLevelProperty
- class CfnStorageLensPropsMixin.BucketLevelProperty(*, activity_metrics=None, advanced_cost_optimization_metrics=None, advanced_data_protection_metrics=None, detailed_status_codes_metrics=None, prefix_level=None)
Bases:
objectA property for the bucket-level storage metrics for Amazon S3 Storage Lens.
- Parameters:
activity_metrics (
Union[IResolvable,ActivityMetricsProperty,Dict[str,Any],None]) – A property for bucket-level activity metrics for S3 Storage Lens.advanced_cost_optimization_metrics (
Union[IResolvable,AdvancedCostOptimizationMetricsProperty,Dict[str,Any],None]) – A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.advanced_data_protection_metrics (
Union[IResolvable,AdvancedDataProtectionMetricsProperty,Dict[str,Any],None]) – A property for bucket-level advanced data protection metrics for S3 Storage Lens.detailed_status_codes_metrics (
Union[IResolvable,DetailedStatusCodesMetricsProperty,Dict[str,Any],None]) – A property for bucket-level detailed status code metrics for S3 Storage Lens.prefix_level (
Union[IResolvable,PrefixLevelProperty,Dict[str,Any],None]) – A property for bucket-level prefix-level storage metrics for S3 Storage Lens.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins bucket_level_property = s3_mixins.CfnStorageLensPropsMixin.BucketLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), prefix_level=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelProperty( storage_metrics=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty( is_enabled=False, selection_criteria=s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 ) ) ) )
Attributes
- activity_metrics
A property for bucket-level activity metrics for S3 Storage Lens.
- advanced_cost_optimization_metrics
A property for bucket-level advanced cost optimization metrics for S3 Storage Lens.
- advanced_data_protection_metrics
A property for bucket-level advanced data protection metrics for S3 Storage Lens.
- detailed_status_codes_metrics
A property for bucket-level detailed status code metrics for S3 Storage Lens.
- prefix_level
A property for bucket-level prefix-level storage metrics for S3 Storage Lens.
BucketsAndRegionsProperty
- class CfnStorageLensPropsMixin.BucketsAndRegionsProperty(*, buckets=None, regions=None)
Bases:
objectThis resource contains the details of the buckets and Regions for the Amazon S3 Storage Lens configuration.
- Parameters:
buckets (
Optional[Sequence[str]]) – This property contains the details of the buckets for the Amazon S3 Storage Lens configuration. This should be the bucket Amazon Resource Name(ARN). For valid values, see Buckets ARN format here in the Amazon S3 API Reference .regions (
Optional[Sequence[str]]) – This property contains the details of the Regions for the S3 Storage Lens configuration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins buckets_and_regions_property = s3_mixins.CfnStorageLensPropsMixin.BucketsAndRegionsProperty( buckets=["buckets"], regions=["regions"] )
Attributes
- buckets
This property contains the details of the buckets for the Amazon S3 Storage Lens configuration.
This should be the bucket Amazon Resource Name(ARN). For valid values, see Buckets ARN format here in the Amazon S3 API Reference .
- regions
This property contains the details of the Regions for the S3 Storage Lens configuration.
CloudWatchMetricsProperty
- class CfnStorageLensPropsMixin.CloudWatchMetricsProperty(*, is_enabled=None)
Bases:
objectThis resource enables the Amazon CloudWatch publishing option for Amazon S3 Storage Lens metrics.
For more information, see Monitor S3 Storage Lens metrics in CloudWatch in the Amazon S3 User Guide .
- Parameters:
is_enabled (
Union[bool,IResolvable,None]) – This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins cloud_watch_metrics_property = s3_mixins.CfnStorageLensPropsMixin.CloudWatchMetricsProperty( is_enabled=False )
Attributes
- is_enabled
This property identifies whether the CloudWatch publishing option for S3 Storage Lens is enabled.
DataExportProperty
- class CfnStorageLensPropsMixin.DataExportProperty(*, cloud_watch_metrics=None, s3_bucket_destination=None)
Bases:
objectThis resource contains the details of the Amazon S3 Storage Lens metrics export.
- Parameters:
cloud_watch_metrics (
Union[IResolvable,CloudWatchMetricsProperty,Dict[str,Any],None]) – This property enables the Amazon CloudWatch publishing option for S3 Storage Lens metrics.s3_bucket_destination (
Union[IResolvable,S3BucketDestinationProperty,Dict[str,Any],None]) – This property contains the details of the bucket where the S3 Storage Lens metrics export will be placed.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins # sses3: Any data_export_property = s3_mixins.CfnStorageLensPropsMixin.DataExportProperty( cloud_watch_metrics=s3_mixins.CfnStorageLensPropsMixin.CloudWatchMetricsProperty( is_enabled=False ), s3_bucket_destination=s3_mixins.CfnStorageLensPropsMixin.S3BucketDestinationProperty( account_id="accountId", arn="arn", encryption=s3_mixins.CfnStorageLensPropsMixin.EncryptionProperty( ssekms=s3_mixins.CfnStorageLensPropsMixin.SSEKMSProperty( key_id="keyId" ), sses3=sses3 ), format="format", output_schema_version="outputSchemaVersion", prefix="prefix" ) )
Attributes
- cloud_watch_metrics
This property enables the Amazon CloudWatch publishing option for S3 Storage Lens metrics.
- s3_bucket_destination
This property contains the details of the bucket where the S3 Storage Lens metrics export will be placed.
DetailedStatusCodesMetricsProperty
- class CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty(*, is_enabled=None)
Bases:
objectThis resource enables Amazon S3 Storage Lens detailed status code metrics.
Detailed status code metrics generate metrics for HTTP status codes, such as
200 OK,403 Forbidden,503 Service Unavailableand others.For more information, see Assessing your storage activity and usage with S3 Storage Lens in the Amazon S3 User Guide . For a complete list of metrics, see S3 Storage Lens metrics glossary in the Amazon S3 User Guide .
- Parameters:
is_enabled (
Union[bool,IResolvable,None]) – Indicates whether detailed status code metrics are enabled.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins detailed_status_codes_metrics_property = s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False )
Attributes
- is_enabled
Indicates whether detailed status code metrics are enabled.
EncryptionProperty
- class CfnStorageLensPropsMixin.EncryptionProperty(*, ssekms=None, sses3=None)
Bases:
objectThis resource contains the type of server-side encryption used to encrypt an Amazon S3 Storage Lens metrics export.
For valid values, see the StorageLensDataExportEncryption in the Amazon S3 API Reference .
- Parameters:
ssekms (
Union[IResolvable,SSEKMSProperty,Dict[str,Any],None]) – Specifies the use of AWS Key Management Service keys (SSE-KMS) to encrypt the S3 Storage Lens metrics export file.sses3 (
Any) – Specifies the use of an Amazon S3-managed key (SSE-S3) to encrypt the S3 Storage Lens metrics export file.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins # sses3: Any encryption_property = s3_mixins.CfnStorageLensPropsMixin.EncryptionProperty( ssekms=s3_mixins.CfnStorageLensPropsMixin.SSEKMSProperty( key_id="keyId" ), sses3=sses3 )
Attributes
- ssekms
Specifies the use of AWS Key Management Service keys (SSE-KMS) to encrypt the S3 Storage Lens metrics export file.
- sses3
Specifies the use of an Amazon S3-managed key (SSE-S3) to encrypt the S3 Storage Lens metrics export file.
PrefixLevelProperty
- class CfnStorageLensPropsMixin.PrefixLevelProperty(*, storage_metrics=None)
Bases:
objectThis resource contains the details of the prefix-level of the Amazon S3 Storage Lens.
- Parameters:
storage_metrics (
Union[IResolvable,PrefixLevelStorageMetricsProperty,Dict[str,Any],None]) – A property for the prefix-level storage metrics for Amazon S3 Storage Lens.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins prefix_level_property = s3_mixins.CfnStorageLensPropsMixin.PrefixLevelProperty( storage_metrics=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty( is_enabled=False, selection_criteria=s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 ) ) )
Attributes
- storage_metrics
A property for the prefix-level storage metrics for Amazon S3 Storage Lens.
PrefixLevelStorageMetricsProperty
- class CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty(*, is_enabled=None, selection_criteria=None)
Bases:
objectThis resource contains the details of the prefix-level storage metrics for Amazon S3 Storage Lens.
- Parameters:
is_enabled (
Union[bool,IResolvable,None]) – This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.selection_criteria (
Union[IResolvable,SelectionCriteriaProperty,Dict[str,Any],None]) – This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins prefix_level_storage_metrics_property = s3_mixins.CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty( is_enabled=False, selection_criteria=s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 ) )
Attributes
- is_enabled
This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.
- selection_criteria
This property identifies whether the details of the prefix-level storage metrics for S3 Storage Lens are enabled.
S3BucketDestinationProperty
- class CfnStorageLensPropsMixin.S3BucketDestinationProperty(*, account_id=None, arn=None, encryption=None, format=None, output_schema_version=None, prefix=None)
Bases:
objectThis resource contains the details of the bucket where the Amazon S3 Storage Lens metrics export will be placed.
- Parameters:
account_id (
Optional[str]) – This property contains the details of the AWS account ID of the S3 Storage Lens export bucket destination.arn (
Optional[str]) – This property contains the details of the ARN of the bucket destination of the S3 Storage Lens export.encryption (
Union[IResolvable,EncryptionProperty,Dict[str,Any],None]) – This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.format (
Optional[str]) – This property contains the details of the format of the S3 Storage Lens export bucket destination.output_schema_version (
Optional[str]) – This property contains the details of the output schema version of the S3 Storage Lens export bucket destination.prefix (
Optional[str]) – This property contains the details of the prefix of the bucket destination of the S3 Storage Lens export .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins # sses3: Any s3_bucket_destination_property = s3_mixins.CfnStorageLensPropsMixin.S3BucketDestinationProperty( account_id="accountId", arn="arn", encryption=s3_mixins.CfnStorageLensPropsMixin.EncryptionProperty( ssekms=s3_mixins.CfnStorageLensPropsMixin.SSEKMSProperty( key_id="keyId" ), sses3=sses3 ), format="format", output_schema_version="outputSchemaVersion", prefix="prefix" )
Attributes
- account_id
This property contains the details of the AWS account ID of the S3 Storage Lens export bucket destination.
- arn
This property contains the details of the ARN of the bucket destination of the S3 Storage Lens export.
- encryption
This property contains the details of the encryption of the bucket destination of the Amazon S3 Storage Lens metrics export.
- format
This property contains the details of the format of the S3 Storage Lens export bucket destination.
- output_schema_version
This property contains the details of the output schema version of the S3 Storage Lens export bucket destination.
- prefix
This property contains the details of the prefix of the bucket destination of the S3 Storage Lens export .
SSEKMSProperty
- class CfnStorageLensPropsMixin.SSEKMSProperty(*, key_id=None)
Bases:
objectSpecifies the use of server-side encryption using an AWS Key Management Service key (SSE-KMS) to encrypt the delivered S3 Storage Lens metrics export file.
- Parameters:
key_id (
Optional[str]) – Specifies the Amazon Resource Name (ARN) of the customer managed AWS key to use for encrypting the S3 Storage Lens metrics export file. Amazon S3 only supports symmetric encryption keys. For more information, see Special-purpose keys in the AWS Key Management Service Developer Guide .- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins s_sEKMSProperty = s3_mixins.CfnStorageLensPropsMixin.SSEKMSProperty( key_id="keyId" )
Attributes
- key_id
Specifies the Amazon Resource Name (ARN) of the customer managed AWS key to use for encrypting the S3 Storage Lens metrics export file.
Amazon S3 only supports symmetric encryption keys. For more information, see Special-purpose keys in the AWS Key Management Service Developer Guide .
SelectionCriteriaProperty
- class CfnStorageLensPropsMixin.SelectionCriteriaProperty(*, delimiter=None, max_depth=None, min_storage_bytes_percentage=None)
Bases:
objectThis resource contains the details of the Amazon S3 Storage Lens selection criteria.
- Parameters:
delimiter (
Optional[str]) – This property contains the details of the S3 Storage Lens delimiter being used.max_depth (
Union[int,float,None]) – This property contains the details of the max depth that S3 Storage Lens will collect metrics up to.min_storage_bytes_percentage (
Union[int,float,None]) – This property contains the details of the minimum storage bytes percentage threshold that S3 Storage Lens will collect metrics up to.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins selection_criteria_property = s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 )
Attributes
- delimiter
This property contains the details of the S3 Storage Lens delimiter being used.
- max_depth
This property contains the details of the max depth that S3 Storage Lens will collect metrics up to.
- min_storage_bytes_percentage
This property contains the details of the minimum storage bytes percentage threshold that S3 Storage Lens will collect metrics up to.
StorageLensConfigurationProperty
- class CfnStorageLensPropsMixin.StorageLensConfigurationProperty(*, account_level=None, aws_org=None, data_export=None, exclude=None, id=None, include=None, is_enabled=None, storage_lens_arn=None)
Bases:
objectThis is the property of the Amazon S3 Storage Lens configuration.
- Parameters:
account_level (
Union[IResolvable,AccountLevelProperty,Dict[str,Any],None]) – This property contains the details of the account-level metrics for Amazon S3 Storage Lens configuration.aws_org (
Union[IResolvable,AwsOrgProperty,Dict[str,Any],None]) – This property contains the details of the AWS Organization for the S3 Storage Lens configuration.data_export (
Union[IResolvable,DataExportProperty,Dict[str,Any],None]) – This property contains the details of this S3 Storage Lens configuration’s metrics export.exclude (
Union[IResolvable,BucketsAndRegionsProperty,Dict[str,Any],None]) – This property contains the details of the bucket and or Regions excluded for Amazon S3 Storage Lens configuration.id (
Optional[str]) – This property contains the details of the ID of the S3 Storage Lens configuration.include (
Union[IResolvable,BucketsAndRegionsProperty,Dict[str,Any],None]) – This property contains the details of the bucket and or Regions included for Amazon S3 Storage Lens configuration.is_enabled (
Union[bool,IResolvable,None]) – This property contains the details of whether the Amazon S3 Storage Lens configuration is enabled.storage_lens_arn (
Optional[str]) – This property contains the details of the ARN of the S3 Storage Lens configuration. This property is read-only.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins # sses3: Any storage_lens_configuration_property = s3_mixins.CfnStorageLensPropsMixin.StorageLensConfigurationProperty( account_level=s3_mixins.CfnStorageLensPropsMixin.AccountLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), bucket_level=s3_mixins.CfnStorageLensPropsMixin.BucketLevelProperty( activity_metrics=s3_mixins.CfnStorageLensPropsMixin.ActivityMetricsProperty( is_enabled=False ), advanced_cost_optimization_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedCostOptimizationMetricsProperty( is_enabled=False ), advanced_data_protection_metrics=s3_mixins.CfnStorageLensPropsMixin.AdvancedDataProtectionMetricsProperty( is_enabled=False ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), prefix_level=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelProperty( storage_metrics=s3_mixins.CfnStorageLensPropsMixin.PrefixLevelStorageMetricsProperty( is_enabled=False, selection_criteria=s3_mixins.CfnStorageLensPropsMixin.SelectionCriteriaProperty( delimiter="delimiter", max_depth=123, min_storage_bytes_percentage=123 ) ) ) ), detailed_status_codes_metrics=s3_mixins.CfnStorageLensPropsMixin.DetailedStatusCodesMetricsProperty( is_enabled=False ), storage_lens_group_level=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupLevelProperty( storage_lens_group_selection_criteria=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupSelectionCriteriaProperty( exclude=["exclude"], include=["include"] ) ) ), aws_org=s3_mixins.CfnStorageLensPropsMixin.AwsOrgProperty( arn="arn" ), data_export=s3_mixins.CfnStorageLensPropsMixin.DataExportProperty( cloud_watch_metrics=s3_mixins.CfnStorageLensPropsMixin.CloudWatchMetricsProperty( is_enabled=False ), s3_bucket_destination=s3_mixins.CfnStorageLensPropsMixin.S3BucketDestinationProperty( account_id="accountId", arn="arn", encryption=s3_mixins.CfnStorageLensPropsMixin.EncryptionProperty( ssekms=s3_mixins.CfnStorageLensPropsMixin.SSEKMSProperty( key_id="keyId" ), sses3=sses3 ), format="format", output_schema_version="outputSchemaVersion", prefix="prefix" ) ), exclude=s3_mixins.CfnStorageLensPropsMixin.BucketsAndRegionsProperty( buckets=["buckets"], regions=["regions"] ), id="id", include=s3_mixins.CfnStorageLensPropsMixin.BucketsAndRegionsProperty( buckets=["buckets"], regions=["regions"] ), is_enabled=False, storage_lens_arn="storageLensArn" )
Attributes
- account_level
This property contains the details of the account-level metrics for Amazon S3 Storage Lens configuration.
- aws_org
This property contains the details of the AWS Organization for the S3 Storage Lens configuration.
- data_export
This property contains the details of this S3 Storage Lens configuration’s metrics export.
- exclude
This property contains the details of the bucket and or Regions excluded for Amazon S3 Storage Lens configuration.
- id
This property contains the details of the ID of the S3 Storage Lens configuration.
- include
This property contains the details of the bucket and or Regions included for Amazon S3 Storage Lens configuration.
- is_enabled
This property contains the details of whether the Amazon S3 Storage Lens configuration is enabled.
- storage_lens_arn
This property contains the details of the ARN of the S3 Storage Lens configuration.
This property is read-only.
StorageLensGroupLevelProperty
- class CfnStorageLensPropsMixin.StorageLensGroupLevelProperty(*, storage_lens_group_selection_criteria=None)
Bases:
objectThis resource determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.
- Parameters:
storage_lens_group_selection_criteria (
Union[IResolvable,StorageLensGroupSelectionCriteriaProperty,Dict[str,Any],None]) – This property indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation. If this value is left null, then all Storage Lens groups are selected.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins storage_lens_group_level_property = s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupLevelProperty( storage_lens_group_selection_criteria=s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupSelectionCriteriaProperty( exclude=["exclude"], include=["include"] ) )
Attributes
- storage_lens_group_selection_criteria
This property indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation.
If this value is left null, then all Storage Lens groups are selected.
StorageLensGroupSelectionCriteriaProperty
- class CfnStorageLensPropsMixin.StorageLensGroupSelectionCriteriaProperty(*, exclude=None, include=None)
Bases:
objectThis resource indicates which Storage Lens group ARNs to include or exclude in the Storage Lens group aggregation.
You can only attach Storage Lens groups to your dashboard if they’re included in your Storage Lens group aggregation. If this value is left null, then all Storage Lens groups are selected.
- Parameters:
exclude (
Optional[Sequence[str]]) – This property indicates which Storage Lens group ARNs to exclude from the Storage Lens group aggregation.include (
Optional[Sequence[str]]) – This property indicates which Storage Lens group ARNs to include in the Storage Lens group aggregation.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_s3 import mixins as s3_mixins storage_lens_group_selection_criteria_property = s3_mixins.CfnStorageLensPropsMixin.StorageLensGroupSelectionCriteriaProperty( exclude=["exclude"], include=["include"] )
Attributes
- exclude
This property indicates which Storage Lens group ARNs to exclude from the Storage Lens group aggregation.
- include
This property indicates which Storage Lens group ARNs to include in the Storage Lens group aggregation.