Skip to content
v2.278.0

MatchObjectAgeProperty Struct ​

This resource contains DaysGreaterThan and DaysLessThan to define the object age range (minimum and maximum number of days).

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 matchObjectAgeProperty: s3.CfnStorageLensGroup.MatchObjectAgeProperty = {
  daysGreaterThan: 123,
  daysLessThan: 123,
};
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

match_object_age_property = s3.CfnStorageLensGroup.MatchObjectAgeProperty(
    days_greater_than=123,
    days_less_than=123
)
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.*;

MatchObjectAgeProperty matchObjectAgeProperty = MatchObjectAgeProperty.builder()
        .daysGreaterThan(123)
        .daysLessThan(123)
        .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 matchObjectAgeProperty = new MatchObjectAgeProperty {
    DaysGreaterThan = 123,
    DaysLessThan = 123
};
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"

matchObjectAgeProperty := &MatchObjectAgeProperty{
	DaysGreaterThan: jsii.Number(123),
	DaysLessThan: jsii.Number(123),
}

Properties ​

daysGreaterThanoptionalnumberdays_greater_thanoptionalint | floatdaysGreaterThanoptionalNumberDaysGreaterThanoptionaldoubleDaysGreaterThanoptional*float64 #
This property indicates the minimum object age in days.
daysLessThanoptionalnumberdays_less_thanoptionalint | floatdaysLessThanoptionalNumberDaysLessThanoptionaldoubleDaysLessThanoptional*float64 #
This property indicates the maximum object age in days.