pulumi-azure 6.27.2__py3-none-any.whl → 6.28.0a1759516578__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-azure might be problematic. Click here for more details.

pulumi_azure/__init__.py CHANGED
@@ -853,6 +853,14 @@ _utilities.register(
853
853
  "azure:apimanagement/workspace:Workspace": "Workspace"
854
854
  }
855
855
  },
856
+ {
857
+ "pkg": "azure",
858
+ "mod": "apimanagement/workspacePolicy",
859
+ "fqn": "pulumi_azure.apimanagement",
860
+ "classes": {
861
+ "azure:apimanagement/workspacePolicy:WorkspacePolicy": "WorkspacePolicy"
862
+ }
863
+ },
856
864
  {
857
865
  "pkg": "azure",
858
866
  "mod": "appconfiguration/configurationFeature",
@@ -64,5 +64,6 @@ from .subscription import *
64
64
  from .tag import *
65
65
  from .user import *
66
66
  from .workspace import *
67
+ from .workspace_policy import *
67
68
  from ._inputs import *
68
69
  from . import outputs
@@ -0,0 +1,350 @@
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__ = ['WorkspacePolicyArgs', 'WorkspacePolicy']
18
+
19
+ @pulumi.input_type
20
+ class WorkspacePolicyArgs:
21
+ def __init__(__self__, *,
22
+ api_management_workspace_id: pulumi.Input[_builtins.str],
23
+ xml_content: Optional[pulumi.Input[_builtins.str]] = None,
24
+ xml_link: Optional[pulumi.Input[_builtins.str]] = None):
25
+ """
26
+ The set of arguments for constructing a WorkspacePolicy resource.
27
+ :param pulumi.Input[_builtins.str] api_management_workspace_id: Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
28
+ :param pulumi.Input[_builtins.str] xml_content: Specifies the API Management Workspace Policy as an XML string.
29
+ :param pulumi.Input[_builtins.str] xml_link: Specifies a publicly accessible URL to a policy XML document.
30
+
31
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
32
+ """
33
+ pulumi.set(__self__, "api_management_workspace_id", api_management_workspace_id)
34
+ if xml_content is not None:
35
+ pulumi.set(__self__, "xml_content", xml_content)
36
+ if xml_link is not None:
37
+ pulumi.set(__self__, "xml_link", xml_link)
38
+
39
+ @_builtins.property
40
+ @pulumi.getter(name="apiManagementWorkspaceId")
41
+ def api_management_workspace_id(self) -> pulumi.Input[_builtins.str]:
42
+ """
43
+ Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
44
+ """
45
+ return pulumi.get(self, "api_management_workspace_id")
46
+
47
+ @api_management_workspace_id.setter
48
+ def api_management_workspace_id(self, value: pulumi.Input[_builtins.str]):
49
+ pulumi.set(self, "api_management_workspace_id", value)
50
+
51
+ @_builtins.property
52
+ @pulumi.getter(name="xmlContent")
53
+ def xml_content(self) -> Optional[pulumi.Input[_builtins.str]]:
54
+ """
55
+ Specifies the API Management Workspace Policy as an XML string.
56
+ """
57
+ return pulumi.get(self, "xml_content")
58
+
59
+ @xml_content.setter
60
+ def xml_content(self, value: Optional[pulumi.Input[_builtins.str]]):
61
+ pulumi.set(self, "xml_content", value)
62
+
63
+ @_builtins.property
64
+ @pulumi.getter(name="xmlLink")
65
+ def xml_link(self) -> Optional[pulumi.Input[_builtins.str]]:
66
+ """
67
+ Specifies a publicly accessible URL to a policy XML document.
68
+
69
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
70
+ """
71
+ return pulumi.get(self, "xml_link")
72
+
73
+ @xml_link.setter
74
+ def xml_link(self, value: Optional[pulumi.Input[_builtins.str]]):
75
+ pulumi.set(self, "xml_link", value)
76
+
77
+
78
+ @pulumi.input_type
79
+ class _WorkspacePolicyState:
80
+ def __init__(__self__, *,
81
+ api_management_workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
82
+ xml_content: Optional[pulumi.Input[_builtins.str]] = None,
83
+ xml_link: Optional[pulumi.Input[_builtins.str]] = None):
84
+ """
85
+ Input properties used for looking up and filtering WorkspacePolicy resources.
86
+ :param pulumi.Input[_builtins.str] api_management_workspace_id: Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
87
+ :param pulumi.Input[_builtins.str] xml_content: Specifies the API Management Workspace Policy as an XML string.
88
+ :param pulumi.Input[_builtins.str] xml_link: Specifies a publicly accessible URL to a policy XML document.
89
+
90
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
91
+ """
92
+ if api_management_workspace_id is not None:
93
+ pulumi.set(__self__, "api_management_workspace_id", api_management_workspace_id)
94
+ if xml_content is not None:
95
+ pulumi.set(__self__, "xml_content", xml_content)
96
+ if xml_link is not None:
97
+ pulumi.set(__self__, "xml_link", xml_link)
98
+
99
+ @_builtins.property
100
+ @pulumi.getter(name="apiManagementWorkspaceId")
101
+ def api_management_workspace_id(self) -> Optional[pulumi.Input[_builtins.str]]:
102
+ """
103
+ Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
104
+ """
105
+ return pulumi.get(self, "api_management_workspace_id")
106
+
107
+ @api_management_workspace_id.setter
108
+ def api_management_workspace_id(self, value: Optional[pulumi.Input[_builtins.str]]):
109
+ pulumi.set(self, "api_management_workspace_id", value)
110
+
111
+ @_builtins.property
112
+ @pulumi.getter(name="xmlContent")
113
+ def xml_content(self) -> Optional[pulumi.Input[_builtins.str]]:
114
+ """
115
+ Specifies the API Management Workspace Policy as an XML string.
116
+ """
117
+ return pulumi.get(self, "xml_content")
118
+
119
+ @xml_content.setter
120
+ def xml_content(self, value: Optional[pulumi.Input[_builtins.str]]):
121
+ pulumi.set(self, "xml_content", value)
122
+
123
+ @_builtins.property
124
+ @pulumi.getter(name="xmlLink")
125
+ def xml_link(self) -> Optional[pulumi.Input[_builtins.str]]:
126
+ """
127
+ Specifies a publicly accessible URL to a policy XML document.
128
+
129
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
130
+ """
131
+ return pulumi.get(self, "xml_link")
132
+
133
+ @xml_link.setter
134
+ def xml_link(self, value: Optional[pulumi.Input[_builtins.str]]):
135
+ pulumi.set(self, "xml_link", value)
136
+
137
+
138
+ @pulumi.type_token("azure:apimanagement/workspacePolicy:WorkspacePolicy")
139
+ class WorkspacePolicy(pulumi.CustomResource):
140
+ @overload
141
+ def __init__(__self__,
142
+ resource_name: str,
143
+ opts: Optional[pulumi.ResourceOptions] = None,
144
+ api_management_workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
145
+ xml_content: Optional[pulumi.Input[_builtins.str]] = None,
146
+ xml_link: Optional[pulumi.Input[_builtins.str]] = None,
147
+ __props__=None):
148
+ """
149
+ Manages an API Management Workspace Policy.
150
+
151
+ ## Example Usage
152
+
153
+ ```python
154
+ import pulumi
155
+ import pulumi_azure as azure
156
+
157
+ example = azure.core.ResourceGroup("example",
158
+ name="example-resources",
159
+ location="West Europe")
160
+ example_service = azure.apimanagement.Service("example",
161
+ name="example-apimanagement",
162
+ location=example.location,
163
+ resource_group_name=example.name,
164
+ publisher_name="pub1",
165
+ publisher_email="pub1@email.com",
166
+ sku_name="Premium_1")
167
+ example_workspace = azure.apimanagement.Workspace("example",
168
+ name="example-workspace",
169
+ api_management_id=example_service.id,
170
+ display_name="my workspace")
171
+ example_workspace_policy = azure.apimanagement.WorkspacePolicy("example",
172
+ api_management_workspace_id=example_workspace.id,
173
+ xml_content=\"\"\"<policies>
174
+ <inbound>
175
+ <find-and-replace from="abc" to="xyz" />
176
+ </inbound>
177
+ </policies>
178
+ \"\"\")
179
+ ```
180
+
181
+ ## API Providers
182
+
183
+ <!-- This section is generated, changes will be overwritten -->
184
+ This resource uses the following Azure API Providers:
185
+
186
+ * `Microsoft.ApiManagement` - 2024-05-01
187
+
188
+ ## Import
189
+
190
+ API Management Workspace Policies can be imported using the `resource id`, e.g.
191
+
192
+ ```sh
193
+ $ pulumi import azure:apimanagement/workspacePolicy:WorkspacePolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/workspaces/workspace1
194
+ ```
195
+
196
+ :param str resource_name: The name of the resource.
197
+ :param pulumi.ResourceOptions opts: Options for the resource.
198
+ :param pulumi.Input[_builtins.str] api_management_workspace_id: Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
199
+ :param pulumi.Input[_builtins.str] xml_content: Specifies the API Management Workspace Policy as an XML string.
200
+ :param pulumi.Input[_builtins.str] xml_link: Specifies a publicly accessible URL to a policy XML document.
201
+
202
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
203
+ """
204
+ ...
205
+ @overload
206
+ def __init__(__self__,
207
+ resource_name: str,
208
+ args: WorkspacePolicyArgs,
209
+ opts: Optional[pulumi.ResourceOptions] = None):
210
+ """
211
+ Manages an API Management Workspace Policy.
212
+
213
+ ## Example Usage
214
+
215
+ ```python
216
+ import pulumi
217
+ import pulumi_azure as azure
218
+
219
+ example = azure.core.ResourceGroup("example",
220
+ name="example-resources",
221
+ location="West Europe")
222
+ example_service = azure.apimanagement.Service("example",
223
+ name="example-apimanagement",
224
+ location=example.location,
225
+ resource_group_name=example.name,
226
+ publisher_name="pub1",
227
+ publisher_email="pub1@email.com",
228
+ sku_name="Premium_1")
229
+ example_workspace = azure.apimanagement.Workspace("example",
230
+ name="example-workspace",
231
+ api_management_id=example_service.id,
232
+ display_name="my workspace")
233
+ example_workspace_policy = azure.apimanagement.WorkspacePolicy("example",
234
+ api_management_workspace_id=example_workspace.id,
235
+ xml_content=\"\"\"<policies>
236
+ <inbound>
237
+ <find-and-replace from="abc" to="xyz" />
238
+ </inbound>
239
+ </policies>
240
+ \"\"\")
241
+ ```
242
+
243
+ ## API Providers
244
+
245
+ <!-- This section is generated, changes will be overwritten -->
246
+ This resource uses the following Azure API Providers:
247
+
248
+ * `Microsoft.ApiManagement` - 2024-05-01
249
+
250
+ ## Import
251
+
252
+ API Management Workspace Policies can be imported using the `resource id`, e.g.
253
+
254
+ ```sh
255
+ $ pulumi import azure:apimanagement/workspacePolicy:WorkspacePolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/workspaces/workspace1
256
+ ```
257
+
258
+ :param str resource_name: The name of the resource.
259
+ :param WorkspacePolicyArgs args: The arguments to use to populate this resource's properties.
260
+ :param pulumi.ResourceOptions opts: Options for the resource.
261
+ """
262
+ ...
263
+ def __init__(__self__, resource_name: str, *args, **kwargs):
264
+ resource_args, opts = _utilities.get_resource_args_opts(WorkspacePolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
265
+ if resource_args is not None:
266
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
267
+ else:
268
+ __self__._internal_init(resource_name, *args, **kwargs)
269
+
270
+ def _internal_init(__self__,
271
+ resource_name: str,
272
+ opts: Optional[pulumi.ResourceOptions] = None,
273
+ api_management_workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
274
+ xml_content: Optional[pulumi.Input[_builtins.str]] = None,
275
+ xml_link: Optional[pulumi.Input[_builtins.str]] = None,
276
+ __props__=None):
277
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
278
+ if not isinstance(opts, pulumi.ResourceOptions):
279
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
280
+ if opts.id is None:
281
+ if __props__ is not None:
282
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
283
+ __props__ = WorkspacePolicyArgs.__new__(WorkspacePolicyArgs)
284
+
285
+ if api_management_workspace_id is None and not opts.urn:
286
+ raise TypeError("Missing required property 'api_management_workspace_id'")
287
+ __props__.__dict__["api_management_workspace_id"] = api_management_workspace_id
288
+ __props__.__dict__["xml_content"] = xml_content
289
+ __props__.__dict__["xml_link"] = xml_link
290
+ super(WorkspacePolicy, __self__).__init__(
291
+ 'azure:apimanagement/workspacePolicy:WorkspacePolicy',
292
+ resource_name,
293
+ __props__,
294
+ opts)
295
+
296
+ @staticmethod
297
+ def get(resource_name: str,
298
+ id: pulumi.Input[str],
299
+ opts: Optional[pulumi.ResourceOptions] = None,
300
+ api_management_workspace_id: Optional[pulumi.Input[_builtins.str]] = None,
301
+ xml_content: Optional[pulumi.Input[_builtins.str]] = None,
302
+ xml_link: Optional[pulumi.Input[_builtins.str]] = None) -> 'WorkspacePolicy':
303
+ """
304
+ Get an existing WorkspacePolicy resource's state with the given name, id, and optional extra
305
+ properties used to qualify the lookup.
306
+
307
+ :param str resource_name: The unique name of the resulting resource.
308
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
309
+ :param pulumi.ResourceOptions opts: Options for the resource.
310
+ :param pulumi.Input[_builtins.str] api_management_workspace_id: Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
311
+ :param pulumi.Input[_builtins.str] xml_content: Specifies the API Management Workspace Policy as an XML string.
312
+ :param pulumi.Input[_builtins.str] xml_link: Specifies a publicly accessible URL to a policy XML document.
313
+
314
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
315
+ """
316
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
317
+
318
+ __props__ = _WorkspacePolicyState.__new__(_WorkspacePolicyState)
319
+
320
+ __props__.__dict__["api_management_workspace_id"] = api_management_workspace_id
321
+ __props__.__dict__["xml_content"] = xml_content
322
+ __props__.__dict__["xml_link"] = xml_link
323
+ return WorkspacePolicy(resource_name, opts=opts, __props__=__props__)
324
+
325
+ @_builtins.property
326
+ @pulumi.getter(name="apiManagementWorkspaceId")
327
+ def api_management_workspace_id(self) -> pulumi.Output[_builtins.str]:
328
+ """
329
+ Specifies the ID of the API Management Workspace. Changing this forces a new resource to be created.
330
+ """
331
+ return pulumi.get(self, "api_management_workspace_id")
332
+
333
+ @_builtins.property
334
+ @pulumi.getter(name="xmlContent")
335
+ def xml_content(self) -> pulumi.Output[_builtins.str]:
336
+ """
337
+ Specifies the API Management Workspace Policy as an XML string.
338
+ """
339
+ return pulumi.get(self, "xml_content")
340
+
341
+ @_builtins.property
342
+ @pulumi.getter(name="xmlLink")
343
+ def xml_link(self) -> pulumi.Output[Optional[_builtins.str]]:
344
+ """
345
+ Specifies a publicly accessible URL to a policy XML document.
346
+
347
+ > **Note:** Exactly one of `xml_content` or `xml_link` must be specified.
348
+ """
349
+ return pulumi.get(self, "xml_link")
350
+
@@ -33,6 +33,8 @@ __all__ = [
33
33
  'AccountNetworkAclsArgsDict',
34
34
  'AccountNetworkAclsVirtualNetworkRuleArgs',
35
35
  'AccountNetworkAclsVirtualNetworkRuleArgsDict',
36
+ 'AccountNetworkInjectionArgs',
37
+ 'AccountNetworkInjectionArgsDict',
36
38
  'AccountRaiPolicyContentFilterArgs',
37
39
  'AccountRaiPolicyContentFilterArgsDict',
38
40
  'AccountStorageArgs',
@@ -419,6 +421,8 @@ if not MYPY:
419
421
  identity_client_id: NotRequired[pulumi.Input[_builtins.str]]
420
422
  """
421
423
  The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
424
+
425
+ > **Note:** When `project_management_enabled` is set to `true`, removing this block forces a new resource to be created.
422
426
  """
423
427
  elif False:
424
428
  AccountCustomerManagedKeyArgsDict: TypeAlias = Mapping[str, Any]
@@ -431,6 +435,8 @@ class AccountCustomerManagedKeyArgs:
431
435
  """
432
436
  :param pulumi.Input[_builtins.str] key_vault_key_id: The ID of the Key Vault Key which should be used to Encrypt the data in this Cognitive Account.
433
437
  :param pulumi.Input[_builtins.str] identity_client_id: The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
438
+
439
+ > **Note:** When `project_management_enabled` is set to `true`, removing this block forces a new resource to be created.
434
440
  """
435
441
  pulumi.set(__self__, "key_vault_key_id", key_vault_key_id)
436
442
  if identity_client_id is not None:
@@ -453,6 +459,8 @@ class AccountCustomerManagedKeyArgs:
453
459
  def identity_client_id(self) -> Optional[pulumi.Input[_builtins.str]]:
454
460
  """
455
461
  The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
462
+
463
+ > **Note:** When `project_management_enabled` is set to `true`, removing this block forces a new resource to be created.
456
464
  """
457
465
  return pulumi.get(self, "identity_client_id")
458
466
 
@@ -568,7 +576,7 @@ if not MYPY:
568
576
  """
569
577
  Whether to allow trusted Azure Services to access the service. Possible values are `None` and `AzureServices`.
570
578
 
571
- > **Note:** `bypass` can only be set when `kind` is set to `OpenAI`
579
+ > **Note:** `bypass` can only be set when `kind` is set to `OpenAI` or `AIServices`.
572
580
  """
573
581
  ip_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
574
582
  """
@@ -592,7 +600,7 @@ class AccountNetworkAclsArgs:
592
600
  :param pulumi.Input[_builtins.str] default_action: The Default Action to use when no rules match from `ip_rules` / `virtual_network_rules`. Possible values are `Allow` and `Deny`.
593
601
  :param pulumi.Input[_builtins.str] bypass: Whether to allow trusted Azure Services to access the service. Possible values are `None` and `AzureServices`.
594
602
 
595
- > **Note:** `bypass` can only be set when `kind` is set to `OpenAI`
603
+ > **Note:** `bypass` can only be set when `kind` is set to `OpenAI` or `AIServices`.
596
604
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_rules: One or more IP Addresses, or CIDR Blocks which should be able to access the Cognitive Account.
597
605
  :param pulumi.Input[Sequence[pulumi.Input['AccountNetworkAclsVirtualNetworkRuleArgs']]] virtual_network_rules: A `virtual_network_rules` block as defined below.
598
606
  """
@@ -622,7 +630,7 @@ class AccountNetworkAclsArgs:
622
630
  """
623
631
  Whether to allow trusted Azure Services to access the service. Possible values are `None` and `AzureServices`.
624
632
 
625
- > **Note:** `bypass` can only be set when `kind` is set to `OpenAI`
633
+ > **Note:** `bypass` can only be set when `kind` is set to `OpenAI` or `AIServices`.
626
634
  """
627
635
  return pulumi.get(self, "bypass")
628
636
 
@@ -663,7 +671,7 @@ if not MYPY:
663
671
  """
664
672
  ignore_missing_vnet_service_endpoint: NotRequired[pulumi.Input[_builtins.bool]]
665
673
  """
666
- Whether ignore missing vnet service endpoint or not. Default to `false`.
674
+ Whether ignore missing vnet service endpoint or not. Defaults to `false`.
667
675
  """
668
676
  elif False:
669
677
  AccountNetworkAclsVirtualNetworkRuleArgsDict: TypeAlias = Mapping[str, Any]
@@ -675,7 +683,7 @@ class AccountNetworkAclsVirtualNetworkRuleArgs:
675
683
  ignore_missing_vnet_service_endpoint: Optional[pulumi.Input[_builtins.bool]] = None):
676
684
  """
677
685
  :param pulumi.Input[_builtins.str] subnet_id: The ID of the subnet which should be able to access this Cognitive Account.
678
- :param pulumi.Input[_builtins.bool] ignore_missing_vnet_service_endpoint: Whether ignore missing vnet service endpoint or not. Default to `false`.
686
+ :param pulumi.Input[_builtins.bool] ignore_missing_vnet_service_endpoint: Whether ignore missing vnet service endpoint or not. Defaults to `false`.
679
687
  """
680
688
  pulumi.set(__self__, "subnet_id", subnet_id)
681
689
  if ignore_missing_vnet_service_endpoint is not None:
@@ -697,7 +705,7 @@ class AccountNetworkAclsVirtualNetworkRuleArgs:
697
705
  @pulumi.getter(name="ignoreMissingVnetServiceEndpoint")
698
706
  def ignore_missing_vnet_service_endpoint(self) -> Optional[pulumi.Input[_builtins.bool]]:
699
707
  """
700
- Whether ignore missing vnet service endpoint or not. Default to `false`.
708
+ Whether ignore missing vnet service endpoint or not. Defaults to `false`.
701
709
  """
702
710
  return pulumi.get(self, "ignore_missing_vnet_service_endpoint")
703
711
 
@@ -706,6 +714,62 @@ class AccountNetworkAclsVirtualNetworkRuleArgs:
706
714
  pulumi.set(self, "ignore_missing_vnet_service_endpoint", value)
707
715
 
708
716
 
717
+ if not MYPY:
718
+ class AccountNetworkInjectionArgsDict(TypedDict):
719
+ scenario: pulumi.Input[_builtins.str]
720
+ """
721
+ Specifies what features network injection applies to. The only possible value is `agent`.
722
+ """
723
+ subnet_id: pulumi.Input[_builtins.str]
724
+ """
725
+ The ID of the subnet which the Agent Client is injected into.
726
+
727
+ > **Note:** The agent subnet must use an address space in the 172.* or 192.* ranges.
728
+ """
729
+ elif False:
730
+ AccountNetworkInjectionArgsDict: TypeAlias = Mapping[str, Any]
731
+
732
+ @pulumi.input_type
733
+ class AccountNetworkInjectionArgs:
734
+ def __init__(__self__, *,
735
+ scenario: pulumi.Input[_builtins.str],
736
+ subnet_id: pulumi.Input[_builtins.str]):
737
+ """
738
+ :param pulumi.Input[_builtins.str] scenario: Specifies what features network injection applies to. The only possible value is `agent`.
739
+ :param pulumi.Input[_builtins.str] subnet_id: The ID of the subnet which the Agent Client is injected into.
740
+
741
+ > **Note:** The agent subnet must use an address space in the 172.* or 192.* ranges.
742
+ """
743
+ pulumi.set(__self__, "scenario", scenario)
744
+ pulumi.set(__self__, "subnet_id", subnet_id)
745
+
746
+ @_builtins.property
747
+ @pulumi.getter
748
+ def scenario(self) -> pulumi.Input[_builtins.str]:
749
+ """
750
+ Specifies what features network injection applies to. The only possible value is `agent`.
751
+ """
752
+ return pulumi.get(self, "scenario")
753
+
754
+ @scenario.setter
755
+ def scenario(self, value: pulumi.Input[_builtins.str]):
756
+ pulumi.set(self, "scenario", value)
757
+
758
+ @_builtins.property
759
+ @pulumi.getter(name="subnetId")
760
+ def subnet_id(self) -> pulumi.Input[_builtins.str]:
761
+ """
762
+ The ID of the subnet which the Agent Client is injected into.
763
+
764
+ > **Note:** The agent subnet must use an address space in the 172.* or 192.* ranges.
765
+ """
766
+ return pulumi.get(self, "subnet_id")
767
+
768
+ @subnet_id.setter
769
+ def subnet_id(self, value: pulumi.Input[_builtins.str]):
770
+ pulumi.set(self, "subnet_id", value)
771
+
772
+
709
773
  if not MYPY:
710
774
  class AccountRaiPolicyContentFilterArgsDict(TypedDict):
711
775
  block_enabled: pulumi.Input[_builtins.bool]