github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/codegurureviewer/init.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package codegurureviewer 5 6 import ( 7 "fmt" 8 9 "github.com/blang/semver" 10 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 11 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 12 ) 13 14 type module struct { 15 version semver.Version 16 } 17 18 func (m *module) Version() semver.Version { 19 return m.version 20 } 21 22 func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { 23 switch typ { 24 case "aws:codegurureviewer/repositoryAssociation:RepositoryAssociation": 25 r = &RepositoryAssociation{} 26 default: 27 return nil, fmt.Errorf("unknown resource type: %s", typ) 28 } 29 30 err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) 31 return 32 } 33 34 func init() { 35 version, err := internal.PkgVersion() 36 if err != nil { 37 version = semver.Version{Major: 1} 38 } 39 pulumi.RegisterResourceModule( 40 "aws", 41 "codegurureviewer/repositoryAssociation", 42 &module{version}, 43 ) 44 }