# RuleProperty

A container for an Amazon S3 on Outposts bucket lifecycle rule.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3outposts as s3outposts } from 'aws-cdk-lib';

declare const filter: any;
const ruleProperty: s3outposts.CfnBucket.RuleProperty = {
  status: 'status',

  // the properties below are optional
  abortIncompleteMultipartUpload: {
    daysAfterInitiation: 123,
  },
  expirationDate: 'expirationDate',
  expirationInDays: 123,
  filter: filter,
  id: 'id',
};
```

Python:

```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_s3outposts as s3outposts

# filter: Any

rule_property = s3outposts.CfnBucket.RuleProperty(
    status="status",

    # the properties below are optional
    abort_incomplete_multipart_upload=s3outposts.CfnBucket.AbortIncompleteMultipartUploadProperty(
        days_after_initiation=123
    ),
    expiration_date="expirationDate",
    expiration_in_days=123,
    filter=filter,
    id="id"
)
```

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.services.s3outposts.*;

Object filter;

RuleProperty ruleProperty = RuleProperty.builder()
        .status("status")

        // the properties below are optional
        .abortIncompleteMultipartUpload(AbortIncompleteMultipartUploadProperty.builder()
                .daysAfterInitiation(123)
                .build())
        .expirationDate("expirationDate")
        .expirationInDays(123)
        .filter(filter)
        .id("id")
        .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.AWS.S3Outposts;

var filter;

var ruleProperty = new RuleProperty {
    Status = "status",

    // the properties below are optional
    AbortIncompleteMultipartUpload = new AbortIncompleteMultipartUploadProperty {
        DaysAfterInitiation = 123
    },
    ExpirationDate = "expirationDate",
    ExpirationInDays = 123,
    Filter = filter,
    Id = "id"
};
```

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"

var filter interface{}

ruleProperty := &RuleProperty{
	Status: jsii.String("status"),

	// the properties below are optional
	AbortIncompleteMultipartUpload: &AbortIncompleteMultipartUploadProperty{
		DaysAfterInitiation: jsii.Number(123),
	},
	ExpirationDate: jsii.String("expirationDate"),
	ExpirationInDays: jsii.Number(123),
	Filter: filter,
	Id: jsii.String("id"),
}
```

## Properties

- `abortIncompleteMultipartUpload`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnBucket.AbortIncompleteMultipartUploadProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3outposts.CfnBucket.AbortIncompleteMultipartUploadProperty.html) — The container for the abort incomplete multipart upload rule.

- `expirationDate`: string — Specifies the expiration for the lifecycle of the object by specifying an expiry date.

- `expirationInDays`: number — Specifies the expiration for the lifecycle of the object in the form of days that the object has been in the S3 on Outposts bucket.

- `filter`: any — The container for the filter of the lifecycle rule.

- `id`: string — Unique identifier for the lifecycle rule.

  The value can't be longer than 255 characters.

- `status`: string (required) — If `Enabled` , the rule is currently being applied.

  If `Disabled` , the rule is not currently being applied.
