Fork me on GitHub

Module redis

@pulumi/azure > redis

Index

redis/cache.ts redis/firewallRule.ts

class Cache

Manages a Redis Cache.

constructor

new Cache(name: string, args: CacheArgs, opts?: pulumi.CustomResourceOptions)

Create a Cache resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CacheState): Cache

Get an existing Cache resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property capacity

public capacity: pulumi.Output<number>;

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.

property enableNonSslPort

public enableNonSslPort: pulumi.Output<boolean | undefined>;

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

property family

public family: pulumi.Output<string>;

The SKU family to use. Valid values are C and P, where C = Basic/Standard, P = Premium.

property hostname

public hostname: pulumi.Output<string>;

The Hostname of the Redis Instance

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property location

public location: pulumi.Output<string>;

The location of the resource group.

property name

public name: pulumi.Output<string>;

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

property patchSchedules

public patchSchedules: pulumi.Output<{ ... }[] | undefined>;

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

property port

public port: pulumi.Output<number>;

The non-SSL Port of the Redis Instance

property primaryAccessKey

public primaryAccessKey: pulumi.Output<string>;

The Primary Access Key for the Redis Instance

property privateStaticIpAddress

public privateStaticIpAddress: pulumi.Output<string>;

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.

property redisConfiguration

public redisConfiguration: pulumi.Output<{ ... }>;

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

property resourceGroupName

public resourceGroupName: pulumi.Output<string>;

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

property secondaryAccessKey

public secondaryAccessKey: pulumi.Output<string>;

The Secondary Access Key for the Redis Instance

property shardCount

public shardCount: pulumi.Output<number | undefined>;

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

property skuName

public skuName: pulumi.Output<string>;

The SKU of Redis to use - can be either Basic, Standard or Premium.

property sslPort

public sslPort: pulumi.Output<number>;

The SSL Port of the Redis Instance

property subnetId

public subnetId: pulumi.Output<string | undefined>;

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

property tags

public tags: pulumi.Output<{ ... }>;

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

class FirewallRule

Manages a Firewall Rule associated with a Premium Redis Cache.

~> Note: Redis Firewall Rules can only be assigned to a Redis Cache with a Premium SKU.

constructor

new FirewallRule(name: string, args: FirewallRuleArgs, opts?: pulumi.CustomResourceOptions)

Create a FirewallRule resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FirewallRuleState): FirewallRule

Get an existing FirewallRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property endIp

public endIp: pulumi.Output<string>;

The highest IP address included in the range.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property name

public name: pulumi.Output<string>;

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

property redisCacheName

public redisCacheName: pulumi.Output<string>;

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

property resourceGroupName

public resourceGroupName: pulumi.Output<string>;

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

property startIp

public startIp: pulumi.Output<string>;

The lowest IP address included in the range

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

interface CacheArgs

The set of arguments for constructing a Cache resource.

property capacity

capacity: pulumi.Input<number>;

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.

property enableNonSslPort

enableNonSslPort?: pulumi.Input<boolean>;

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

property family

family: pulumi.Input<string>;

The SKU family to use. Valid values are C and P, where C = Basic/Standard, P = Premium.

property location

location: pulumi.Input<string>;

The location of the resource group.

property name

name?: pulumi.Input<string>;

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

property patchSchedules

patchSchedules?: pulumi.Input<pulumi.Input<{ ... }>[]>;

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

property privateStaticIpAddress

privateStaticIpAddress?: pulumi.Input<string>;

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.

property redisConfiguration

redisConfiguration: pulumi.Input<{ ... }>;

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

property resourceGroupName

resourceGroupName: pulumi.Input<string>;

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

property shardCount

shardCount?: pulumi.Input<number>;

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

property skuName

skuName: pulumi.Input<string>;

The SKU of Redis to use - can be either Basic, Standard or Premium.

property subnetId

subnetId?: pulumi.Input<string>;

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

property tags

tags?: pulumi.Input<{ ... }>;

interface CacheState

Input properties used for looking up and filtering Cache resources.

property capacity

capacity?: pulumi.Input<number>;

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.

property enableNonSslPort

enableNonSslPort?: pulumi.Input<boolean>;

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

property family

family?: pulumi.Input<string>;

The SKU family to use. Valid values are C and P, where C = Basic/Standard, P = Premium.

property hostname

hostname?: pulumi.Input<string>;

The Hostname of the Redis Instance

property location

location?: pulumi.Input<string>;

The location of the resource group.

property name

name?: pulumi.Input<string>;

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

property patchSchedules

patchSchedules?: pulumi.Input<pulumi.Input<{ ... }>[]>;

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

property port

port?: pulumi.Input<number>;

The non-SSL Port of the Redis Instance

property primaryAccessKey

primaryAccessKey?: pulumi.Input<string>;

The Primary Access Key for the Redis Instance

property privateStaticIpAddress

privateStaticIpAddress?: pulumi.Input<string>;

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.

property redisConfiguration

redisConfiguration?: pulumi.Input<{ ... }>;

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

property resourceGroupName

resourceGroupName?: pulumi.Input<string>;

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

property secondaryAccessKey

secondaryAccessKey?: pulumi.Input<string>;

The Secondary Access Key for the Redis Instance

property shardCount

shardCount?: pulumi.Input<number>;

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

property skuName

skuName?: pulumi.Input<string>;

The SKU of Redis to use - can be either Basic, Standard or Premium.

property sslPort

sslPort?: pulumi.Input<number>;

The SSL Port of the Redis Instance

property subnetId

subnetId?: pulumi.Input<string>;

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

property tags

tags?: pulumi.Input<{ ... }>;

interface FirewallRuleArgs

The set of arguments for constructing a FirewallRule resource.

property endIp

endIp: pulumi.Input<string>;

The highest IP address included in the range.

property name

name?: pulumi.Input<string>;

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

property redisCacheName

redisCacheName: pulumi.Input<string>;

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

property resourceGroupName

resourceGroupName: pulumi.Input<string>;

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

property startIp

startIp: pulumi.Input<string>;

The lowest IP address included in the range

interface FirewallRuleState

Input properties used for looking up and filtering FirewallRule resources.

property endIp

endIp?: pulumi.Input<string>;

The highest IP address included in the range.

property name

name?: pulumi.Input<string>;

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

property redisCacheName

redisCacheName?: pulumi.Input<string>;

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

property resourceGroupName

resourceGroupName?: pulumi.Input<string>;

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

property startIp

startIp?: pulumi.Input<string>;

The lowest IP address included in the range