AccessControlListArgs

data class AccessControlListArgs(val accessControlListName: Output<String>? = null, val addressFamily: Output<Either<String, AddressFamily>>? = null, val annotation: Output<String>? = null, val conditions: Output<List<AccessControlListConditionPropertiesArgs>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccessControlListArgs>

The AccessControlList resource definition. Uses Azure REST API version 2023-02-01-preview. In version 1.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-06-15.

Example Usage

AccessControlLists_Create_MinimumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var accessControlList = new AzureNative.ManagedNetworkFabric.AccessControlList("accessControlList", new()
{
AccessControlListName = "aclOne",
AddressFamily = AzureNative.ManagedNetworkFabric.AddressFamily.Ipv4,
Conditions = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.AccessControlListConditionPropertiesArgs
{
Action = AzureNative.ManagedNetworkFabric.ConditionActionType.Allow,
DestinationAddress = "1.1.1.1",
DestinationPort = "21",
Protocol = 6,
SequenceNumber = 3,
SourceAddress = "2.2.2.2",
SourcePort = "65000",
},
},
Location = "EastUs",
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managednetworkfabric.NewAccessControlList(ctx, "accessControlList", &managednetworkfabric.AccessControlListArgs{
AccessControlListName: pulumi.String("aclOne"),
AddressFamily: pulumi.String(managednetworkfabric.AddressFamilyIpv4),
Conditions: managednetworkfabric.AccessControlListConditionPropertiesArray{
&managednetworkfabric.AccessControlListConditionPropertiesArgs{
Action: pulumi.String(managednetworkfabric.ConditionActionTypeAllow),
DestinationAddress: pulumi.String("1.1.1.1"),
DestinationPort: pulumi.String("21"),
Protocol: pulumi.Int(6),
SequenceNumber: pulumi.Int(3),
SourceAddress: pulumi.String("2.2.2.2"),
SourcePort: pulumi.String("65000"),
},
},
Location: pulumi.String("EastUs"),
ResourceGroupName: pulumi.String("resourceGroupName"),
})
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.managednetworkfabric.AccessControlList;
import com.pulumi.azurenative.managednetworkfabric.AccessControlListArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.AccessControlListConditionPropertiesArgs;
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 accessControlList = new AccessControlList("accessControlList", AccessControlListArgs.builder()
.accessControlListName("aclOne")
.addressFamily("ipv4")
.conditions(AccessControlListConditionPropertiesArgs.builder()
.action("allow")
.destinationAddress("1.1.1.1")
.destinationPort("21")
.protocol(6)
.sequenceNumber(3)
.sourceAddress("2.2.2.2")
.sourcePort("65000")
.build())
.location("EastUs")
.resourceGroupName("resourceGroupName")
.build());
}
}

Import

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

$ pulumi import azure-native:managednetworkfabric:AccessControlList aaaaaaaaaaaaaa /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/accessControlLists/{accessControlListName}

Constructors

Link copied to clipboard
constructor(accessControlListName: Output<String>? = null, addressFamily: Output<Either<String, AddressFamily>>? = null, annotation: Output<String>? = null, conditions: Output<List<AccessControlListConditionPropertiesArgs>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Name of the Access Control List

Link copied to clipboard
val addressFamily: Output<Either<String, AddressFamily>>? = null

IP address family. Example: ipv4 | ipv6.

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

Switch configuration description.

Link copied to clipboard

Access Control List conditions.

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

The geo-location where the resource lives

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

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