-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnBucket_ObjectLockConfigurationProperty.go
40 lines (37 loc) · 2.28 KB
/
CfnBucket_ObjectLockConfigurationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package awss3
// Places an Object Lock configuration on the specified bucket.
//
// The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see [Locking Objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html) .
//
// Example:
// // 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"
//
// objectLockConfigurationProperty := &ObjectLockConfigurationProperty{
// ObjectLockEnabled: jsii.String("objectLockEnabled"),
// Rule: &ObjectLockRuleProperty{
// DefaultRetention: &DefaultRetentionProperty{
// Days: jsii.Number(123),
// Mode: jsii.String("mode"),
// Years: jsii.Number(123),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-objectlockconfiguration.html
//
type CfnBucket_ObjectLockConfigurationProperty struct {
// Indicates whether this bucket has an Object Lock configuration enabled.
//
// Enable `ObjectLockEnabled` when you apply `ObjectLockConfiguration` to a bucket.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-objectlockconfiguration.html#cfn-s3-bucket-objectlockconfiguration-objectlockenabled
//
ObjectLockEnabled *string `field:"optional" json:"objectLockEnabled" yaml:"objectLockEnabled"`
// Specifies the Object Lock rule for the specified object.
//
// Enable this rule when you apply `ObjectLockConfiguration` to a bucket. If Object Lock is turned on, bucket settings require both `Mode` and a period of either `Days` or `Years` . You cannot specify `Days` and `Years` at the same time. For more information, see [ObjectLockRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-objectlockrule.html) and [DefaultRetention](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-defaultretention.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-objectlockconfiguration.html#cfn-s3-bucket-objectlockconfiguration-rule
//
Rule interface{} `field:"optional" json:"rule" yaml:"rule"`
}