IntelligentTieringConfigurationProperty Struct
Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 bucket.
For information about the S3 Intelligent-Tiering storage class, see Storage class for automatically optimizing frequently and infrequently accessed objects .
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 intelligentTieringConfigurationProperty: s3.CfnBucket.IntelligentTieringConfigurationProperty = {
id: 'id',
status: 'status',
tierings: [{
accessTier: 'accessTier',
days: 123,
}],
// the properties below are optional
prefix: 'prefix',
tagFilters: [{
key: 'key',
value: 'value',
}],
};
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
intelligent_tiering_configuration_property = s3.CfnBucket.IntelligentTieringConfigurationProperty(
id="id",
status="status",
tierings=[s3.CfnBucket.TieringProperty(
access_tier="accessTier",
days=123
)],
# the properties below are optional
prefix="prefix",
tag_filters=[s3.CfnBucket.TagFilterProperty(
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.*;
IntelligentTieringConfigurationProperty intelligentTieringConfigurationProperty = IntelligentTieringConfigurationProperty.builder()
.id("id")
.status("status")
.tierings(List.of(TieringProperty.builder()
.accessTier("accessTier")
.days(123)
.build()))
// the properties below are optional
.prefix("prefix")
.tagFilters(List.of(TagFilterProperty.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 intelligentTieringConfigurationProperty = new IntelligentTieringConfigurationProperty {
Id = "id",
Status = "status",
Tierings = new [] { new TieringProperty {
AccessTier = "accessTier",
Days = 123
} },
// the properties below are optional
Prefix = "prefix",
TagFilters = new [] { new TagFilterProperty {
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"
intelligentTieringConfigurationProperty := &IntelligentTieringConfigurationProperty{
Id: jsii.String("id"),
Status: jsii.String("status"),
Tierings: []interface{}{
&TieringProperty{
AccessTier: jsii.String("accessTier"),
Days: jsii.Number(123),
},
},
// the properties below are optional
Prefix: jsii.String("prefix"),
TagFilters: []interface{}{
&TagFilterProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The ID used to identify the S3 Intelligent-Tiering configuration.
An object key name prefix that identifies the subset of objects to which the rule applies.
Specifies the status of the configuration.
tagFiltersoptionalIResolvable | IResolvable | CfnBucket.TagFilterProperty[]tag_filtersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TagFilterProperty]]]tagFiltersoptionalIResolvableTagFiltersoptionalIResolvableTagFiltersoptionalinterface{}#A container for a key-value pair.
tieringsIResolvable | IResolvable | CfnBucket.TieringProperty[]tieringstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TieringProperty]]]tieringsIResolvableTieringsIResolvableTieringsinterface{}required#Specifies a list of S3 Intelligent-Tiering storage class tiers in the configuration.
notes
At least one tier must be defined in the list. At most, you can specify two tiers in the list, one for each available AccessTier: ARCHIVE_ACCESS and DEEP_ARCHIVE_ACCESS .
You only need Intelligent Tiering Configuration enabled on a bucket if you want to automatically move objects stored in the Intelligent-Tiering storage class to Archive Access or Deep Archive Access tiers.