pulumi-akamai 8.2.0a1750223500__py3-none-any.whl → 9.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.

Potentially problematic release.


This version of pulumi-akamai might be problematic. Click here for more details.

@@ -0,0 +1,296 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from . import _utilities
17
+ from . import outputs
18
+
19
+ __all__ = [
20
+ 'GetIamApiClientResult',
21
+ 'AwaitableGetIamApiClientResult',
22
+ 'get_iam_api_client',
23
+ 'get_iam_api_client_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetIamApiClientResult:
28
+ """
29
+ A collection of values returned by getIamApiClient.
30
+ """
31
+ def __init__(__self__, access_token=None, actions=None, active_credential_count=None, allow_account_switch=None, api_access=None, authorized_users=None, base_url=None, can_auto_create_credential=None, client_description=None, client_id=None, client_name=None, client_type=None, created_by=None, created_date=None, credentials=None, group_access=None, id=None, ip_acl=None, is_locked=None, notification_emails=None, purge_options=None):
32
+ if access_token and not isinstance(access_token, str):
33
+ raise TypeError("Expected argument 'access_token' to be a str")
34
+ pulumi.set(__self__, "access_token", access_token)
35
+ if actions and not isinstance(actions, dict):
36
+ raise TypeError("Expected argument 'actions' to be a dict")
37
+ pulumi.set(__self__, "actions", actions)
38
+ if active_credential_count and not isinstance(active_credential_count, int):
39
+ raise TypeError("Expected argument 'active_credential_count' to be a int")
40
+ pulumi.set(__self__, "active_credential_count", active_credential_count)
41
+ if allow_account_switch and not isinstance(allow_account_switch, bool):
42
+ raise TypeError("Expected argument 'allow_account_switch' to be a bool")
43
+ pulumi.set(__self__, "allow_account_switch", allow_account_switch)
44
+ if api_access and not isinstance(api_access, dict):
45
+ raise TypeError("Expected argument 'api_access' to be a dict")
46
+ pulumi.set(__self__, "api_access", api_access)
47
+ if authorized_users and not isinstance(authorized_users, list):
48
+ raise TypeError("Expected argument 'authorized_users' to be a list")
49
+ pulumi.set(__self__, "authorized_users", authorized_users)
50
+ if base_url and not isinstance(base_url, str):
51
+ raise TypeError("Expected argument 'base_url' to be a str")
52
+ pulumi.set(__self__, "base_url", base_url)
53
+ if can_auto_create_credential and not isinstance(can_auto_create_credential, bool):
54
+ raise TypeError("Expected argument 'can_auto_create_credential' to be a bool")
55
+ pulumi.set(__self__, "can_auto_create_credential", can_auto_create_credential)
56
+ if client_description and not isinstance(client_description, str):
57
+ raise TypeError("Expected argument 'client_description' to be a str")
58
+ pulumi.set(__self__, "client_description", client_description)
59
+ if client_id and not isinstance(client_id, str):
60
+ raise TypeError("Expected argument 'client_id' to be a str")
61
+ pulumi.set(__self__, "client_id", client_id)
62
+ if client_name and not isinstance(client_name, str):
63
+ raise TypeError("Expected argument 'client_name' to be a str")
64
+ pulumi.set(__self__, "client_name", client_name)
65
+ if client_type and not isinstance(client_type, str):
66
+ raise TypeError("Expected argument 'client_type' to be a str")
67
+ pulumi.set(__self__, "client_type", client_type)
68
+ if created_by and not isinstance(created_by, str):
69
+ raise TypeError("Expected argument 'created_by' to be a str")
70
+ pulumi.set(__self__, "created_by", created_by)
71
+ if created_date and not isinstance(created_date, str):
72
+ raise TypeError("Expected argument 'created_date' to be a str")
73
+ pulumi.set(__self__, "created_date", created_date)
74
+ if credentials and not isinstance(credentials, list):
75
+ raise TypeError("Expected argument 'credentials' to be a list")
76
+ pulumi.set(__self__, "credentials", credentials)
77
+ if group_access and not isinstance(group_access, dict):
78
+ raise TypeError("Expected argument 'group_access' to be a dict")
79
+ pulumi.set(__self__, "group_access", group_access)
80
+ if id and not isinstance(id, str):
81
+ raise TypeError("Expected argument 'id' to be a str")
82
+ pulumi.set(__self__, "id", id)
83
+ if ip_acl and not isinstance(ip_acl, dict):
84
+ raise TypeError("Expected argument 'ip_acl' to be a dict")
85
+ pulumi.set(__self__, "ip_acl", ip_acl)
86
+ if is_locked and not isinstance(is_locked, bool):
87
+ raise TypeError("Expected argument 'is_locked' to be a bool")
88
+ pulumi.set(__self__, "is_locked", is_locked)
89
+ if notification_emails and not isinstance(notification_emails, list):
90
+ raise TypeError("Expected argument 'notification_emails' to be a list")
91
+ pulumi.set(__self__, "notification_emails", notification_emails)
92
+ if purge_options and not isinstance(purge_options, dict):
93
+ raise TypeError("Expected argument 'purge_options' to be a dict")
94
+ pulumi.set(__self__, "purge_options", purge_options)
95
+
96
+ @property
97
+ @pulumi.getter(name="accessToken")
98
+ def access_token(self) -> builtins.str:
99
+ return pulumi.get(self, "access_token")
100
+
101
+ @property
102
+ @pulumi.getter
103
+ def actions(self) -> 'outputs.GetIamApiClientActionsResult':
104
+ return pulumi.get(self, "actions")
105
+
106
+ @property
107
+ @pulumi.getter(name="activeCredentialCount")
108
+ def active_credential_count(self) -> builtins.int:
109
+ return pulumi.get(self, "active_credential_count")
110
+
111
+ @property
112
+ @pulumi.getter(name="allowAccountSwitch")
113
+ def allow_account_switch(self) -> builtins.bool:
114
+ return pulumi.get(self, "allow_account_switch")
115
+
116
+ @property
117
+ @pulumi.getter(name="apiAccess")
118
+ def api_access(self) -> 'outputs.GetIamApiClientApiAccessResult':
119
+ return pulumi.get(self, "api_access")
120
+
121
+ @property
122
+ @pulumi.getter(name="authorizedUsers")
123
+ def authorized_users(self) -> Sequence[builtins.str]:
124
+ return pulumi.get(self, "authorized_users")
125
+
126
+ @property
127
+ @pulumi.getter(name="baseUrl")
128
+ def base_url(self) -> builtins.str:
129
+ return pulumi.get(self, "base_url")
130
+
131
+ @property
132
+ @pulumi.getter(name="canAutoCreateCredential")
133
+ def can_auto_create_credential(self) -> builtins.bool:
134
+ return pulumi.get(self, "can_auto_create_credential")
135
+
136
+ @property
137
+ @pulumi.getter(name="clientDescription")
138
+ def client_description(self) -> builtins.str:
139
+ return pulumi.get(self, "client_description")
140
+
141
+ @property
142
+ @pulumi.getter(name="clientId")
143
+ def client_id(self) -> Optional[builtins.str]:
144
+ return pulumi.get(self, "client_id")
145
+
146
+ @property
147
+ @pulumi.getter(name="clientName")
148
+ def client_name(self) -> builtins.str:
149
+ return pulumi.get(self, "client_name")
150
+
151
+ @property
152
+ @pulumi.getter(name="clientType")
153
+ def client_type(self) -> builtins.str:
154
+ return pulumi.get(self, "client_type")
155
+
156
+ @property
157
+ @pulumi.getter(name="createdBy")
158
+ def created_by(self) -> builtins.str:
159
+ return pulumi.get(self, "created_by")
160
+
161
+ @property
162
+ @pulumi.getter(name="createdDate")
163
+ def created_date(self) -> builtins.str:
164
+ return pulumi.get(self, "created_date")
165
+
166
+ @property
167
+ @pulumi.getter
168
+ def credentials(self) -> Sequence['outputs.GetIamApiClientCredentialResult']:
169
+ return pulumi.get(self, "credentials")
170
+
171
+ @property
172
+ @pulumi.getter(name="groupAccess")
173
+ def group_access(self) -> 'outputs.GetIamApiClientGroupAccessResult':
174
+ return pulumi.get(self, "group_access")
175
+
176
+ @property
177
+ @pulumi.getter
178
+ def id(self) -> builtins.str:
179
+ """
180
+ The provider-assigned unique ID for this managed resource.
181
+ """
182
+ return pulumi.get(self, "id")
183
+
184
+ @property
185
+ @pulumi.getter(name="ipAcl")
186
+ def ip_acl(self) -> 'outputs.GetIamApiClientIpAclResult':
187
+ return pulumi.get(self, "ip_acl")
188
+
189
+ @property
190
+ @pulumi.getter(name="isLocked")
191
+ def is_locked(self) -> builtins.bool:
192
+ return pulumi.get(self, "is_locked")
193
+
194
+ @property
195
+ @pulumi.getter(name="notificationEmails")
196
+ def notification_emails(self) -> Sequence[builtins.str]:
197
+ return pulumi.get(self, "notification_emails")
198
+
199
+ @property
200
+ @pulumi.getter(name="purgeOptions")
201
+ def purge_options(self) -> 'outputs.GetIamApiClientPurgeOptionsResult':
202
+ return pulumi.get(self, "purge_options")
203
+
204
+
205
+ class AwaitableGetIamApiClientResult(GetIamApiClientResult):
206
+ # pylint: disable=using-constant-test
207
+ def __await__(self):
208
+ if False:
209
+ yield self
210
+ return GetIamApiClientResult(
211
+ access_token=self.access_token,
212
+ actions=self.actions,
213
+ active_credential_count=self.active_credential_count,
214
+ allow_account_switch=self.allow_account_switch,
215
+ api_access=self.api_access,
216
+ authorized_users=self.authorized_users,
217
+ base_url=self.base_url,
218
+ can_auto_create_credential=self.can_auto_create_credential,
219
+ client_description=self.client_description,
220
+ client_id=self.client_id,
221
+ client_name=self.client_name,
222
+ client_type=self.client_type,
223
+ created_by=self.created_by,
224
+ created_date=self.created_date,
225
+ credentials=self.credentials,
226
+ group_access=self.group_access,
227
+ id=self.id,
228
+ ip_acl=self.ip_acl,
229
+ is_locked=self.is_locked,
230
+ notification_emails=self.notification_emails,
231
+ purge_options=self.purge_options)
232
+
233
+
234
+ def get_iam_api_client(client_id: Optional[builtins.str] = None,
235
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamApiClientResult:
236
+ """
237
+ Use this data source to access information about an existing resource.
238
+ """
239
+ __args__ = dict()
240
+ __args__['clientId'] = client_id
241
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
242
+ __ret__ = pulumi.runtime.invoke('akamai:index/getIamApiClient:getIamApiClient', __args__, opts=opts, typ=GetIamApiClientResult).value
243
+
244
+ return AwaitableGetIamApiClientResult(
245
+ access_token=pulumi.get(__ret__, 'access_token'),
246
+ actions=pulumi.get(__ret__, 'actions'),
247
+ active_credential_count=pulumi.get(__ret__, 'active_credential_count'),
248
+ allow_account_switch=pulumi.get(__ret__, 'allow_account_switch'),
249
+ api_access=pulumi.get(__ret__, 'api_access'),
250
+ authorized_users=pulumi.get(__ret__, 'authorized_users'),
251
+ base_url=pulumi.get(__ret__, 'base_url'),
252
+ can_auto_create_credential=pulumi.get(__ret__, 'can_auto_create_credential'),
253
+ client_description=pulumi.get(__ret__, 'client_description'),
254
+ client_id=pulumi.get(__ret__, 'client_id'),
255
+ client_name=pulumi.get(__ret__, 'client_name'),
256
+ client_type=pulumi.get(__ret__, 'client_type'),
257
+ created_by=pulumi.get(__ret__, 'created_by'),
258
+ created_date=pulumi.get(__ret__, 'created_date'),
259
+ credentials=pulumi.get(__ret__, 'credentials'),
260
+ group_access=pulumi.get(__ret__, 'group_access'),
261
+ id=pulumi.get(__ret__, 'id'),
262
+ ip_acl=pulumi.get(__ret__, 'ip_acl'),
263
+ is_locked=pulumi.get(__ret__, 'is_locked'),
264
+ notification_emails=pulumi.get(__ret__, 'notification_emails'),
265
+ purge_options=pulumi.get(__ret__, 'purge_options'))
266
+ def get_iam_api_client_output(client_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
267
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetIamApiClientResult]:
268
+ """
269
+ Use this data source to access information about an existing resource.
270
+ """
271
+ __args__ = dict()
272
+ __args__['clientId'] = client_id
273
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
274
+ __ret__ = pulumi.runtime.invoke_output('akamai:index/getIamApiClient:getIamApiClient', __args__, opts=opts, typ=GetIamApiClientResult)
275
+ return __ret__.apply(lambda __response__: GetIamApiClientResult(
276
+ access_token=pulumi.get(__response__, 'access_token'),
277
+ actions=pulumi.get(__response__, 'actions'),
278
+ active_credential_count=pulumi.get(__response__, 'active_credential_count'),
279
+ allow_account_switch=pulumi.get(__response__, 'allow_account_switch'),
280
+ api_access=pulumi.get(__response__, 'api_access'),
281
+ authorized_users=pulumi.get(__response__, 'authorized_users'),
282
+ base_url=pulumi.get(__response__, 'base_url'),
283
+ can_auto_create_credential=pulumi.get(__response__, 'can_auto_create_credential'),
284
+ client_description=pulumi.get(__response__, 'client_description'),
285
+ client_id=pulumi.get(__response__, 'client_id'),
286
+ client_name=pulumi.get(__response__, 'client_name'),
287
+ client_type=pulumi.get(__response__, 'client_type'),
288
+ created_by=pulumi.get(__response__, 'created_by'),
289
+ created_date=pulumi.get(__response__, 'created_date'),
290
+ credentials=pulumi.get(__response__, 'credentials'),
291
+ group_access=pulumi.get(__response__, 'group_access'),
292
+ id=pulumi.get(__response__, 'id'),
293
+ ip_acl=pulumi.get(__response__, 'ip_acl'),
294
+ is_locked=pulumi.get(__response__, 'is_locked'),
295
+ notification_emails=pulumi.get(__response__, 'notification_emails'),
296
+ purge_options=pulumi.get(__response__, 'purge_options')))
@@ -0,0 +1,83 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from . import _utilities
17
+ from . import outputs
18
+
19
+ __all__ = [
20
+ 'GetIamApiClientsResult',
21
+ 'AwaitableGetIamApiClientsResult',
22
+ 'get_iam_api_clients',
23
+ 'get_iam_api_clients_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetIamApiClientsResult:
28
+ """
29
+ A collection of values returned by getIamApiClients.
30
+ """
31
+ def __init__(__self__, api_clients=None, id=None):
32
+ if api_clients and not isinstance(api_clients, list):
33
+ raise TypeError("Expected argument 'api_clients' to be a list")
34
+ pulumi.set(__self__, "api_clients", api_clients)
35
+ if id and not isinstance(id, str):
36
+ raise TypeError("Expected argument 'id' to be a str")
37
+ pulumi.set(__self__, "id", id)
38
+
39
+ @property
40
+ @pulumi.getter(name="apiClients")
41
+ def api_clients(self) -> Sequence['outputs.GetIamApiClientsApiClientResult']:
42
+ return pulumi.get(self, "api_clients")
43
+
44
+ @property
45
+ @pulumi.getter
46
+ def id(self) -> builtins.str:
47
+ """
48
+ The provider-assigned unique ID for this managed resource.
49
+ """
50
+ return pulumi.get(self, "id")
51
+
52
+
53
+ class AwaitableGetIamApiClientsResult(GetIamApiClientsResult):
54
+ # pylint: disable=using-constant-test
55
+ def __await__(self):
56
+ if False:
57
+ yield self
58
+ return GetIamApiClientsResult(
59
+ api_clients=self.api_clients,
60
+ id=self.id)
61
+
62
+
63
+ def get_iam_api_clients(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamApiClientsResult:
64
+ """
65
+ Use this data source to access information about an existing resource.
66
+ """
67
+ __args__ = dict()
68
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
69
+ __ret__ = pulumi.runtime.invoke('akamai:index/getIamApiClients:getIamApiClients', __args__, opts=opts, typ=GetIamApiClientsResult).value
70
+
71
+ return AwaitableGetIamApiClientsResult(
72
+ api_clients=pulumi.get(__ret__, 'api_clients'),
73
+ id=pulumi.get(__ret__, 'id'))
74
+ def get_iam_api_clients_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetIamApiClientsResult]:
75
+ """
76
+ Use this data source to access information about an existing resource.
77
+ """
78
+ __args__ = dict()
79
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
80
+ __ret__ = pulumi.runtime.invoke_output('akamai:index/getIamApiClients:getIamApiClients', __args__, opts=opts, typ=GetIamApiClientsResult)
81
+ return __ret__.apply(lambda __response__: GetIamApiClientsResult(
82
+ api_clients=pulumi.get(__response__, 'api_clients'),
83
+ id=pulumi.get(__response__, 'id')))