File tree Expand file tree Collapse file tree 4 files changed +40
-29
lines changed Expand file tree Collapse file tree 4 files changed +40
-29
lines changed Original file line number Diff line number Diff line change @@ -77,34 +77,40 @@ func ResourceBucket() *schema.Resource {
7777 Computed : true ,
7878 },
7979 "cors_rule" : {
80- Type : schema .TypeList ,
81- Optional : true ,
82- Computed : true ,
80+ Type : schema .TypeList ,
81+ Description : "List of CORS rules" ,
82+ Optional : true ,
83+ Computed : true ,
8384 Elem : & schema.Resource {
8485 Schema : map [string ]* schema.Schema {
8586 "allowed_headers" : {
86- Type : schema .TypeList ,
87- Optional : true ,
88- Elem : & schema.Schema {Type : schema .TypeString },
87+ Type : schema .TypeList ,
88+ Description : "Allowed headers in the CORS rule" ,
89+ Optional : true ,
90+ Elem : & schema.Schema {Type : schema .TypeString },
8991 },
9092 "allowed_methods" : {
91- Type : schema .TypeList ,
92- Required : true ,
93- Elem : & schema.Schema {Type : schema .TypeString },
93+ Type : schema .TypeList ,
94+ Description : "Allowed HTTP methods allowed in the CORS rule" ,
95+ Required : true ,
96+ Elem : & schema.Schema {Type : schema .TypeString },
9497 },
9598 "allowed_origins" : {
96- Type : schema .TypeList ,
97- Required : true ,
98- Elem : & schema.Schema {Type : schema .TypeString },
99+ Type : schema .TypeList ,
100+ Description : "Allowed origins allowed in the CORS rule" ,
101+ Required : true ,
102+ Elem : & schema.Schema {Type : schema .TypeString },
99103 },
100104 "expose_headers" : {
101- Type : schema .TypeList ,
102- Optional : true ,
103- Elem : & schema.Schema {Type : schema .TypeString },
105+ Type : schema .TypeList ,
106+ Description : "Exposed headers in the CORS rule" ,
107+ Optional : true ,
108+ Elem : & schema.Schema {Type : schema .TypeString },
104109 },
105110 "max_age_seconds" : {
106- Type : schema .TypeInt ,
107- Optional : true ,
111+ Type : schema .TypeInt ,
112+ Description : "Max age of the CORS rule" ,
113+ Optional : true ,
108114 },
109115 },
110116 },
Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ func ResourceBucketACL() *schema.Resource {
4949 Elem : & schema.Resource {
5050 Schema : map [string ]* schema.Schema {
5151 "grant" : {
52- Type : schema .TypeSet ,
53- Optional : true ,
52+ Type : schema .TypeSet ,
53+ Description : "Grant" ,
54+ Optional : true ,
5455 Elem : & schema.Resource {
5556 Schema : map [string ]* schema.Schema {
5657 "grantee" : {
@@ -61,8 +62,9 @@ func ResourceBucketACL() *schema.Resource {
6162 Elem : & schema.Resource {
6263 Schema : map [string ]* schema.Schema {
6364 "display_name" : {
64- Type : schema .TypeString ,
65- Computed : true ,
65+ Type : schema .TypeString ,
66+ Description : "Display name of the grantee to grant access to." ,
67+ Computed : true ,
6668 },
6769 "uri" : {
6870 Type : schema .TypeString ,
Original file line number Diff line number Diff line change @@ -44,10 +44,11 @@ func ResourceLockConfiguration() *schema.Resource {
4444 Elem : & schema.Resource {
4545 Schema : map [string ]* schema.Schema {
4646 "default_retention" : {
47- Type : schema .TypeList ,
48- Required : true ,
49- MinItems : 1 ,
50- MaxItems : 1 ,
47+ Type : schema .TypeList ,
48+ Description : "Default retention." ,
49+ Required : true ,
50+ MinItems : 1 ,
51+ MaxItems : 1 ,
5152 Elem : & schema.Resource {
5253 Schema : map [string ]* schema.Schema {
5354 "mode" : {
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ func ResourceBucketWebsiteConfiguration() *schema.Resource {
4444 Elem : & schema.Resource {
4545 Schema : map [string ]* schema.Schema {
4646 "suffix" : {
47- Type : schema .TypeString ,
48- Required : true ,
47+ Type : schema .TypeString ,
48+ Description : "Suffix that will be added to the index." ,
49+ Required : true ,
4950 },
5051 },
5152 },
@@ -58,8 +59,9 @@ func ResourceBucketWebsiteConfiguration() *schema.Resource {
5859 Elem : & schema.Resource {
5960 Schema : map [string ]* schema.Schema {
6061 "key" : {
61- Type : schema .TypeString ,
62- Required : true ,
62+ Type : schema .TypeString ,
63+ Description : "Key for the object to use as an error document." ,
64+ Required : true ,
6365 },
6466 },
6567 },
You can’t perform that action at this time.
0 commit comments