CfnStorageLensGroupProps Struct
Properties for defining a CfnStorageLensGroup.
| Source | |
|---|---|
| Type last changed |
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 cfnStorageLensGroupProps: s3.CfnStorageLensGroupProps = {
filter: {
and: {
matchAnyPrefix: ['matchAnyPrefix'],
matchAnySuffix: ['matchAnySuffix'],
matchAnyTag: [{
key: 'key',
value: 'value',
}],
matchObjectAge: {
daysGreaterThan: 123,
daysLessThan: 123,
},
matchObjectSize: {
bytesGreaterThan: 123,
bytesLessThan: 123,
},
},
matchAnyPrefix: ['matchAnyPrefix'],
matchAnySuffix: ['matchAnySuffix'],
matchAnyTag: [{
key: 'key',
value: 'value',
}],
matchObjectAge: {
daysGreaterThan: 123,
daysLessThan: 123,
},
matchObjectSize: {
bytesGreaterThan: 123,
bytesLessThan: 123,
},
or: {
matchAnyPrefix: ['matchAnyPrefix'],
matchAnySuffix: ['matchAnySuffix'],
matchAnyTag: [{
key: 'key',
value: 'value',
}],
matchObjectAge: {
daysGreaterThan: 123,
daysLessThan: 123,
},
matchObjectSize: {
bytesGreaterThan: 123,
bytesLessThan: 123,
},
},
},
name: 'name',
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag, CfnTag, CfnTag, CfnTag
# 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
cfn_storage_lens_group_props = s3.CfnStorageLensGroupProps(
filter=s3.CfnStorageLensGroup.FilterProperty(
and=s3.CfnStorageLensGroup.AndProperty(
match_any_prefix=["matchAnyPrefix"],
match_any_suffix=["matchAnySuffix"],
match_any_tag=[CfnTag(
key="key",
value="value"
)],
match_object_age=s3.CfnStorageLensGroup.MatchObjectAgeProperty(
days_greater_than=123,
days_less_than=123
),
match_object_size=s3.CfnStorageLensGroup.MatchObjectSizeProperty(
bytes_greater_than=123,
bytes_less_than=123
)
),
match_any_prefix=["matchAnyPrefix"],
match_any_suffix=["matchAnySuffix"],
match_any_tag=[CfnTag(
key="key",
value="value"
)],
match_object_age=s3.CfnStorageLensGroup.MatchObjectAgeProperty(
days_greater_than=123,
days_less_than=123
),
match_object_size=s3.CfnStorageLensGroup.MatchObjectSizeProperty(
bytes_greater_than=123,
bytes_less_than=123
),
or=s3.CfnStorageLensGroup.OrProperty(
match_any_prefix=["matchAnyPrefix"],
match_any_suffix=["matchAnySuffix"],
match_any_tag=[CfnTag(
key="key",
value="value"
)],
match_object_age=s3.CfnStorageLensGroup.MatchObjectAgeProperty(
days_greater_than=123,
days_less_than=123
),
match_object_size=s3.CfnStorageLensGroup.MatchObjectSizeProperty(
bytes_greater_than=123,
bytes_less_than=123
)
)
),
name="name",
# the properties below are optional
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnStorageLensGroupProps cfnStorageLensGroupProps = CfnStorageLensGroupProps.builder()
.filter(FilterProperty.builder()
.and(AndProperty.builder()
.matchAnyPrefix(List.of("matchAnyPrefix"))
.matchAnySuffix(List.of("matchAnySuffix"))
.matchAnyTag(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.matchObjectAge(MatchObjectAgeProperty.builder()
.daysGreaterThan(123)
.daysLessThan(123)
.build())
.matchObjectSize(MatchObjectSizeProperty.builder()
.bytesGreaterThan(123)
.bytesLessThan(123)
.build())
.build())
.matchAnyPrefix(List.of("matchAnyPrefix"))
.matchAnySuffix(List.of("matchAnySuffix"))
.matchAnyTag(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.matchObjectAge(MatchObjectAgeProperty.builder()
.daysGreaterThan(123)
.daysLessThan(123)
.build())
.matchObjectSize(MatchObjectSizeProperty.builder()
.bytesGreaterThan(123)
.bytesLessThan(123)
.build())
.or(OrProperty.builder()
.matchAnyPrefix(List.of("matchAnyPrefix"))
.matchAnySuffix(List.of("matchAnySuffix"))
.matchAnyTag(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.matchObjectAge(MatchObjectAgeProperty.builder()
.daysGreaterThan(123)
.daysLessThan(123)
.build())
.matchObjectSize(MatchObjectSizeProperty.builder()
.bytesGreaterThan(123)
.bytesLessThan(123)
.build())
.build())
.build())
.name("name")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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 cfnStorageLensGroupProps = new CfnStorageLensGroupProps {
Filter = new FilterProperty {
And = new AndProperty {
MatchAnyPrefix = new [] { "matchAnyPrefix" },
MatchAnySuffix = new [] { "matchAnySuffix" },
MatchAnyTag = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
MatchObjectAge = new MatchObjectAgeProperty {
DaysGreaterThan = 123,
DaysLessThan = 123
},
MatchObjectSize = new MatchObjectSizeProperty {
BytesGreaterThan = 123,
BytesLessThan = 123
}
},
MatchAnyPrefix = new [] { "matchAnyPrefix" },
MatchAnySuffix = new [] { "matchAnySuffix" },
MatchAnyTag = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
MatchObjectAge = new MatchObjectAgeProperty {
DaysGreaterThan = 123,
DaysLessThan = 123
},
MatchObjectSize = new MatchObjectSizeProperty {
BytesGreaterThan = 123,
BytesLessThan = 123
},
Or = new OrProperty {
MatchAnyPrefix = new [] { "matchAnyPrefix" },
MatchAnySuffix = new [] { "matchAnySuffix" },
MatchAnyTag = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
MatchObjectAge = new MatchObjectAgeProperty {
DaysGreaterThan = 123,
DaysLessThan = 123
},
MatchObjectSize = new MatchObjectSizeProperty {
BytesGreaterThan = 123,
BytesLessThan = 123
}
}
},
Name = "name",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnStorageLensGroupProps := &CfnStorageLensGroupProps{
Filter: &FilterProperty{
And: &AndProperty{
MatchAnyPrefix: []*string{
jsii.String("matchAnyPrefix"),
},
MatchAnySuffix: []*string{
jsii.String("matchAnySuffix"),
},
MatchAnyTag: []interface{}{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
MatchObjectAge: &MatchObjectAgeProperty{
DaysGreaterThan: jsii.Number(123),
DaysLessThan: jsii.Number(123),
},
MatchObjectSize: &MatchObjectSizeProperty{
BytesGreaterThan: jsii.Number(123),
BytesLessThan: jsii.Number(123),
},
},
MatchAnyPrefix: []*string{
jsii.String("matchAnyPrefix"),
},
MatchAnySuffix: []*string{
jsii.String("matchAnySuffix"),
},
MatchAnyTag: []interface{}{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
MatchObjectAge: &MatchObjectAgeProperty{
DaysGreaterThan: jsii.Number(123),
DaysLessThan: jsii.Number(123),
},
MatchObjectSize: &MatchObjectSizeProperty{
BytesGreaterThan: jsii.Number(123),
BytesLessThan: jsii.Number(123),
},
Or: &OrProperty{
MatchAnyPrefix: []*string{
jsii.String("matchAnyPrefix"),
},
MatchAnySuffix: []*string{
jsii.String("matchAnySuffix"),
},
MatchAnyTag: []interface{}{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
MatchObjectAge: &MatchObjectAgeProperty{
DaysGreaterThan: jsii.Number(123),
DaysLessThan: jsii.Number(123),
},
MatchObjectSize: &MatchObjectSizeProperty{
BytesGreaterThan: jsii.Number(123),
BytesLessThan: jsii.Number(123),
},
},
},
Name: jsii.String("name"),
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
filterIResolvable | CfnStorageLensGroup.filtertyping.Union[IResolvable, FilterProperty]filterIResolvableFilterIResolvableFilterinterface{} required #This property contains the criteria for the Storage Lens group data that is displayed.
This property contains the Storage Lens group name.