/
init.go
60 lines (52 loc) · 1.51 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
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package iotwireless
import (
"fmt"
"github.com/blang/semver"
"github.com/pulumi/pulumi-aws-native/sdk/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-native:iotwireless:Destination":
r = &Destination{}
case "aws-native:iotwireless:DeviceProfile":
r = &DeviceProfile{}
case "aws-native:iotwireless:FuotaTask":
r = &FuotaTask{}
case "aws-native:iotwireless:MulticastGroup":
r = &MulticastGroup{}
case "aws-native:iotwireless:NetworkAnalyzerConfiguration":
r = &NetworkAnalyzerConfiguration{}
case "aws-native:iotwireless:ServiceProfile":
r = &ServiceProfile{}
case "aws-native:iotwireless:TaskDefinition":
r = &TaskDefinition{}
case "aws-native:iotwireless:WirelessDevice":
r = &WirelessDevice{}
case "aws-native:iotwireless:WirelessGateway":
r = &WirelessGateway{}
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-native",
"iotwireless",
&module{version},
)
}