azure-native.webpubsub.WebPubSubReplica
Explore with Pulumi AI
A class represent a replica resource. Azure REST API version: 2023-03-01-preview.
Other available API versions: 2023-06-01-preview, 2023-08-01-preview, 2024-01-01-preview, 2024-03-01, 2024-04-01-preview, 2024-08-01-preview.
Example Usage
WebPubSubReplicas_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var webPubSubReplica = new AzureNative.WebPubSub.WebPubSubReplica("webPubSubReplica", new()
{
Location = "eastus",
ReplicaName = "myWebPubSubService-eastus",
ResourceGroupName = "myResourceGroup",
ResourceName = "myWebPubSubService",
Sku = new AzureNative.WebPubSub.Inputs.ResourceSkuArgs
{
Capacity = 1,
Name = "Premium_P1",
Tier = AzureNative.WebPubSub.WebPubSubSkuTier.Premium,
},
Tags =
{
{ "key1", "value1" },
},
});
});
package main
import (
webpubsub "github.com/pulumi/pulumi-azure-native-sdk/webpubsub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := webpubsub.NewWebPubSubReplica(ctx, "webPubSubReplica", &webpubsub.WebPubSubReplicaArgs{
Location: pulumi.String("eastus"),
ReplicaName: pulumi.String("myWebPubSubService-eastus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ResourceName: pulumi.String("myWebPubSubService"),
Sku: &webpubsub.ResourceSkuArgs{
Capacity: pulumi.Int(1),
Name: pulumi.String("Premium_P1"),
Tier: pulumi.String(webpubsub.WebPubSubSkuTierPremium),
},
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.webpubsub.WebPubSubReplica;
import com.pulumi.azurenative.webpubsub.WebPubSubReplicaArgs;
import com.pulumi.azurenative.webpubsub.inputs.ResourceSkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var webPubSubReplica = new WebPubSubReplica("webPubSubReplica", WebPubSubReplicaArgs.builder()
.location("eastus")
.replicaName("myWebPubSubService-eastus")
.resourceGroupName("myResourceGroup")
.resourceName("myWebPubSubService")
.sku(ResourceSkuArgs.builder()
.capacity(1)
.name("Premium_P1")
.tier("Premium")
.build())
.tags(Map.of("key1", "value1"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
web_pub_sub_replica = azure_native.webpubsub.WebPubSubReplica("webPubSubReplica",
location="eastus",
replica_name="myWebPubSubService-eastus",
resource_group_name="myResourceGroup",
resource_name_="myWebPubSubService",
sku={
"capacity": 1,
"name": "Premium_P1",
"tier": azure_native.webpubsub.WebPubSubSkuTier.PREMIUM,
},
tags={
"key1": "value1",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const webPubSubReplica = new azure_native.webpubsub.WebPubSubReplica("webPubSubReplica", {
location: "eastus",
replicaName: "myWebPubSubService-eastus",
resourceGroupName: "myResourceGroup",
resourceName: "myWebPubSubService",
sku: {
capacity: 1,
name: "Premium_P1",
tier: azure_native.webpubsub.WebPubSubSkuTier.Premium,
},
tags: {
key1: "value1",
},
});
resources:
webPubSubReplica:
type: azure-native:webpubsub:WebPubSubReplica
properties:
location: eastus
replicaName: myWebPubSubService-eastus
resourceGroupName: myResourceGroup
resourceName: myWebPubSubService
sku:
capacity: 1
name: Premium_P1
tier: Premium
tags:
key1: value1
Create WebPubSubReplica Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WebPubSubReplica(name: string, args: WebPubSubReplicaArgs, opts?: CustomResourceOptions);
@overload
def WebPubSubReplica(resource_name: str,
args: WebPubSubReplicaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WebPubSubReplica(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
location: Optional[str] = None,
replica_name: Optional[str] = None,
sku: Optional[ResourceSkuArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewWebPubSubReplica(ctx *Context, name string, args WebPubSubReplicaArgs, opts ...ResourceOption) (*WebPubSubReplica, error)
public WebPubSubReplica(string name, WebPubSubReplicaArgs args, CustomResourceOptions? opts = null)
public WebPubSubReplica(String name, WebPubSubReplicaArgs args)
public WebPubSubReplica(String name, WebPubSubReplicaArgs args, CustomResourceOptions options)
type: azure-native:webpubsub:WebPubSubReplica
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WebPubSubReplicaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WebPubSubReplicaArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WebPubSubReplicaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebPubSubReplicaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebPubSubReplicaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var webPubSubReplicaResource = new AzureNative.WebPubSub.WebPubSubReplica("webPubSubReplicaResource", new()
{
ResourceGroupName = "string",
ResourceName = "string",
Location = "string",
ReplicaName = "string",
Sku = new AzureNative.WebPubSub.Inputs.ResourceSkuArgs
{
Name = "string",
Capacity = 0,
Tier = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := webpubsub.NewWebPubSubReplica(ctx, "webPubSubReplicaResource", &webpubsub.WebPubSubReplicaArgs{
ResourceGroupName: pulumi.String("string"),
ResourceName: pulumi.String("string"),
Location: pulumi.String("string"),
ReplicaName: pulumi.String("string"),
Sku: &webpubsub.ResourceSkuArgs{
Name: pulumi.String("string"),
Capacity: pulumi.Int(0),
Tier: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var webPubSubReplicaResource = new WebPubSubReplica("webPubSubReplicaResource", WebPubSubReplicaArgs.builder()
.resourceGroupName("string")
.resourceName("string")
.location("string")
.replicaName("string")
.sku(ResourceSkuArgs.builder()
.name("string")
.capacity(0)
.tier("string")
.build())
.tags(Map.of("string", "string"))
.build());
web_pub_sub_replica_resource = azure_native.webpubsub.WebPubSubReplica("webPubSubReplicaResource",
resource_group_name="string",
resource_name_="string",
location="string",
replica_name="string",
sku={
"name": "string",
"capacity": 0,
"tier": "string",
},
tags={
"string": "string",
})
const webPubSubReplicaResource = new azure_native.webpubsub.WebPubSubReplica("webPubSubReplicaResource", {
resourceGroupName: "string",
resourceName: "string",
location: "string",
replicaName: "string",
sku: {
name: "string",
capacity: 0,
tier: "string",
},
tags: {
string: "string",
},
});
type: azure-native:webpubsub:WebPubSubReplica
properties:
location: string
replicaName: string
resourceGroupName: string
resourceName: string
sku:
capacity: 0
name: string
tier: string
tags:
string: string
WebPubSubReplica Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The WebPubSubReplica resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the resource.
- Location string
- The geo-location where the resource lives
- Replica
Name string - The name of the replica.
- Sku
Pulumi.
Azure Native. Web Pub Sub. Inputs. Resource Sku - The billing information of the resource.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the resource.
- Location string
- The geo-location where the resource lives
- Replica
Name string - The name of the replica.
- Sku
Resource
Sku Args - The billing information of the resource.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the resource.
- location String
- The geo-location where the resource lives
- replica
Name String - The name of the replica.
- sku
Resource
Sku - The billing information of the resource.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the resource.
- location string
- The geo-location where the resource lives
- replica
Name string - The name of the replica.
- sku
Resource
Sku - The billing information of the resource.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the resource.
- location str
- The geo-location where the resource lives
- replica_
name str - The name of the replica.
- sku
Resource
Sku Args - The billing information of the resource.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the resource.
- location String
- The geo-location where the resource lives
- replica
Name String - The name of the replica.
- sku Property Map
- The billing information of the resource.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the WebPubSubReplica resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the resource.
- System
Data Pulumi.Azure Native. Web Pub Sub. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Provisioning state of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Provisioning state of the resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ResourceSku, ResourceSkuArgs
- Name string
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- Capacity int
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- Tier
string | Pulumi.
Azure Native. Web Pub Sub. Web Pub Sub Sku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- Name string
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- Capacity int
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- Tier
string | Web
Pub Sub Sku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- name String
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- capacity Integer
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier
String | Web
Pub Sub Sku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- name string
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- capacity number
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier
string | Web
Pub Sub Sku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- name str
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- capacity int
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier
str | Web
Pub Sub Sku Tier Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- name String
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- capacity Number
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier String | "Free" | "Basic" | "Standard" | "Premium"
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
ResourceSkuResponse, ResourceSkuResponseArgs
- Family string
- Not used. Retained for future use.
- Name string
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- Size string
- Not used. Retained for future use.
- Capacity int
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- Tier string
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- Family string
- Not used. Retained for future use.
- Name string
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- Size string
- Not used. Retained for future use.
- Capacity int
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- Tier string
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- family String
- Not used. Retained for future use.
- name String
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- size String
- Not used. Retained for future use.
- capacity Integer
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier String
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- family string
- Not used. Retained for future use.
- name string
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- size string
- Not used. Retained for future use.
- capacity number
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier string
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- family str
- Not used. Retained for future use.
- name str
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- size str
- Not used. Retained for future use.
- capacity int
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier str
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
- family String
- Not used. Retained for future use.
- name String
The name of the SKU. Required.
Allowed values: Standard_S1, Free_F1, Premium_P1
- size String
- Not used. Retained for future use.
- capacity Number
Optional, integer. The unit count of the resource. 1 by default.
If present, following values are allowed: Free: 1; Standard: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100; Premium: 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100;
- tier String
Optional tier of this particular SKU. 'Standard' or 'Free'.
Basic
is deprecated, useStandard
instead.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WebPubSubSkuTier, WebPubSubSkuTierArgs
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Web
Pub Sub Sku Tier Free - Free
- Web
Pub Sub Sku Tier Basic - Basic
- Web
Pub Sub Sku Tier Standard - Standard
- Web
Pub Sub Sku Tier Premium - Premium
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- Free
- Free
- Basic
- Basic
- Standard
- Standard
- Premium
- Premium
- FREE
- Free
- BASIC
- Basic
- STANDARD
- Standard
- PREMIUM
- Premium
- "Free"
- Free
- "Basic"
- Basic
- "Standard"
- Standard
- "Premium"
- Premium
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:webpubsub:WebPubSubReplica myWebPubSubService-eastus /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0