-
Notifications
You must be signed in to change notification settings - Fork 151
/
init.go
128 lines (120 loc) · 3.07 KB
/
init.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package cfg
import (
"fmt"
"github.com/blang/semver"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type module struct {
version semver.Version
}
func (m *module) Version() semver.Version {
return m.version
}
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
switch typ {
case "aws:cfg/aggregateAuthorization:AggregateAuthorization":
r = &AggregateAuthorization{}
case "aws:cfg/configurationAggregator:ConfigurationAggregator":
r = &ConfigurationAggregator{}
case "aws:cfg/conformancePack:ConformancePack":
r = &ConformancePack{}
case "aws:cfg/deliveryChannel:DeliveryChannel":
r = &DeliveryChannel{}
case "aws:cfg/organizationConformancePack:OrganizationConformancePack":
r = &OrganizationConformancePack{}
case "aws:cfg/organizationCustomPolicyRule:OrganizationCustomPolicyRule":
r = &OrganizationCustomPolicyRule{}
case "aws:cfg/organizationCustomRule:OrganizationCustomRule":
r = &OrganizationCustomRule{}
case "aws:cfg/organizationManagedRule:OrganizationManagedRule":
r = &OrganizationManagedRule{}
case "aws:cfg/recorder:Recorder":
r = &Recorder{}
case "aws:cfg/recorderStatus:RecorderStatus":
r = &RecorderStatus{}
case "aws:cfg/remediationConfiguration:RemediationConfiguration":
r = &RemediationConfiguration{}
case "aws:cfg/retentionConfiguration:RetentionConfiguration":
r = &RetentionConfiguration{}
case "aws:cfg/rule:Rule":
r = &Rule{}
default:
return nil, fmt.Errorf("unknown resource type: %s", typ)
}
err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
return
}
func init() {
version, err := internal.PkgVersion()
if err != nil {
version = semver.Version{Major: 1}
}
pulumi.RegisterResourceModule(
"aws",
"cfg/aggregateAuthorization",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/configurationAggregator",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/conformancePack",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/deliveryChannel",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/organizationConformancePack",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/organizationCustomPolicyRule",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/organizationCustomRule",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/organizationManagedRule",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/recorder",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/recorderStatus",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/remediationConfiguration",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/retentionConfiguration",
&module{version},
)
pulumi.RegisterResourceModule(
"aws",
"cfg/rule",
&module{version},
)
}