-
Notifications
You must be signed in to change notification settings - Fork 134
/
resource_fastly_service_v1.go
65 lines (61 loc) · 2.21 KB
/
resource_fastly_service_v1.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package fastly
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
var vclAttributes = ServiceMetadata{
ServiceTypeVCL,
}
// Ordering is important - stored is processing order
// Conditions need to be updated first, as they can be referenced by other
// configuration objects (Backends, Request Headers, etc)
var vclService = &BaseServiceDefinition{
Type: vclAttributes.serviceType,
Attributes: []ServiceAttributeDefinition{
NewServiceSettings(),
NewServiceCondition(vclAttributes),
NewServiceDomain(vclAttributes),
NewServiceHealthCheck(vclAttributes),
NewServiceBackend(vclAttributes),
NewServiceDirector(vclAttributes),
NewServiceHeader(vclAttributes),
NewServiceGzip(vclAttributes),
NewServiceS3Logging(vclAttributes),
NewServicePaperTrail(vclAttributes),
NewServiceSumologic(vclAttributes),
NewServiceGCSLogging(vclAttributes),
NewServiceBigQueryLogging(vclAttributes),
NewServiceSyslog(vclAttributes),
NewServiceLogentries(vclAttributes),
NewServiceSplunk(vclAttributes),
NewServiceBlobStorageLogging(vclAttributes),
NewServiceHTTPSLogging(vclAttributes),
NewServiceLoggingElasticSearch(vclAttributes),
NewServiceLoggingFTP(vclAttributes),
NewServiceLoggingSFTP(vclAttributes),
NewServiceLoggingDatadog(vclAttributes),
NewServiceLoggingLoggly(vclAttributes),
NewServiceLoggingGooglePubSub(vclAttributes),
NewServiceLoggingScalyr(vclAttributes),
NewServiceLoggingNewRelic(vclAttributes),
NewServiceLoggingKafka(vclAttributes),
NewServiceLoggingHeroku(vclAttributes),
NewServiceLoggingHoneycomb(vclAttributes),
NewServiceLoggingLogshuttle(vclAttributes),
NewServiceLoggingOpenstack(vclAttributes),
NewServiceLoggingDigitalOcean(vclAttributes),
NewServiceLoggingCloudfiles(vclAttributes),
NewServiceLoggingKinesis(vclAttributes),
NewServiceResponseObject(vclAttributes),
NewServiceRequestSetting(vclAttributes),
NewServiceVCL(vclAttributes),
NewServiceSnippet(vclAttributes),
NewServiceDynamicSnippet(vclAttributes),
NewServiceCacheSetting(vclAttributes),
NewServiceACL(vclAttributes),
NewServiceDictionary(vclAttributes),
NewServiceWAF(vclAttributes),
},
}
func resourceServiceV1() *schema.Resource {
return resourceService(vclService)
}