FirewallRuleArgs

data class FirewallRuleArgs(val accountName: Output<String>? = null, val endIpAddress: Output<String>? = null, val firewallRuleName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val startIpAddress: Output<String>? = null) : ConvertibleToJava<FirewallRuleArgs>

Data Lake Analytics firewall rule information. Uses Azure REST API version 2019-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2019-11-01-preview.

Example Usage

Creates or updates the specified firewall rule

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var firewallRule = new AzureNative.DataLakeAnalytics.FirewallRule("firewallRule", new()
{
AccountName = "contosoadla",
EndIpAddress = "2.2.2.2",
FirewallRuleName = "test_rule",
ResourceGroupName = "contosorg",
StartIpAddress = "1.1.1.1",
});
});
package main
import (
datalakeanalytics "github.com/pulumi/pulumi-azure-native-sdk/datalakeanalytics/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datalakeanalytics.NewFirewallRule(ctx, "firewallRule", &datalakeanalytics.FirewallRuleArgs{
AccountName: pulumi.String("contosoadla"),
EndIpAddress: pulumi.String("2.2.2.2"),
FirewallRuleName: pulumi.String("test_rule"),
ResourceGroupName: pulumi.String("contosorg"),
StartIpAddress: pulumi.String("1.1.1.1"),
})
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.datalakeanalytics.FirewallRule;
import com.pulumi.azurenative.datalakeanalytics.FirewallRuleArgs;
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 firewallRule = new FirewallRule("firewallRule", FirewallRuleArgs.builder()
.accountName("contosoadla")
.endIpAddress("2.2.2.2")
.firewallRuleName("test_rule")
.resourceGroupName("contosorg")
.startIpAddress("1.1.1.1")
.build());
}
}

Import

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

$ pulumi import azure-native:datalakeanalytics:FirewallRule test_rule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, endIpAddress: Output<String>? = null, firewallRuleName: Output<String>? = null, resourceGroupName: Output<String>? = null, startIpAddress: Output<String>? = null)

Properties

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

The name of the Data Lake Analytics account.

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

The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

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

The name of the firewall rule to create or update.

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

The name of the Azure resource group.

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

The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.

Functions

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