-
Notifications
You must be signed in to change notification settings - Fork 10
/
object.go
50 lines (42 loc) · 988 Bytes
/
object.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
40
41
42
43
44
45
46
47
48
49
50
package main
import (
"github.com/hashicorp/terraform/helper/schema"
)
func resourceS3Object() *schema.Resource {
return &schema.Resource{
Create: resourceS3ObjectCreate,
Read: resourceS3ObjectRead,
Update: resourceS3ObjectUpdate,
Delete: resourceS3ObjectDelete,
Schema: map[string]*schema.Schema{
"bucket": {
Type: schema.TypeString,
Required: true,
},
"name": {
Type: schema.TypeString,
Required: true,
},
"content": {
Type: schema.TypeString,
Required: true,
},
"content_type": {
Type: schema.TypeString,
Required: true,
},
},
}
}
func resourceS3ObjectCreate(d *schema.ResourceData, meta interface{}) error {
return nil
}
func resourceS3ObjectRead(d *schema.ResourceData, meta interface{}) error {
return nil
}
func resourceS3ObjectUpdate(d *schema.ResourceData, meta interface{}) error {
return nil
}
func resourceS3ObjectDelete(d *schema.ResourceData, meta interface{}) error {
return nil
}