-
Notifications
You must be signed in to change notification settings - Fork 137
/
resource_fastly_service_compute.go
53 lines (49 loc) · 1.94 KB
/
resource_fastly_service_compute.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
package fastly
import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
var computeAttributes = ServiceMetadata{
ServiceTypeCompute,
}
// Ordering is important - stored is processing order
// Some objects may need to be updated first, as they can be referenced by other
// configuration objects (Backends, Request Headers, etc).
var computeService = &BaseServiceDefinition{
Type: computeAttributes.serviceType,
Attributes: []ServiceAttributeDefinition{
NewServiceDomain(computeAttributes),
NewServiceHealthCheck(computeAttributes),
NewServiceBackend(computeAttributes),
NewServiceS3Logging(computeAttributes),
NewServicePaperTrail(computeAttributes),
NewServiceSumologic(computeAttributes),
NewServiceGCSLogging(computeAttributes),
NewServiceBigQueryLogging(computeAttributes),
NewServiceSyslog(computeAttributes),
NewServiceLogentries(computeAttributes),
NewServiceSplunk(computeAttributes),
NewServiceBlobStorageLogging(computeAttributes),
NewServiceHTTPSLogging(computeAttributes),
NewServiceLoggingElasticSearch(computeAttributes),
NewServiceLoggingFTP(computeAttributes),
NewServiceLoggingSFTP(computeAttributes),
NewServiceLoggingDatadog(computeAttributes),
NewServiceLoggingLoggly(computeAttributes),
NewServiceLoggingGooglePubSub(computeAttributes),
NewServiceLoggingScalyr(computeAttributes),
NewServiceLoggingNewRelic(computeAttributes),
NewServiceLoggingKafka(computeAttributes),
NewServiceLoggingHeroku(computeAttributes),
NewServiceLoggingHoneycomb(computeAttributes),
NewServiceLoggingLogshuttle(computeAttributes),
NewServiceLoggingOpenstack(computeAttributes),
NewServiceLoggingDigitalOcean(computeAttributes),
NewServiceLoggingCloudfiles(computeAttributes),
NewServiceLoggingKinesis(computeAttributes),
NewServiceDictionary(computeAttributes),
NewServicePackage(computeAttributes),
},
}
func resourceServiceComputeV1() *schema.Resource {
return resourceService(computeService)
}