pulumi-snowflake 0.63.0a1734439451__py3-none-any.whl → 1.0.0a1734440141__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +82 -74
- pulumi_snowflake/_inputs.py +12705 -4876
- pulumi_snowflake/account.py +156 -163
- pulumi_snowflake/account_parameter.py +16 -16
- pulumi_snowflake/account_role.py +9 -9
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +9 -22
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +9 -22
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +9 -22
- pulumi_snowflake/authentication_policy.py +21 -21
- pulumi_snowflake/config/__init__.pyi +8 -86
- pulumi_snowflake/config/vars.py +10 -110
- pulumi_snowflake/database.py +9 -9
- pulumi_snowflake/database_role.py +14 -14
- pulumi_snowflake/{unsafe_execute.py → execute.py} +35 -25
- pulumi_snowflake/external_oauth_integration.py +27 -27
- pulumi_snowflake/external_volume.py +11 -7
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +41 -19
- pulumi_snowflake/get_alerts.py +4 -0
- pulumi_snowflake/get_connections.py +2 -40
- pulumi_snowflake/get_cortex_search_services.py +4 -0
- pulumi_snowflake/get_current_account.py +4 -0
- pulumi_snowflake/get_current_role.py +2 -2
- pulumi_snowflake/get_database.py +4 -0
- pulumi_snowflake/get_database_role.py +4 -0
- pulumi_snowflake/get_database_roles.py +2 -6
- pulumi_snowflake/get_databases.py +2 -6
- pulumi_snowflake/get_dynamic_tables.py +4 -2
- pulumi_snowflake/get_external_functions.py +4 -0
- pulumi_snowflake/get_external_tables.py +4 -0
- pulumi_snowflake/get_failover_groups.py +4 -2
- pulumi_snowflake/get_file_formats.py +4 -0
- pulumi_snowflake/get_functions.py +4 -0
- pulumi_snowflake/get_grants.py +0 -4
- pulumi_snowflake/get_masking_policies.py +2 -6
- pulumi_snowflake/get_materialized_views.py +4 -0
- pulumi_snowflake/get_network_policies.py +2 -6
- pulumi_snowflake/get_parameters.py +4 -0
- pulumi_snowflake/get_pipes.py +4 -0
- pulumi_snowflake/get_procedures.py +4 -0
- pulumi_snowflake/get_resource_monitors.py +2 -6
- pulumi_snowflake/get_row_access_policies.py +2 -6
- pulumi_snowflake/get_schemas.py +6 -4
- pulumi_snowflake/get_secrets.py +2 -6
- pulumi_snowflake/get_security_integrations.py +2 -6
- pulumi_snowflake/get_sequences.py +4 -0
- pulumi_snowflake/get_shares.py +4 -0
- pulumi_snowflake/get_stages.py +4 -0
- pulumi_snowflake/get_storage_integrations.py +4 -0
- pulumi_snowflake/get_streamlits.py +2 -6
- pulumi_snowflake/get_streams.py +2 -6
- pulumi_snowflake/get_system_generate_scim_access_token.py +4 -0
- pulumi_snowflake/get_system_get_private_link_config.py +4 -0
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +2 -2
- pulumi_snowflake/get_tables.py +4 -0
- pulumi_snowflake/get_tags.py +2 -6
- pulumi_snowflake/get_tasks.py +0 -4
- pulumi_snowflake/get_users.py +2 -6
- pulumi_snowflake/get_views.py +2 -6
- pulumi_snowflake/get_warehouses.py +2 -6
- pulumi_snowflake/grant_account_role.py +21 -21
- pulumi_snowflake/grant_application_role.py +7 -7
- pulumi_snowflake/grant_database_role.py +28 -28
- pulumi_snowflake/grant_ownership.py +14 -14
- pulumi_snowflake/grant_privileges_to_account_role.py +14 -14
- pulumi_snowflake/grant_privileges_to_database_role.py +14 -14
- pulumi_snowflake/grant_privileges_to_share.py +42 -42
- pulumi_snowflake/legacy_service_user.py +21 -21
- pulumi_snowflake/masking_policy.py +21 -21
- pulumi_snowflake/network_policy.py +23 -23
- pulumi_snowflake/oauth_integration_for_custom_clients.py +73 -46
- pulumi_snowflake/oauth_integration_for_partner_applications.py +57 -30
- pulumi_snowflake/outputs.py +10029 -4056
- pulumi_snowflake/password_policy.py +12 -2
- pulumi_snowflake/primary_connection.py +16 -16
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +40 -527
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +16 -20
- pulumi_snowflake/row_access_policy.py +21 -21
- pulumi_snowflake/saml2_integration.py +9 -9
- pulumi_snowflake/schema.py +14 -18
- pulumi_snowflake/scim_integration.py +16 -16
- pulumi_snowflake/secondary_connection.py +16 -16
- pulumi_snowflake/secondary_database.py +16 -16
- pulumi_snowflake/secret_with_authorization_code_grant.py +28 -28
- pulumi_snowflake/secret_with_basic_authentication.py +21 -21
- pulumi_snowflake/secret_with_client_credentials.py +28 -28
- pulumi_snowflake/secret_with_generic_string.py +21 -21
- pulumi_snowflake/service_user.py +21 -21
- pulumi_snowflake/shared_database.py +16 -16
- pulumi_snowflake/stream_on_directory_table.py +28 -41
- pulumi_snowflake/stream_on_external_table.py +28 -41
- pulumi_snowflake/stream_on_table.py +28 -41
- pulumi_snowflake/stream_on_view.py +28 -41
- pulumi_snowflake/streamlit.py +42 -46
- pulumi_snowflake/tag.py +28 -28
- pulumi_snowflake/tag_association.py +28 -86
- pulumi_snowflake/task.py +58 -62
- pulumi_snowflake/user.py +21 -21
- pulumi_snowflake/view.py +28 -41
- pulumi_snowflake/warehouse.py +16 -16
- {pulumi_snowflake-0.63.0a1734439451.dist-info → pulumi_snowflake-1.0.0a1734440141.dist-info}/METADATA +1 -1
- pulumi_snowflake-1.0.0a1734440141.dist-info/RECORD +148 -0
- pulumi_snowflake/database_old.py +0 -489
- pulumi_snowflake/function.py +0 -901
- pulumi_snowflake/get_role.py +0 -126
- pulumi_snowflake/get_roles.py +0 -133
- pulumi_snowflake/oauth_integration.py +0 -610
- pulumi_snowflake/procedure.py +0 -910
- pulumi_snowflake/role.py +0 -250
- pulumi_snowflake/saml_integration.py +0 -916
- pulumi_snowflake/session_parameter.py +0 -301
- pulumi_snowflake/stream.py +0 -643
- pulumi_snowflake/tag_masking_policy_association.py +0 -211
- pulumi_snowflake-0.63.0a1734439451.dist-info/RECORD +0 -148
- {pulumi_snowflake-0.63.0a1734439451.dist-info → pulumi_snowflake-1.0.0a1734440141.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-0.63.0a1734439451.dist-info → pulumi_snowflake-1.0.0a1734440141.dist-info}/top_level.txt +0 -0
pulumi_snowflake/account.py
CHANGED
|
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
16
18
|
|
|
17
19
|
__all__ = ['AccountArgs', 'Account']
|
|
18
20
|
|
|
@@ -22,45 +24,44 @@ class AccountArgs:
|
|
|
22
24
|
admin_name: pulumi.Input[str],
|
|
23
25
|
edition: pulumi.Input[str],
|
|
24
26
|
email: pulumi.Input[str],
|
|
27
|
+
grace_period_in_days: pulumi.Input[int],
|
|
25
28
|
admin_password: Optional[pulumi.Input[str]] = None,
|
|
26
29
|
admin_rsa_public_key: Optional[pulumi.Input[str]] = None,
|
|
30
|
+
admin_user_type: Optional[pulumi.Input[str]] = None,
|
|
27
31
|
comment: Optional[pulumi.Input[str]] = None,
|
|
28
32
|
first_name: Optional[pulumi.Input[str]] = None,
|
|
29
|
-
|
|
33
|
+
is_org_admin: Optional[pulumi.Input[str]] = None,
|
|
30
34
|
last_name: Optional[pulumi.Input[str]] = None,
|
|
31
|
-
must_change_password: Optional[pulumi.Input[
|
|
35
|
+
must_change_password: Optional[pulumi.Input[str]] = None,
|
|
32
36
|
name: Optional[pulumi.Input[str]] = None,
|
|
33
37
|
region: Optional[pulumi.Input[str]] = None,
|
|
34
38
|
region_group: Optional[pulumi.Input[str]] = None):
|
|
35
39
|
"""
|
|
36
40
|
The set of arguments for constructing a Account resource.
|
|
37
|
-
:param pulumi.Input[str]
|
|
38
|
-
:param pulumi.Input[
|
|
39
|
-
:param pulumi.Input[str] email: Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
40
|
-
:param pulumi.Input[str] admin_password: Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
41
|
-
:param pulumi.Input[str] admin_rsa_public_key: Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
41
|
+
:param pulumi.Input[str] edition: Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
42
|
+
:param pulumi.Input[int] grace_period_in_days: Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
42
43
|
:param pulumi.Input[str] comment: Specifies a comment for the account.
|
|
43
|
-
:param pulumi.Input[str]
|
|
44
|
-
:param pulumi.Input[
|
|
45
|
-
:param pulumi.Input[str]
|
|
46
|
-
:param pulumi.Input[
|
|
47
|
-
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
48
|
-
:param pulumi.Input[str] region: ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
49
|
-
:param pulumi.Input[str] region_group: ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
44
|
+
:param pulumi.Input[str] is_org_admin: Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
45
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
46
|
+
:param pulumi.Input[str] region: [Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
47
|
+
:param pulumi.Input[str] region_group: ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
50
48
|
"""
|
|
51
49
|
pulumi.set(__self__, "admin_name", admin_name)
|
|
52
50
|
pulumi.set(__self__, "edition", edition)
|
|
53
51
|
pulumi.set(__self__, "email", email)
|
|
52
|
+
pulumi.set(__self__, "grace_period_in_days", grace_period_in_days)
|
|
54
53
|
if admin_password is not None:
|
|
55
54
|
pulumi.set(__self__, "admin_password", admin_password)
|
|
56
55
|
if admin_rsa_public_key is not None:
|
|
57
56
|
pulumi.set(__self__, "admin_rsa_public_key", admin_rsa_public_key)
|
|
57
|
+
if admin_user_type is not None:
|
|
58
|
+
pulumi.set(__self__, "admin_user_type", admin_user_type)
|
|
58
59
|
if comment is not None:
|
|
59
60
|
pulumi.set(__self__, "comment", comment)
|
|
60
61
|
if first_name is not None:
|
|
61
62
|
pulumi.set(__self__, "first_name", first_name)
|
|
62
|
-
if
|
|
63
|
-
pulumi.set(__self__, "
|
|
63
|
+
if is_org_admin is not None:
|
|
64
|
+
pulumi.set(__self__, "is_org_admin", is_org_admin)
|
|
64
65
|
if last_name is not None:
|
|
65
66
|
pulumi.set(__self__, "last_name", last_name)
|
|
66
67
|
if must_change_password is not None:
|
|
@@ -75,9 +76,6 @@ class AccountArgs:
|
|
|
75
76
|
@property
|
|
76
77
|
@pulumi.getter(name="adminName")
|
|
77
78
|
def admin_name(self) -> pulumi.Input[str]:
|
|
78
|
-
"""
|
|
79
|
-
Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
80
|
-
"""
|
|
81
79
|
return pulumi.get(self, "admin_name")
|
|
82
80
|
|
|
83
81
|
@admin_name.setter
|
|
@@ -88,7 +86,7 @@ class AccountArgs:
|
|
|
88
86
|
@pulumi.getter
|
|
89
87
|
def edition(self) -> pulumi.Input[str]:
|
|
90
88
|
"""
|
|
91
|
-
|
|
89
|
+
Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
92
90
|
"""
|
|
93
91
|
return pulumi.get(self, "edition")
|
|
94
92
|
|
|
@@ -99,9 +97,6 @@ class AccountArgs:
|
|
|
99
97
|
@property
|
|
100
98
|
@pulumi.getter
|
|
101
99
|
def email(self) -> pulumi.Input[str]:
|
|
102
|
-
"""
|
|
103
|
-
Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
104
|
-
"""
|
|
105
100
|
return pulumi.get(self, "email")
|
|
106
101
|
|
|
107
102
|
@email.setter
|
|
@@ -109,11 +104,20 @@ class AccountArgs:
|
|
|
109
104
|
pulumi.set(self, "email", value)
|
|
110
105
|
|
|
111
106
|
@property
|
|
112
|
-
@pulumi.getter(name="
|
|
113
|
-
def
|
|
107
|
+
@pulumi.getter(name="gracePeriodInDays")
|
|
108
|
+
def grace_period_in_days(self) -> pulumi.Input[int]:
|
|
114
109
|
"""
|
|
115
|
-
|
|
110
|
+
Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
116
111
|
"""
|
|
112
|
+
return pulumi.get(self, "grace_period_in_days")
|
|
113
|
+
|
|
114
|
+
@grace_period_in_days.setter
|
|
115
|
+
def grace_period_in_days(self, value: pulumi.Input[int]):
|
|
116
|
+
pulumi.set(self, "grace_period_in_days", value)
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
@pulumi.getter(name="adminPassword")
|
|
120
|
+
def admin_password(self) -> Optional[pulumi.Input[str]]:
|
|
117
121
|
return pulumi.get(self, "admin_password")
|
|
118
122
|
|
|
119
123
|
@admin_password.setter
|
|
@@ -123,15 +127,21 @@ class AccountArgs:
|
|
|
123
127
|
@property
|
|
124
128
|
@pulumi.getter(name="adminRsaPublicKey")
|
|
125
129
|
def admin_rsa_public_key(self) -> Optional[pulumi.Input[str]]:
|
|
126
|
-
"""
|
|
127
|
-
Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
128
|
-
"""
|
|
129
130
|
return pulumi.get(self, "admin_rsa_public_key")
|
|
130
131
|
|
|
131
132
|
@admin_rsa_public_key.setter
|
|
132
133
|
def admin_rsa_public_key(self, value: Optional[pulumi.Input[str]]):
|
|
133
134
|
pulumi.set(self, "admin_rsa_public_key", value)
|
|
134
135
|
|
|
136
|
+
@property
|
|
137
|
+
@pulumi.getter(name="adminUserType")
|
|
138
|
+
def admin_user_type(self) -> Optional[pulumi.Input[str]]:
|
|
139
|
+
return pulumi.get(self, "admin_user_type")
|
|
140
|
+
|
|
141
|
+
@admin_user_type.setter
|
|
142
|
+
def admin_user_type(self, value: Optional[pulumi.Input[str]]):
|
|
143
|
+
pulumi.set(self, "admin_user_type", value)
|
|
144
|
+
|
|
135
145
|
@property
|
|
136
146
|
@pulumi.getter
|
|
137
147
|
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -147,9 +157,6 @@ class AccountArgs:
|
|
|
147
157
|
@property
|
|
148
158
|
@pulumi.getter(name="firstName")
|
|
149
159
|
def first_name(self) -> Optional[pulumi.Input[str]]:
|
|
150
|
-
"""
|
|
151
|
-
First name of the initial administrative user of the account
|
|
152
|
-
"""
|
|
153
160
|
return pulumi.get(self, "first_name")
|
|
154
161
|
|
|
155
162
|
@first_name.setter
|
|
@@ -157,23 +164,20 @@ class AccountArgs:
|
|
|
157
164
|
pulumi.set(self, "first_name", value)
|
|
158
165
|
|
|
159
166
|
@property
|
|
160
|
-
@pulumi.getter(name="
|
|
161
|
-
def
|
|
167
|
+
@pulumi.getter(name="isOrgAdmin")
|
|
168
|
+
def is_org_admin(self) -> Optional[pulumi.Input[str]]:
|
|
162
169
|
"""
|
|
163
|
-
|
|
170
|
+
Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
164
171
|
"""
|
|
165
|
-
return pulumi.get(self, "
|
|
172
|
+
return pulumi.get(self, "is_org_admin")
|
|
166
173
|
|
|
167
|
-
@
|
|
168
|
-
def
|
|
169
|
-
pulumi.set(self, "
|
|
174
|
+
@is_org_admin.setter
|
|
175
|
+
def is_org_admin(self, value: Optional[pulumi.Input[str]]):
|
|
176
|
+
pulumi.set(self, "is_org_admin", value)
|
|
170
177
|
|
|
171
178
|
@property
|
|
172
179
|
@pulumi.getter(name="lastName")
|
|
173
180
|
def last_name(self) -> Optional[pulumi.Input[str]]:
|
|
174
|
-
"""
|
|
175
|
-
Last name of the initial administrative user of the account
|
|
176
|
-
"""
|
|
177
181
|
return pulumi.get(self, "last_name")
|
|
178
182
|
|
|
179
183
|
@last_name.setter
|
|
@@ -182,21 +186,18 @@ class AccountArgs:
|
|
|
182
186
|
|
|
183
187
|
@property
|
|
184
188
|
@pulumi.getter(name="mustChangePassword")
|
|
185
|
-
def must_change_password(self) -> Optional[pulumi.Input[
|
|
186
|
-
"""
|
|
187
|
-
Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
|
|
188
|
-
"""
|
|
189
|
+
def must_change_password(self) -> Optional[pulumi.Input[str]]:
|
|
189
190
|
return pulumi.get(self, "must_change_password")
|
|
190
191
|
|
|
191
192
|
@must_change_password.setter
|
|
192
|
-
def must_change_password(self, value: Optional[pulumi.Input[
|
|
193
|
+
def must_change_password(self, value: Optional[pulumi.Input[str]]):
|
|
193
194
|
pulumi.set(self, "must_change_password", value)
|
|
194
195
|
|
|
195
196
|
@property
|
|
196
197
|
@pulumi.getter
|
|
197
198
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
198
199
|
"""
|
|
199
|
-
Specifies the identifier (i.e. name) for the account
|
|
200
|
+
Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
200
201
|
"""
|
|
201
202
|
return pulumi.get(self, "name")
|
|
202
203
|
|
|
@@ -208,7 +209,7 @@ class AccountArgs:
|
|
|
208
209
|
@pulumi.getter
|
|
209
210
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
210
211
|
"""
|
|
211
|
-
ID of the
|
|
212
|
+
[Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
212
213
|
"""
|
|
213
214
|
return pulumi.get(self, "region")
|
|
214
215
|
|
|
@@ -220,7 +221,7 @@ class AccountArgs:
|
|
|
220
221
|
@pulumi.getter(name="regionGroup")
|
|
221
222
|
def region_group(self) -> Optional[pulumi.Input[str]]:
|
|
222
223
|
"""
|
|
223
|
-
ID of the
|
|
224
|
+
ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
224
225
|
"""
|
|
225
226
|
return pulumi.get(self, "region_group")
|
|
226
227
|
|
|
@@ -235,35 +236,31 @@ class _AccountState:
|
|
|
235
236
|
admin_name: Optional[pulumi.Input[str]] = None,
|
|
236
237
|
admin_password: Optional[pulumi.Input[str]] = None,
|
|
237
238
|
admin_rsa_public_key: Optional[pulumi.Input[str]] = None,
|
|
239
|
+
admin_user_type: Optional[pulumi.Input[str]] = None,
|
|
238
240
|
comment: Optional[pulumi.Input[str]] = None,
|
|
239
241
|
edition: Optional[pulumi.Input[str]] = None,
|
|
240
242
|
email: Optional[pulumi.Input[str]] = None,
|
|
241
243
|
first_name: Optional[pulumi.Input[str]] = None,
|
|
242
244
|
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
243
245
|
grace_period_in_days: Optional[pulumi.Input[int]] = None,
|
|
244
|
-
is_org_admin: Optional[pulumi.Input[
|
|
246
|
+
is_org_admin: Optional[pulumi.Input[str]] = None,
|
|
245
247
|
last_name: Optional[pulumi.Input[str]] = None,
|
|
246
|
-
must_change_password: Optional[pulumi.Input[
|
|
248
|
+
must_change_password: Optional[pulumi.Input[str]] = None,
|
|
247
249
|
name: Optional[pulumi.Input[str]] = None,
|
|
248
250
|
region: Optional[pulumi.Input[str]] = None,
|
|
249
|
-
region_group: Optional[pulumi.Input[str]] = None
|
|
251
|
+
region_group: Optional[pulumi.Input[str]] = None,
|
|
252
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['AccountShowOutputArgs']]]] = None):
|
|
250
253
|
"""
|
|
251
254
|
Input properties used for looking up and filtering Account resources.
|
|
252
|
-
:param pulumi.Input[str] admin_name: Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
253
|
-
:param pulumi.Input[str] admin_password: Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
254
|
-
:param pulumi.Input[str] admin_rsa_public_key: Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
255
255
|
:param pulumi.Input[str] comment: Specifies a comment for the account.
|
|
256
|
-
:param pulumi.Input[str] edition:
|
|
257
|
-
:param pulumi.Input[str] email: Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
258
|
-
:param pulumi.Input[str] first_name: First name of the initial administrative user of the account
|
|
256
|
+
:param pulumi.Input[str] edition: Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
259
257
|
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
260
|
-
:param pulumi.Input[int] grace_period_in_days: Specifies the number of days
|
|
261
|
-
:param pulumi.Input[
|
|
262
|
-
:param pulumi.Input[str]
|
|
263
|
-
:param pulumi.Input[
|
|
264
|
-
:param pulumi.Input[str]
|
|
265
|
-
:param pulumi.Input[
|
|
266
|
-
:param pulumi.Input[str] region_group: ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
258
|
+
:param pulumi.Input[int] grace_period_in_days: Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
259
|
+
:param pulumi.Input[str] is_org_admin: Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
260
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
261
|
+
:param pulumi.Input[str] region: [Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
262
|
+
:param pulumi.Input[str] region_group: ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
263
|
+
:param pulumi.Input[Sequence[pulumi.Input['AccountShowOutputArgs']]] show_outputs: Outputs the result of `SHOW ACCOUNTS` for the given account.
|
|
267
264
|
"""
|
|
268
265
|
if admin_name is not None:
|
|
269
266
|
pulumi.set(__self__, "admin_name", admin_name)
|
|
@@ -271,6 +268,8 @@ class _AccountState:
|
|
|
271
268
|
pulumi.set(__self__, "admin_password", admin_password)
|
|
272
269
|
if admin_rsa_public_key is not None:
|
|
273
270
|
pulumi.set(__self__, "admin_rsa_public_key", admin_rsa_public_key)
|
|
271
|
+
if admin_user_type is not None:
|
|
272
|
+
pulumi.set(__self__, "admin_user_type", admin_user_type)
|
|
274
273
|
if comment is not None:
|
|
275
274
|
pulumi.set(__self__, "comment", comment)
|
|
276
275
|
if edition is not None:
|
|
@@ -295,13 +294,12 @@ class _AccountState:
|
|
|
295
294
|
pulumi.set(__self__, "region", region)
|
|
296
295
|
if region_group is not None:
|
|
297
296
|
pulumi.set(__self__, "region_group", region_group)
|
|
297
|
+
if show_outputs is not None:
|
|
298
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
298
299
|
|
|
299
300
|
@property
|
|
300
301
|
@pulumi.getter(name="adminName")
|
|
301
302
|
def admin_name(self) -> Optional[pulumi.Input[str]]:
|
|
302
|
-
"""
|
|
303
|
-
Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
304
|
-
"""
|
|
305
303
|
return pulumi.get(self, "admin_name")
|
|
306
304
|
|
|
307
305
|
@admin_name.setter
|
|
@@ -311,9 +309,6 @@ class _AccountState:
|
|
|
311
309
|
@property
|
|
312
310
|
@pulumi.getter(name="adminPassword")
|
|
313
311
|
def admin_password(self) -> Optional[pulumi.Input[str]]:
|
|
314
|
-
"""
|
|
315
|
-
Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
316
|
-
"""
|
|
317
312
|
return pulumi.get(self, "admin_password")
|
|
318
313
|
|
|
319
314
|
@admin_password.setter
|
|
@@ -323,15 +318,21 @@ class _AccountState:
|
|
|
323
318
|
@property
|
|
324
319
|
@pulumi.getter(name="adminRsaPublicKey")
|
|
325
320
|
def admin_rsa_public_key(self) -> Optional[pulumi.Input[str]]:
|
|
326
|
-
"""
|
|
327
|
-
Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
328
|
-
"""
|
|
329
321
|
return pulumi.get(self, "admin_rsa_public_key")
|
|
330
322
|
|
|
331
323
|
@admin_rsa_public_key.setter
|
|
332
324
|
def admin_rsa_public_key(self, value: Optional[pulumi.Input[str]]):
|
|
333
325
|
pulumi.set(self, "admin_rsa_public_key", value)
|
|
334
326
|
|
|
327
|
+
@property
|
|
328
|
+
@pulumi.getter(name="adminUserType")
|
|
329
|
+
def admin_user_type(self) -> Optional[pulumi.Input[str]]:
|
|
330
|
+
return pulumi.get(self, "admin_user_type")
|
|
331
|
+
|
|
332
|
+
@admin_user_type.setter
|
|
333
|
+
def admin_user_type(self, value: Optional[pulumi.Input[str]]):
|
|
334
|
+
pulumi.set(self, "admin_user_type", value)
|
|
335
|
+
|
|
335
336
|
@property
|
|
336
337
|
@pulumi.getter
|
|
337
338
|
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -348,7 +349,7 @@ class _AccountState:
|
|
|
348
349
|
@pulumi.getter
|
|
349
350
|
def edition(self) -> Optional[pulumi.Input[str]]:
|
|
350
351
|
"""
|
|
351
|
-
|
|
352
|
+
Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
352
353
|
"""
|
|
353
354
|
return pulumi.get(self, "edition")
|
|
354
355
|
|
|
@@ -359,9 +360,6 @@ class _AccountState:
|
|
|
359
360
|
@property
|
|
360
361
|
@pulumi.getter
|
|
361
362
|
def email(self) -> Optional[pulumi.Input[str]]:
|
|
362
|
-
"""
|
|
363
|
-
Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
364
|
-
"""
|
|
365
363
|
return pulumi.get(self, "email")
|
|
366
364
|
|
|
367
365
|
@email.setter
|
|
@@ -371,9 +369,6 @@ class _AccountState:
|
|
|
371
369
|
@property
|
|
372
370
|
@pulumi.getter(name="firstName")
|
|
373
371
|
def first_name(self) -> Optional[pulumi.Input[str]]:
|
|
374
|
-
"""
|
|
375
|
-
First name of the initial administrative user of the account
|
|
376
|
-
"""
|
|
377
372
|
return pulumi.get(self, "first_name")
|
|
378
373
|
|
|
379
374
|
@first_name.setter
|
|
@@ -396,7 +391,7 @@ class _AccountState:
|
|
|
396
391
|
@pulumi.getter(name="gracePeriodInDays")
|
|
397
392
|
def grace_period_in_days(self) -> Optional[pulumi.Input[int]]:
|
|
398
393
|
"""
|
|
399
|
-
Specifies the number of days
|
|
394
|
+
Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
400
395
|
"""
|
|
401
396
|
return pulumi.get(self, "grace_period_in_days")
|
|
402
397
|
|
|
@@ -406,22 +401,19 @@ class _AccountState:
|
|
|
406
401
|
|
|
407
402
|
@property
|
|
408
403
|
@pulumi.getter(name="isOrgAdmin")
|
|
409
|
-
def is_org_admin(self) -> Optional[pulumi.Input[
|
|
404
|
+
def is_org_admin(self) -> Optional[pulumi.Input[str]]:
|
|
410
405
|
"""
|
|
411
|
-
|
|
406
|
+
Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
412
407
|
"""
|
|
413
408
|
return pulumi.get(self, "is_org_admin")
|
|
414
409
|
|
|
415
410
|
@is_org_admin.setter
|
|
416
|
-
def is_org_admin(self, value: Optional[pulumi.Input[
|
|
411
|
+
def is_org_admin(self, value: Optional[pulumi.Input[str]]):
|
|
417
412
|
pulumi.set(self, "is_org_admin", value)
|
|
418
413
|
|
|
419
414
|
@property
|
|
420
415
|
@pulumi.getter(name="lastName")
|
|
421
416
|
def last_name(self) -> Optional[pulumi.Input[str]]:
|
|
422
|
-
"""
|
|
423
|
-
Last name of the initial administrative user of the account
|
|
424
|
-
"""
|
|
425
417
|
return pulumi.get(self, "last_name")
|
|
426
418
|
|
|
427
419
|
@last_name.setter
|
|
@@ -430,21 +422,18 @@ class _AccountState:
|
|
|
430
422
|
|
|
431
423
|
@property
|
|
432
424
|
@pulumi.getter(name="mustChangePassword")
|
|
433
|
-
def must_change_password(self) -> Optional[pulumi.Input[
|
|
434
|
-
"""
|
|
435
|
-
Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
|
|
436
|
-
"""
|
|
425
|
+
def must_change_password(self) -> Optional[pulumi.Input[str]]:
|
|
437
426
|
return pulumi.get(self, "must_change_password")
|
|
438
427
|
|
|
439
428
|
@must_change_password.setter
|
|
440
|
-
def must_change_password(self, value: Optional[pulumi.Input[
|
|
429
|
+
def must_change_password(self, value: Optional[pulumi.Input[str]]):
|
|
441
430
|
pulumi.set(self, "must_change_password", value)
|
|
442
431
|
|
|
443
432
|
@property
|
|
444
433
|
@pulumi.getter
|
|
445
434
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
446
435
|
"""
|
|
447
|
-
Specifies the identifier (i.e. name) for the account
|
|
436
|
+
Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
448
437
|
"""
|
|
449
438
|
return pulumi.get(self, "name")
|
|
450
439
|
|
|
@@ -456,7 +445,7 @@ class _AccountState:
|
|
|
456
445
|
@pulumi.getter
|
|
457
446
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
458
447
|
"""
|
|
459
|
-
ID of the
|
|
448
|
+
[Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
460
449
|
"""
|
|
461
450
|
return pulumi.get(self, "region")
|
|
462
451
|
|
|
@@ -468,7 +457,7 @@ class _AccountState:
|
|
|
468
457
|
@pulumi.getter(name="regionGroup")
|
|
469
458
|
def region_group(self) -> Optional[pulumi.Input[str]]:
|
|
470
459
|
"""
|
|
471
|
-
ID of the
|
|
460
|
+
ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
472
461
|
"""
|
|
473
462
|
return pulumi.get(self, "region_group")
|
|
474
463
|
|
|
@@ -476,6 +465,18 @@ class _AccountState:
|
|
|
476
465
|
def region_group(self, value: Optional[pulumi.Input[str]]):
|
|
477
466
|
pulumi.set(self, "region_group", value)
|
|
478
467
|
|
|
468
|
+
@property
|
|
469
|
+
@pulumi.getter(name="showOutputs")
|
|
470
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccountShowOutputArgs']]]]:
|
|
471
|
+
"""
|
|
472
|
+
Outputs the result of `SHOW ACCOUNTS` for the given account.
|
|
473
|
+
"""
|
|
474
|
+
return pulumi.get(self, "show_outputs")
|
|
475
|
+
|
|
476
|
+
@show_outputs.setter
|
|
477
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccountShowOutputArgs']]]]):
|
|
478
|
+
pulumi.set(self, "show_outputs", value)
|
|
479
|
+
|
|
479
480
|
|
|
480
481
|
class Account(pulumi.CustomResource):
|
|
481
482
|
@overload
|
|
@@ -485,13 +486,15 @@ class Account(pulumi.CustomResource):
|
|
|
485
486
|
admin_name: Optional[pulumi.Input[str]] = None,
|
|
486
487
|
admin_password: Optional[pulumi.Input[str]] = None,
|
|
487
488
|
admin_rsa_public_key: Optional[pulumi.Input[str]] = None,
|
|
489
|
+
admin_user_type: Optional[pulumi.Input[str]] = None,
|
|
488
490
|
comment: Optional[pulumi.Input[str]] = None,
|
|
489
491
|
edition: Optional[pulumi.Input[str]] = None,
|
|
490
492
|
email: Optional[pulumi.Input[str]] = None,
|
|
491
493
|
first_name: Optional[pulumi.Input[str]] = None,
|
|
492
494
|
grace_period_in_days: Optional[pulumi.Input[int]] = None,
|
|
495
|
+
is_org_admin: Optional[pulumi.Input[str]] = None,
|
|
493
496
|
last_name: Optional[pulumi.Input[str]] = None,
|
|
494
|
-
must_change_password: Optional[pulumi.Input[
|
|
497
|
+
must_change_password: Optional[pulumi.Input[str]] = None,
|
|
495
498
|
name: Optional[pulumi.Input[str]] = None,
|
|
496
499
|
region: Optional[pulumi.Input[str]] = None,
|
|
497
500
|
region_group: Optional[pulumi.Input[str]] = None,
|
|
@@ -500,24 +503,18 @@ class Account(pulumi.CustomResource):
|
|
|
500
503
|
## Import
|
|
501
504
|
|
|
502
505
|
```sh
|
|
503
|
-
$ pulumi import snowflake:index/account:Account
|
|
506
|
+
$ pulumi import snowflake:index/account:Account example '"<organization_name>"."<account_name>"'
|
|
504
507
|
```
|
|
505
508
|
|
|
506
509
|
:param str resource_name: The name of the resource.
|
|
507
510
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
508
|
-
:param pulumi.Input[str] admin_name: Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
509
|
-
:param pulumi.Input[str] admin_password: Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
510
|
-
:param pulumi.Input[str] admin_rsa_public_key: Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
511
511
|
:param pulumi.Input[str] comment: Specifies a comment for the account.
|
|
512
|
-
:param pulumi.Input[str] edition:
|
|
513
|
-
:param pulumi.Input[
|
|
514
|
-
:param pulumi.Input[str]
|
|
515
|
-
:param pulumi.Input[
|
|
516
|
-
:param pulumi.Input[str]
|
|
517
|
-
:param pulumi.Input[
|
|
518
|
-
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the account; must be unique within an organization, regardless of which Snowflake Region the account is in. In addition, the identifier must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
519
|
-
:param pulumi.Input[str] region: ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
520
|
-
:param pulumi.Input[str] region_group: ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
512
|
+
:param pulumi.Input[str] edition: Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
513
|
+
:param pulumi.Input[int] grace_period_in_days: Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
514
|
+
:param pulumi.Input[str] is_org_admin: Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
515
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
516
|
+
:param pulumi.Input[str] region: [Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
517
|
+
:param pulumi.Input[str] region_group: ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
521
518
|
"""
|
|
522
519
|
...
|
|
523
520
|
@overload
|
|
@@ -529,7 +526,7 @@ class Account(pulumi.CustomResource):
|
|
|
529
526
|
## Import
|
|
530
527
|
|
|
531
528
|
```sh
|
|
532
|
-
$ pulumi import snowflake:index/account:Account
|
|
529
|
+
$ pulumi import snowflake:index/account:Account example '"<organization_name>"."<account_name>"'
|
|
533
530
|
```
|
|
534
531
|
|
|
535
532
|
:param str resource_name: The name of the resource.
|
|
@@ -550,13 +547,15 @@ class Account(pulumi.CustomResource):
|
|
|
550
547
|
admin_name: Optional[pulumi.Input[str]] = None,
|
|
551
548
|
admin_password: Optional[pulumi.Input[str]] = None,
|
|
552
549
|
admin_rsa_public_key: Optional[pulumi.Input[str]] = None,
|
|
550
|
+
admin_user_type: Optional[pulumi.Input[str]] = None,
|
|
553
551
|
comment: Optional[pulumi.Input[str]] = None,
|
|
554
552
|
edition: Optional[pulumi.Input[str]] = None,
|
|
555
553
|
email: Optional[pulumi.Input[str]] = None,
|
|
556
554
|
first_name: Optional[pulumi.Input[str]] = None,
|
|
557
555
|
grace_period_in_days: Optional[pulumi.Input[int]] = None,
|
|
556
|
+
is_org_admin: Optional[pulumi.Input[str]] = None,
|
|
558
557
|
last_name: Optional[pulumi.Input[str]] = None,
|
|
559
|
-
must_change_password: Optional[pulumi.Input[
|
|
558
|
+
must_change_password: Optional[pulumi.Input[str]] = None,
|
|
560
559
|
name: Optional[pulumi.Input[str]] = None,
|
|
561
560
|
region: Optional[pulumi.Input[str]] = None,
|
|
562
561
|
region_group: Optional[pulumi.Input[str]] = None,
|
|
@@ -571,9 +570,10 @@ class Account(pulumi.CustomResource):
|
|
|
571
570
|
|
|
572
571
|
if admin_name is None and not opts.urn:
|
|
573
572
|
raise TypeError("Missing required property 'admin_name'")
|
|
574
|
-
__props__.__dict__["admin_name"] = admin_name
|
|
573
|
+
__props__.__dict__["admin_name"] = None if admin_name is None else pulumi.Output.secret(admin_name)
|
|
575
574
|
__props__.__dict__["admin_password"] = None if admin_password is None else pulumi.Output.secret(admin_password)
|
|
576
|
-
__props__.__dict__["admin_rsa_public_key"] =
|
|
575
|
+
__props__.__dict__["admin_rsa_public_key"] = admin_rsa_public_key
|
|
576
|
+
__props__.__dict__["admin_user_type"] = admin_user_type
|
|
577
577
|
__props__.__dict__["comment"] = comment
|
|
578
578
|
if edition is None and not opts.urn:
|
|
579
579
|
raise TypeError("Missing required property 'edition'")
|
|
@@ -582,15 +582,18 @@ class Account(pulumi.CustomResource):
|
|
|
582
582
|
raise TypeError("Missing required property 'email'")
|
|
583
583
|
__props__.__dict__["email"] = None if email is None else pulumi.Output.secret(email)
|
|
584
584
|
__props__.__dict__["first_name"] = None if first_name is None else pulumi.Output.secret(first_name)
|
|
585
|
+
if grace_period_in_days is None and not opts.urn:
|
|
586
|
+
raise TypeError("Missing required property 'grace_period_in_days'")
|
|
585
587
|
__props__.__dict__["grace_period_in_days"] = grace_period_in_days
|
|
588
|
+
__props__.__dict__["is_org_admin"] = is_org_admin
|
|
586
589
|
__props__.__dict__["last_name"] = None if last_name is None else pulumi.Output.secret(last_name)
|
|
587
590
|
__props__.__dict__["must_change_password"] = must_change_password
|
|
588
591
|
__props__.__dict__["name"] = name
|
|
589
592
|
__props__.__dict__["region"] = region
|
|
590
593
|
__props__.__dict__["region_group"] = region_group
|
|
591
594
|
__props__.__dict__["fully_qualified_name"] = None
|
|
592
|
-
__props__.__dict__["
|
|
593
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["
|
|
595
|
+
__props__.__dict__["show_outputs"] = None
|
|
596
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["adminName", "adminPassword", "email", "firstName", "lastName"])
|
|
594
597
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
595
598
|
super(Account, __self__).__init__(
|
|
596
599
|
'snowflake:index/account:Account',
|
|
@@ -605,18 +608,20 @@ class Account(pulumi.CustomResource):
|
|
|
605
608
|
admin_name: Optional[pulumi.Input[str]] = None,
|
|
606
609
|
admin_password: Optional[pulumi.Input[str]] = None,
|
|
607
610
|
admin_rsa_public_key: Optional[pulumi.Input[str]] = None,
|
|
611
|
+
admin_user_type: Optional[pulumi.Input[str]] = None,
|
|
608
612
|
comment: Optional[pulumi.Input[str]] = None,
|
|
609
613
|
edition: Optional[pulumi.Input[str]] = None,
|
|
610
614
|
email: Optional[pulumi.Input[str]] = None,
|
|
611
615
|
first_name: Optional[pulumi.Input[str]] = None,
|
|
612
616
|
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
613
617
|
grace_period_in_days: Optional[pulumi.Input[int]] = None,
|
|
614
|
-
is_org_admin: Optional[pulumi.Input[
|
|
618
|
+
is_org_admin: Optional[pulumi.Input[str]] = None,
|
|
615
619
|
last_name: Optional[pulumi.Input[str]] = None,
|
|
616
|
-
must_change_password: Optional[pulumi.Input[
|
|
620
|
+
must_change_password: Optional[pulumi.Input[str]] = None,
|
|
617
621
|
name: Optional[pulumi.Input[str]] = None,
|
|
618
622
|
region: Optional[pulumi.Input[str]] = None,
|
|
619
|
-
region_group: Optional[pulumi.Input[str]] = None
|
|
623
|
+
region_group: Optional[pulumi.Input[str]] = None,
|
|
624
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccountShowOutputArgs', 'AccountShowOutputArgsDict']]]]] = None) -> 'Account':
|
|
620
625
|
"""
|
|
621
626
|
Get an existing Account resource's state with the given name, id, and optional extra
|
|
622
627
|
properties used to qualify the lookup.
|
|
@@ -624,21 +629,15 @@ class Account(pulumi.CustomResource):
|
|
|
624
629
|
:param str resource_name: The unique name of the resulting resource.
|
|
625
630
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
626
631
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
627
|
-
:param pulumi.Input[str] admin_name: Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
628
|
-
:param pulumi.Input[str] admin_password: Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
629
|
-
:param pulumi.Input[str] admin_rsa_public_key: Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
630
632
|
:param pulumi.Input[str] comment: Specifies a comment for the account.
|
|
631
|
-
:param pulumi.Input[str] edition:
|
|
632
|
-
:param pulumi.Input[str] email: Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
633
|
-
:param pulumi.Input[str] first_name: First name of the initial administrative user of the account
|
|
633
|
+
:param pulumi.Input[str] edition: Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
634
634
|
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
635
|
-
:param pulumi.Input[int] grace_period_in_days: Specifies the number of days
|
|
636
|
-
:param pulumi.Input[
|
|
637
|
-
:param pulumi.Input[str]
|
|
638
|
-
:param pulumi.Input[
|
|
639
|
-
:param pulumi.Input[str]
|
|
640
|
-
:param pulumi.Input[
|
|
641
|
-
:param pulumi.Input[str] region_group: ID of the Snowflake Region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
635
|
+
:param pulumi.Input[int] grace_period_in_days: Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
636
|
+
:param pulumi.Input[str] is_org_admin: Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
637
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
638
|
+
:param pulumi.Input[str] region: [Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
639
|
+
:param pulumi.Input[str] region_group: ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
640
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['AccountShowOutputArgs', 'AccountShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW ACCOUNTS` for the given account.
|
|
642
641
|
"""
|
|
643
642
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
644
643
|
|
|
@@ -647,6 +646,7 @@ class Account(pulumi.CustomResource):
|
|
|
647
646
|
__props__.__dict__["admin_name"] = admin_name
|
|
648
647
|
__props__.__dict__["admin_password"] = admin_password
|
|
649
648
|
__props__.__dict__["admin_rsa_public_key"] = admin_rsa_public_key
|
|
649
|
+
__props__.__dict__["admin_user_type"] = admin_user_type
|
|
650
650
|
__props__.__dict__["comment"] = comment
|
|
651
651
|
__props__.__dict__["edition"] = edition
|
|
652
652
|
__props__.__dict__["email"] = email
|
|
@@ -659,32 +659,29 @@ class Account(pulumi.CustomResource):
|
|
|
659
659
|
__props__.__dict__["name"] = name
|
|
660
660
|
__props__.__dict__["region"] = region
|
|
661
661
|
__props__.__dict__["region_group"] = region_group
|
|
662
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
662
663
|
return Account(resource_name, opts=opts, __props__=__props__)
|
|
663
664
|
|
|
664
665
|
@property
|
|
665
666
|
@pulumi.getter(name="adminName")
|
|
666
667
|
def admin_name(self) -> pulumi.Output[str]:
|
|
667
|
-
"""
|
|
668
|
-
Login name of the initial administrative user of the account. A new user is created in the new account with this name and password and granted the ACCOUNTADMIN role in the account. A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.
|
|
669
|
-
"""
|
|
670
668
|
return pulumi.get(self, "admin_name")
|
|
671
669
|
|
|
672
670
|
@property
|
|
673
671
|
@pulumi.getter(name="adminPassword")
|
|
674
672
|
def admin_password(self) -> pulumi.Output[Optional[str]]:
|
|
675
|
-
"""
|
|
676
|
-
Password for the initial administrative user of the account. Optional if the `ADMIN_RSA_PUBLIC_KEY` parameter is specified. For more information about passwords in Snowflake, see [Snowflake-provided Password Policy](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=Snowflake%2Dprovided%20Password%20Policy).
|
|
677
|
-
"""
|
|
678
673
|
return pulumi.get(self, "admin_password")
|
|
679
674
|
|
|
680
675
|
@property
|
|
681
676
|
@pulumi.getter(name="adminRsaPublicKey")
|
|
682
677
|
def admin_rsa_public_key(self) -> pulumi.Output[Optional[str]]:
|
|
683
|
-
"""
|
|
684
|
-
Assigns a public key to the initial administrative user of the account in order to implement [key pair authentication](https://docs.snowflake.com/en/sql-reference/sql/create-account.html#:~:text=key%20pair%20authentication) for the user. Optional if the `ADMIN_PASSWORD` parameter is specified.
|
|
685
|
-
"""
|
|
686
678
|
return pulumi.get(self, "admin_rsa_public_key")
|
|
687
679
|
|
|
680
|
+
@property
|
|
681
|
+
@pulumi.getter(name="adminUserType")
|
|
682
|
+
def admin_user_type(self) -> pulumi.Output[Optional[str]]:
|
|
683
|
+
return pulumi.get(self, "admin_user_type")
|
|
684
|
+
|
|
688
685
|
@property
|
|
689
686
|
@pulumi.getter
|
|
690
687
|
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -697,24 +694,18 @@ class Account(pulumi.CustomResource):
|
|
|
697
694
|
@pulumi.getter
|
|
698
695
|
def edition(self) -> pulumi.Output[str]:
|
|
699
696
|
"""
|
|
700
|
-
|
|
697
|
+
Snowflake Edition of the account. See more about Snowflake Editions in the [official documentation](https://docs.snowflake.com/en/user-guide/intro-editions). Valid options are: `STANDARD` | `ENTERPRISE` | `BUSINESS_CRITICAL`
|
|
701
698
|
"""
|
|
702
699
|
return pulumi.get(self, "edition")
|
|
703
700
|
|
|
704
701
|
@property
|
|
705
702
|
@pulumi.getter
|
|
706
703
|
def email(self) -> pulumi.Output[str]:
|
|
707
|
-
"""
|
|
708
|
-
Email address of the initial administrative user of the account. This email address is used to send any notifications about the account.
|
|
709
|
-
"""
|
|
710
704
|
return pulumi.get(self, "email")
|
|
711
705
|
|
|
712
706
|
@property
|
|
713
707
|
@pulumi.getter(name="firstName")
|
|
714
708
|
def first_name(self) -> pulumi.Output[Optional[str]]:
|
|
715
|
-
"""
|
|
716
|
-
First name of the initial administrative user of the account
|
|
717
|
-
"""
|
|
718
709
|
return pulumi.get(self, "first_name")
|
|
719
710
|
|
|
720
711
|
@property
|
|
@@ -727,41 +718,35 @@ class Account(pulumi.CustomResource):
|
|
|
727
718
|
|
|
728
719
|
@property
|
|
729
720
|
@pulumi.getter(name="gracePeriodInDays")
|
|
730
|
-
def grace_period_in_days(self) -> pulumi.Output[
|
|
721
|
+
def grace_period_in_days(self) -> pulumi.Output[int]:
|
|
731
722
|
"""
|
|
732
|
-
Specifies the number of days
|
|
723
|
+
Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days.
|
|
733
724
|
"""
|
|
734
725
|
return pulumi.get(self, "grace_period_in_days")
|
|
735
726
|
|
|
736
727
|
@property
|
|
737
728
|
@pulumi.getter(name="isOrgAdmin")
|
|
738
|
-
def is_org_admin(self) -> pulumi.Output[
|
|
729
|
+
def is_org_admin(self) -> pulumi.Output[Optional[str]]:
|
|
739
730
|
"""
|
|
740
|
-
|
|
731
|
+
Sets an account property that determines whether the ORGADMIN role is enabled in the account. Only an organization administrator (i.e. user with the ORGADMIN role) can set the property.
|
|
741
732
|
"""
|
|
742
733
|
return pulumi.get(self, "is_org_admin")
|
|
743
734
|
|
|
744
735
|
@property
|
|
745
736
|
@pulumi.getter(name="lastName")
|
|
746
737
|
def last_name(self) -> pulumi.Output[Optional[str]]:
|
|
747
|
-
"""
|
|
748
|
-
Last name of the initial administrative user of the account
|
|
749
|
-
"""
|
|
750
738
|
return pulumi.get(self, "last_name")
|
|
751
739
|
|
|
752
740
|
@property
|
|
753
741
|
@pulumi.getter(name="mustChangePassword")
|
|
754
|
-
def must_change_password(self) -> pulumi.Output[Optional[
|
|
755
|
-
"""
|
|
756
|
-
Specifies whether the new user created to administer the account is forced to change their password upon first login into the account.
|
|
757
|
-
"""
|
|
742
|
+
def must_change_password(self) -> pulumi.Output[Optional[str]]:
|
|
758
743
|
return pulumi.get(self, "must_change_password")
|
|
759
744
|
|
|
760
745
|
@property
|
|
761
746
|
@pulumi.getter
|
|
762
747
|
def name(self) -> pulumi.Output[str]:
|
|
763
748
|
"""
|
|
764
|
-
Specifies the identifier (i.e. name) for the account
|
|
749
|
+
Specifies the identifier (i.e. name) for the account. It must be unique within an organization, regardless of which Snowflake Region the account is in and must start with an alphabetic character and cannot contain spaces or special characters except for underscores (_). Note that if the account name includes underscores, features that do not accept account names with underscores (e.g. Okta SSO or SCIM) can reference a version of the account name that substitutes hyphens (-) for the underscores.
|
|
765
750
|
"""
|
|
766
751
|
return pulumi.get(self, "name")
|
|
767
752
|
|
|
@@ -769,7 +754,7 @@ class Account(pulumi.CustomResource):
|
|
|
769
754
|
@pulumi.getter
|
|
770
755
|
def region(self) -> pulumi.Output[Optional[str]]:
|
|
771
756
|
"""
|
|
772
|
-
ID of the
|
|
757
|
+
[Snowflake Region ID](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-snowflake-region-ids) of the region where the account is created. If no value is provided, Snowflake creates the account in the same Snowflake Region as the current account (i.e. the account in which the CREATE ACCOUNT statement is executed.)
|
|
773
758
|
"""
|
|
774
759
|
return pulumi.get(self, "region")
|
|
775
760
|
|
|
@@ -777,7 +762,15 @@ class Account(pulumi.CustomResource):
|
|
|
777
762
|
@pulumi.getter(name="regionGroup")
|
|
778
763
|
def region_group(self) -> pulumi.Output[Optional[str]]:
|
|
779
764
|
"""
|
|
780
|
-
ID of the
|
|
765
|
+
ID of the region group where the account is created. To retrieve the region group ID for existing accounts in your organization, execute the [SHOW REGIONS](https://docs.snowflake.com/en/sql-reference/sql/show-regions) command. For information about when you might need to specify region group, see [Region groups](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#label-region-groups).
|
|
781
766
|
"""
|
|
782
767
|
return pulumi.get(self, "region_group")
|
|
783
768
|
|
|
769
|
+
@property
|
|
770
|
+
@pulumi.getter(name="showOutputs")
|
|
771
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.AccountShowOutput']]:
|
|
772
|
+
"""
|
|
773
|
+
Outputs the result of `SHOW ACCOUNTS` for the given account.
|
|
774
|
+
"""
|
|
775
|
+
return pulumi.get(self, "show_outputs")
|
|
776
|
+
|