AnalyticsFirewallRule
Manages a Azure Data Lake Analytics Firewall Rule.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "northeurope",
});
var exampleStore = new Azure.DataLake.Store("exampleStore", new Azure.DataLake.StoreArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleAnalyticsAccount = new Azure.DataLake.AnalyticsAccount("exampleAnalyticsAccount", new Azure.DataLake.AnalyticsAccountArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
DefaultStoreAccountName = exampleStore.Name,
});
var exampleAnalyticsFirewallRule = new Azure.DataLake.AnalyticsFirewallRule("exampleAnalyticsFirewallRule", new Azure.DataLake.AnalyticsFirewallRuleArgs
{
AccountName = azurerm_data_lake_analytics.Example.Name,
ResourceGroupName = exampleResourceGroup.Name,
StartIpAddress = "1.2.3.4",
EndIpAddress = "2.3.4.5",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datalake"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("northeurope"),
})
if err != nil {
return err
}
exampleStore, err := datalake.NewStore(ctx, "exampleStore", &datalake.StoreArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
_, err = datalake.NewAnalyticsAccount(ctx, "exampleAnalyticsAccount", &datalake.AnalyticsAccountArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
DefaultStoreAccountName: exampleStore.Name,
})
if err != nil {
return err
}
_, err = datalake.NewAnalyticsFirewallRule(ctx, "exampleAnalyticsFirewallRule", &datalake.AnalyticsFirewallRuleArgs{
AccountName: pulumi.String(azurerm_data_lake_analytics.Example.Name),
ResourceGroupName: exampleResourceGroup.Name,
StartIpAddress: pulumi.String("1.2.3.4"),
EndIpAddress: pulumi.String("2.3.4.5"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="northeurope")
example_store = azure.datalake.Store("exampleStore",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_analytics_account = azure.datalake.AnalyticsAccount("exampleAnalyticsAccount",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
default_store_account_name=example_store.name)
example_analytics_firewall_rule = azure.datalake.AnalyticsFirewallRule("exampleAnalyticsFirewallRule",
account_name=azurerm_data_lake_analytics["example"]["name"],
resource_group_name=example_resource_group.name,
start_ip_address="1.2.3.4",
end_ip_address="2.3.4.5")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "northeurope"});
const exampleStore = new azure.datalake.Store("exampleStore", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleAnalyticsAccount = new azure.datalake.AnalyticsAccount("exampleAnalyticsAccount", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
defaultStoreAccountName: exampleStore.name,
});
const exampleAnalyticsFirewallRule = new azure.datalake.AnalyticsFirewallRule("exampleAnalyticsFirewallRule", {
accountName: azurerm_data_lake_analytics.example.name,
resourceGroupName: exampleResourceGroup.name,
startIpAddress: "1.2.3.4",
endIpAddress: "2.3.4.5",
});Create a AnalyticsFirewallRule Resource
new AnalyticsFirewallRule(name: string, args: AnalyticsFirewallRuleArgs, opts?: CustomResourceOptions);def AnalyticsFirewallRule(resource_name, opts=None, account_name=None, end_ip_address=None, name=None, resource_group_name=None, start_ip_address=None, __props__=None);func NewAnalyticsFirewallRule(ctx *Context, name string, args AnalyticsFirewallRuleArgs, opts ...ResourceOption) (*AnalyticsFirewallRule, error)public AnalyticsFirewallRule(string name, AnalyticsFirewallRuleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AnalyticsFirewallRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AnalyticsFirewallRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnalyticsFirewallRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AnalyticsFirewallRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AnalyticsFirewallRule resource accepts the following input properties:
- Account
Name string Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- End
Ip stringAddress The End IP Address for the firewall rule.
- Resource
Group stringName The name of the resource group in which to create the Data Lake Analytics.
- Start
Ip stringAddress The Start IP address for the firewall rule.
- Name string
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- Account
Name string Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- End
Ip stringAddress The End IP Address for the firewall rule.
- Resource
Group stringName The name of the resource group in which to create the Data Lake Analytics.
- Start
Ip stringAddress The Start IP address for the firewall rule.
- Name string
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- account
Name string Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- end
Ip stringAddress The End IP Address for the firewall rule.
- resource
Group stringName The name of the resource group in which to create the Data Lake Analytics.
- start
Ip stringAddress The Start IP address for the firewall rule.
- name string
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- account_
name str Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- end_
ip_ straddress The End IP Address for the firewall rule.
- resource_
group_ strname The name of the resource group in which to create the Data Lake Analytics.
- start_
ip_ straddress The Start IP address for the firewall rule.
- name str
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the AnalyticsFirewallRule resource produces the following output properties:
Look up an Existing AnalyticsFirewallRule Resource
Get an existing AnalyticsFirewallRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AnalyticsFirewallRuleState, opts?: CustomResourceOptions): AnalyticsFirewallRulestatic get(resource_name, id, opts=None, account_name=None, end_ip_address=None, name=None, resource_group_name=None, start_ip_address=None, __props__=None);func GetAnalyticsFirewallRule(ctx *Context, name string, id IDInput, state *AnalyticsFirewallRuleState, opts ...ResourceOption) (*AnalyticsFirewallRule, error)public static AnalyticsFirewallRule Get(string name, Input<string> id, AnalyticsFirewallRuleState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Account
Name string Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- End
Ip stringAddress The End IP Address for the firewall rule.
- Name string
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- Resource
Group stringName The name of the resource group in which to create the Data Lake Analytics.
- Start
Ip stringAddress The Start IP address for the firewall rule.
- Account
Name string Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- End
Ip stringAddress The End IP Address for the firewall rule.
- Name string
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- Resource
Group stringName The name of the resource group in which to create the Data Lake Analytics.
- Start
Ip stringAddress The Start IP address for the firewall rule.
- account
Name string Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- end
Ip stringAddress The End IP Address for the firewall rule.
- name string
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- resource
Group stringName The name of the resource group in which to create the Data Lake Analytics.
- start
Ip stringAddress The Start IP address for the firewall rule.
- account_
name str Specifies the name of the Data Lake Analytics for which the Firewall Rule should take effect.
- end_
ip_ straddress The End IP Address for the firewall rule.
- name str
Specifies the name of the Data Lake Analytics. Changing this forces a new resource to be created. Has to be between 3 to 24 characters.
- resource_
group_ strname The name of the resource group in which to create the Data Lake Analytics.
- start_
ip_ straddress The Start IP address for the firewall rule.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.