pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736849992__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 +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +33 -52
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- 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 +53 -22
- pulumi_snowflake/get_alerts.py +22 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- pulumi_snowflake/primary_connection.py +330 -0
- 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 +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736849992.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['ApiAuthenticationIntegrationWithJwtBearerArgs', 'ApiAuthenticationIntegrationWithJwtBearer']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class ApiAuthenticationIntegrationWithJwtBearerArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
enabled: pulumi.Input[bool],
|
|
25
|
+
oauth_assertion_issuer: pulumi.Input[str],
|
|
26
|
+
oauth_client_id: pulumi.Input[str],
|
|
27
|
+
oauth_client_secret: pulumi.Input[str],
|
|
28
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
30
|
+
oauth_access_token_validity: Optional[pulumi.Input[int]] = None,
|
|
31
|
+
oauth_authorization_endpoint: Optional[pulumi.Input[str]] = None,
|
|
32
|
+
oauth_client_auth_method: Optional[pulumi.Input[str]] = None,
|
|
33
|
+
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
34
|
+
oauth_token_endpoint: Optional[pulumi.Input[str]] = None):
|
|
35
|
+
"""
|
|
36
|
+
The set of arguments for constructing a ApiAuthenticationIntegrationWithJwtBearer resource.
|
|
37
|
+
:param pulumi.Input[bool] enabled: Specifies whether this security integration is enabled or disabled.
|
|
38
|
+
:param pulumi.Input[str] oauth_client_id: Specifies the client ID for the OAuth application in the external service.
|
|
39
|
+
:param pulumi.Input[str] comment: Specifies a comment for the integration.
|
|
40
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
41
|
+
:param pulumi.Input[int] oauth_access_token_validity: Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
42
|
+
:param pulumi.Input[str] oauth_authorization_endpoint: Specifies the URL for authenticating to the external service.
|
|
43
|
+
:param pulumi.Input[str] oauth_client_auth_method: Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
44
|
+
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
45
|
+
:param pulumi.Input[str] oauth_token_endpoint: Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
46
|
+
"""
|
|
47
|
+
pulumi.set(__self__, "enabled", enabled)
|
|
48
|
+
pulumi.set(__self__, "oauth_assertion_issuer", oauth_assertion_issuer)
|
|
49
|
+
pulumi.set(__self__, "oauth_client_id", oauth_client_id)
|
|
50
|
+
pulumi.set(__self__, "oauth_client_secret", oauth_client_secret)
|
|
51
|
+
if comment is not None:
|
|
52
|
+
pulumi.set(__self__, "comment", comment)
|
|
53
|
+
if name is not None:
|
|
54
|
+
pulumi.set(__self__, "name", name)
|
|
55
|
+
if oauth_access_token_validity is not None:
|
|
56
|
+
pulumi.set(__self__, "oauth_access_token_validity", oauth_access_token_validity)
|
|
57
|
+
if oauth_authorization_endpoint is not None:
|
|
58
|
+
pulumi.set(__self__, "oauth_authorization_endpoint", oauth_authorization_endpoint)
|
|
59
|
+
if oauth_client_auth_method is not None:
|
|
60
|
+
pulumi.set(__self__, "oauth_client_auth_method", oauth_client_auth_method)
|
|
61
|
+
if oauth_refresh_token_validity is not None:
|
|
62
|
+
pulumi.set(__self__, "oauth_refresh_token_validity", oauth_refresh_token_validity)
|
|
63
|
+
if oauth_token_endpoint is not None:
|
|
64
|
+
pulumi.set(__self__, "oauth_token_endpoint", oauth_token_endpoint)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def enabled(self) -> pulumi.Input[bool]:
|
|
69
|
+
"""
|
|
70
|
+
Specifies whether this security integration is enabled or disabled.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "enabled")
|
|
73
|
+
|
|
74
|
+
@enabled.setter
|
|
75
|
+
def enabled(self, value: pulumi.Input[bool]):
|
|
76
|
+
pulumi.set(self, "enabled", value)
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter(name="oauthAssertionIssuer")
|
|
80
|
+
def oauth_assertion_issuer(self) -> pulumi.Input[str]:
|
|
81
|
+
return pulumi.get(self, "oauth_assertion_issuer")
|
|
82
|
+
|
|
83
|
+
@oauth_assertion_issuer.setter
|
|
84
|
+
def oauth_assertion_issuer(self, value: pulumi.Input[str]):
|
|
85
|
+
pulumi.set(self, "oauth_assertion_issuer", value)
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
@pulumi.getter(name="oauthClientId")
|
|
89
|
+
def oauth_client_id(self) -> pulumi.Input[str]:
|
|
90
|
+
"""
|
|
91
|
+
Specifies the client ID for the OAuth application in the external service.
|
|
92
|
+
"""
|
|
93
|
+
return pulumi.get(self, "oauth_client_id")
|
|
94
|
+
|
|
95
|
+
@oauth_client_id.setter
|
|
96
|
+
def oauth_client_id(self, value: pulumi.Input[str]):
|
|
97
|
+
pulumi.set(self, "oauth_client_id", value)
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
@pulumi.getter(name="oauthClientSecret")
|
|
101
|
+
def oauth_client_secret(self) -> pulumi.Input[str]:
|
|
102
|
+
return pulumi.get(self, "oauth_client_secret")
|
|
103
|
+
|
|
104
|
+
@oauth_client_secret.setter
|
|
105
|
+
def oauth_client_secret(self, value: pulumi.Input[str]):
|
|
106
|
+
pulumi.set(self, "oauth_client_secret", value)
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
@pulumi.getter
|
|
110
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
111
|
+
"""
|
|
112
|
+
Specifies a comment for the integration.
|
|
113
|
+
"""
|
|
114
|
+
return pulumi.get(self, "comment")
|
|
115
|
+
|
|
116
|
+
@comment.setter
|
|
117
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
118
|
+
pulumi.set(self, "comment", value)
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
@pulumi.getter
|
|
122
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
"""
|
|
124
|
+
Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "name")
|
|
127
|
+
|
|
128
|
+
@name.setter
|
|
129
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
130
|
+
pulumi.set(self, "name", value)
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
@pulumi.getter(name="oauthAccessTokenValidity")
|
|
134
|
+
def oauth_access_token_validity(self) -> Optional[pulumi.Input[int]]:
|
|
135
|
+
"""
|
|
136
|
+
Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
137
|
+
"""
|
|
138
|
+
return pulumi.get(self, "oauth_access_token_validity")
|
|
139
|
+
|
|
140
|
+
@oauth_access_token_validity.setter
|
|
141
|
+
def oauth_access_token_validity(self, value: Optional[pulumi.Input[int]]):
|
|
142
|
+
pulumi.set(self, "oauth_access_token_validity", value)
|
|
143
|
+
|
|
144
|
+
@property
|
|
145
|
+
@pulumi.getter(name="oauthAuthorizationEndpoint")
|
|
146
|
+
def oauth_authorization_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
147
|
+
"""
|
|
148
|
+
Specifies the URL for authenticating to the external service.
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "oauth_authorization_endpoint")
|
|
151
|
+
|
|
152
|
+
@oauth_authorization_endpoint.setter
|
|
153
|
+
def oauth_authorization_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
154
|
+
pulumi.set(self, "oauth_authorization_endpoint", value)
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
@pulumi.getter(name="oauthClientAuthMethod")
|
|
158
|
+
def oauth_client_auth_method(self) -> Optional[pulumi.Input[str]]:
|
|
159
|
+
"""
|
|
160
|
+
Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "oauth_client_auth_method")
|
|
163
|
+
|
|
164
|
+
@oauth_client_auth_method.setter
|
|
165
|
+
def oauth_client_auth_method(self, value: Optional[pulumi.Input[str]]):
|
|
166
|
+
pulumi.set(self, "oauth_client_auth_method", value)
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="oauthRefreshTokenValidity")
|
|
170
|
+
def oauth_refresh_token_validity(self) -> Optional[pulumi.Input[int]]:
|
|
171
|
+
"""
|
|
172
|
+
Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "oauth_refresh_token_validity")
|
|
175
|
+
|
|
176
|
+
@oauth_refresh_token_validity.setter
|
|
177
|
+
def oauth_refresh_token_validity(self, value: Optional[pulumi.Input[int]]):
|
|
178
|
+
pulumi.set(self, "oauth_refresh_token_validity", value)
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
@pulumi.getter(name="oauthTokenEndpoint")
|
|
182
|
+
def oauth_token_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
183
|
+
"""
|
|
184
|
+
Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
185
|
+
"""
|
|
186
|
+
return pulumi.get(self, "oauth_token_endpoint")
|
|
187
|
+
|
|
188
|
+
@oauth_token_endpoint.setter
|
|
189
|
+
def oauth_token_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
190
|
+
pulumi.set(self, "oauth_token_endpoint", value)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
@pulumi.input_type
|
|
194
|
+
class _ApiAuthenticationIntegrationWithJwtBearerState:
|
|
195
|
+
def __init__(__self__, *,
|
|
196
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
197
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgs']]]] = None,
|
|
198
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
|
199
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
200
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
201
|
+
oauth_access_token_validity: Optional[pulumi.Input[int]] = None,
|
|
202
|
+
oauth_assertion_issuer: Optional[pulumi.Input[str]] = None,
|
|
203
|
+
oauth_authorization_endpoint: Optional[pulumi.Input[str]] = None,
|
|
204
|
+
oauth_client_auth_method: Optional[pulumi.Input[str]] = None,
|
|
205
|
+
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
206
|
+
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
207
|
+
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
208
|
+
oauth_token_endpoint: Optional[pulumi.Input[str]] = None,
|
|
209
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerShowOutputArgs']]]] = None):
|
|
210
|
+
"""
|
|
211
|
+
Input properties used for looking up and filtering ApiAuthenticationIntegrationWithJwtBearer resources.
|
|
212
|
+
:param pulumi.Input[str] comment: Specifies a comment for the integration.
|
|
213
|
+
:param pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
|
|
214
|
+
:param pulumi.Input[bool] enabled: Specifies whether this security integration is enabled or disabled.
|
|
215
|
+
: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).
|
|
216
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
217
|
+
:param pulumi.Input[int] oauth_access_token_validity: Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
218
|
+
:param pulumi.Input[str] oauth_authorization_endpoint: Specifies the URL for authenticating to the external service.
|
|
219
|
+
:param pulumi.Input[str] oauth_client_auth_method: Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
220
|
+
:param pulumi.Input[str] oauth_client_id: Specifies the client ID for the OAuth application in the external service.
|
|
221
|
+
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
222
|
+
:param pulumi.Input[str] oauth_token_endpoint: Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
223
|
+
:param pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
|
|
224
|
+
"""
|
|
225
|
+
if comment is not None:
|
|
226
|
+
pulumi.set(__self__, "comment", comment)
|
|
227
|
+
if describe_outputs is not None:
|
|
228
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
229
|
+
if enabled is not None:
|
|
230
|
+
pulumi.set(__self__, "enabled", enabled)
|
|
231
|
+
if fully_qualified_name is not None:
|
|
232
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
233
|
+
if name is not None:
|
|
234
|
+
pulumi.set(__self__, "name", name)
|
|
235
|
+
if oauth_access_token_validity is not None:
|
|
236
|
+
pulumi.set(__self__, "oauth_access_token_validity", oauth_access_token_validity)
|
|
237
|
+
if oauth_assertion_issuer is not None:
|
|
238
|
+
pulumi.set(__self__, "oauth_assertion_issuer", oauth_assertion_issuer)
|
|
239
|
+
if oauth_authorization_endpoint is not None:
|
|
240
|
+
pulumi.set(__self__, "oauth_authorization_endpoint", oauth_authorization_endpoint)
|
|
241
|
+
if oauth_client_auth_method is not None:
|
|
242
|
+
pulumi.set(__self__, "oauth_client_auth_method", oauth_client_auth_method)
|
|
243
|
+
if oauth_client_id is not None:
|
|
244
|
+
pulumi.set(__self__, "oauth_client_id", oauth_client_id)
|
|
245
|
+
if oauth_client_secret is not None:
|
|
246
|
+
pulumi.set(__self__, "oauth_client_secret", oauth_client_secret)
|
|
247
|
+
if oauth_refresh_token_validity is not None:
|
|
248
|
+
pulumi.set(__self__, "oauth_refresh_token_validity", oauth_refresh_token_validity)
|
|
249
|
+
if oauth_token_endpoint is not None:
|
|
250
|
+
pulumi.set(__self__, "oauth_token_endpoint", oauth_token_endpoint)
|
|
251
|
+
if show_outputs is not None:
|
|
252
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
253
|
+
|
|
254
|
+
@property
|
|
255
|
+
@pulumi.getter
|
|
256
|
+
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
257
|
+
"""
|
|
258
|
+
Specifies a comment for the integration.
|
|
259
|
+
"""
|
|
260
|
+
return pulumi.get(self, "comment")
|
|
261
|
+
|
|
262
|
+
@comment.setter
|
|
263
|
+
def comment(self, value: Optional[pulumi.Input[str]]):
|
|
264
|
+
pulumi.set(self, "comment", value)
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
@pulumi.getter(name="describeOutputs")
|
|
268
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgs']]]]:
|
|
269
|
+
"""
|
|
270
|
+
Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
|
|
271
|
+
"""
|
|
272
|
+
return pulumi.get(self, "describe_outputs")
|
|
273
|
+
|
|
274
|
+
@describe_outputs.setter
|
|
275
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgs']]]]):
|
|
276
|
+
pulumi.set(self, "describe_outputs", value)
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
@pulumi.getter
|
|
280
|
+
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
281
|
+
"""
|
|
282
|
+
Specifies whether this security integration is enabled or disabled.
|
|
283
|
+
"""
|
|
284
|
+
return pulumi.get(self, "enabled")
|
|
285
|
+
|
|
286
|
+
@enabled.setter
|
|
287
|
+
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
288
|
+
pulumi.set(self, "enabled", value)
|
|
289
|
+
|
|
290
|
+
@property
|
|
291
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
292
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
293
|
+
"""
|
|
294
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
295
|
+
"""
|
|
296
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
297
|
+
|
|
298
|
+
@fully_qualified_name.setter
|
|
299
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
300
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
301
|
+
|
|
302
|
+
@property
|
|
303
|
+
@pulumi.getter
|
|
304
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
305
|
+
"""
|
|
306
|
+
Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
307
|
+
"""
|
|
308
|
+
return pulumi.get(self, "name")
|
|
309
|
+
|
|
310
|
+
@name.setter
|
|
311
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
312
|
+
pulumi.set(self, "name", value)
|
|
313
|
+
|
|
314
|
+
@property
|
|
315
|
+
@pulumi.getter(name="oauthAccessTokenValidity")
|
|
316
|
+
def oauth_access_token_validity(self) -> Optional[pulumi.Input[int]]:
|
|
317
|
+
"""
|
|
318
|
+
Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
319
|
+
"""
|
|
320
|
+
return pulumi.get(self, "oauth_access_token_validity")
|
|
321
|
+
|
|
322
|
+
@oauth_access_token_validity.setter
|
|
323
|
+
def oauth_access_token_validity(self, value: Optional[pulumi.Input[int]]):
|
|
324
|
+
pulumi.set(self, "oauth_access_token_validity", value)
|
|
325
|
+
|
|
326
|
+
@property
|
|
327
|
+
@pulumi.getter(name="oauthAssertionIssuer")
|
|
328
|
+
def oauth_assertion_issuer(self) -> Optional[pulumi.Input[str]]:
|
|
329
|
+
return pulumi.get(self, "oauth_assertion_issuer")
|
|
330
|
+
|
|
331
|
+
@oauth_assertion_issuer.setter
|
|
332
|
+
def oauth_assertion_issuer(self, value: Optional[pulumi.Input[str]]):
|
|
333
|
+
pulumi.set(self, "oauth_assertion_issuer", value)
|
|
334
|
+
|
|
335
|
+
@property
|
|
336
|
+
@pulumi.getter(name="oauthAuthorizationEndpoint")
|
|
337
|
+
def oauth_authorization_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
338
|
+
"""
|
|
339
|
+
Specifies the URL for authenticating to the external service.
|
|
340
|
+
"""
|
|
341
|
+
return pulumi.get(self, "oauth_authorization_endpoint")
|
|
342
|
+
|
|
343
|
+
@oauth_authorization_endpoint.setter
|
|
344
|
+
def oauth_authorization_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
345
|
+
pulumi.set(self, "oauth_authorization_endpoint", value)
|
|
346
|
+
|
|
347
|
+
@property
|
|
348
|
+
@pulumi.getter(name="oauthClientAuthMethod")
|
|
349
|
+
def oauth_client_auth_method(self) -> Optional[pulumi.Input[str]]:
|
|
350
|
+
"""
|
|
351
|
+
Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
352
|
+
"""
|
|
353
|
+
return pulumi.get(self, "oauth_client_auth_method")
|
|
354
|
+
|
|
355
|
+
@oauth_client_auth_method.setter
|
|
356
|
+
def oauth_client_auth_method(self, value: Optional[pulumi.Input[str]]):
|
|
357
|
+
pulumi.set(self, "oauth_client_auth_method", value)
|
|
358
|
+
|
|
359
|
+
@property
|
|
360
|
+
@pulumi.getter(name="oauthClientId")
|
|
361
|
+
def oauth_client_id(self) -> Optional[pulumi.Input[str]]:
|
|
362
|
+
"""
|
|
363
|
+
Specifies the client ID for the OAuth application in the external service.
|
|
364
|
+
"""
|
|
365
|
+
return pulumi.get(self, "oauth_client_id")
|
|
366
|
+
|
|
367
|
+
@oauth_client_id.setter
|
|
368
|
+
def oauth_client_id(self, value: Optional[pulumi.Input[str]]):
|
|
369
|
+
pulumi.set(self, "oauth_client_id", value)
|
|
370
|
+
|
|
371
|
+
@property
|
|
372
|
+
@pulumi.getter(name="oauthClientSecret")
|
|
373
|
+
def oauth_client_secret(self) -> Optional[pulumi.Input[str]]:
|
|
374
|
+
return pulumi.get(self, "oauth_client_secret")
|
|
375
|
+
|
|
376
|
+
@oauth_client_secret.setter
|
|
377
|
+
def oauth_client_secret(self, value: Optional[pulumi.Input[str]]):
|
|
378
|
+
pulumi.set(self, "oauth_client_secret", value)
|
|
379
|
+
|
|
380
|
+
@property
|
|
381
|
+
@pulumi.getter(name="oauthRefreshTokenValidity")
|
|
382
|
+
def oauth_refresh_token_validity(self) -> Optional[pulumi.Input[int]]:
|
|
383
|
+
"""
|
|
384
|
+
Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
385
|
+
"""
|
|
386
|
+
return pulumi.get(self, "oauth_refresh_token_validity")
|
|
387
|
+
|
|
388
|
+
@oauth_refresh_token_validity.setter
|
|
389
|
+
def oauth_refresh_token_validity(self, value: Optional[pulumi.Input[int]]):
|
|
390
|
+
pulumi.set(self, "oauth_refresh_token_validity", value)
|
|
391
|
+
|
|
392
|
+
@property
|
|
393
|
+
@pulumi.getter(name="oauthTokenEndpoint")
|
|
394
|
+
def oauth_token_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
395
|
+
"""
|
|
396
|
+
Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
397
|
+
"""
|
|
398
|
+
return pulumi.get(self, "oauth_token_endpoint")
|
|
399
|
+
|
|
400
|
+
@oauth_token_endpoint.setter
|
|
401
|
+
def oauth_token_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
402
|
+
pulumi.set(self, "oauth_token_endpoint", value)
|
|
403
|
+
|
|
404
|
+
@property
|
|
405
|
+
@pulumi.getter(name="showOutputs")
|
|
406
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerShowOutputArgs']]]]:
|
|
407
|
+
"""
|
|
408
|
+
Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
|
|
409
|
+
"""
|
|
410
|
+
return pulumi.get(self, "show_outputs")
|
|
411
|
+
|
|
412
|
+
@show_outputs.setter
|
|
413
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApiAuthenticationIntegrationWithJwtBearerShowOutputArgs']]]]):
|
|
414
|
+
pulumi.set(self, "show_outputs", value)
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
class ApiAuthenticationIntegrationWithJwtBearer(pulumi.CustomResource):
|
|
418
|
+
@overload
|
|
419
|
+
def __init__(__self__,
|
|
420
|
+
resource_name: str,
|
|
421
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
422
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
423
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
|
424
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
425
|
+
oauth_access_token_validity: Optional[pulumi.Input[int]] = None,
|
|
426
|
+
oauth_assertion_issuer: Optional[pulumi.Input[str]] = None,
|
|
427
|
+
oauth_authorization_endpoint: Optional[pulumi.Input[str]] = None,
|
|
428
|
+
oauth_client_auth_method: Optional[pulumi.Input[str]] = None,
|
|
429
|
+
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
430
|
+
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
431
|
+
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
432
|
+
oauth_token_endpoint: Optional[pulumi.Input[str]] = None,
|
|
433
|
+
__props__=None):
|
|
434
|
+
"""
|
|
435
|
+
## Import
|
|
436
|
+
|
|
437
|
+
```sh
|
|
438
|
+
$ pulumi import snowflake:index/apiAuthenticationIntegrationWithJwtBearer:ApiAuthenticationIntegrationWithJwtBearer example '"<integration_name>"'
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
:param str resource_name: The name of the resource.
|
|
442
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
443
|
+
:param pulumi.Input[str] comment: Specifies a comment for the integration.
|
|
444
|
+
:param pulumi.Input[bool] enabled: Specifies whether this security integration is enabled or disabled.
|
|
445
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
446
|
+
:param pulumi.Input[int] oauth_access_token_validity: Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
447
|
+
:param pulumi.Input[str] oauth_authorization_endpoint: Specifies the URL for authenticating to the external service.
|
|
448
|
+
:param pulumi.Input[str] oauth_client_auth_method: Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
449
|
+
:param pulumi.Input[str] oauth_client_id: Specifies the client ID for the OAuth application in the external service.
|
|
450
|
+
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
451
|
+
:param pulumi.Input[str] oauth_token_endpoint: Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
452
|
+
"""
|
|
453
|
+
...
|
|
454
|
+
@overload
|
|
455
|
+
def __init__(__self__,
|
|
456
|
+
resource_name: str,
|
|
457
|
+
args: ApiAuthenticationIntegrationWithJwtBearerArgs,
|
|
458
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
459
|
+
"""
|
|
460
|
+
## Import
|
|
461
|
+
|
|
462
|
+
```sh
|
|
463
|
+
$ pulumi import snowflake:index/apiAuthenticationIntegrationWithJwtBearer:ApiAuthenticationIntegrationWithJwtBearer example '"<integration_name>"'
|
|
464
|
+
```
|
|
465
|
+
|
|
466
|
+
:param str resource_name: The name of the resource.
|
|
467
|
+
:param ApiAuthenticationIntegrationWithJwtBearerArgs args: The arguments to use to populate this resource's properties.
|
|
468
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
469
|
+
"""
|
|
470
|
+
...
|
|
471
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
472
|
+
resource_args, opts = _utilities.get_resource_args_opts(ApiAuthenticationIntegrationWithJwtBearerArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
473
|
+
if resource_args is not None:
|
|
474
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
475
|
+
else:
|
|
476
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
477
|
+
|
|
478
|
+
def _internal_init(__self__,
|
|
479
|
+
resource_name: str,
|
|
480
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
481
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
482
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
|
483
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
484
|
+
oauth_access_token_validity: Optional[pulumi.Input[int]] = None,
|
|
485
|
+
oauth_assertion_issuer: Optional[pulumi.Input[str]] = None,
|
|
486
|
+
oauth_authorization_endpoint: Optional[pulumi.Input[str]] = None,
|
|
487
|
+
oauth_client_auth_method: Optional[pulumi.Input[str]] = None,
|
|
488
|
+
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
489
|
+
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
490
|
+
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
491
|
+
oauth_token_endpoint: Optional[pulumi.Input[str]] = None,
|
|
492
|
+
__props__=None):
|
|
493
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
494
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
495
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
496
|
+
if opts.id is None:
|
|
497
|
+
if __props__ is not None:
|
|
498
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
499
|
+
__props__ = ApiAuthenticationIntegrationWithJwtBearerArgs.__new__(ApiAuthenticationIntegrationWithJwtBearerArgs)
|
|
500
|
+
|
|
501
|
+
__props__.__dict__["comment"] = comment
|
|
502
|
+
if enabled is None and not opts.urn:
|
|
503
|
+
raise TypeError("Missing required property 'enabled'")
|
|
504
|
+
__props__.__dict__["enabled"] = enabled
|
|
505
|
+
__props__.__dict__["name"] = name
|
|
506
|
+
__props__.__dict__["oauth_access_token_validity"] = oauth_access_token_validity
|
|
507
|
+
if oauth_assertion_issuer is None and not opts.urn:
|
|
508
|
+
raise TypeError("Missing required property 'oauth_assertion_issuer'")
|
|
509
|
+
__props__.__dict__["oauth_assertion_issuer"] = oauth_assertion_issuer
|
|
510
|
+
__props__.__dict__["oauth_authorization_endpoint"] = oauth_authorization_endpoint
|
|
511
|
+
__props__.__dict__["oauth_client_auth_method"] = oauth_client_auth_method
|
|
512
|
+
if oauth_client_id is None and not opts.urn:
|
|
513
|
+
raise TypeError("Missing required property 'oauth_client_id'")
|
|
514
|
+
__props__.__dict__["oauth_client_id"] = oauth_client_id
|
|
515
|
+
if oauth_client_secret is None and not opts.urn:
|
|
516
|
+
raise TypeError("Missing required property 'oauth_client_secret'")
|
|
517
|
+
__props__.__dict__["oauth_client_secret"] = oauth_client_secret
|
|
518
|
+
__props__.__dict__["oauth_refresh_token_validity"] = oauth_refresh_token_validity
|
|
519
|
+
__props__.__dict__["oauth_token_endpoint"] = oauth_token_endpoint
|
|
520
|
+
__props__.__dict__["describe_outputs"] = None
|
|
521
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
522
|
+
__props__.__dict__["show_outputs"] = None
|
|
523
|
+
super(ApiAuthenticationIntegrationWithJwtBearer, __self__).__init__(
|
|
524
|
+
'snowflake:index/apiAuthenticationIntegrationWithJwtBearer:ApiAuthenticationIntegrationWithJwtBearer',
|
|
525
|
+
resource_name,
|
|
526
|
+
__props__,
|
|
527
|
+
opts)
|
|
528
|
+
|
|
529
|
+
@staticmethod
|
|
530
|
+
def get(resource_name: str,
|
|
531
|
+
id: pulumi.Input[str],
|
|
532
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
533
|
+
comment: Optional[pulumi.Input[str]] = None,
|
|
534
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgs', 'ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgsDict']]]]] = None,
|
|
535
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
|
536
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
537
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
538
|
+
oauth_access_token_validity: Optional[pulumi.Input[int]] = None,
|
|
539
|
+
oauth_assertion_issuer: Optional[pulumi.Input[str]] = None,
|
|
540
|
+
oauth_authorization_endpoint: Optional[pulumi.Input[str]] = None,
|
|
541
|
+
oauth_client_auth_method: Optional[pulumi.Input[str]] = None,
|
|
542
|
+
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
543
|
+
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
544
|
+
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
545
|
+
oauth_token_endpoint: Optional[pulumi.Input[str]] = None,
|
|
546
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ApiAuthenticationIntegrationWithJwtBearerShowOutputArgs', 'ApiAuthenticationIntegrationWithJwtBearerShowOutputArgsDict']]]]] = None) -> 'ApiAuthenticationIntegrationWithJwtBearer':
|
|
547
|
+
"""
|
|
548
|
+
Get an existing ApiAuthenticationIntegrationWithJwtBearer resource's state with the given name, id, and optional extra
|
|
549
|
+
properties used to qualify the lookup.
|
|
550
|
+
|
|
551
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
552
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
553
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
554
|
+
:param pulumi.Input[str] comment: Specifies a comment for the integration.
|
|
555
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgs', 'ApiAuthenticationIntegrationWithJwtBearerDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
|
|
556
|
+
:param pulumi.Input[bool] enabled: Specifies whether this security integration is enabled or disabled.
|
|
557
|
+
: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).
|
|
558
|
+
:param pulumi.Input[str] name: Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
559
|
+
:param pulumi.Input[int] oauth_access_token_validity: Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
560
|
+
:param pulumi.Input[str] oauth_authorization_endpoint: Specifies the URL for authenticating to the external service.
|
|
561
|
+
:param pulumi.Input[str] oauth_client_auth_method: Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
562
|
+
:param pulumi.Input[str] oauth_client_id: Specifies the client ID for the OAuth application in the external service.
|
|
563
|
+
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
564
|
+
:param pulumi.Input[str] oauth_token_endpoint: Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
565
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ApiAuthenticationIntegrationWithJwtBearerShowOutputArgs', 'ApiAuthenticationIntegrationWithJwtBearerShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
|
|
566
|
+
"""
|
|
567
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
568
|
+
|
|
569
|
+
__props__ = _ApiAuthenticationIntegrationWithJwtBearerState.__new__(_ApiAuthenticationIntegrationWithJwtBearerState)
|
|
570
|
+
|
|
571
|
+
__props__.__dict__["comment"] = comment
|
|
572
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
573
|
+
__props__.__dict__["enabled"] = enabled
|
|
574
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
575
|
+
__props__.__dict__["name"] = name
|
|
576
|
+
__props__.__dict__["oauth_access_token_validity"] = oauth_access_token_validity
|
|
577
|
+
__props__.__dict__["oauth_assertion_issuer"] = oauth_assertion_issuer
|
|
578
|
+
__props__.__dict__["oauth_authorization_endpoint"] = oauth_authorization_endpoint
|
|
579
|
+
__props__.__dict__["oauth_client_auth_method"] = oauth_client_auth_method
|
|
580
|
+
__props__.__dict__["oauth_client_id"] = oauth_client_id
|
|
581
|
+
__props__.__dict__["oauth_client_secret"] = oauth_client_secret
|
|
582
|
+
__props__.__dict__["oauth_refresh_token_validity"] = oauth_refresh_token_validity
|
|
583
|
+
__props__.__dict__["oauth_token_endpoint"] = oauth_token_endpoint
|
|
584
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
585
|
+
return ApiAuthenticationIntegrationWithJwtBearer(resource_name, opts=opts, __props__=__props__)
|
|
586
|
+
|
|
587
|
+
@property
|
|
588
|
+
@pulumi.getter
|
|
589
|
+
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
590
|
+
"""
|
|
591
|
+
Specifies a comment for the integration.
|
|
592
|
+
"""
|
|
593
|
+
return pulumi.get(self, "comment")
|
|
594
|
+
|
|
595
|
+
@property
|
|
596
|
+
@pulumi.getter(name="describeOutputs")
|
|
597
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.ApiAuthenticationIntegrationWithJwtBearerDescribeOutput']]:
|
|
598
|
+
"""
|
|
599
|
+
Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
|
|
600
|
+
"""
|
|
601
|
+
return pulumi.get(self, "describe_outputs")
|
|
602
|
+
|
|
603
|
+
@property
|
|
604
|
+
@pulumi.getter
|
|
605
|
+
def enabled(self) -> pulumi.Output[bool]:
|
|
606
|
+
"""
|
|
607
|
+
Specifies whether this security integration is enabled or disabled.
|
|
608
|
+
"""
|
|
609
|
+
return pulumi.get(self, "enabled")
|
|
610
|
+
|
|
611
|
+
@property
|
|
612
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
613
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
614
|
+
"""
|
|
615
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
616
|
+
"""
|
|
617
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
618
|
+
|
|
619
|
+
@property
|
|
620
|
+
@pulumi.getter
|
|
621
|
+
def name(self) -> pulumi.Output[str]:
|
|
622
|
+
"""
|
|
623
|
+
Specifies the identifier (i.e. name) for the integration. This value must be unique in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
624
|
+
"""
|
|
625
|
+
return pulumi.get(self, "name")
|
|
626
|
+
|
|
627
|
+
@property
|
|
628
|
+
@pulumi.getter(name="oauthAccessTokenValidity")
|
|
629
|
+
def oauth_access_token_validity(self) -> pulumi.Output[Optional[int]]:
|
|
630
|
+
"""
|
|
631
|
+
Specifies the default lifetime of the OAuth access token (in seconds) issued by an OAuth server.
|
|
632
|
+
"""
|
|
633
|
+
return pulumi.get(self, "oauth_access_token_validity")
|
|
634
|
+
|
|
635
|
+
@property
|
|
636
|
+
@pulumi.getter(name="oauthAssertionIssuer")
|
|
637
|
+
def oauth_assertion_issuer(self) -> pulumi.Output[str]:
|
|
638
|
+
return pulumi.get(self, "oauth_assertion_issuer")
|
|
639
|
+
|
|
640
|
+
@property
|
|
641
|
+
@pulumi.getter(name="oauthAuthorizationEndpoint")
|
|
642
|
+
def oauth_authorization_endpoint(self) -> pulumi.Output[Optional[str]]:
|
|
643
|
+
"""
|
|
644
|
+
Specifies the URL for authenticating to the external service.
|
|
645
|
+
"""
|
|
646
|
+
return pulumi.get(self, "oauth_authorization_endpoint")
|
|
647
|
+
|
|
648
|
+
@property
|
|
649
|
+
@pulumi.getter(name="oauthClientAuthMethod")
|
|
650
|
+
def oauth_client_auth_method(self) -> pulumi.Output[Optional[str]]:
|
|
651
|
+
"""
|
|
652
|
+
Specifies that POST is used as the authentication method to the external service. If removed from the config, the resource is recreated. Valid values are (case-insensitive): `CLIENT_SECRET_POST`.
|
|
653
|
+
"""
|
|
654
|
+
return pulumi.get(self, "oauth_client_auth_method")
|
|
655
|
+
|
|
656
|
+
@property
|
|
657
|
+
@pulumi.getter(name="oauthClientId")
|
|
658
|
+
def oauth_client_id(self) -> pulumi.Output[str]:
|
|
659
|
+
"""
|
|
660
|
+
Specifies the client ID for the OAuth application in the external service.
|
|
661
|
+
"""
|
|
662
|
+
return pulumi.get(self, "oauth_client_id")
|
|
663
|
+
|
|
664
|
+
@property
|
|
665
|
+
@pulumi.getter(name="oauthClientSecret")
|
|
666
|
+
def oauth_client_secret(self) -> pulumi.Output[str]:
|
|
667
|
+
return pulumi.get(self, "oauth_client_secret")
|
|
668
|
+
|
|
669
|
+
@property
|
|
670
|
+
@pulumi.getter(name="oauthRefreshTokenValidity")
|
|
671
|
+
def oauth_refresh_token_validity(self) -> pulumi.Output[Optional[int]]:
|
|
672
|
+
"""
|
|
673
|
+
Specifies the value to determine the validity of the refresh token obtained from the OAuth server.
|
|
674
|
+
"""
|
|
675
|
+
return pulumi.get(self, "oauth_refresh_token_validity")
|
|
676
|
+
|
|
677
|
+
@property
|
|
678
|
+
@pulumi.getter(name="oauthTokenEndpoint")
|
|
679
|
+
def oauth_token_endpoint(self) -> pulumi.Output[Optional[str]]:
|
|
680
|
+
"""
|
|
681
|
+
Specifies the token endpoint used by the client to obtain an access token by presenting its authorization grant or refresh token. The token endpoint is used with every authorization grant except for the implicit grant type (since an access token is issued directly). If removed from the config, the resource is recreated.
|
|
682
|
+
"""
|
|
683
|
+
return pulumi.get(self, "oauth_token_endpoint")
|
|
684
|
+
|
|
685
|
+
@property
|
|
686
|
+
@pulumi.getter(name="showOutputs")
|
|
687
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.ApiAuthenticationIntegrationWithJwtBearerShowOutput']]:
|
|
688
|
+
"""
|
|
689
|
+
Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
|
|
690
|
+
"""
|
|
691
|
+
return pulumi.get(self, "show_outputs")
|
|
692
|
+
|