WCFRelayAuthorizationRule

class WCFRelayAuthorizationRule : KotlinCustomResource

Description of a namespace authorization rule. API Version: 2017-04-01.

Example Usage

RelayAuthorizationRuleCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var wcfRelayAuthorizationRule = new AzureNative.Relay.WCFRelayAuthorizationRule("wcfRelayAuthorizationRule", new()
{
AuthorizationRuleName = "example-RelayAuthRules-01",
NamespaceName = "example-RelayNamespace-01",
RelayName = "example-Relay-wcf-01",
ResourceGroupName = "resourcegroup",
Rights = new[]
{
AzureNative.Relay.AccessRights.Listen,
AzureNative.Relay.AccessRights.Send,
},
});
});
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewWCFRelayAuthorizationRule(ctx, "wcfRelayAuthorizationRule", &relay.WCFRelayAuthorizationRuleArgs{
AuthorizationRuleName: pulumi.String("example-RelayAuthRules-01"),
NamespaceName: pulumi.String("example-RelayNamespace-01"),
RelayName: pulumi.String("example-Relay-wcf-01"),
ResourceGroupName: pulumi.String("resourcegroup"),
Rights: []relay.AccessRights{
relay.AccessRightsListen,
relay.AccessRightsSend,
},
})
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.relay.WCFRelayAuthorizationRule;
import com.pulumi.azurenative.relay.WCFRelayAuthorizationRuleArgs;
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 wcfRelayAuthorizationRule = new WCFRelayAuthorizationRule("wcfRelayAuthorizationRule", WCFRelayAuthorizationRuleArgs.builder()
.authorizationRuleName("example-RelayAuthRules-01")
.namespaceName("example-RelayNamespace-01")
.relayName("example-Relay-wcf-01")
.resourceGroupName("resourcegroup")
.rights(
"Listen",
"Send")
.build());
}
}

Import

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

$ pulumi import azure-native:relay:WCFRelayAuthorizationRule example-RelayAuthRules-01 /subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01/WcfRelays/example-Relay-Wcf-01/AuthorizationRules/example-RelayAuthRules-01

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rights: Output<List<String>>

The rights associated with the rule.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>