PublisherArgs

data class PublisherArgs(val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val properties: Output<PublisherPropertiesFormatArgs>? = null, val publisherName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PublisherArgs>

publisher resource. Uses Azure REST API version 2024-04-15. In version 2.x of the Azure Native provider, it used API version 2023-09-01. Other available API versions: 2023-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hybridnetwork [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create or update a publisher resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var publisher = new AzureNative.HybridNetwork.Publisher("publisher", new()
{
Location = "eastus",
Properties = new AzureNative.HybridNetwork.Inputs.PublisherPropertiesFormatArgs
{
Scope = "Public",
},
PublisherName = "TestPublisher",
ResourceGroupName = "rg",
});
});
package main
import (
hybridnetwork "github.com/pulumi/pulumi-azure-native-sdk/hybridnetwork/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridnetwork.NewPublisher(ctx, "publisher", &hybridnetwork.PublisherArgs{
Location: pulumi.String("eastus"),
Properties: &hybridnetwork.PublisherPropertiesFormatArgs{
Scope: pulumi.String("Public"),
},
PublisherName: pulumi.String("TestPublisher"),
ResourceGroupName: pulumi.String("rg"),
})
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.hybridnetwork.Publisher;
import com.pulumi.azurenative.hybridnetwork.PublisherArgs;
import com.pulumi.azurenative.hybridnetwork.inputs.PublisherPropertiesFormatArgs;
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 publisher = new Publisher("publisher", PublisherArgs.builder()
.location("eastus")
.properties(PublisherPropertiesFormatArgs.builder()
.scope("Public")
.build())
.publisherName("TestPublisher")
.resourceGroupName("rg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hybridnetwork:Publisher TestPublisher /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/publishers/{publisherName}

Constructors

Link copied to clipboard
constructor(identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, properties: Output<PublisherPropertiesFormatArgs>? = null, publisherName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

The managed identity of the publisher, if configured.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard

Publisher properties.

Link copied to clipboard
val publisherName: Output<String>? = null

The name of the publisher.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): PublisherArgs