# VersioningConfigurationProperty

Describes the versioning state of an Amazon S3 bucket.

For more information, see [PUT Bucket versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in the *Amazon S3 API Reference* .

Keep the following timing in mind when enabling, suspending, or transitioning between versioning states:

- *Enabling versioning* - Changes may take up to 15 minutes to propagate across all AWS regions for full consistency.
- *Suspending versioning* - Takes effect immediately with no propagation delay.
- *Transitioning between states* - Any change from Suspended to Enabled has a 15-minute delay.

- 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_s3 as s3 } from 'aws-cdk-lib';
const versioningConfigurationProperty: s3.CfnBucket.VersioningConfigurationProperty = {
  status: 'status',
};
```

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_s3 as s3

versioning_configuration_property = s3.CfnBucket.VersioningConfigurationProperty(
    status="status"
)
```

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.s3.*;

VersioningConfigurationProperty versioningConfigurationProperty = VersioningConfigurationProperty.builder()
        .status("status")
        .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.S3;

var versioningConfigurationProperty = new VersioningConfigurationProperty {
    Status = "status"
};
```

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"

versioningConfigurationProperty := &VersioningConfigurationProperty{
	Status: jsii.String("status"),
}
```

## Properties

- `status`: string (required) = "Suspended" — The versioning state of the bucket.
