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,804 @@
|
|
|
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 . import outputs
|
|
17
|
+
from ._enums import *
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = ['RedisArgs', 'Redis']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class RedisArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
resource_group_name: pulumi.Input[str],
|
|
26
|
+
sku: pulumi.Input['SkuArgs'],
|
|
27
|
+
disable_access_key_authentication: Optional[pulumi.Input[bool]] = None,
|
|
28
|
+
enable_non_ssl_port: Optional[pulumi.Input[bool]] = None,
|
|
29
|
+
identity: Optional[pulumi.Input['ManagedServiceIdentityArgs']] = None,
|
|
30
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
31
|
+
minimum_tls_version: Optional[pulumi.Input[Union[str, 'TlsVersion']]] = None,
|
|
32
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
33
|
+
public_network_access: Optional[pulumi.Input[Union[str, 'PublicNetworkAccess']]] = None,
|
|
34
|
+
redis_configuration: Optional[pulumi.Input['RedisCommonPropertiesRedisConfigurationArgs']] = None,
|
|
35
|
+
redis_version: Optional[pulumi.Input[str]] = None,
|
|
36
|
+
replicas_per_master: Optional[pulumi.Input[int]] = None,
|
|
37
|
+
replicas_per_primary: Optional[pulumi.Input[int]] = None,
|
|
38
|
+
shard_count: Optional[pulumi.Input[int]] = None,
|
|
39
|
+
static_ip: Optional[pulumi.Input[str]] = None,
|
|
40
|
+
subnet_id: Optional[pulumi.Input[str]] = None,
|
|
41
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
42
|
+
tenant_settings: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
43
|
+
update_channel: Optional[pulumi.Input[Union[str, 'UpdateChannel']]] = None,
|
|
44
|
+
zonal_allocation_policy: Optional[pulumi.Input[Union[str, 'ZonalAllocationPolicy']]] = None,
|
|
45
|
+
zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
46
|
+
"""
|
|
47
|
+
The set of arguments for constructing a Redis resource.
|
|
48
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
49
|
+
:param pulumi.Input['SkuArgs'] sku: The SKU of the Redis cache to deploy.
|
|
50
|
+
:param pulumi.Input[bool] disable_access_key_authentication: Authentication to Redis through access keys is disabled when set as true. Default value is false.
|
|
51
|
+
:param pulumi.Input[bool] enable_non_ssl_port: Specifies whether the non-ssl Redis server port (6379) is enabled.
|
|
52
|
+
:param pulumi.Input['ManagedServiceIdentityArgs'] identity: The identity of the resource.
|
|
53
|
+
:param pulumi.Input[str] location: The geo-location where the resource lives
|
|
54
|
+
:param pulumi.Input[Union[str, 'TlsVersion']] minimum_tls_version: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2')
|
|
55
|
+
:param pulumi.Input[str] name: The name of the Redis cache.
|
|
56
|
+
:param pulumi.Input[Union[str, 'PublicNetworkAccess']] public_network_access: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'
|
|
57
|
+
:param pulumi.Input['RedisCommonPropertiesRedisConfigurationArgs'] redis_configuration: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
|
|
58
|
+
:param pulumi.Input[str] redis_version: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
|
|
59
|
+
:param pulumi.Input[int] replicas_per_master: The number of replicas to be created per primary.
|
|
60
|
+
:param pulumi.Input[int] replicas_per_primary: The number of replicas to be created per primary.
|
|
61
|
+
:param pulumi.Input[int] shard_count: The number of shards to be created on a Premium Cluster Cache.
|
|
62
|
+
:param pulumi.Input[str] static_ip: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
|
|
63
|
+
:param pulumi.Input[str] subnet_id: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
|
|
64
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags.
|
|
65
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tenant_settings: A dictionary of tenant settings
|
|
66
|
+
:param pulumi.Input[Union[str, 'UpdateChannel']] update_channel: Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
|
|
67
|
+
:param pulumi.Input[Union[str, 'ZonalAllocationPolicy']] zonal_allocation_policy: Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported.
|
|
68
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] zones: A list of availability zones denoting where the resource needs to come from.
|
|
69
|
+
"""
|
|
70
|
+
pulumi.set(__self__, "resource_group_name", resource_group_name)
|
|
71
|
+
pulumi.set(__self__, "sku", sku)
|
|
72
|
+
if disable_access_key_authentication is None:
|
|
73
|
+
disable_access_key_authentication = False
|
|
74
|
+
if disable_access_key_authentication is not None:
|
|
75
|
+
pulumi.set(__self__, "disable_access_key_authentication", disable_access_key_authentication)
|
|
76
|
+
if enable_non_ssl_port is None:
|
|
77
|
+
enable_non_ssl_port = False
|
|
78
|
+
if enable_non_ssl_port is not None:
|
|
79
|
+
pulumi.set(__self__, "enable_non_ssl_port", enable_non_ssl_port)
|
|
80
|
+
if identity is not None:
|
|
81
|
+
pulumi.set(__self__, "identity", identity)
|
|
82
|
+
if location is not None:
|
|
83
|
+
pulumi.set(__self__, "location", location)
|
|
84
|
+
if minimum_tls_version is not None:
|
|
85
|
+
pulumi.set(__self__, "minimum_tls_version", minimum_tls_version)
|
|
86
|
+
if name is not None:
|
|
87
|
+
pulumi.set(__self__, "name", name)
|
|
88
|
+
if public_network_access is None:
|
|
89
|
+
public_network_access = 'Enabled'
|
|
90
|
+
if public_network_access is not None:
|
|
91
|
+
pulumi.set(__self__, "public_network_access", public_network_access)
|
|
92
|
+
if redis_configuration is not None:
|
|
93
|
+
pulumi.set(__self__, "redis_configuration", redis_configuration)
|
|
94
|
+
if redis_version is not None:
|
|
95
|
+
pulumi.set(__self__, "redis_version", redis_version)
|
|
96
|
+
if replicas_per_master is not None:
|
|
97
|
+
pulumi.set(__self__, "replicas_per_master", replicas_per_master)
|
|
98
|
+
if replicas_per_primary is not None:
|
|
99
|
+
pulumi.set(__self__, "replicas_per_primary", replicas_per_primary)
|
|
100
|
+
if shard_count is not None:
|
|
101
|
+
pulumi.set(__self__, "shard_count", shard_count)
|
|
102
|
+
if static_ip is not None:
|
|
103
|
+
pulumi.set(__self__, "static_ip", static_ip)
|
|
104
|
+
if subnet_id is not None:
|
|
105
|
+
pulumi.set(__self__, "subnet_id", subnet_id)
|
|
106
|
+
if tags is not None:
|
|
107
|
+
pulumi.set(__self__, "tags", tags)
|
|
108
|
+
if tenant_settings is not None:
|
|
109
|
+
pulumi.set(__self__, "tenant_settings", tenant_settings)
|
|
110
|
+
if update_channel is not None:
|
|
111
|
+
pulumi.set(__self__, "update_channel", update_channel)
|
|
112
|
+
if zonal_allocation_policy is not None:
|
|
113
|
+
pulumi.set(__self__, "zonal_allocation_policy", zonal_allocation_policy)
|
|
114
|
+
if zones is not None:
|
|
115
|
+
pulumi.set(__self__, "zones", zones)
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter(name="resourceGroupName")
|
|
119
|
+
def resource_group_name(self) -> pulumi.Input[str]:
|
|
120
|
+
"""
|
|
121
|
+
The name of the resource group. The name is case insensitive.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "resource_group_name")
|
|
124
|
+
|
|
125
|
+
@resource_group_name.setter
|
|
126
|
+
def resource_group_name(self, value: pulumi.Input[str]):
|
|
127
|
+
pulumi.set(self, "resource_group_name", value)
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter
|
|
131
|
+
def sku(self) -> pulumi.Input['SkuArgs']:
|
|
132
|
+
"""
|
|
133
|
+
The SKU of the Redis cache to deploy.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "sku")
|
|
136
|
+
|
|
137
|
+
@sku.setter
|
|
138
|
+
def sku(self, value: pulumi.Input['SkuArgs']):
|
|
139
|
+
pulumi.set(self, "sku", value)
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter(name="disableAccessKeyAuthentication")
|
|
143
|
+
def disable_access_key_authentication(self) -> Optional[pulumi.Input[bool]]:
|
|
144
|
+
"""
|
|
145
|
+
Authentication to Redis through access keys is disabled when set as true. Default value is false.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "disable_access_key_authentication")
|
|
148
|
+
|
|
149
|
+
@disable_access_key_authentication.setter
|
|
150
|
+
def disable_access_key_authentication(self, value: Optional[pulumi.Input[bool]]):
|
|
151
|
+
pulumi.set(self, "disable_access_key_authentication", value)
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter(name="enableNonSslPort")
|
|
155
|
+
def enable_non_ssl_port(self) -> Optional[pulumi.Input[bool]]:
|
|
156
|
+
"""
|
|
157
|
+
Specifies whether the non-ssl Redis server port (6379) is enabled.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "enable_non_ssl_port")
|
|
160
|
+
|
|
161
|
+
@enable_non_ssl_port.setter
|
|
162
|
+
def enable_non_ssl_port(self, value: Optional[pulumi.Input[bool]]):
|
|
163
|
+
pulumi.set(self, "enable_non_ssl_port", value)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def identity(self) -> Optional[pulumi.Input['ManagedServiceIdentityArgs']]:
|
|
168
|
+
"""
|
|
169
|
+
The identity of the resource.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "identity")
|
|
172
|
+
|
|
173
|
+
@identity.setter
|
|
174
|
+
def identity(self, value: Optional[pulumi.Input['ManagedServiceIdentityArgs']]):
|
|
175
|
+
pulumi.set(self, "identity", value)
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter
|
|
179
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
|
180
|
+
"""
|
|
181
|
+
The geo-location where the resource lives
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "location")
|
|
184
|
+
|
|
185
|
+
@location.setter
|
|
186
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
|
187
|
+
pulumi.set(self, "location", value)
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
@pulumi.getter(name="minimumTlsVersion")
|
|
191
|
+
def minimum_tls_version(self) -> Optional[pulumi.Input[Union[str, 'TlsVersion']]]:
|
|
192
|
+
"""
|
|
193
|
+
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2')
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "minimum_tls_version")
|
|
196
|
+
|
|
197
|
+
@minimum_tls_version.setter
|
|
198
|
+
def minimum_tls_version(self, value: Optional[pulumi.Input[Union[str, 'TlsVersion']]]):
|
|
199
|
+
pulumi.set(self, "minimum_tls_version", value)
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
@pulumi.getter
|
|
203
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
204
|
+
"""
|
|
205
|
+
The name of the Redis cache.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "name")
|
|
208
|
+
|
|
209
|
+
@name.setter
|
|
210
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
211
|
+
pulumi.set(self, "name", value)
|
|
212
|
+
|
|
213
|
+
@property
|
|
214
|
+
@pulumi.getter(name="publicNetworkAccess")
|
|
215
|
+
def public_network_access(self) -> Optional[pulumi.Input[Union[str, 'PublicNetworkAccess']]]:
|
|
216
|
+
"""
|
|
217
|
+
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'
|
|
218
|
+
"""
|
|
219
|
+
return pulumi.get(self, "public_network_access")
|
|
220
|
+
|
|
221
|
+
@public_network_access.setter
|
|
222
|
+
def public_network_access(self, value: Optional[pulumi.Input[Union[str, 'PublicNetworkAccess']]]):
|
|
223
|
+
pulumi.set(self, "public_network_access", value)
|
|
224
|
+
|
|
225
|
+
@property
|
|
226
|
+
@pulumi.getter(name="redisConfiguration")
|
|
227
|
+
def redis_configuration(self) -> Optional[pulumi.Input['RedisCommonPropertiesRedisConfigurationArgs']]:
|
|
228
|
+
"""
|
|
229
|
+
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
|
|
230
|
+
"""
|
|
231
|
+
return pulumi.get(self, "redis_configuration")
|
|
232
|
+
|
|
233
|
+
@redis_configuration.setter
|
|
234
|
+
def redis_configuration(self, value: Optional[pulumi.Input['RedisCommonPropertiesRedisConfigurationArgs']]):
|
|
235
|
+
pulumi.set(self, "redis_configuration", value)
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
@pulumi.getter(name="redisVersion")
|
|
239
|
+
def redis_version(self) -> Optional[pulumi.Input[str]]:
|
|
240
|
+
"""
|
|
241
|
+
Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
|
|
242
|
+
"""
|
|
243
|
+
return pulumi.get(self, "redis_version")
|
|
244
|
+
|
|
245
|
+
@redis_version.setter
|
|
246
|
+
def redis_version(self, value: Optional[pulumi.Input[str]]):
|
|
247
|
+
pulumi.set(self, "redis_version", value)
|
|
248
|
+
|
|
249
|
+
@property
|
|
250
|
+
@pulumi.getter(name="replicasPerMaster")
|
|
251
|
+
def replicas_per_master(self) -> Optional[pulumi.Input[int]]:
|
|
252
|
+
"""
|
|
253
|
+
The number of replicas to be created per primary.
|
|
254
|
+
"""
|
|
255
|
+
return pulumi.get(self, "replicas_per_master")
|
|
256
|
+
|
|
257
|
+
@replicas_per_master.setter
|
|
258
|
+
def replicas_per_master(self, value: Optional[pulumi.Input[int]]):
|
|
259
|
+
pulumi.set(self, "replicas_per_master", value)
|
|
260
|
+
|
|
261
|
+
@property
|
|
262
|
+
@pulumi.getter(name="replicasPerPrimary")
|
|
263
|
+
def replicas_per_primary(self) -> Optional[pulumi.Input[int]]:
|
|
264
|
+
"""
|
|
265
|
+
The number of replicas to be created per primary.
|
|
266
|
+
"""
|
|
267
|
+
return pulumi.get(self, "replicas_per_primary")
|
|
268
|
+
|
|
269
|
+
@replicas_per_primary.setter
|
|
270
|
+
def replicas_per_primary(self, value: Optional[pulumi.Input[int]]):
|
|
271
|
+
pulumi.set(self, "replicas_per_primary", value)
|
|
272
|
+
|
|
273
|
+
@property
|
|
274
|
+
@pulumi.getter(name="shardCount")
|
|
275
|
+
def shard_count(self) -> Optional[pulumi.Input[int]]:
|
|
276
|
+
"""
|
|
277
|
+
The number of shards to be created on a Premium Cluster Cache.
|
|
278
|
+
"""
|
|
279
|
+
return pulumi.get(self, "shard_count")
|
|
280
|
+
|
|
281
|
+
@shard_count.setter
|
|
282
|
+
def shard_count(self, value: Optional[pulumi.Input[int]]):
|
|
283
|
+
pulumi.set(self, "shard_count", value)
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
@pulumi.getter(name="staticIP")
|
|
287
|
+
def static_ip(self) -> Optional[pulumi.Input[str]]:
|
|
288
|
+
"""
|
|
289
|
+
Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
|
|
290
|
+
"""
|
|
291
|
+
return pulumi.get(self, "static_ip")
|
|
292
|
+
|
|
293
|
+
@static_ip.setter
|
|
294
|
+
def static_ip(self, value: Optional[pulumi.Input[str]]):
|
|
295
|
+
pulumi.set(self, "static_ip", value)
|
|
296
|
+
|
|
297
|
+
@property
|
|
298
|
+
@pulumi.getter(name="subnetId")
|
|
299
|
+
def subnet_id(self) -> Optional[pulumi.Input[str]]:
|
|
300
|
+
"""
|
|
301
|
+
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
|
|
302
|
+
"""
|
|
303
|
+
return pulumi.get(self, "subnet_id")
|
|
304
|
+
|
|
305
|
+
@subnet_id.setter
|
|
306
|
+
def subnet_id(self, value: Optional[pulumi.Input[str]]):
|
|
307
|
+
pulumi.set(self, "subnet_id", value)
|
|
308
|
+
|
|
309
|
+
@property
|
|
310
|
+
@pulumi.getter
|
|
311
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
312
|
+
"""
|
|
313
|
+
Resource tags.
|
|
314
|
+
"""
|
|
315
|
+
return pulumi.get(self, "tags")
|
|
316
|
+
|
|
317
|
+
@tags.setter
|
|
318
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
319
|
+
pulumi.set(self, "tags", value)
|
|
320
|
+
|
|
321
|
+
@property
|
|
322
|
+
@pulumi.getter(name="tenantSettings")
|
|
323
|
+
def tenant_settings(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
324
|
+
"""
|
|
325
|
+
A dictionary of tenant settings
|
|
326
|
+
"""
|
|
327
|
+
return pulumi.get(self, "tenant_settings")
|
|
328
|
+
|
|
329
|
+
@tenant_settings.setter
|
|
330
|
+
def tenant_settings(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
331
|
+
pulumi.set(self, "tenant_settings", value)
|
|
332
|
+
|
|
333
|
+
@property
|
|
334
|
+
@pulumi.getter(name="updateChannel")
|
|
335
|
+
def update_channel(self) -> Optional[pulumi.Input[Union[str, 'UpdateChannel']]]:
|
|
336
|
+
"""
|
|
337
|
+
Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
|
|
338
|
+
"""
|
|
339
|
+
return pulumi.get(self, "update_channel")
|
|
340
|
+
|
|
341
|
+
@update_channel.setter
|
|
342
|
+
def update_channel(self, value: Optional[pulumi.Input[Union[str, 'UpdateChannel']]]):
|
|
343
|
+
pulumi.set(self, "update_channel", value)
|
|
344
|
+
|
|
345
|
+
@property
|
|
346
|
+
@pulumi.getter(name="zonalAllocationPolicy")
|
|
347
|
+
def zonal_allocation_policy(self) -> Optional[pulumi.Input[Union[str, 'ZonalAllocationPolicy']]]:
|
|
348
|
+
"""
|
|
349
|
+
Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported.
|
|
350
|
+
"""
|
|
351
|
+
return pulumi.get(self, "zonal_allocation_policy")
|
|
352
|
+
|
|
353
|
+
@zonal_allocation_policy.setter
|
|
354
|
+
def zonal_allocation_policy(self, value: Optional[pulumi.Input[Union[str, 'ZonalAllocationPolicy']]]):
|
|
355
|
+
pulumi.set(self, "zonal_allocation_policy", value)
|
|
356
|
+
|
|
357
|
+
@property
|
|
358
|
+
@pulumi.getter
|
|
359
|
+
def zones(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
360
|
+
"""
|
|
361
|
+
A list of availability zones denoting where the resource needs to come from.
|
|
362
|
+
"""
|
|
363
|
+
return pulumi.get(self, "zones")
|
|
364
|
+
|
|
365
|
+
@zones.setter
|
|
366
|
+
def zones(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
367
|
+
pulumi.set(self, "zones", value)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
class Redis(pulumi.CustomResource):
|
|
371
|
+
@overload
|
|
372
|
+
def __init__(__self__,
|
|
373
|
+
resource_name: str,
|
|
374
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
375
|
+
disable_access_key_authentication: Optional[pulumi.Input[bool]] = None,
|
|
376
|
+
enable_non_ssl_port: Optional[pulumi.Input[bool]] = None,
|
|
377
|
+
identity: Optional[pulumi.Input[Union['ManagedServiceIdentityArgs', 'ManagedServiceIdentityArgsDict']]] = None,
|
|
378
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
379
|
+
minimum_tls_version: Optional[pulumi.Input[Union[str, 'TlsVersion']]] = None,
|
|
380
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
381
|
+
public_network_access: Optional[pulumi.Input[Union[str, 'PublicNetworkAccess']]] = None,
|
|
382
|
+
redis_configuration: Optional[pulumi.Input[Union['RedisCommonPropertiesRedisConfigurationArgs', 'RedisCommonPropertiesRedisConfigurationArgsDict']]] = None,
|
|
383
|
+
redis_version: Optional[pulumi.Input[str]] = None,
|
|
384
|
+
replicas_per_master: Optional[pulumi.Input[int]] = None,
|
|
385
|
+
replicas_per_primary: Optional[pulumi.Input[int]] = None,
|
|
386
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
387
|
+
shard_count: Optional[pulumi.Input[int]] = None,
|
|
388
|
+
sku: Optional[pulumi.Input[Union['SkuArgs', 'SkuArgsDict']]] = None,
|
|
389
|
+
static_ip: Optional[pulumi.Input[str]] = None,
|
|
390
|
+
subnet_id: Optional[pulumi.Input[str]] = None,
|
|
391
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
392
|
+
tenant_settings: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
393
|
+
update_channel: Optional[pulumi.Input[Union[str, 'UpdateChannel']]] = None,
|
|
394
|
+
zonal_allocation_policy: Optional[pulumi.Input[Union[str, 'ZonalAllocationPolicy']]] = None,
|
|
395
|
+
zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
396
|
+
__props__=None):
|
|
397
|
+
"""
|
|
398
|
+
A single Redis item in List or Get Operation.
|
|
399
|
+
|
|
400
|
+
:param str resource_name: The name of the resource.
|
|
401
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
402
|
+
:param pulumi.Input[bool] disable_access_key_authentication: Authentication to Redis through access keys is disabled when set as true. Default value is false.
|
|
403
|
+
:param pulumi.Input[bool] enable_non_ssl_port: Specifies whether the non-ssl Redis server port (6379) is enabled.
|
|
404
|
+
:param pulumi.Input[Union['ManagedServiceIdentityArgs', 'ManagedServiceIdentityArgsDict']] identity: The identity of the resource.
|
|
405
|
+
:param pulumi.Input[str] location: The geo-location where the resource lives
|
|
406
|
+
:param pulumi.Input[Union[str, 'TlsVersion']] minimum_tls_version: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2')
|
|
407
|
+
:param pulumi.Input[str] name: The name of the Redis cache.
|
|
408
|
+
:param pulumi.Input[Union[str, 'PublicNetworkAccess']] public_network_access: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'
|
|
409
|
+
:param pulumi.Input[Union['RedisCommonPropertiesRedisConfigurationArgs', 'RedisCommonPropertiesRedisConfigurationArgsDict']] redis_configuration: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
|
|
410
|
+
:param pulumi.Input[str] redis_version: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
|
|
411
|
+
:param pulumi.Input[int] replicas_per_master: The number of replicas to be created per primary.
|
|
412
|
+
:param pulumi.Input[int] replicas_per_primary: The number of replicas to be created per primary.
|
|
413
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
414
|
+
:param pulumi.Input[int] shard_count: The number of shards to be created on a Premium Cluster Cache.
|
|
415
|
+
:param pulumi.Input[Union['SkuArgs', 'SkuArgsDict']] sku: The SKU of the Redis cache to deploy.
|
|
416
|
+
:param pulumi.Input[str] static_ip: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
|
|
417
|
+
:param pulumi.Input[str] subnet_id: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
|
|
418
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags.
|
|
419
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tenant_settings: A dictionary of tenant settings
|
|
420
|
+
:param pulumi.Input[Union[str, 'UpdateChannel']] update_channel: Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
|
|
421
|
+
:param pulumi.Input[Union[str, 'ZonalAllocationPolicy']] zonal_allocation_policy: Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported.
|
|
422
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] zones: A list of availability zones denoting where the resource needs to come from.
|
|
423
|
+
"""
|
|
424
|
+
...
|
|
425
|
+
@overload
|
|
426
|
+
def __init__(__self__,
|
|
427
|
+
resource_name: str,
|
|
428
|
+
args: RedisArgs,
|
|
429
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
430
|
+
"""
|
|
431
|
+
A single Redis item in List or Get Operation.
|
|
432
|
+
|
|
433
|
+
:param str resource_name: The name of the resource.
|
|
434
|
+
:param RedisArgs args: The arguments to use to populate this resource's properties.
|
|
435
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
436
|
+
"""
|
|
437
|
+
...
|
|
438
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
439
|
+
resource_args, opts = _utilities.get_resource_args_opts(RedisArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
440
|
+
if resource_args is not None:
|
|
441
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
442
|
+
else:
|
|
443
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
444
|
+
|
|
445
|
+
def _internal_init(__self__,
|
|
446
|
+
resource_name: str,
|
|
447
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
448
|
+
disable_access_key_authentication: Optional[pulumi.Input[bool]] = None,
|
|
449
|
+
enable_non_ssl_port: Optional[pulumi.Input[bool]] = None,
|
|
450
|
+
identity: Optional[pulumi.Input[Union['ManagedServiceIdentityArgs', 'ManagedServiceIdentityArgsDict']]] = None,
|
|
451
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
452
|
+
minimum_tls_version: Optional[pulumi.Input[Union[str, 'TlsVersion']]] = None,
|
|
453
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
454
|
+
public_network_access: Optional[pulumi.Input[Union[str, 'PublicNetworkAccess']]] = None,
|
|
455
|
+
redis_configuration: Optional[pulumi.Input[Union['RedisCommonPropertiesRedisConfigurationArgs', 'RedisCommonPropertiesRedisConfigurationArgsDict']]] = None,
|
|
456
|
+
redis_version: Optional[pulumi.Input[str]] = None,
|
|
457
|
+
replicas_per_master: Optional[pulumi.Input[int]] = None,
|
|
458
|
+
replicas_per_primary: Optional[pulumi.Input[int]] = None,
|
|
459
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
460
|
+
shard_count: Optional[pulumi.Input[int]] = None,
|
|
461
|
+
sku: Optional[pulumi.Input[Union['SkuArgs', 'SkuArgsDict']]] = None,
|
|
462
|
+
static_ip: Optional[pulumi.Input[str]] = None,
|
|
463
|
+
subnet_id: Optional[pulumi.Input[str]] = None,
|
|
464
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
465
|
+
tenant_settings: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
466
|
+
update_channel: Optional[pulumi.Input[Union[str, 'UpdateChannel']]] = None,
|
|
467
|
+
zonal_allocation_policy: Optional[pulumi.Input[Union[str, 'ZonalAllocationPolicy']]] = None,
|
|
468
|
+
zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
469
|
+
__props__=None):
|
|
470
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
471
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
472
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
473
|
+
if opts.id is None:
|
|
474
|
+
if __props__ is not None:
|
|
475
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
476
|
+
__props__ = RedisArgs.__new__(RedisArgs)
|
|
477
|
+
|
|
478
|
+
if disable_access_key_authentication is None:
|
|
479
|
+
disable_access_key_authentication = False
|
|
480
|
+
__props__.__dict__["disable_access_key_authentication"] = disable_access_key_authentication
|
|
481
|
+
if enable_non_ssl_port is None:
|
|
482
|
+
enable_non_ssl_port = False
|
|
483
|
+
__props__.__dict__["enable_non_ssl_port"] = enable_non_ssl_port
|
|
484
|
+
__props__.__dict__["identity"] = identity
|
|
485
|
+
__props__.__dict__["location"] = location
|
|
486
|
+
__props__.__dict__["minimum_tls_version"] = minimum_tls_version
|
|
487
|
+
__props__.__dict__["name"] = name
|
|
488
|
+
if public_network_access is None:
|
|
489
|
+
public_network_access = 'Enabled'
|
|
490
|
+
__props__.__dict__["public_network_access"] = public_network_access
|
|
491
|
+
__props__.__dict__["redis_configuration"] = redis_configuration
|
|
492
|
+
__props__.__dict__["redis_version"] = redis_version
|
|
493
|
+
__props__.__dict__["replicas_per_master"] = replicas_per_master
|
|
494
|
+
__props__.__dict__["replicas_per_primary"] = replicas_per_primary
|
|
495
|
+
if resource_group_name is None and not opts.urn:
|
|
496
|
+
raise TypeError("Missing required property 'resource_group_name'")
|
|
497
|
+
__props__.__dict__["resource_group_name"] = resource_group_name
|
|
498
|
+
__props__.__dict__["shard_count"] = shard_count
|
|
499
|
+
if sku is None and not opts.urn:
|
|
500
|
+
raise TypeError("Missing required property 'sku'")
|
|
501
|
+
__props__.__dict__["sku"] = sku
|
|
502
|
+
__props__.__dict__["static_ip"] = static_ip
|
|
503
|
+
__props__.__dict__["subnet_id"] = subnet_id
|
|
504
|
+
__props__.__dict__["tags"] = tags
|
|
505
|
+
__props__.__dict__["tenant_settings"] = tenant_settings
|
|
506
|
+
__props__.__dict__["update_channel"] = update_channel
|
|
507
|
+
__props__.__dict__["zonal_allocation_policy"] = zonal_allocation_policy
|
|
508
|
+
__props__.__dict__["zones"] = zones
|
|
509
|
+
__props__.__dict__["access_keys"] = None
|
|
510
|
+
__props__.__dict__["host_name"] = None
|
|
511
|
+
__props__.__dict__["instances"] = None
|
|
512
|
+
__props__.__dict__["linked_servers"] = None
|
|
513
|
+
__props__.__dict__["port"] = None
|
|
514
|
+
__props__.__dict__["private_endpoint_connections"] = None
|
|
515
|
+
__props__.__dict__["provisioning_state"] = None
|
|
516
|
+
__props__.__dict__["ssl_port"] = None
|
|
517
|
+
__props__.__dict__["type"] = None
|
|
518
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:cache:Redis"), pulumi.Alias(type_="azure-native:cache/v20150801:Redis"), pulumi.Alias(type_="azure-native:cache/v20160401:Redis"), pulumi.Alias(type_="azure-native:cache/v20170201:Redis"), pulumi.Alias(type_="azure-native:cache/v20171001:Redis"), pulumi.Alias(type_="azure-native:cache/v20180301:Redis"), pulumi.Alias(type_="azure-native:cache/v20190701:Redis"), pulumi.Alias(type_="azure-native:cache/v20200601:Redis"), pulumi.Alias(type_="azure-native:cache/v20201201:Redis"), pulumi.Alias(type_="azure-native:cache/v20210601:Redis"), pulumi.Alias(type_="azure-native:cache/v20220501:Redis"), pulumi.Alias(type_="azure-native:cache/v20220601:Redis"), pulumi.Alias(type_="azure-native:cache/v20230401:Redis"), pulumi.Alias(type_="azure-native:cache/v20230501preview:Redis"), pulumi.Alias(type_="azure-native:cache/v20230801:Redis"), pulumi.Alias(type_="azure-native:cache/v20240301:Redis"), pulumi.Alias(type_="azure-native:cache/v20240401preview:Redis")])
|
|
519
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
520
|
+
super(Redis, __self__).__init__(
|
|
521
|
+
'azure-native:cache/v20241101:Redis',
|
|
522
|
+
resource_name,
|
|
523
|
+
__props__,
|
|
524
|
+
opts)
|
|
525
|
+
|
|
526
|
+
@staticmethod
|
|
527
|
+
def get(resource_name: str,
|
|
528
|
+
id: pulumi.Input[str],
|
|
529
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'Redis':
|
|
530
|
+
"""
|
|
531
|
+
Get an existing Redis resource's state with the given name, id, and optional extra
|
|
532
|
+
properties used to qualify the lookup.
|
|
533
|
+
|
|
534
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
535
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
536
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
537
|
+
"""
|
|
538
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
539
|
+
|
|
540
|
+
__props__ = RedisArgs.__new__(RedisArgs)
|
|
541
|
+
|
|
542
|
+
__props__.__dict__["access_keys"] = None
|
|
543
|
+
__props__.__dict__["disable_access_key_authentication"] = None
|
|
544
|
+
__props__.__dict__["enable_non_ssl_port"] = None
|
|
545
|
+
__props__.__dict__["host_name"] = None
|
|
546
|
+
__props__.__dict__["identity"] = None
|
|
547
|
+
__props__.__dict__["instances"] = None
|
|
548
|
+
__props__.__dict__["linked_servers"] = None
|
|
549
|
+
__props__.__dict__["location"] = None
|
|
550
|
+
__props__.__dict__["minimum_tls_version"] = None
|
|
551
|
+
__props__.__dict__["name"] = None
|
|
552
|
+
__props__.__dict__["port"] = None
|
|
553
|
+
__props__.__dict__["private_endpoint_connections"] = None
|
|
554
|
+
__props__.__dict__["provisioning_state"] = None
|
|
555
|
+
__props__.__dict__["public_network_access"] = None
|
|
556
|
+
__props__.__dict__["redis_configuration"] = None
|
|
557
|
+
__props__.__dict__["redis_version"] = None
|
|
558
|
+
__props__.__dict__["replicas_per_master"] = None
|
|
559
|
+
__props__.__dict__["replicas_per_primary"] = None
|
|
560
|
+
__props__.__dict__["shard_count"] = None
|
|
561
|
+
__props__.__dict__["sku"] = None
|
|
562
|
+
__props__.__dict__["ssl_port"] = None
|
|
563
|
+
__props__.__dict__["static_ip"] = None
|
|
564
|
+
__props__.__dict__["subnet_id"] = None
|
|
565
|
+
__props__.__dict__["tags"] = None
|
|
566
|
+
__props__.__dict__["tenant_settings"] = None
|
|
567
|
+
__props__.__dict__["type"] = None
|
|
568
|
+
__props__.__dict__["update_channel"] = None
|
|
569
|
+
__props__.__dict__["zonal_allocation_policy"] = None
|
|
570
|
+
__props__.__dict__["zones"] = None
|
|
571
|
+
return Redis(resource_name, opts=opts, __props__=__props__)
|
|
572
|
+
|
|
573
|
+
@property
|
|
574
|
+
@pulumi.getter(name="accessKeys")
|
|
575
|
+
def access_keys(self) -> pulumi.Output['outputs.RedisAccessKeysResponse']:
|
|
576
|
+
"""
|
|
577
|
+
The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
|
|
578
|
+
"""
|
|
579
|
+
return pulumi.get(self, "access_keys")
|
|
580
|
+
|
|
581
|
+
@property
|
|
582
|
+
@pulumi.getter(name="disableAccessKeyAuthentication")
|
|
583
|
+
def disable_access_key_authentication(self) -> pulumi.Output[Optional[bool]]:
|
|
584
|
+
"""
|
|
585
|
+
Authentication to Redis through access keys is disabled when set as true. Default value is false.
|
|
586
|
+
"""
|
|
587
|
+
return pulumi.get(self, "disable_access_key_authentication")
|
|
588
|
+
|
|
589
|
+
@property
|
|
590
|
+
@pulumi.getter(name="enableNonSslPort")
|
|
591
|
+
def enable_non_ssl_port(self) -> pulumi.Output[Optional[bool]]:
|
|
592
|
+
"""
|
|
593
|
+
Specifies whether the non-ssl Redis server port (6379) is enabled.
|
|
594
|
+
"""
|
|
595
|
+
return pulumi.get(self, "enable_non_ssl_port")
|
|
596
|
+
|
|
597
|
+
@property
|
|
598
|
+
@pulumi.getter(name="hostName")
|
|
599
|
+
def host_name(self) -> pulumi.Output[str]:
|
|
600
|
+
"""
|
|
601
|
+
Redis host name.
|
|
602
|
+
"""
|
|
603
|
+
return pulumi.get(self, "host_name")
|
|
604
|
+
|
|
605
|
+
@property
|
|
606
|
+
@pulumi.getter
|
|
607
|
+
def identity(self) -> pulumi.Output[Optional['outputs.ManagedServiceIdentityResponse']]:
|
|
608
|
+
"""
|
|
609
|
+
The identity of the resource.
|
|
610
|
+
"""
|
|
611
|
+
return pulumi.get(self, "identity")
|
|
612
|
+
|
|
613
|
+
@property
|
|
614
|
+
@pulumi.getter
|
|
615
|
+
def instances(self) -> pulumi.Output[Sequence['outputs.RedisInstanceDetailsResponse']]:
|
|
616
|
+
"""
|
|
617
|
+
List of the Redis instances associated with the cache
|
|
618
|
+
"""
|
|
619
|
+
return pulumi.get(self, "instances")
|
|
620
|
+
|
|
621
|
+
@property
|
|
622
|
+
@pulumi.getter(name="linkedServers")
|
|
623
|
+
def linked_servers(self) -> pulumi.Output[Sequence['outputs.RedisLinkedServerResponse']]:
|
|
624
|
+
"""
|
|
625
|
+
List of the linked servers associated with the cache
|
|
626
|
+
"""
|
|
627
|
+
return pulumi.get(self, "linked_servers")
|
|
628
|
+
|
|
629
|
+
@property
|
|
630
|
+
@pulumi.getter
|
|
631
|
+
def location(self) -> pulumi.Output[str]:
|
|
632
|
+
"""
|
|
633
|
+
The geo-location where the resource lives
|
|
634
|
+
"""
|
|
635
|
+
return pulumi.get(self, "location")
|
|
636
|
+
|
|
637
|
+
@property
|
|
638
|
+
@pulumi.getter(name="minimumTlsVersion")
|
|
639
|
+
def minimum_tls_version(self) -> pulumi.Output[Optional[str]]:
|
|
640
|
+
"""
|
|
641
|
+
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2')
|
|
642
|
+
"""
|
|
643
|
+
return pulumi.get(self, "minimum_tls_version")
|
|
644
|
+
|
|
645
|
+
@property
|
|
646
|
+
@pulumi.getter
|
|
647
|
+
def name(self) -> pulumi.Output[str]:
|
|
648
|
+
"""
|
|
649
|
+
The name of the resource
|
|
650
|
+
"""
|
|
651
|
+
return pulumi.get(self, "name")
|
|
652
|
+
|
|
653
|
+
@property
|
|
654
|
+
@pulumi.getter
|
|
655
|
+
def port(self) -> pulumi.Output[int]:
|
|
656
|
+
"""
|
|
657
|
+
Redis non-SSL port.
|
|
658
|
+
"""
|
|
659
|
+
return pulumi.get(self, "port")
|
|
660
|
+
|
|
661
|
+
@property
|
|
662
|
+
@pulumi.getter(name="privateEndpointConnections")
|
|
663
|
+
def private_endpoint_connections(self) -> pulumi.Output[Sequence['outputs.PrivateEndpointConnectionResponse']]:
|
|
664
|
+
"""
|
|
665
|
+
List of private endpoint connection associated with the specified redis cache
|
|
666
|
+
"""
|
|
667
|
+
return pulumi.get(self, "private_endpoint_connections")
|
|
668
|
+
|
|
669
|
+
@property
|
|
670
|
+
@pulumi.getter(name="provisioningState")
|
|
671
|
+
def provisioning_state(self) -> pulumi.Output[str]:
|
|
672
|
+
"""
|
|
673
|
+
Redis instance provisioning status.
|
|
674
|
+
"""
|
|
675
|
+
return pulumi.get(self, "provisioning_state")
|
|
676
|
+
|
|
677
|
+
@property
|
|
678
|
+
@pulumi.getter(name="publicNetworkAccess")
|
|
679
|
+
def public_network_access(self) -> pulumi.Output[Optional[str]]:
|
|
680
|
+
"""
|
|
681
|
+
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'
|
|
682
|
+
"""
|
|
683
|
+
return pulumi.get(self, "public_network_access")
|
|
684
|
+
|
|
685
|
+
@property
|
|
686
|
+
@pulumi.getter(name="redisConfiguration")
|
|
687
|
+
def redis_configuration(self) -> pulumi.Output[Optional['outputs.RedisCommonPropertiesResponseRedisConfiguration']]:
|
|
688
|
+
"""
|
|
689
|
+
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
|
|
690
|
+
"""
|
|
691
|
+
return pulumi.get(self, "redis_configuration")
|
|
692
|
+
|
|
693
|
+
@property
|
|
694
|
+
@pulumi.getter(name="redisVersion")
|
|
695
|
+
def redis_version(self) -> pulumi.Output[Optional[str]]:
|
|
696
|
+
"""
|
|
697
|
+
Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
|
|
698
|
+
"""
|
|
699
|
+
return pulumi.get(self, "redis_version")
|
|
700
|
+
|
|
701
|
+
@property
|
|
702
|
+
@pulumi.getter(name="replicasPerMaster")
|
|
703
|
+
def replicas_per_master(self) -> pulumi.Output[Optional[int]]:
|
|
704
|
+
"""
|
|
705
|
+
The number of replicas to be created per primary.
|
|
706
|
+
"""
|
|
707
|
+
return pulumi.get(self, "replicas_per_master")
|
|
708
|
+
|
|
709
|
+
@property
|
|
710
|
+
@pulumi.getter(name="replicasPerPrimary")
|
|
711
|
+
def replicas_per_primary(self) -> pulumi.Output[Optional[int]]:
|
|
712
|
+
"""
|
|
713
|
+
The number of replicas to be created per primary.
|
|
714
|
+
"""
|
|
715
|
+
return pulumi.get(self, "replicas_per_primary")
|
|
716
|
+
|
|
717
|
+
@property
|
|
718
|
+
@pulumi.getter(name="shardCount")
|
|
719
|
+
def shard_count(self) -> pulumi.Output[Optional[int]]:
|
|
720
|
+
"""
|
|
721
|
+
The number of shards to be created on a Premium Cluster Cache.
|
|
722
|
+
"""
|
|
723
|
+
return pulumi.get(self, "shard_count")
|
|
724
|
+
|
|
725
|
+
@property
|
|
726
|
+
@pulumi.getter
|
|
727
|
+
def sku(self) -> pulumi.Output['outputs.SkuResponse']:
|
|
728
|
+
"""
|
|
729
|
+
The SKU of the Redis cache to deploy.
|
|
730
|
+
"""
|
|
731
|
+
return pulumi.get(self, "sku")
|
|
732
|
+
|
|
733
|
+
@property
|
|
734
|
+
@pulumi.getter(name="sslPort")
|
|
735
|
+
def ssl_port(self) -> pulumi.Output[int]:
|
|
736
|
+
"""
|
|
737
|
+
Redis SSL port.
|
|
738
|
+
"""
|
|
739
|
+
return pulumi.get(self, "ssl_port")
|
|
740
|
+
|
|
741
|
+
@property
|
|
742
|
+
@pulumi.getter(name="staticIP")
|
|
743
|
+
def static_ip(self) -> pulumi.Output[Optional[str]]:
|
|
744
|
+
"""
|
|
745
|
+
Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
|
|
746
|
+
"""
|
|
747
|
+
return pulumi.get(self, "static_ip")
|
|
748
|
+
|
|
749
|
+
@property
|
|
750
|
+
@pulumi.getter(name="subnetId")
|
|
751
|
+
def subnet_id(self) -> pulumi.Output[Optional[str]]:
|
|
752
|
+
"""
|
|
753
|
+
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
|
|
754
|
+
"""
|
|
755
|
+
return pulumi.get(self, "subnet_id")
|
|
756
|
+
|
|
757
|
+
@property
|
|
758
|
+
@pulumi.getter
|
|
759
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
760
|
+
"""
|
|
761
|
+
Resource tags.
|
|
762
|
+
"""
|
|
763
|
+
return pulumi.get(self, "tags")
|
|
764
|
+
|
|
765
|
+
@property
|
|
766
|
+
@pulumi.getter(name="tenantSettings")
|
|
767
|
+
def tenant_settings(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
768
|
+
"""
|
|
769
|
+
A dictionary of tenant settings
|
|
770
|
+
"""
|
|
771
|
+
return pulumi.get(self, "tenant_settings")
|
|
772
|
+
|
|
773
|
+
@property
|
|
774
|
+
@pulumi.getter
|
|
775
|
+
def type(self) -> pulumi.Output[str]:
|
|
776
|
+
"""
|
|
777
|
+
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
778
|
+
"""
|
|
779
|
+
return pulumi.get(self, "type")
|
|
780
|
+
|
|
781
|
+
@property
|
|
782
|
+
@pulumi.getter(name="updateChannel")
|
|
783
|
+
def update_channel(self) -> pulumi.Output[Optional[str]]:
|
|
784
|
+
"""
|
|
785
|
+
Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.
|
|
786
|
+
"""
|
|
787
|
+
return pulumi.get(self, "update_channel")
|
|
788
|
+
|
|
789
|
+
@property
|
|
790
|
+
@pulumi.getter(name="zonalAllocationPolicy")
|
|
791
|
+
def zonal_allocation_policy(self) -> pulumi.Output[Optional[str]]:
|
|
792
|
+
"""
|
|
793
|
+
Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported.
|
|
794
|
+
"""
|
|
795
|
+
return pulumi.get(self, "zonal_allocation_policy")
|
|
796
|
+
|
|
797
|
+
@property
|
|
798
|
+
@pulumi.getter
|
|
799
|
+
def zones(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
800
|
+
"""
|
|
801
|
+
A list of availability zones denoting where the resource needs to come from.
|
|
802
|
+
"""
|
|
803
|
+
return pulumi.get(self, "zones")
|
|
804
|
+
|