Skip to content

Commit

Permalink
feat: Password policy resource (#1702)
Browse files Browse the repository at this point in the history
* Add password policy sql builder.

* Add password policy resource.

* Fix lint.

* Add input and output types to SDK API.

* Use new API in resource.

* Refactoring / reformatting.

* Update pkg/resources/password_policy.go

Co-authored-by: Scott Winkler <scott.winkler@snowflake.com>

* Clean up

---------

Co-authored-by: Scott Winkler <scott.winkler@snowflake.com>
  • Loading branch information
sfc-gh-ngaberel and sfc-gh-swinkler authored Apr 12, 2023
1 parent f27a9e4 commit 7ee293b
Show file tree
Hide file tree
Showing 9 changed files with 1,212 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ func getResources() map[string]*schema.Resource {
"snowflake_oauth_integration": resources.OAuthIntegration(),
"snowflake_object_parameter": resources.ObjectParameter(),
"snowflake_external_oauth_integration": resources.ExternalOauthIntegration(),
"snowflake_password_policy": resources.PasswordPolicy(),
"snowflake_pipe": resources.Pipe(),
"snowflake_procedure": resources.Procedure(),
"snowflake_resource_monitor": resources.ResourceMonitor(),
Expand Down
5 changes: 5 additions & 0 deletions pkg/resources/helpers.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package resources

func isOk(_ interface{}, ok bool) bool {
return ok
}
Loading

0 comments on commit 7ee293b

Please sign in to comment.