Skip to content
v2.278.0

AccountLevelProperty Struct ​

This resource contains the details of the account-level metrics for Amazon S3 Storage Lens.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const accountLevelProperty: s3.CfnStorageLens.AccountLevelProperty = {
  bucketLevel: {
    activityMetrics: {
      isEnabled: false,
    },
    advancedCostOptimizationMetrics: {
      isEnabled: false,
    },
    advancedDataProtectionMetrics: {
      isEnabled: false,
    },
    advancedPerformanceMetrics: {
      isEnabled: false,
    },
    detailedStatusCodesMetrics: {
      isEnabled: false,
    },
    prefixLevel: {
      storageMetrics: {
        isEnabled: false,
        selectionCriteria: {
          delimiter: 'delimiter',
          maxDepth: 123,
          minStorageBytesPercentage: 123,
        },
      },
    },
  },

  // the properties below are optional
  activityMetrics: {
    isEnabled: false,
  },
  advancedCostOptimizationMetrics: {
    isEnabled: false,
  },
  advancedDataProtectionMetrics: {
    isEnabled: false,
  },
  advancedPerformanceMetrics: {
    isEnabled: false,
  },
  detailedStatusCodesMetrics: {
    isEnabled: false,
  },
  storageLensGroupLevel: {
    storageLensGroupSelectionCriteria: {
      exclude: ['exclude'],
      include: ['include'],
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

account_level_property = s3.CfnStorageLens.AccountLevelProperty(
    bucket_level=s3.CfnStorageLens.BucketLevelProperty(
        activity_metrics=s3.CfnStorageLens.ActivityMetricsProperty(
            is_enabled=False
        ),
        advanced_cost_optimization_metrics=s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty(
            is_enabled=False
        ),
        advanced_data_protection_metrics=s3.CfnStorageLens.AdvancedDataProtectionMetricsProperty(
            is_enabled=False
        ),
        advanced_performance_metrics=s3.CfnStorageLens.AdvancedPerformanceMetricsProperty(
            is_enabled=False
        ),
        detailed_status_codes_metrics=s3.CfnStorageLens.DetailedStatusCodesMetricsProperty(
            is_enabled=False
        ),
        prefix_level=s3.CfnStorageLens.PrefixLevelProperty(
            storage_metrics=s3.CfnStorageLens.PrefixLevelStorageMetricsProperty(
                is_enabled=False,
                selection_criteria=s3.CfnStorageLens.SelectionCriteriaProperty(
                    delimiter="delimiter",
                    max_depth=123,
                    min_storage_bytes_percentage=123
                )
            )
        )
    ),

    # the properties below are optional
    activity_metrics=s3.CfnStorageLens.ActivityMetricsProperty(
        is_enabled=False
    ),
    advanced_cost_optimization_metrics=s3.CfnStorageLens.AdvancedCostOptimizationMetricsProperty(
        is_enabled=False
    ),
    advanced_data_protection_metrics=s3.CfnStorageLens.AdvancedDataProtectionMetricsProperty(
        is_enabled=False
    ),
    advanced_performance_metrics=s3.CfnStorageLens.AdvancedPerformanceMetricsProperty(
        is_enabled=False
    ),
    detailed_status_codes_metrics=s3.CfnStorageLens.DetailedStatusCodesMetricsProperty(
        is_enabled=False
    ),
    storage_lens_group_level=s3.CfnStorageLens.StorageLensGroupLevelProperty(
        storage_lens_group_selection_criteria=s3.CfnStorageLens.StorageLensGroupSelectionCriteriaProperty(
            exclude=["exclude"],
            include=["include"]
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;

AccountLevelProperty accountLevelProperty = AccountLevelProperty.builder()
        .bucketLevel(BucketLevelProperty.builder()
                .activityMetrics(ActivityMetricsProperty.builder()
                        .isEnabled(false)
                        .build())
                .advancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsProperty.builder()
                        .isEnabled(false)
                        .build())
                .advancedDataProtectionMetrics(AdvancedDataProtectionMetricsProperty.builder()
                        .isEnabled(false)
                        .build())
                .advancedPerformanceMetrics(AdvancedPerformanceMetricsProperty.builder()
                        .isEnabled(false)
                        .build())
                .detailedStatusCodesMetrics(DetailedStatusCodesMetricsProperty.builder()
                        .isEnabled(false)
                        .build())
                .prefixLevel(PrefixLevelProperty.builder()
                        .storageMetrics(PrefixLevelStorageMetricsProperty.builder()
                                .isEnabled(false)
                                .selectionCriteria(SelectionCriteriaProperty.builder()
                                        .delimiter("delimiter")
                                        .maxDepth(123)
                                        .minStorageBytesPercentage(123)
                                        .build())
                                .build())
                        .build())
                .build())

        // the properties below are optional
        .activityMetrics(ActivityMetricsProperty.builder()
                .isEnabled(false)
                .build())
        .advancedCostOptimizationMetrics(AdvancedCostOptimizationMetricsProperty.builder()
                .isEnabled(false)
                .build())
        .advancedDataProtectionMetrics(AdvancedDataProtectionMetricsProperty.builder()
                .isEnabled(false)
                .build())
        .advancedPerformanceMetrics(AdvancedPerformanceMetricsProperty.builder()
                .isEnabled(false)
                .build())
        .detailedStatusCodesMetrics(DetailedStatusCodesMetricsProperty.builder()
                .isEnabled(false)
                .build())
        .storageLensGroupLevel(StorageLensGroupLevelProperty.builder()
                .storageLensGroupSelectionCriteria(StorageLensGroupSelectionCriteriaProperty.builder()
                        .exclude(List.of("exclude"))
                        .include(List.of("include"))
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

var accountLevelProperty = new AccountLevelProperty {
    BucketLevel = new BucketLevelProperty {
        ActivityMetrics = new ActivityMetricsProperty {
            IsEnabled = false
        },
        AdvancedCostOptimizationMetrics = new AdvancedCostOptimizationMetricsProperty {
            IsEnabled = false
        },
        AdvancedDataProtectionMetrics = new AdvancedDataProtectionMetricsProperty {
            IsEnabled = false
        },
        AdvancedPerformanceMetrics = new AdvancedPerformanceMetricsProperty {
            IsEnabled = false
        },
        DetailedStatusCodesMetrics = new DetailedStatusCodesMetricsProperty {
            IsEnabled = false
        },
        PrefixLevel = new PrefixLevelProperty {
            StorageMetrics = new PrefixLevelStorageMetricsProperty {
                IsEnabled = false,
                SelectionCriteria = new SelectionCriteriaProperty {
                    Delimiter = "delimiter",
                    MaxDepth = 123,
                    MinStorageBytesPercentage = 123
                }
            }
        }
    },

    // the properties below are optional
    ActivityMetrics = new ActivityMetricsProperty {
        IsEnabled = false
    },
    AdvancedCostOptimizationMetrics = new AdvancedCostOptimizationMetricsProperty {
        IsEnabled = false
    },
    AdvancedDataProtectionMetrics = new AdvancedDataProtectionMetricsProperty {
        IsEnabled = false
    },
    AdvancedPerformanceMetrics = new AdvancedPerformanceMetricsProperty {
        IsEnabled = false
    },
    DetailedStatusCodesMetrics = new DetailedStatusCodesMetricsProperty {
        IsEnabled = false
    },
    StorageLensGroupLevel = new StorageLensGroupLevelProperty {
        StorageLensGroupSelectionCriteria = new StorageLensGroupSelectionCriteriaProperty {
            Exclude = new [] { "exclude" },
            Include = new [] { "include" }
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

accountLevelProperty := &AccountLevelProperty{
	BucketLevel: &BucketLevelProperty{
		ActivityMetrics: &ActivityMetricsProperty{
			IsEnabled: jsii.Boolean(false),
		},
		AdvancedCostOptimizationMetrics: &AdvancedCostOptimizationMetricsProperty{
			IsEnabled: jsii.Boolean(false),
		},
		AdvancedDataProtectionMetrics: &AdvancedDataProtectionMetricsProperty{
			IsEnabled: jsii.Boolean(false),
		},
		AdvancedPerformanceMetrics: &AdvancedPerformanceMetricsProperty{
			IsEnabled: jsii.Boolean(false),
		},
		DetailedStatusCodesMetrics: &DetailedStatusCodesMetricsProperty{
			IsEnabled: jsii.Boolean(false),
		},
		PrefixLevel: &PrefixLevelProperty{
			StorageMetrics: &PrefixLevelStorageMetricsProperty{
				IsEnabled: jsii.Boolean(false),
				SelectionCriteria: &SelectionCriteriaProperty{
					Delimiter: jsii.String("delimiter"),
					MaxDepth: jsii.Number(123),
					MinStorageBytesPercentage: jsii.Number(123),
				},
			},
		},
	},

	// the properties below are optional
	ActivityMetrics: &ActivityMetricsProperty{
		IsEnabled: jsii.Boolean(false),
	},
	AdvancedCostOptimizationMetrics: &AdvancedCostOptimizationMetricsProperty{
		IsEnabled: jsii.Boolean(false),
	},
	AdvancedDataProtectionMetrics: &AdvancedDataProtectionMetricsProperty{
		IsEnabled: jsii.Boolean(false),
	},
	AdvancedPerformanceMetrics: &AdvancedPerformanceMetricsProperty{
		IsEnabled: jsii.Boolean(false),
	},
	DetailedStatusCodesMetrics: &DetailedStatusCodesMetricsProperty{
		IsEnabled: jsii.Boolean(false),
	},
	StorageLensGroupLevel: &StorageLensGroupLevelProperty{
		StorageLensGroupSelectionCriteria: &StorageLensGroupSelectionCriteriaProperty{
			Exclude: []*string{
				jsii.String("exclude"),
			},
			Include: []*string{
				jsii.String("include"),
			},
		},
	},
}

Properties ​

activityMetricsoptionalIResolvable | CfnStorageLens.ActivityMetricsPropertyactivity_metricsoptionaltyping.Union[IResolvable, ActivityMetricsProperty]activityMetricsoptionalIResolvableActivityMetricsoptionalIResolvableActivityMetricsoptionalinterface{} #
This property contains the details of account-level activity metrics for S3 Storage Lens.
advancedCostOptimizationMetricsoptionalIResolvable | CfnStorageLens.AdvancedCostOptimizationMetricsPropertyadvanced_cost_optimization_metricsoptionaltyping.Union[IResolvable, AdvancedCostOptimizationMetricsProperty]advancedCostOptimizationMetricsoptionalIResolvableAdvancedCostOptimizationMetricsoptionalIResolvableAdvancedCostOptimizationMetricsoptionalinterface{} #
This property contains the details of account-level advanced cost optimization metrics for S3 Storage Lens.
advancedDataProtectionMetricsoptionalIResolvable | CfnStorageLens.AdvancedDataProtectionMetricsPropertyadvanced_data_protection_metricsoptionaltyping.Union[IResolvable, AdvancedDataProtectionMetricsProperty]advancedDataProtectionMetricsoptionalIResolvableAdvancedDataProtectionMetricsoptionalIResolvableAdvancedDataProtectionMetricsoptionalinterface{} #
This property contains the details of account-level advanced data protection metrics for S3 Storage Lens.
advancedPerformanceMetricsoptionalIResolvable | CfnStorageLens.AdvancedPerformanceMetricsPropertyadvanced_performance_metricsoptionaltyping.Union[IResolvable, AdvancedPerformanceMetricsProperty]advancedPerformanceMetricsoptionalIResolvableAdvancedPerformanceMetricsoptionalIResolvableAdvancedPerformanceMetricsoptionalinterface{} #
This property contains the account-level details for S3 Storage Lens advanced performance metrics.
bucketLevelIResolvable | CfnStorageLens.BucketLevelPropertybucket_leveltyping.Union[IResolvable, BucketLevelProperty]bucketLevelIResolvableBucketLevelIResolvableBucketLevelinterface{} required #
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.

detailedStatusCodesMetricsoptionalIResolvable | CfnStorageLens.DetailedStatusCodesMetricsPropertydetailed_status_codes_metricsoptionaltyping.Union[IResolvable, DetailedStatusCodesMetricsProperty]detailedStatusCodesMetricsoptionalIResolvableDetailedStatusCodesMetricsoptionalIResolvableDetailedStatusCodesMetricsoptionalinterface{} #
This property contains the details of account-level detailed status code metrics for S3 Storage Lens.
storageLensGroupLeveloptionalIResolvable | CfnStorageLens.StorageLensGroupLevelPropertystorage_lens_group_leveloptionaltyping.Union[IResolvable, StorageLensGroupLevelProperty]storageLensGroupLeveloptionalIResolvableStorageLensGroupLeveloptionalIResolvableStorageLensGroupLeveloptionalinterface{} #
This property determines the scope of Storage Lens group data that is displayed in the Storage Lens dashboard.