@@ -19,10 +19,12 @@ import (
19
19
"path/filepath"
20
20
21
21
"github.com/jianyuan/terraform-provider-sentry/sentry"
22
+
22
23
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
23
24
shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
24
25
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
25
26
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
27
+
26
28
"github.com/pulumiverse/pulumi-sentry/provider/pkg/version"
27
29
)
28
30
@@ -39,7 +41,7 @@ const (
39
41
// It should validate that the provider can be configured, and provide actionable errors in the case
40
42
// it cannot be. Configuration variables can be read from `vars` using the `stringValue` function -
41
43
// for example `stringValue(vars, "accessKey")`.
42
- func preConfigureCallback (vars resource.PropertyMap , c shim.ResourceConfig ) error {
44
+ func preConfigureCallback (_ resource.PropertyMap , _ shim.ResourceConfig ) error {
43
45
return nil
44
46
}
45
47
@@ -127,17 +129,23 @@ func Provider() tfbridge.ProviderInfo {
127
129
"secret" : {Secret : boolRef (true )},
128
130
},
129
131
},
130
- "sentry_organization" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganization" )},
131
- "sentry_organization_code_mapping" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganizationCodeMapping" )},
132
- "sentry_organization_member" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganizationMember" )},
133
- "sentry_organization_repository_github" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganizationRepositoryGithub" )},
134
- "sentry_project" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryProject" )},
135
- "sentry_plugin" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryPlugin" )},
136
- "sentry_rule" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryRule" )},
137
- "sentry_team" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryTeam" )},
138
- "sentry_dashboard" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryDashboard" )},
139
- "sentry_issue_alert" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryIssueAlert" )},
140
- "sentry_metric_alert" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryMetricAlert" )},
132
+ "sentry_organization" : {
133
+ Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganization" ),
134
+ },
135
+ "sentry_organization_code_mapping" : {
136
+ Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganizationCodeMapping" ),
137
+ },
138
+ "sentry_organization_member" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganizationMember" )},
139
+ "sentry_organization_repository_github" : {
140
+ Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryOrganizationRepositoryGithub" ),
141
+ },
142
+ "sentry_project" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryProject" )},
143
+ "sentry_plugin" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryPlugin" )},
144
+ "sentry_rule" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryRule" )},
145
+ "sentry_team" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryTeam" )},
146
+ "sentry_dashboard" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryDashboard" )},
147
+ "sentry_issue_alert" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryIssueAlert" )},
148
+ "sentry_metric_alert" : {Tok : tfbridge .MakeResource (mainPkg , mainMod , "SentryMetricAlert" )},
141
149
},
142
150
DataSources : map [string ]* tfbridge.DataSourceInfo {
143
151
// Map each resource in the Terraform provider to a Pulumi function. An example
@@ -150,12 +158,14 @@ func Provider() tfbridge.ProviderInfo {
150
158
"secret" : {Secret : boolRef (true )},
151
159
},
152
160
},
153
- "sentry_organization" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryOrganization" )},
154
- "sentry_organization_integration" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryOrganizationIntegration" )},
155
- "sentry_team" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryTeam" )},
156
- "sentry_dashboard" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryDashboard" )},
157
- "sentry_issue_alert" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryIssueAlert" )},
158
- "sentry_metric_alert" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryMetricAlert" )},
161
+ "sentry_organization" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryOrganization" )},
162
+ "sentry_organization_integration" : {
163
+ Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryOrganizationIntegration" ),
164
+ },
165
+ "sentry_team" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryTeam" )},
166
+ "sentry_dashboard" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryDashboard" )},
167
+ "sentry_issue_alert" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryIssueAlert" )},
168
+ "sentry_metric_alert" : {Tok : tfbridge .MakeDataSource (mainPkg , mainMod , "getSentryMetricAlert" )},
159
169
},
160
170
JavaScript : & tfbridge.JavaScriptInfo {
161
171
PackageName : "@pulumiverse/sentry" ,
0 commit comments