pulumi-azure-native 2.68.0a1729544032__py3-none-any.whl → 2.68.0a1729615467__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-native might be problematic. Click here for more details.
- pulumi_azure_native/__init__.py +29 -0
- pulumi_azure_native/awsconnector/_inputs.py +132 -96
- pulumi_azure_native/awsconnector/outputs.py +120 -66
- pulumi_azure_native/awsconnector/v20241201/_inputs.py +132 -96
- pulumi_azure_native/awsconnector/v20241201/outputs.py +120 -66
- pulumi_azure_native/cache/__init__.py +3 -0
- pulumi_azure_native/cache/access_policy.py +3 -3
- pulumi_azure_native/cache/access_policy_assignment.py +3 -3
- pulumi_azure_native/cache/firewall_rule.py +3 -3
- pulumi_azure_native/cache/get_access_policy.py +2 -2
- pulumi_azure_native/cache/get_access_policy_assignment.py +2 -2
- pulumi_azure_native/cache/get_firewall_rule.py +2 -2
- pulumi_azure_native/cache/get_linked_server.py +2 -2
- pulumi_azure_native/cache/get_patch_schedule.py +2 -2
- pulumi_azure_native/cache/get_private_endpoint_connection.py +2 -2
- pulumi_azure_native/cache/get_redis.py +2 -2
- pulumi_azure_native/cache/linked_server.py +3 -3
- pulumi_azure_native/cache/list_redis_keys.py +2 -2
- pulumi_azure_native/cache/patch_schedule.py +3 -3
- pulumi_azure_native/cache/private_endpoint_connection.py +3 -3
- pulumi_azure_native/cache/redis.py +3 -3
- pulumi_azure_native/cache/v20200601/redis.py +1 -1
- pulumi_azure_native/cache/v20230401/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20230401/linked_server.py +1 -1
- pulumi_azure_native/cache/v20230401/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20230401/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20230401/redis.py +1 -1
- pulumi_azure_native/cache/v20230501preview/access_policy.py +1 -1
- pulumi_azure_native/cache/v20230501preview/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20230501preview/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20230501preview/linked_server.py +1 -1
- pulumi_azure_native/cache/v20230501preview/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20230501preview/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20230501preview/redis.py +1 -1
- pulumi_azure_native/cache/v20230801/access_policy.py +1 -1
- pulumi_azure_native/cache/v20230801/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20230801/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20230801/linked_server.py +1 -1
- pulumi_azure_native/cache/v20230801/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20230801/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20230801/redis.py +1 -1
- pulumi_azure_native/cache/v20240301/access_policy.py +1 -1
- pulumi_azure_native/cache/v20240301/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20240301/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20240301/linked_server.py +1 -1
- pulumi_azure_native/cache/v20240301/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20240301/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20240301/redis.py +1 -1
- pulumi_azure_native/cache/v20240401preview/access_policy.py +1 -1
- pulumi_azure_native/cache/v20240401preview/access_policy_assignment.py +1 -1
- pulumi_azure_native/cache/v20240401preview/firewall_rule.py +1 -1
- pulumi_azure_native/cache/v20240401preview/linked_server.py +1 -1
- pulumi_azure_native/cache/v20240401preview/patch_schedule.py +1 -1
- pulumi_azure_native/cache/v20240401preview/private_endpoint_connection.py +1 -1
- pulumi_azure_native/cache/v20240401preview/redis.py +1 -1
- pulumi_azure_native/cache/v20241101/__init__.py +25 -0
- pulumi_azure_native/cache/v20241101/_enums.py +111 -0
- pulumi_azure_native/cache/v20241101/_inputs.py +646 -0
- pulumi_azure_native/cache/v20241101/access_policy.py +219 -0
- pulumi_azure_native/cache/v20241101/access_policy_assignment.py +279 -0
- pulumi_azure_native/cache/v20241101/firewall_rule.py +239 -0
- pulumi_azure_native/cache/v20241101/get_access_policy.py +148 -0
- pulumi_azure_native/cache/v20241101/get_access_policy_assignment.py +176 -0
- pulumi_azure_native/cache/v20241101/get_firewall_rule.py +148 -0
- pulumi_azure_native/cache/v20241101/get_linked_server.py +204 -0
- pulumi_azure_native/cache/v20241101/get_patch_schedule.py +149 -0
- pulumi_azure_native/cache/v20241101/get_private_endpoint_connection.py +163 -0
- pulumi_azure_native/cache/v20241101/get_redis.py +493 -0
- pulumi_azure_native/cache/v20241101/linked_server.py +299 -0
- pulumi_azure_native/cache/v20241101/list_redis_keys.py +100 -0
- pulumi_azure_native/cache/v20241101/outputs.py +917 -0
- pulumi_azure_native/cache/v20241101/patch_schedule.py +221 -0
- pulumi_azure_native/cache/v20241101/private_endpoint_connection.py +232 -0
- pulumi_azure_native/cache/v20241101/redis.py +804 -0
- pulumi_azure_native/costmanagement/__init__.py +3 -0
- pulumi_azure_native/costmanagement/budget.py +3 -3
- pulumi_azure_native/costmanagement/cost_allocation_rule.py +3 -3
- pulumi_azure_native/costmanagement/export.py +3 -3
- pulumi_azure_native/costmanagement/get_budget.py +2 -2
- pulumi_azure_native/costmanagement/get_cost_allocation_rule.py +2 -2
- pulumi_azure_native/costmanagement/get_export.py +2 -2
- pulumi_azure_native/costmanagement/get_scheduled_action.py +2 -2
- pulumi_azure_native/costmanagement/get_scheduled_action_by_scope.py +2 -2
- pulumi_azure_native/costmanagement/get_view.py +2 -2
- pulumi_azure_native/costmanagement/get_view_by_scope.py +2 -2
- pulumi_azure_native/costmanagement/scheduled_action.py +3 -3
- pulumi_azure_native/costmanagement/scheduled_action_by_scope.py +3 -3
- pulumi_azure_native/costmanagement/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20190401preview/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20191001/export.py +1 -1
- pulumi_azure_native/costmanagement/v20191101/view.py +1 -1
- pulumi_azure_native/costmanagement/v20191101/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20200301preview/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20200601/view.py +1 -1
- pulumi_azure_native/costmanagement/v20200601/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20221001/view.py +1 -1
- pulumi_azure_native/costmanagement/v20221001/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20221005preview/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20221005preview/view.py +1 -1
- pulumi_azure_native/costmanagement/v20221005preview/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230301/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230401preview/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230701preview/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230801/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/export.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/view.py +1 -1
- pulumi_azure_native/costmanagement/v20230901/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/budget.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/cost_allocation_rule.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/export.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/scheduled_action.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/scheduled_action_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/tag_inheritance_setting.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/view.py +1 -1
- pulumi_azure_native/costmanagement/v20231101/view_by_scope.py +1 -1
- pulumi_azure_native/costmanagement/v20240801/__init__.py +26 -0
- pulumi_azure_native/costmanagement/v20240801/_enums.py +538 -0
- pulumi_azure_native/costmanagement/v20240801/_inputs.py +2660 -0
- pulumi_azure_native/costmanagement/v20240801/budget.py +619 -0
- pulumi_azure_native/costmanagement/v20240801/cost_allocation_rule.py +190 -0
- pulumi_azure_native/costmanagement/v20240801/export.py +415 -0
- pulumi_azure_native/costmanagement/v20240801/get_budget.py +337 -0
- pulumi_azure_native/costmanagement/v20240801/get_cost_allocation_rule.py +129 -0
- pulumi_azure_native/costmanagement/v20240801/get_export.py +261 -0
- pulumi_azure_native/costmanagement/v20240801/get_scheduled_action.py +263 -0
- pulumi_azure_native/costmanagement/v20240801/get_scheduled_action_by_scope.py +269 -0
- pulumi_azure_native/costmanagement/v20240801/get_tag_inheritance_setting.py +144 -0
- pulumi_azure_native/costmanagement/v20240801/get_view.py +333 -0
- pulumi_azure_native/costmanagement/v20240801/get_view_by_scope.py +339 -0
- pulumi_azure_native/costmanagement/v20240801/outputs.py +2593 -0
- pulumi_azure_native/costmanagement/v20240801/scheduled_action.py +425 -0
- pulumi_azure_native/costmanagement/v20240801/scheduled_action_by_scope.py +426 -0
- pulumi_azure_native/costmanagement/v20240801/tag_inheritance_setting.py +222 -0
- pulumi_azure_native/costmanagement/v20240801/view.py +587 -0
- pulumi_azure_native/costmanagement/v20240801/view_by_scope.py +588 -0
- pulumi_azure_native/costmanagement/view.py +3 -3
- pulumi_azure_native/costmanagement/view_by_scope.py +3 -3
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-2.68.0a1729544032.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/METADATA +1 -1
- {pulumi_azure_native-2.68.0a1729544032.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/RECORD +167 -128
- {pulumi_azure_native-2.68.0a1729544032.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.68.0a1729544032.dist-info → pulumi_azure_native-2.68.0a1729615467.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,299 @@
|
|
|
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 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 ._enums import *
|
|
17
|
+
|
|
18
|
+
__all__ = ['LinkedServerArgs', 'LinkedServer']
|
|
19
|
+
|
|
20
|
+
@pulumi.input_type
|
|
21
|
+
class LinkedServerArgs:
|
|
22
|
+
def __init__(__self__, *,
|
|
23
|
+
linked_redis_cache_id: pulumi.Input[str],
|
|
24
|
+
linked_redis_cache_location: pulumi.Input[str],
|
|
25
|
+
name: pulumi.Input[str],
|
|
26
|
+
resource_group_name: pulumi.Input[str],
|
|
27
|
+
server_role: pulumi.Input['ReplicationRole'],
|
|
28
|
+
linked_server_name: Optional[pulumi.Input[str]] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a LinkedServer resource.
|
|
31
|
+
:param pulumi.Input[str] linked_redis_cache_id: Fully qualified resourceId of the linked redis cache.
|
|
32
|
+
:param pulumi.Input[str] linked_redis_cache_location: Location of the linked redis cache.
|
|
33
|
+
:param pulumi.Input[str] name: The name of the Redis cache.
|
|
34
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
35
|
+
:param pulumi.Input['ReplicationRole'] server_role: Role of the linked server.
|
|
36
|
+
:param pulumi.Input[str] linked_server_name: The name of the linked server that is being added to the Redis cache.
|
|
37
|
+
"""
|
|
38
|
+
pulumi.set(__self__, "linked_redis_cache_id", linked_redis_cache_id)
|
|
39
|
+
pulumi.set(__self__, "linked_redis_cache_location", linked_redis_cache_location)
|
|
40
|
+
pulumi.set(__self__, "name", name)
|
|
41
|
+
pulumi.set(__self__, "resource_group_name", resource_group_name)
|
|
42
|
+
pulumi.set(__self__, "server_role", server_role)
|
|
43
|
+
if linked_server_name is not None:
|
|
44
|
+
pulumi.set(__self__, "linked_server_name", linked_server_name)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
@pulumi.getter(name="linkedRedisCacheId")
|
|
48
|
+
def linked_redis_cache_id(self) -> pulumi.Input[str]:
|
|
49
|
+
"""
|
|
50
|
+
Fully qualified resourceId of the linked redis cache.
|
|
51
|
+
"""
|
|
52
|
+
return pulumi.get(self, "linked_redis_cache_id")
|
|
53
|
+
|
|
54
|
+
@linked_redis_cache_id.setter
|
|
55
|
+
def linked_redis_cache_id(self, value: pulumi.Input[str]):
|
|
56
|
+
pulumi.set(self, "linked_redis_cache_id", value)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
@pulumi.getter(name="linkedRedisCacheLocation")
|
|
60
|
+
def linked_redis_cache_location(self) -> pulumi.Input[str]:
|
|
61
|
+
"""
|
|
62
|
+
Location of the linked redis cache.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "linked_redis_cache_location")
|
|
65
|
+
|
|
66
|
+
@linked_redis_cache_location.setter
|
|
67
|
+
def linked_redis_cache_location(self, value: pulumi.Input[str]):
|
|
68
|
+
pulumi.set(self, "linked_redis_cache_location", value)
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter
|
|
72
|
+
def name(self) -> pulumi.Input[str]:
|
|
73
|
+
"""
|
|
74
|
+
The name of the Redis cache.
|
|
75
|
+
"""
|
|
76
|
+
return pulumi.get(self, "name")
|
|
77
|
+
|
|
78
|
+
@name.setter
|
|
79
|
+
def name(self, value: pulumi.Input[str]):
|
|
80
|
+
pulumi.set(self, "name", value)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter(name="resourceGroupName")
|
|
84
|
+
def resource_group_name(self) -> pulumi.Input[str]:
|
|
85
|
+
"""
|
|
86
|
+
The name of the resource group. The name is case insensitive.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "resource_group_name")
|
|
89
|
+
|
|
90
|
+
@resource_group_name.setter
|
|
91
|
+
def resource_group_name(self, value: pulumi.Input[str]):
|
|
92
|
+
pulumi.set(self, "resource_group_name", value)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter(name="serverRole")
|
|
96
|
+
def server_role(self) -> pulumi.Input['ReplicationRole']:
|
|
97
|
+
"""
|
|
98
|
+
Role of the linked server.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "server_role")
|
|
101
|
+
|
|
102
|
+
@server_role.setter
|
|
103
|
+
def server_role(self, value: pulumi.Input['ReplicationRole']):
|
|
104
|
+
pulumi.set(self, "server_role", value)
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter(name="linkedServerName")
|
|
108
|
+
def linked_server_name(self) -> Optional[pulumi.Input[str]]:
|
|
109
|
+
"""
|
|
110
|
+
The name of the linked server that is being added to the Redis cache.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "linked_server_name")
|
|
113
|
+
|
|
114
|
+
@linked_server_name.setter
|
|
115
|
+
def linked_server_name(self, value: Optional[pulumi.Input[str]]):
|
|
116
|
+
pulumi.set(self, "linked_server_name", value)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class LinkedServer(pulumi.CustomResource):
|
|
120
|
+
@overload
|
|
121
|
+
def __init__(__self__,
|
|
122
|
+
resource_name: str,
|
|
123
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
124
|
+
linked_redis_cache_id: Optional[pulumi.Input[str]] = None,
|
|
125
|
+
linked_redis_cache_location: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
linked_server_name: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
129
|
+
server_role: Optional[pulumi.Input['ReplicationRole']] = None,
|
|
130
|
+
__props__=None):
|
|
131
|
+
"""
|
|
132
|
+
Response to put/get linked server (with properties) for Redis cache.
|
|
133
|
+
|
|
134
|
+
:param str resource_name: The name of the resource.
|
|
135
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
136
|
+
:param pulumi.Input[str] linked_redis_cache_id: Fully qualified resourceId of the linked redis cache.
|
|
137
|
+
:param pulumi.Input[str] linked_redis_cache_location: Location of the linked redis cache.
|
|
138
|
+
:param pulumi.Input[str] linked_server_name: The name of the linked server that is being added to the Redis cache.
|
|
139
|
+
:param pulumi.Input[str] name: The name of the Redis cache.
|
|
140
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
141
|
+
:param pulumi.Input['ReplicationRole'] server_role: Role of the linked server.
|
|
142
|
+
"""
|
|
143
|
+
...
|
|
144
|
+
@overload
|
|
145
|
+
def __init__(__self__,
|
|
146
|
+
resource_name: str,
|
|
147
|
+
args: LinkedServerArgs,
|
|
148
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
149
|
+
"""
|
|
150
|
+
Response to put/get linked server (with properties) for Redis cache.
|
|
151
|
+
|
|
152
|
+
:param str resource_name: The name of the resource.
|
|
153
|
+
:param LinkedServerArgs args: The arguments to use to populate this resource's properties.
|
|
154
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
155
|
+
"""
|
|
156
|
+
...
|
|
157
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
158
|
+
resource_args, opts = _utilities.get_resource_args_opts(LinkedServerArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
159
|
+
if resource_args is not None:
|
|
160
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
161
|
+
else:
|
|
162
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
163
|
+
|
|
164
|
+
def _internal_init(__self__,
|
|
165
|
+
resource_name: str,
|
|
166
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
167
|
+
linked_redis_cache_id: Optional[pulumi.Input[str]] = None,
|
|
168
|
+
linked_redis_cache_location: Optional[pulumi.Input[str]] = None,
|
|
169
|
+
linked_server_name: Optional[pulumi.Input[str]] = None,
|
|
170
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
171
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
172
|
+
server_role: Optional[pulumi.Input['ReplicationRole']] = None,
|
|
173
|
+
__props__=None):
|
|
174
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
175
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
176
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
177
|
+
if opts.id is None:
|
|
178
|
+
if __props__ is not None:
|
|
179
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
180
|
+
__props__ = LinkedServerArgs.__new__(LinkedServerArgs)
|
|
181
|
+
|
|
182
|
+
if linked_redis_cache_id is None and not opts.urn:
|
|
183
|
+
raise TypeError("Missing required property 'linked_redis_cache_id'")
|
|
184
|
+
__props__.__dict__["linked_redis_cache_id"] = linked_redis_cache_id
|
|
185
|
+
if linked_redis_cache_location is None and not opts.urn:
|
|
186
|
+
raise TypeError("Missing required property 'linked_redis_cache_location'")
|
|
187
|
+
__props__.__dict__["linked_redis_cache_location"] = linked_redis_cache_location
|
|
188
|
+
__props__.__dict__["linked_server_name"] = linked_server_name
|
|
189
|
+
if name is None and not opts.urn:
|
|
190
|
+
raise TypeError("Missing required property 'name'")
|
|
191
|
+
__props__.__dict__["name"] = name
|
|
192
|
+
if resource_group_name is None and not opts.urn:
|
|
193
|
+
raise TypeError("Missing required property 'resource_group_name'")
|
|
194
|
+
__props__.__dict__["resource_group_name"] = resource_group_name
|
|
195
|
+
if server_role is None and not opts.urn:
|
|
196
|
+
raise TypeError("Missing required property 'server_role'")
|
|
197
|
+
__props__.__dict__["server_role"] = server_role
|
|
198
|
+
__props__.__dict__["geo_replicated_primary_host_name"] = None
|
|
199
|
+
__props__.__dict__["primary_host_name"] = None
|
|
200
|
+
__props__.__dict__["provisioning_state"] = None
|
|
201
|
+
__props__.__dict__["type"] = None
|
|
202
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:cache:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20170201:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20171001:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20180301:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20190701:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20200601:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20201201:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20210601:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20220501:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20220601:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20230401:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20230501preview:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20230801:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20240301:LinkedServer"), pulumi.Alias(type_="azure-native:cache/v20240401preview:LinkedServer")])
|
|
203
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
204
|
+
super(LinkedServer, __self__).__init__(
|
|
205
|
+
'azure-native:cache/v20241101:LinkedServer',
|
|
206
|
+
resource_name,
|
|
207
|
+
__props__,
|
|
208
|
+
opts)
|
|
209
|
+
|
|
210
|
+
@staticmethod
|
|
211
|
+
def get(resource_name: str,
|
|
212
|
+
id: pulumi.Input[str],
|
|
213
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'LinkedServer':
|
|
214
|
+
"""
|
|
215
|
+
Get an existing LinkedServer resource's state with the given name, id, and optional extra
|
|
216
|
+
properties used to qualify the lookup.
|
|
217
|
+
|
|
218
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
219
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
220
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
221
|
+
"""
|
|
222
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
223
|
+
|
|
224
|
+
__props__ = LinkedServerArgs.__new__(LinkedServerArgs)
|
|
225
|
+
|
|
226
|
+
__props__.__dict__["geo_replicated_primary_host_name"] = None
|
|
227
|
+
__props__.__dict__["linked_redis_cache_id"] = None
|
|
228
|
+
__props__.__dict__["linked_redis_cache_location"] = None
|
|
229
|
+
__props__.__dict__["name"] = None
|
|
230
|
+
__props__.__dict__["primary_host_name"] = None
|
|
231
|
+
__props__.__dict__["provisioning_state"] = None
|
|
232
|
+
__props__.__dict__["server_role"] = None
|
|
233
|
+
__props__.__dict__["type"] = None
|
|
234
|
+
return LinkedServer(resource_name, opts=opts, __props__=__props__)
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
@pulumi.getter(name="geoReplicatedPrimaryHostName")
|
|
238
|
+
def geo_replicated_primary_host_name(self) -> pulumi.Output[str]:
|
|
239
|
+
"""
|
|
240
|
+
The unchanging DNS name which will always point to current geo-primary cache among the linked redis caches for seamless Geo Failover experience.
|
|
241
|
+
"""
|
|
242
|
+
return pulumi.get(self, "geo_replicated_primary_host_name")
|
|
243
|
+
|
|
244
|
+
@property
|
|
245
|
+
@pulumi.getter(name="linkedRedisCacheId")
|
|
246
|
+
def linked_redis_cache_id(self) -> pulumi.Output[str]:
|
|
247
|
+
"""
|
|
248
|
+
Fully qualified resourceId of the linked redis cache.
|
|
249
|
+
"""
|
|
250
|
+
return pulumi.get(self, "linked_redis_cache_id")
|
|
251
|
+
|
|
252
|
+
@property
|
|
253
|
+
@pulumi.getter(name="linkedRedisCacheLocation")
|
|
254
|
+
def linked_redis_cache_location(self) -> pulumi.Output[str]:
|
|
255
|
+
"""
|
|
256
|
+
Location of the linked redis cache.
|
|
257
|
+
"""
|
|
258
|
+
return pulumi.get(self, "linked_redis_cache_location")
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
@pulumi.getter
|
|
262
|
+
def name(self) -> pulumi.Output[str]:
|
|
263
|
+
"""
|
|
264
|
+
The name of the resource
|
|
265
|
+
"""
|
|
266
|
+
return pulumi.get(self, "name")
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
@pulumi.getter(name="primaryHostName")
|
|
270
|
+
def primary_host_name(self) -> pulumi.Output[str]:
|
|
271
|
+
"""
|
|
272
|
+
The changing DNS name that resolves to the current geo-primary cache among the linked redis caches before or after the Geo Failover.
|
|
273
|
+
"""
|
|
274
|
+
return pulumi.get(self, "primary_host_name")
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
@pulumi.getter(name="provisioningState")
|
|
278
|
+
def provisioning_state(self) -> pulumi.Output[str]:
|
|
279
|
+
"""
|
|
280
|
+
Terminal state of the link between primary and secondary redis cache.
|
|
281
|
+
"""
|
|
282
|
+
return pulumi.get(self, "provisioning_state")
|
|
283
|
+
|
|
284
|
+
@property
|
|
285
|
+
@pulumi.getter(name="serverRole")
|
|
286
|
+
def server_role(self) -> pulumi.Output[str]:
|
|
287
|
+
"""
|
|
288
|
+
Role of the linked server.
|
|
289
|
+
"""
|
|
290
|
+
return pulumi.get(self, "server_role")
|
|
291
|
+
|
|
292
|
+
@property
|
|
293
|
+
@pulumi.getter
|
|
294
|
+
def type(self) -> pulumi.Output[str]:
|
|
295
|
+
"""
|
|
296
|
+
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
297
|
+
"""
|
|
298
|
+
return pulumi.get(self, "type")
|
|
299
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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 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
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'ListRedisKeysResult',
|
|
19
|
+
'AwaitableListRedisKeysResult',
|
|
20
|
+
'list_redis_keys',
|
|
21
|
+
'list_redis_keys_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class ListRedisKeysResult:
|
|
26
|
+
"""
|
|
27
|
+
Redis cache access keys.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, primary_key=None, secondary_key=None):
|
|
30
|
+
if primary_key and not isinstance(primary_key, str):
|
|
31
|
+
raise TypeError("Expected argument 'primary_key' to be a str")
|
|
32
|
+
pulumi.set(__self__, "primary_key", primary_key)
|
|
33
|
+
if secondary_key and not isinstance(secondary_key, str):
|
|
34
|
+
raise TypeError("Expected argument 'secondary_key' to be a str")
|
|
35
|
+
pulumi.set(__self__, "secondary_key", secondary_key)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
@pulumi.getter(name="primaryKey")
|
|
39
|
+
def primary_key(self) -> str:
|
|
40
|
+
"""
|
|
41
|
+
The current primary key that clients can use to authenticate with Redis cache.
|
|
42
|
+
"""
|
|
43
|
+
return pulumi.get(self, "primary_key")
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
@pulumi.getter(name="secondaryKey")
|
|
47
|
+
def secondary_key(self) -> str:
|
|
48
|
+
"""
|
|
49
|
+
The current secondary key that clients can use to authenticate with Redis cache.
|
|
50
|
+
"""
|
|
51
|
+
return pulumi.get(self, "secondary_key")
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class AwaitableListRedisKeysResult(ListRedisKeysResult):
|
|
55
|
+
# pylint: disable=using-constant-test
|
|
56
|
+
def __await__(self):
|
|
57
|
+
if False:
|
|
58
|
+
yield self
|
|
59
|
+
return ListRedisKeysResult(
|
|
60
|
+
primary_key=self.primary_key,
|
|
61
|
+
secondary_key=self.secondary_key)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def list_redis_keys(name: Optional[str] = None,
|
|
65
|
+
resource_group_name: Optional[str] = None,
|
|
66
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListRedisKeysResult:
|
|
67
|
+
"""
|
|
68
|
+
Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
:param str name: The name of the Redis cache.
|
|
72
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
73
|
+
"""
|
|
74
|
+
__args__ = dict()
|
|
75
|
+
__args__['name'] = name
|
|
76
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
77
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
78
|
+
__ret__ = pulumi.runtime.invoke('azure-native:cache/v20241101:listRedisKeys', __args__, opts=opts, typ=ListRedisKeysResult).value
|
|
79
|
+
|
|
80
|
+
return AwaitableListRedisKeysResult(
|
|
81
|
+
primary_key=pulumi.get(__ret__, 'primary_key'),
|
|
82
|
+
secondary_key=pulumi.get(__ret__, 'secondary_key'))
|
|
83
|
+
def list_redis_keys_output(name: Optional[pulumi.Input[str]] = None,
|
|
84
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
85
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[ListRedisKeysResult]:
|
|
86
|
+
"""
|
|
87
|
+
Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:param str name: The name of the Redis cache.
|
|
91
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
92
|
+
"""
|
|
93
|
+
__args__ = dict()
|
|
94
|
+
__args__['name'] = name
|
|
95
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
96
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
97
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:cache/v20241101:listRedisKeys', __args__, opts=opts, typ=ListRedisKeysResult)
|
|
98
|
+
return __ret__.apply(lambda __response__: ListRedisKeysResult(
|
|
99
|
+
primary_key=pulumi.get(__response__, 'primary_key'),
|
|
100
|
+
secondary_key=pulumi.get(__response__, 'secondary_key')))
|