# IntelligentTieringConfiguration

The intelligent tiering configuration.

- Source: [`aws-s3/lib/bucket.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-s3/lib/bucket.ts#L1518)
- Type last changed: v2.4.0 · 6 Jan 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';
const intelligentTieringConfiguration: s3.IntelligentTieringConfiguration = {
  name: 'name',

  // the properties below are optional
  archiveAccessTierTime: cdk.Duration.minutes(30),
  deepArchiveAccessTierTime: cdk.Duration.minutes(30),
  prefix: 'prefix',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_s3 as s3

intelligent_tiering_configuration = s3.IntelligentTieringConfiguration(
    name="name",

    # the properties below are optional
    archive_access_tier_time=cdk.Duration.minutes(30),
    deep_archive_access_tier_time=cdk.Duration.minutes(30),
    prefix="prefix",
    tags=[s3.Tag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.s3.*;

IntelligentTieringConfiguration intelligentTieringConfiguration = IntelligentTieringConfiguration.builder()
        .name("name")

        // the properties below are optional
        .archiveAccessTierTime(Duration.minutes(30))
        .deepArchiveAccessTierTime(Duration.minutes(30))
        .prefix("prefix")
        .tags(List.of(Tag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```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;
using Amazon.CDK.AWS.S3;

var intelligentTieringConfiguration = new IntelligentTieringConfiguration {
    Name = "name",

    // the properties below are optional
    ArchiveAccessTierTime = Duration.Minutes(30),
    DeepArchiveAccessTierTime = Duration.Minutes(30),
    Prefix = "prefix",
    Tags = new [] { new Tag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```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"
import "github.com/aws/aws-cdk-go/awscdk"

intelligentTieringConfiguration := &IntelligentTieringConfiguration{
	Name: jsii.String("name"),

	// the properties below are optional
	ArchiveAccessTierTime: cdk.Duration_Minutes(jsii.Number(30)),
	DeepArchiveAccessTierTime: cdk.Duration_*Minutes(jsii.Number(30)),
	Prefix: jsii.String("prefix"),
	Tags: []Tag{
		&Tag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `archiveAccessTierTime`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 90 days to the Archive Access tier.

  **Default:** Objects will not move to Glacier

- `deepArchiveAccessTierTime`: [Duration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — When enabled, Intelligent-Tiering will automatically move objects that haven’t been accessed for a minimum of 180 days to the Deep Archive Access tier.

  **Default:** Objects will not move to Glacier Deep Access

- `name`: string (required) — Configuration name.

- `prefix`: string — Add a filter to limit the scope of this configuration to a single prefix.

  **Default:** this configuration will apply to **all** objects in the bucket.

- `tags`: [Tag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.Tag.html)[] — You can limit the scope of this rule to the key value pairs added below.

  **Default:** No filtering will be performed on tags
