HybridConnectionAuthorizationRuleArgs

data class HybridConnectionAuthorizationRuleArgs(val hybridConnectionName: Output<String>? = null, val listen: Output<Boolean>? = null, val manage: Output<Boolean>? = null, val name: Output<String>? = null, val namespaceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val send: Output<Boolean>? = null) : ConvertibleToJava<HybridConnectionAuthorizationRuleArgs>

Manages an Azure Relay Hybrid Connection Authorization Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.relay.Namespace;
import com.pulumi.azure.relay.NamespaceArgs;
import com.pulumi.azure.relay.HybridConnection;
import com.pulumi.azure.relay.HybridConnectionArgs;
import com.pulumi.azure.relay.HybridConnectionAuthorizationRule;
import com.pulumi.azure.relay.HybridConnectionAuthorizationRuleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Standard")
.tags(Map.of("source", "terraform"))
.build());
var exampleHybridConnection = new HybridConnection("exampleHybridConnection", HybridConnectionArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.relayNamespaceName(exampleNamespace.name())
.requiresClientAuthorization(false)
.userMetadata("testmetadata")
.build());
var exampleHybridConnectionAuthorizationRule = new HybridConnectionAuthorizationRule("exampleHybridConnectionAuthorizationRule", HybridConnectionAuthorizationRuleArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.hybridConnectionName(exampleHybridConnection.name())
.namespaceName(exampleNamespace.name())
.listen(true)
.send(true)
.manage(false)
.build());
}
}

Import

Azure Relay Hybrid Connection Authorization Rules can be imported using the resource id, e.g.

$ pulumi import azure:relay/hybridConnectionAuthorizationRule:HybridConnectionAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/hybridConnections/connection1/authorizationRules/rule1

Constructors

Link copied to clipboard
fun HybridConnectionAuthorizationRuleArgs(hybridConnectionName: Output<String>? = null, listen: Output<Boolean>? = null, manage: Output<Boolean>? = null, name: Output<String>? = null, namespaceName: Output<String>? = null, resourceGroupName: Output<String>? = null, send: Output<Boolean>? = null)

Functions

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

Properties

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

Name of the Azure Relay Hybrid Connection for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.

Link copied to clipboard
val listen: Output<Boolean>? = null

Grants listen access to this Authorization Rule. Defaults to false.

Link copied to clipboard
val manage: Output<Boolean>? = null

Grants manage access to this Authorization Rule. When this property is true - both listen and send must be set to true too. Defaults to false.

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

The name which should be used for this Azure Relay Hybrid Connection Authorization Rule. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.

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

Name of the Azure Relay Namespace for which this Azure Relay Hybrid Connection Authorization Rule will be created. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.

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

The name of the Resource Group where the Azure Relay Hybrid Connection Authorization Rule should exist. Changing this forces a new Azure Relay Hybrid Connection Authorization Rule to be created.

Link copied to clipboard
val send: Output<Boolean>? = null

Grants send access to this Authorization Rule. Defaults to false.