HybridConnectionAuthorizationRule

class HybridConnectionAuthorizationRule : KotlinCustomResource

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

Properties

Link copied to clipboard

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 id: Output<String>
Link copied to clipboard
val listen: Output<Boolean>?

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

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

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>

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>

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

The Primary Connection String for the Azure Relay Hybrid Connection Authorization Rule.

Link copied to clipboard
val primaryKey: Output<String>

The Primary Key for the Azure Relay Hybrid Connection Authorization Rule.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

The Secondary Connection String for the Azure Relay Hybrid Connection Authorization Rule.

Link copied to clipboard
val secondaryKey: Output<String>

The Secondary Key for the Azure Relay Hybrid Connection Authorization Rule.

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

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

Link copied to clipboard
val urn: Output<String>