NamespaceAuthorizationRule

class NamespaceAuthorizationRule : KotlinCustomResource

Manages an Azure Relay Namespace 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.NamespaceAuthorizationRule;
import com.pulumi.azure.relay.NamespaceAuthorizationRuleArgs;
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 exampleNamespaceAuthorizationRule = new NamespaceAuthorizationRule("exampleNamespaceAuthorizationRule", NamespaceAuthorizationRuleArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.namespaceName(exampleNamespace.name())
.listen(true)
.send(true)
.manage(false)
.build());
}
}

Import

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

$ pulumi import azure:relay/namespaceAuthorizationRule:NamespaceAuthorizationRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Relay/namespaces/namespace1/authorizationRules/rule1

Properties

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 Namespace Authorization Rule. Changing this forces a new Azure Relay Namespace Authorization Rule to be created.

Link copied to clipboard
val namespaceName: Output<String>

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

Link copied to clipboard

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

Link copied to clipboard
val primaryKey: Output<String>

The Primary Key for the Azure Relay Namespace 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 Namespace Authorization Rule should exist. Changing this forces a new Azure Relay Namespace Authorization Rule to be created.

Link copied to clipboard

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

Link copied to clipboard
val secondaryKey: Output<String>

The Secondary Key for the Azure Relay Namespace 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>