pulumi-webflow 0.0.0__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.
- pulumi_webflow/__init__.py +76 -0
- pulumi_webflow/_inputs.py +254 -0
- pulumi_webflow/_utilities.py +331 -0
- pulumi_webflow/asset.py +334 -0
- pulumi_webflow/asset_folder.py +225 -0
- pulumi_webflow/collection.py +235 -0
- pulumi_webflow/collection_field.py +322 -0
- pulumi_webflow/collection_item.py +283 -0
- pulumi_webflow/config/__init__.py +9 -0
- pulumi_webflow/config/__init__.pyi +21 -0
- pulumi_webflow/config/vars.py +29 -0
- pulumi_webflow/ecommerce_settings.py +146 -0
- pulumi_webflow/get_authorized_user.py +109 -0
- pulumi_webflow/get_token_info.py +82 -0
- pulumi_webflow/outputs.py +455 -0
- pulumi_webflow/page_content.py +172 -0
- pulumi_webflow/page_custom_code.py +178 -0
- pulumi_webflow/page_data.py +256 -0
- pulumi_webflow/provider.py +106 -0
- pulumi_webflow/pulumi-plugin.json +4 -0
- pulumi_webflow/py.typed +0 -0
- pulumi_webflow/redirect.py +226 -0
- pulumi_webflow/registered_script.py +295 -0
- pulumi_webflow/robots_txt.py +166 -0
- pulumi_webflow/site.py +361 -0
- pulumi_webflow/site_custom_code.py +178 -0
- pulumi_webflow/user.py +284 -0
- pulumi_webflow/webhook.py +235 -0
- pulumi_webflow-0.0.0.dist-info/METADATA +602 -0
- pulumi_webflow-0.0.0.dist-info/RECORD +32 -0
- pulumi_webflow-0.0.0.dist-info/WHEEL +5 -0
- pulumi_webflow-0.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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__ = ['SiteCustomCodeArgs', 'SiteCustomCode']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class SiteCustomCodeArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
scripts: pulumi.Input[Sequence[pulumi.Input['CustomScriptArgsArgs']]],
|
|
25
|
+
site_id: pulumi.Input[_builtins.str]):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a SiteCustomCode resource.
|
|
28
|
+
:param pulumi.Input[Sequence[pulumi.Input['CustomScriptArgsArgs']]] scripts: A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.
|
|
29
|
+
:param pulumi.Input[_builtins.str] site_id: The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
30
|
+
"""
|
|
31
|
+
pulumi.set(__self__, "scripts", scripts)
|
|
32
|
+
pulumi.set(__self__, "site_id", site_id)
|
|
33
|
+
|
|
34
|
+
@_builtins.property
|
|
35
|
+
@pulumi.getter
|
|
36
|
+
def scripts(self) -> pulumi.Input[Sequence[pulumi.Input['CustomScriptArgsArgs']]]:
|
|
37
|
+
"""
|
|
38
|
+
A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.
|
|
39
|
+
"""
|
|
40
|
+
return pulumi.get(self, "scripts")
|
|
41
|
+
|
|
42
|
+
@scripts.setter
|
|
43
|
+
def scripts(self, value: pulumi.Input[Sequence[pulumi.Input['CustomScriptArgsArgs']]]):
|
|
44
|
+
pulumi.set(self, "scripts", value)
|
|
45
|
+
|
|
46
|
+
@_builtins.property
|
|
47
|
+
@pulumi.getter(name="siteId")
|
|
48
|
+
def site_id(self) -> pulumi.Input[_builtins.str]:
|
|
49
|
+
"""
|
|
50
|
+
The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
51
|
+
"""
|
|
52
|
+
return pulumi.get(self, "site_id")
|
|
53
|
+
|
|
54
|
+
@site_id.setter
|
|
55
|
+
def site_id(self, value: pulumi.Input[_builtins.str]):
|
|
56
|
+
pulumi.set(self, "site_id", value)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@pulumi.type_token("webflow:index:SiteCustomCode")
|
|
60
|
+
class SiteCustomCode(pulumi.CustomResource):
|
|
61
|
+
@overload
|
|
62
|
+
def __init__(__self__,
|
|
63
|
+
resource_name: str,
|
|
64
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
65
|
+
scripts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CustomScriptArgsArgs', 'CustomScriptArgsArgsDict']]]]] = None,
|
|
66
|
+
site_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
67
|
+
__props__=None):
|
|
68
|
+
"""
|
|
69
|
+
Manages custom JavaScript code applied to a Webflow site. This resource allows you to apply registered custom scripts to a site and control where they are placed (header or footer). Custom scripts must be registered to the site first via the RegisterScript resource.
|
|
70
|
+
|
|
71
|
+
:param str resource_name: The name of the resource.
|
|
72
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
73
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CustomScriptArgsArgs', 'CustomScriptArgsArgsDict']]]] scripts: A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.
|
|
74
|
+
:param pulumi.Input[_builtins.str] site_id: The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
75
|
+
"""
|
|
76
|
+
...
|
|
77
|
+
@overload
|
|
78
|
+
def __init__(__self__,
|
|
79
|
+
resource_name: str,
|
|
80
|
+
args: SiteCustomCodeArgs,
|
|
81
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
82
|
+
"""
|
|
83
|
+
Manages custom JavaScript code applied to a Webflow site. This resource allows you to apply registered custom scripts to a site and control where they are placed (header or footer). Custom scripts must be registered to the site first via the RegisterScript resource.
|
|
84
|
+
|
|
85
|
+
:param str resource_name: The name of the resource.
|
|
86
|
+
:param SiteCustomCodeArgs args: The arguments to use to populate this resource's properties.
|
|
87
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
88
|
+
"""
|
|
89
|
+
...
|
|
90
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
91
|
+
resource_args, opts = _utilities.get_resource_args_opts(SiteCustomCodeArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
92
|
+
if resource_args is not None:
|
|
93
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
94
|
+
else:
|
|
95
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
96
|
+
|
|
97
|
+
def _internal_init(__self__,
|
|
98
|
+
resource_name: str,
|
|
99
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
100
|
+
scripts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CustomScriptArgsArgs', 'CustomScriptArgsArgsDict']]]]] = None,
|
|
101
|
+
site_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
102
|
+
__props__=None):
|
|
103
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
104
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
105
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
106
|
+
if opts.id is None:
|
|
107
|
+
if __props__ is not None:
|
|
108
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
109
|
+
__props__ = SiteCustomCodeArgs.__new__(SiteCustomCodeArgs)
|
|
110
|
+
|
|
111
|
+
if scripts is None and not opts.urn:
|
|
112
|
+
raise TypeError("Missing required property 'scripts'")
|
|
113
|
+
__props__.__dict__["scripts"] = scripts
|
|
114
|
+
if site_id is None and not opts.urn:
|
|
115
|
+
raise TypeError("Missing required property 'site_id'")
|
|
116
|
+
__props__.__dict__["site_id"] = site_id
|
|
117
|
+
__props__.__dict__["created_on"] = None
|
|
118
|
+
__props__.__dict__["last_updated"] = None
|
|
119
|
+
super(SiteCustomCode, __self__).__init__(
|
|
120
|
+
'webflow:index:SiteCustomCode',
|
|
121
|
+
resource_name,
|
|
122
|
+
__props__,
|
|
123
|
+
opts)
|
|
124
|
+
|
|
125
|
+
@staticmethod
|
|
126
|
+
def get(resource_name: str,
|
|
127
|
+
id: pulumi.Input[str],
|
|
128
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'SiteCustomCode':
|
|
129
|
+
"""
|
|
130
|
+
Get an existing SiteCustomCode resource's state with the given name, id, and optional extra
|
|
131
|
+
properties used to qualify the lookup.
|
|
132
|
+
|
|
133
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
134
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
135
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
136
|
+
"""
|
|
137
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
138
|
+
|
|
139
|
+
__props__ = SiteCustomCodeArgs.__new__(SiteCustomCodeArgs)
|
|
140
|
+
|
|
141
|
+
__props__.__dict__["created_on"] = None
|
|
142
|
+
__props__.__dict__["last_updated"] = None
|
|
143
|
+
__props__.__dict__["scripts"] = None
|
|
144
|
+
__props__.__dict__["site_id"] = None
|
|
145
|
+
return SiteCustomCode(resource_name, opts=opts, __props__=__props__)
|
|
146
|
+
|
|
147
|
+
@_builtins.property
|
|
148
|
+
@pulumi.getter(name="createdOn")
|
|
149
|
+
def created_on(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
150
|
+
"""
|
|
151
|
+
The timestamp when the site's custom code was first created (RFC3339 format). This is automatically set when custom code is first applied and is read-only.
|
|
152
|
+
"""
|
|
153
|
+
return pulumi.get(self, "created_on")
|
|
154
|
+
|
|
155
|
+
@_builtins.property
|
|
156
|
+
@pulumi.getter(name="lastUpdated")
|
|
157
|
+
def last_updated(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
158
|
+
"""
|
|
159
|
+
The timestamp when the site's custom code was last updated (RFC3339 format). This is automatically set and is read-only.
|
|
160
|
+
"""
|
|
161
|
+
return pulumi.get(self, "last_updated")
|
|
162
|
+
|
|
163
|
+
@_builtins.property
|
|
164
|
+
@pulumi.getter
|
|
165
|
+
def scripts(self) -> pulumi.Output[Sequence['outputs.CustomScriptArgs']]:
|
|
166
|
+
"""
|
|
167
|
+
A list of custom scripts to apply to the site. Each script must be registered to the site first. To remove individual scripts, simply exclude them from this list on the next update. If you have multiple scripts your app manages, ensure they are always included in this list.
|
|
168
|
+
"""
|
|
169
|
+
return pulumi.get(self, "scripts")
|
|
170
|
+
|
|
171
|
+
@_builtins.property
|
|
172
|
+
@pulumi.getter(name="siteId")
|
|
173
|
+
def site_id(self) -> pulumi.Output[_builtins.str]:
|
|
174
|
+
"""
|
|
175
|
+
The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "site_id")
|
|
178
|
+
|
pulumi_webflow/user.py
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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
|
+
|
|
17
|
+
__all__ = ['UserArgs', 'User']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class UserArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
email: pulumi.Input[_builtins.str],
|
|
23
|
+
site_id: pulumi.Input[_builtins.str],
|
|
24
|
+
access_groups: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
25
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a User resource.
|
|
28
|
+
:param pulumi.Input[_builtins.str] email: The email address of the user to invite. The user will receive an invitation email at this address. IMPORTANT: The email cannot be changed after the user is created. Changing the email will require replacing the resource (delete + recreate).
|
|
29
|
+
:param pulumi.Input[_builtins.str] site_id: The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
30
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] access_groups: Optional list of access group slugs to assign to the user. Access groups control what content the user can access. Groups are assigned as type 'admin' (assigned via API or designer). Example: ['premium-members', 'beta-testers']. Access group slugs can be found in the Webflow dashboard under Users > Access Groups.
|
|
31
|
+
:param pulumi.Input[_builtins.str] name: Optional display name for the user. This will be shown in the Webflow dashboard and can be used in site personalization.
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "email", email)
|
|
34
|
+
pulumi.set(__self__, "site_id", site_id)
|
|
35
|
+
if access_groups is not None:
|
|
36
|
+
pulumi.set(__self__, "access_groups", access_groups)
|
|
37
|
+
if name is not None:
|
|
38
|
+
pulumi.set(__self__, "name", name)
|
|
39
|
+
|
|
40
|
+
@_builtins.property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def email(self) -> pulumi.Input[_builtins.str]:
|
|
43
|
+
"""
|
|
44
|
+
The email address of the user to invite. The user will receive an invitation email at this address. IMPORTANT: The email cannot be changed after the user is created. Changing the email will require replacing the resource (delete + recreate).
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "email")
|
|
47
|
+
|
|
48
|
+
@email.setter
|
|
49
|
+
def email(self, value: pulumi.Input[_builtins.str]):
|
|
50
|
+
pulumi.set(self, "email", value)
|
|
51
|
+
|
|
52
|
+
@_builtins.property
|
|
53
|
+
@pulumi.getter(name="siteId")
|
|
54
|
+
def site_id(self) -> pulumi.Input[_builtins.str]:
|
|
55
|
+
"""
|
|
56
|
+
The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
57
|
+
"""
|
|
58
|
+
return pulumi.get(self, "site_id")
|
|
59
|
+
|
|
60
|
+
@site_id.setter
|
|
61
|
+
def site_id(self, value: pulumi.Input[_builtins.str]):
|
|
62
|
+
pulumi.set(self, "site_id", value)
|
|
63
|
+
|
|
64
|
+
@_builtins.property
|
|
65
|
+
@pulumi.getter(name="accessGroups")
|
|
66
|
+
def access_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
67
|
+
"""
|
|
68
|
+
Optional list of access group slugs to assign to the user. Access groups control what content the user can access. Groups are assigned as type 'admin' (assigned via API or designer). Example: ['premium-members', 'beta-testers']. Access group slugs can be found in the Webflow dashboard under Users > Access Groups.
|
|
69
|
+
"""
|
|
70
|
+
return pulumi.get(self, "access_groups")
|
|
71
|
+
|
|
72
|
+
@access_groups.setter
|
|
73
|
+
def access_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
74
|
+
pulumi.set(self, "access_groups", value)
|
|
75
|
+
|
|
76
|
+
@_builtins.property
|
|
77
|
+
@pulumi.getter
|
|
78
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
79
|
+
"""
|
|
80
|
+
Optional display name for the user. This will be shown in the Webflow dashboard and can be used in site personalization.
|
|
81
|
+
"""
|
|
82
|
+
return pulumi.get(self, "name")
|
|
83
|
+
|
|
84
|
+
@name.setter
|
|
85
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
86
|
+
pulumi.set(self, "name", value)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@pulumi.type_token("webflow:index:User")
|
|
90
|
+
class User(pulumi.CustomResource):
|
|
91
|
+
@overload
|
|
92
|
+
def __init__(__self__,
|
|
93
|
+
resource_name: str,
|
|
94
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
95
|
+
access_groups: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
96
|
+
email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
98
|
+
site_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
99
|
+
__props__=None):
|
|
100
|
+
"""
|
|
101
|
+
Manages users for a Webflow site. This resource allows you to invite users to your site with specified access groups. Users will receive an invitation email and must accept it to access paid content. Note: The user's email cannot be changed after creation.
|
|
102
|
+
|
|
103
|
+
:param str resource_name: The name of the resource.
|
|
104
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
105
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] access_groups: Optional list of access group slugs to assign to the user. Access groups control what content the user can access. Groups are assigned as type 'admin' (assigned via API or designer). Example: ['premium-members', 'beta-testers']. Access group slugs can be found in the Webflow dashboard under Users > Access Groups.
|
|
106
|
+
:param pulumi.Input[_builtins.str] email: The email address of the user to invite. The user will receive an invitation email at this address. IMPORTANT: The email cannot be changed after the user is created. Changing the email will require replacing the resource (delete + recreate).
|
|
107
|
+
:param pulumi.Input[_builtins.str] name: Optional display name for the user. This will be shown in the Webflow dashboard and can be used in site personalization.
|
|
108
|
+
:param pulumi.Input[_builtins.str] site_id: The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
109
|
+
"""
|
|
110
|
+
...
|
|
111
|
+
@overload
|
|
112
|
+
def __init__(__self__,
|
|
113
|
+
resource_name: str,
|
|
114
|
+
args: UserArgs,
|
|
115
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
116
|
+
"""
|
|
117
|
+
Manages users for a Webflow site. This resource allows you to invite users to your site with specified access groups. Users will receive an invitation email and must accept it to access paid content. Note: The user's email cannot be changed after creation.
|
|
118
|
+
|
|
119
|
+
:param str resource_name: The name of the resource.
|
|
120
|
+
:param UserArgs args: The arguments to use to populate this resource's properties.
|
|
121
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
122
|
+
"""
|
|
123
|
+
...
|
|
124
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
125
|
+
resource_args, opts = _utilities.get_resource_args_opts(UserArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
126
|
+
if resource_args is not None:
|
|
127
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
128
|
+
else:
|
|
129
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
130
|
+
|
|
131
|
+
def _internal_init(__self__,
|
|
132
|
+
resource_name: str,
|
|
133
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
134
|
+
access_groups: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
135
|
+
email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
136
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
137
|
+
site_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
138
|
+
__props__=None):
|
|
139
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
140
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
141
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
142
|
+
if opts.id is None:
|
|
143
|
+
if __props__ is not None:
|
|
144
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
145
|
+
__props__ = UserArgs.__new__(UserArgs)
|
|
146
|
+
|
|
147
|
+
__props__.__dict__["access_groups"] = access_groups
|
|
148
|
+
if email is None and not opts.urn:
|
|
149
|
+
raise TypeError("Missing required property 'email'")
|
|
150
|
+
__props__.__dict__["email"] = email
|
|
151
|
+
__props__.__dict__["name"] = name
|
|
152
|
+
if site_id is None and not opts.urn:
|
|
153
|
+
raise TypeError("Missing required property 'site_id'")
|
|
154
|
+
__props__.__dict__["site_id"] = site_id
|
|
155
|
+
__props__.__dict__["created_on"] = None
|
|
156
|
+
__props__.__dict__["invited_on"] = None
|
|
157
|
+
__props__.__dict__["is_email_verified"] = None
|
|
158
|
+
__props__.__dict__["last_login"] = None
|
|
159
|
+
__props__.__dict__["last_updated"] = None
|
|
160
|
+
__props__.__dict__["status"] = None
|
|
161
|
+
__props__.__dict__["user_id"] = None
|
|
162
|
+
super(User, __self__).__init__(
|
|
163
|
+
'webflow:index:User',
|
|
164
|
+
resource_name,
|
|
165
|
+
__props__,
|
|
166
|
+
opts)
|
|
167
|
+
|
|
168
|
+
@staticmethod
|
|
169
|
+
def get(resource_name: str,
|
|
170
|
+
id: pulumi.Input[str],
|
|
171
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'User':
|
|
172
|
+
"""
|
|
173
|
+
Get an existing User resource's state with the given name, id, and optional extra
|
|
174
|
+
properties used to qualify the lookup.
|
|
175
|
+
|
|
176
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
177
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
178
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
179
|
+
"""
|
|
180
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
181
|
+
|
|
182
|
+
__props__ = UserArgs.__new__(UserArgs)
|
|
183
|
+
|
|
184
|
+
__props__.__dict__["access_groups"] = None
|
|
185
|
+
__props__.__dict__["created_on"] = None
|
|
186
|
+
__props__.__dict__["email"] = None
|
|
187
|
+
__props__.__dict__["invited_on"] = None
|
|
188
|
+
__props__.__dict__["is_email_verified"] = None
|
|
189
|
+
__props__.__dict__["last_login"] = None
|
|
190
|
+
__props__.__dict__["last_updated"] = None
|
|
191
|
+
__props__.__dict__["name"] = None
|
|
192
|
+
__props__.__dict__["site_id"] = None
|
|
193
|
+
__props__.__dict__["status"] = None
|
|
194
|
+
__props__.__dict__["user_id"] = None
|
|
195
|
+
return User(resource_name, opts=opts, __props__=__props__)
|
|
196
|
+
|
|
197
|
+
@_builtins.property
|
|
198
|
+
@pulumi.getter(name="accessGroups")
|
|
199
|
+
def access_groups(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
200
|
+
"""
|
|
201
|
+
Optional list of access group slugs to assign to the user. Access groups control what content the user can access. Groups are assigned as type 'admin' (assigned via API or designer). Example: ['premium-members', 'beta-testers']. Access group slugs can be found in the Webflow dashboard under Users > Access Groups.
|
|
202
|
+
"""
|
|
203
|
+
return pulumi.get(self, "access_groups")
|
|
204
|
+
|
|
205
|
+
@_builtins.property
|
|
206
|
+
@pulumi.getter(name="createdOn")
|
|
207
|
+
def created_on(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
208
|
+
"""
|
|
209
|
+
The timestamp when the user was created (RFC3339 format). This is automatically set and is read-only.
|
|
210
|
+
"""
|
|
211
|
+
return pulumi.get(self, "created_on")
|
|
212
|
+
|
|
213
|
+
@_builtins.property
|
|
214
|
+
@pulumi.getter
|
|
215
|
+
def email(self) -> pulumi.Output[_builtins.str]:
|
|
216
|
+
"""
|
|
217
|
+
The email address of the user to invite. The user will receive an invitation email at this address. IMPORTANT: The email cannot be changed after the user is created. Changing the email will require replacing the resource (delete + recreate).
|
|
218
|
+
"""
|
|
219
|
+
return pulumi.get(self, "email")
|
|
220
|
+
|
|
221
|
+
@_builtins.property
|
|
222
|
+
@pulumi.getter(name="invitedOn")
|
|
223
|
+
def invited_on(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
224
|
+
"""
|
|
225
|
+
The timestamp when the user was invited (RFC3339 format). This is automatically set and is read-only.
|
|
226
|
+
"""
|
|
227
|
+
return pulumi.get(self, "invited_on")
|
|
228
|
+
|
|
229
|
+
@_builtins.property
|
|
230
|
+
@pulumi.getter(name="isEmailVerified")
|
|
231
|
+
def is_email_verified(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
232
|
+
"""
|
|
233
|
+
Indicates whether the user has verified their email address. This is read-only and set by Webflow when the user verifies their email.
|
|
234
|
+
"""
|
|
235
|
+
return pulumi.get(self, "is_email_verified")
|
|
236
|
+
|
|
237
|
+
@_builtins.property
|
|
238
|
+
@pulumi.getter(name="lastLogin")
|
|
239
|
+
def last_login(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
240
|
+
"""
|
|
241
|
+
The timestamp when the user last logged in (RFC3339 format). This is read-only.
|
|
242
|
+
"""
|
|
243
|
+
return pulumi.get(self, "last_login")
|
|
244
|
+
|
|
245
|
+
@_builtins.property
|
|
246
|
+
@pulumi.getter(name="lastUpdated")
|
|
247
|
+
def last_updated(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
248
|
+
"""
|
|
249
|
+
The timestamp when the user was last updated (RFC3339 format). This is read-only.
|
|
250
|
+
"""
|
|
251
|
+
return pulumi.get(self, "last_updated")
|
|
252
|
+
|
|
253
|
+
@_builtins.property
|
|
254
|
+
@pulumi.getter
|
|
255
|
+
def name(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
256
|
+
"""
|
|
257
|
+
Optional display name for the user. This will be shown in the Webflow dashboard and can be used in site personalization.
|
|
258
|
+
"""
|
|
259
|
+
return pulumi.get(self, "name")
|
|
260
|
+
|
|
261
|
+
@_builtins.property
|
|
262
|
+
@pulumi.getter(name="siteId")
|
|
263
|
+
def site_id(self) -> pulumi.Output[_builtins.str]:
|
|
264
|
+
"""
|
|
265
|
+
The Webflow site ID (24-character lowercase hexadecimal string, e.g., '5f0c8c9e1c9d440000e8d8c3'). You can find your site ID in the Webflow dashboard under Site Settings. This field will be validated before making any API calls.
|
|
266
|
+
"""
|
|
267
|
+
return pulumi.get(self, "site_id")
|
|
268
|
+
|
|
269
|
+
@_builtins.property
|
|
270
|
+
@pulumi.getter
|
|
271
|
+
def status(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
272
|
+
"""
|
|
273
|
+
The status of the user. Possible values: 'invited' (invitation sent but not accepted), 'verified' (email verified), 'unverified' (registered but email not verified). This is read-only.
|
|
274
|
+
"""
|
|
275
|
+
return pulumi.get(self, "status")
|
|
276
|
+
|
|
277
|
+
@_builtins.property
|
|
278
|
+
@pulumi.getter(name="userId")
|
|
279
|
+
def user_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
280
|
+
"""
|
|
281
|
+
The Webflow-assigned unique identifier for this user. This is automatically assigned when the user is created and is read-only.
|
|
282
|
+
"""
|
|
283
|
+
return pulumi.get(self, "user_id")
|
|
284
|
+
|