Firewall Rule Args
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The name of the Data Lake Analytics account.
Link copied to clipboard
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
The name of the firewall rule to create or update.
Link copied to clipboard
The name of the Azure resource group.
Link copied to clipboard
The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.