Class FirewallRule
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.datalakestore.FirewallRule
-
public class FirewallRule extends com.pulumi.resources.CustomResource
Data Lake Store firewall rule information. Azure REST API version: 2016-11-01. Prior API version in Azure Native 1.x: 2016-11-01. ## Example Usage ### Creates or updates the specified firewall rule. During update, the firewall rule with the specified name will be replaced with this new firewall rule ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.datalakestore.FirewallRule; import com.pulumi.azurenative.datalakestore.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. ```sh $ pulumi import azure-native:datalakestore:FirewallRule test_rule /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeStore/accounts/{accountName}/firewallRules/{firewallRuleName} ```
-
-
Constructor Summary
Constructors Constructor Description FirewallRule(java.lang.String name)
FirewallRule(java.lang.String name, FirewallRuleArgs args)
FirewallRule(java.lang.String name, FirewallRuleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
endIpAddress()
static FirewallRule
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
startIpAddress()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
FirewallRule
public FirewallRule(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
FirewallRule
public FirewallRule(java.lang.String name, FirewallRuleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
FirewallRule
public FirewallRule(java.lang.String name, FirewallRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
endIpAddress
public com.pulumi.core.Output<java.lang.String> endIpAddress()
- Returns:
- The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The resource name.
-
startIpAddress
public com.pulumi.core.Output<java.lang.String> startIpAddress()
- Returns:
- The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The resource type.
-
get
public static FirewallRule get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-