redis

class pulumi_azure.redis.Cache(resource_name, opts=None, capacity=None, enable_non_ssl_port=None, family=None, location=None, minimum_tls_version=None, name=None, patch_schedules=None, private_static_ip_address=None, redis_configuration=None, resource_group_name=None, shard_count=None, sku_name=None, subnet_id=None, tags=None, zones=None, __name__=None, __opts__=None)

Manages a Redis Cache.

Redis Value Basic Standard Premium
enable_authentication true true true
maxmemory_reserved 2 50 200
maxfragmentationmemory_reserved 2 50 200
maxmemory_delta 2 50 200
maxmemory_policy volatile-lru volatile-lru volatile-lru
NOTE: The maxmemory_reserved, maxmemory_delta and maxfragmentationmemory-reserved settings are only available for Standard and Premium caches. More details are available in the Relevant Links section below._

A patch_schedule block supports the following:

  • day_of_week (Required) the Weekday name - possible values include Monday, Tuesday, Wednesday etc.
  • start_hour_utc - (Optional) the Start Hour for maintenance in UTC - possible values range from 0 - 23.
Note: The Patch Window lasts for 5 hours from the start_hour_utc.
Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • capacity (pulumi.Input[float]) – The size of the Redis cache to deploy. Valid values for a SKU family of C (Basic/Standard) are 0, 1, 2, 3, 4, 5, 6, and for P (Premium) family are 1, 2, 3, 4.
  • enable_non_ssl_port (pulumi.Input[bool]) – Enable the non-SSL port (6789) - disabled by default.
  • family (pulumi.Input[str]) – The SKU family/pricing group to use. Valid values are C (for Basic/Standard SKU family) and P (for Premium)
  • location (pulumi.Input[str]) – The location of the resource group.
  • minimum_tls_version (pulumi.Input[str]) – The minimum TLS version. Defaults to 1.0.
  • name (pulumi.Input[str]) – The name of the Redis instance. Changing this forces a new resource to be created.
  • patch_schedules (pulumi.Input[list]) – A list of patch_schedule blocks as defined below - only available for Premium SKU’s.
  • private_static_ip_address (pulumi.Input[str]) – The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. Changing this forces a new resource to be created.
  • redis_configuration (pulumi.Input[dict]) – A redis_configuration as defined below - with some limitations by SKU - defaults/details are shown below.
  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Redis instance.
  • shard_count (pulumi.Input[float]) – Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.
  • sku_name (pulumi.Input[str]) – The SKU of Redis to use. Possible values are Basic, Standard and Premium.
  • subnet_id (pulumi.Input[str]) – The ID of the Subnet within which the Redis Cache should be deployed. Changing this forces a new resource to be created.
  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.
  • zones (pulumi.Input[str]) – A list of a single item of the Availability Zone which the Redis Cache should be allocated in.
capacity = None

The size of the Redis cache to deploy. Valid values for a SKU family of C (Basic/Standard) are 0, 1, 2, 3, 4, 5, 6, and for P (Premium) family are 1, 2, 3, 4.

enable_non_ssl_port = None

Enable the non-SSL port (6789) - disabled by default.

family = None

The SKU family/pricing group to use. Valid values are C (for Basic/Standard SKU family) and P (for Premium)

hostname = None

The Hostname of the Redis Instance

location = None

The location of the resource group.

minimum_tls_version = None

The minimum TLS version. Defaults to 1.0.

name = None

The name of the Redis instance. Changing this forces a new resource to be created.

patch_schedules = None

A list of patch_schedule blocks as defined below - only available for Premium SKU’s.

port = None

The non-SSL Port of the Redis Instance

primary_access_key = None

The Primary Access Key for the Redis Instance

private_static_ip_address = None

The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. Changing this forces a new resource to be created.

redis_configuration = None

A redis_configuration as defined below - with some limitations by SKU - defaults/details are shown below.

resource_group_name = None

The name of the resource group in which to create the Redis instance.

secondary_access_key = None

The Secondary Access Key for the Redis Instance

shard_count = None

Only available when using the Premium SKU The number of Shards to create on the Redis Cluster.

sku_name = None

The SKU of Redis to use. Possible values are Basic, Standard and Premium.

ssl_port = None

The SSL Port of the Redis Instance

subnet_id = None

The ID of the Subnet within which the Redis Cache should be deployed. Changing this forces a new resource to be created.

tags = None

A mapping of tags to assign to the resource.

zones = None

A list of a single item of the Availability Zone which the Redis Cache should be allocated in.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
class pulumi_azure.redis.FirewallRule(resource_name, opts=None, end_ip=None, name=None, redis_cache_name=None, resource_group_name=None, start_ip=None, __name__=None, __opts__=None)

Manages a Firewall Rule associated with a Redis Cache.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • end_ip (pulumi.Input[str]) – The highest IP address included in the range.
  • name (pulumi.Input[str]) – The name of the Firewall Rule. Changing this forces a new resource to be created.
  • redis_cache_name (pulumi.Input[str]) – The name of the Redis Cache. Changing this forces a new resource to be created.
  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which this Redis Cache exists.
  • start_ip (pulumi.Input[str]) – The lowest IP address included in the range
end_ip = None

The highest IP address included in the range.

name = None

The name of the Firewall Rule. Changing this forces a new resource to be created.

redis_cache_name = None

The name of the Redis Cache. Changing this forces a new resource to be created.

resource_group_name = None

The name of the resource group in which this Redis Cache exists.

start_ip = None

The lowest IP address included in the range

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str