You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Specifies when to transition objects of non current versions and the target storage class.",
155
+
Elem: &schema.Resource{
156
+
Schema: map[string]*schema.Schema{
157
+
"non_current_days": {
158
+
Type: schema.TypeInt,
159
+
Computed: true,
160
+
Description: "Number of days after non current object creation when the specific rule action takes effect.",
161
+
},
162
+
"storage_class": {
163
+
Type: schema.TypeString,
164
+
Computed: true,
165
+
Description: "Specifies the storage class to which you want the non current object to transition. Available values include STANDARD, STANDARD_IA and ARCHIVE.",
166
+
},
167
+
},
168
+
},
169
+
},
170
+
"non_current_expiration": {
171
+
Type: schema.TypeList,
172
+
Computed: true,
173
+
Description: "Specifies when non current object versions shall expire.",
174
+
Elem: &schema.Resource{
175
+
Schema: map[string]*schema.Schema{
176
+
"non_current_days": {
177
+
Type: schema.TypeInt,
178
+
Computed: true,
179
+
Description: "Number of days after non current object creation when the specific rule action takes effect. The maximum value is 3650.",
Description: "Specifies the storage class to which you want the non current object to transition. Available values include `STANDARD`, `STANDARD_IA` and `ARCHIVE`.",
644
+
},
645
+
},
646
+
},
647
+
},
648
+
"non_current_expiration": {
649
+
Type: schema.TypeSet,
650
+
Optional: true,
651
+
Set: nonCurrentExpirationHash,
652
+
MaxItems: 1,
653
+
Description: "Specifies when non current object versions shall expire.",
654
+
Elem: &schema.Resource{
655
+
Schema: map[string]*schema.Schema{
656
+
"non_current_days": {
657
+
Type: schema.TypeInt,
658
+
Optional: true,
659
+
ValidateFunc: validateIntegerMin(0),
660
+
Description: "Number of days after non current object creation when the specific rule action takes effect. The maximum value is 3650.",
Copy file name to clipboardExpand all lines: website/docs/d/cos_buckets.html.markdown
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,11 @@ In addition to all arguments above, the following attributes are exported:
48
48
*`date` - Specifies the date after which you want the corresponding action to take effect.
49
49
*`days` - Specifies the number of days after object creation when the specific rule action takes effect.
50
50
*`filter_prefix` - Object key prefix identifying one or more objects to which the rule applies.
51
+
*`non_current_expiration` - Specifies when non current object versions shall expire.
52
+
*`non_current_days` - Number of days after non current object creation when the specific rule action takes effect. The maximum value is 3650.
53
+
*`non_current_transition` - Specifies when to transition objects of non current versions and the target storage class.
54
+
*`non_current_days` - Number of days after non current object creation when the specific rule action takes effect.
55
+
*`storage_class` - Specifies the storage class to which you want the non current object to transition. Available values include STANDARD, STANDARD_IA and ARCHIVE.
51
56
*`transition` - Specifies a period in the object's transitions.
52
57
*`date` - Specifies the date after which you want the corresponding action to take effect.
53
58
*`days` - Specifies the number of days after object creation when the specific rule action takes effect.
Copy file name to clipboardExpand all lines: website/docs/r/cos_bucket.html.markdown
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,8 +271,20 @@ The `lifecycle_rules` object supports the following:
271
271
272
272
*`filter_prefix` - (Required) Object key prefix identifying one or more objects to which the rule applies.
273
273
*`expiration` - (Optional) Specifies a period in the object's expire (documented below).
274
+
*`id` - (Optional) A unique identifier for the rule. It can be up to 255 characters.
275
+
*`non_current_expiration` - (Optional) Specifies when non current object versions shall expire.
276
+
*`non_current_transition` - (Optional) Specifies a period in the non current object's transitions.
274
277
*`transition` - (Optional) Specifies a period in the object's transitions (documented below).
275
278
279
+
The `non_current_expiration` object supports the following:
280
+
281
+
*`non_current_days` - (Optional) Number of days after non current object creation when the specific rule action takes effect. The maximum value is 3650.
282
+
283
+
The `non_current_transition` object supports the following:
284
+
285
+
*`storage_class` - (Required) Specifies the storage class to which you want the non current object to transition. Available values include `STANDARD`, `STANDARD_IA` and `ARCHIVE`.
286
+
*`non_current_days` - (Optional) Number of days after non current object creation when the specific rule action takes effect.
287
+
276
288
The `origin_domain_rules` object supports the following:
0 commit comments