1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. NetworkAclEntries
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.vpc.NetworkAclEntries

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a network acl entries resource to create ingress and egress entries.

    NOTE: Available in 1.45.0+. Currently, the resource are only available in Hongkong(cn-hongkong), and Indonesia(ap-southeast-1) regions.

    NOTE: It doesn’t support concurrency and the order of the ingress and egress entries determines the priority.

    NOTE: Using this resource need to open a whitelist.

    DEPRECATED: This resource has been deprecated from version 1.122.0. Replace by ingress_acl_entries and egress_acl_entries with the resource alicloud_network_acl.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "NetworkAclEntries";
    const default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        name: name,
        cidrBlock: "172.16.0.0/12",
    });
    const defaultNetworkAcl = new alicloud.vpc.NetworkAcl("default", {
        vpcId: defaultNetwork.id,
        name: name,
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vpcId: defaultNetwork.id,
        cidrBlock: "172.16.0.0/21",
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        name: name,
    });
    const defaultNetworkAclAttachment = new alicloud.vpc.NetworkAclAttachment("default", {
        networkAclId: defaultNetworkAcl.id,
        resources: [{
            resourceId: defaultSwitch.id,
            resourceType: "VSwitch",
        }],
    });
    const defaultNetworkAclEntries = new alicloud.vpc.NetworkAclEntries("default", {
        networkAclId: defaultNetworkAcl.id,
        ingresses: [{
            protocol: "all",
            port: "-1/-1",
            sourceCidrIp: "0.0.0.0/32",
            name: name,
            entryType: "custom",
            policy: "accept",
            description: name,
        }],
        egresses: [{
            protocol: "all",
            port: "-1/-1",
            destinationCidrIp: "0.0.0.0/32",
            name: name,
            entryType: "custom",
            policy: "accept",
            description: name,
        }],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "NetworkAclEntries"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    default_network = alicloud.vpc.Network("default",
        name=name,
        cidr_block="172.16.0.0/12")
    default_network_acl = alicloud.vpc.NetworkAcl("default",
        vpc_id=default_network.id,
        name=name)
    default_switch = alicloud.vpc.Switch("default",
        vpc_id=default_network.id,
        cidr_block="172.16.0.0/21",
        zone_id=default.zones[0].id,
        name=name)
    default_network_acl_attachment = alicloud.vpc.NetworkAclAttachment("default",
        network_acl_id=default_network_acl.id,
        resources=[alicloud.vpc.NetworkAclAttachmentResourceArgs(
            resource_id=default_switch.id,
            resource_type="VSwitch",
        )])
    default_network_acl_entries = alicloud.vpc.NetworkAclEntries("default",
        network_acl_id=default_network_acl.id,
        ingresses=[alicloud.vpc.NetworkAclEntriesIngressArgs(
            protocol="all",
            port="-1/-1",
            source_cidr_ip="0.0.0.0/32",
            name=name,
            entry_type="custom",
            policy="accept",
            description=name,
        )],
        egresses=[alicloud.vpc.NetworkAclEntriesEgressArgs(
            protocol="all",
            port="-1/-1",
            destination_cidr_ip="0.0.0.0/32",
            name=name,
            entry_type="custom",
            policy="accept",
            description=name,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "NetworkAclEntries"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			Name:      pulumi.String(name),
    			CidrBlock: pulumi.String("172.16.0.0/12"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultNetworkAcl, err := vpc.NewNetworkAcl(ctx, "default", &vpc.NetworkAclArgs{
    			VpcId: defaultNetwork.ID(),
    			Name:  pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VpcId:     defaultNetwork.ID(),
    			CidrBlock: pulumi.String("172.16.0.0/21"),
    			ZoneId:    pulumi.String(_default.Zones[0].Id),
    			Name:      pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewNetworkAclAttachment(ctx, "default", &vpc.NetworkAclAttachmentArgs{
    			NetworkAclId: defaultNetworkAcl.ID(),
    			Resources: vpc.NetworkAclAttachmentResourceArray{
    				&vpc.NetworkAclAttachmentResourceArgs{
    					ResourceId:   defaultSwitch.ID(),
    					ResourceType: pulumi.String("VSwitch"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpc.NewNetworkAclEntries(ctx, "default", &vpc.NetworkAclEntriesArgs{
    			NetworkAclId: defaultNetworkAcl.ID(),
    			Ingresses: vpc.NetworkAclEntriesIngressArray{
    				&vpc.NetworkAclEntriesIngressArgs{
    					Protocol:     pulumi.String("all"),
    					Port:         pulumi.String("-1/-1"),
    					SourceCidrIp: pulumi.String("0.0.0.0/32"),
    					Name:         pulumi.String(name),
    					EntryType:    pulumi.String("custom"),
    					Policy:       pulumi.String("accept"),
    					Description:  pulumi.String(name),
    				},
    			},
    			Egresses: vpc.NetworkAclEntriesEgressArray{
    				&vpc.NetworkAclEntriesEgressArgs{
    					Protocol:          pulumi.String("all"),
    					Port:              pulumi.String("-1/-1"),
    					DestinationCidrIp: pulumi.String("0.0.0.0/32"),
    					Name:              pulumi.String(name),
    					EntryType:         pulumi.String("custom"),
    					Policy:            pulumi.String("accept"),
    					Description:       pulumi.String(name),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "NetworkAclEntries";
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            Name = name,
            CidrBlock = "172.16.0.0/12",
        });
    
        var defaultNetworkAcl = new AliCloud.Vpc.NetworkAcl("default", new()
        {
            VpcId = defaultNetwork.Id,
            Name = name,
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "172.16.0.0/21",
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            Name = name,
        });
    
        var defaultNetworkAclAttachment = new AliCloud.Vpc.NetworkAclAttachment("default", new()
        {
            NetworkAclId = defaultNetworkAcl.Id,
            Resources = new[]
            {
                new AliCloud.Vpc.Inputs.NetworkAclAttachmentResourceArgs
                {
                    ResourceId = defaultSwitch.Id,
                    ResourceType = "VSwitch",
                },
            },
        });
    
        var defaultNetworkAclEntries = new AliCloud.Vpc.NetworkAclEntries("default", new()
        {
            NetworkAclId = defaultNetworkAcl.Id,
            Ingresses = new[]
            {
                new AliCloud.Vpc.Inputs.NetworkAclEntriesIngressArgs
                {
                    Protocol = "all",
                    Port = "-1/-1",
                    SourceCidrIp = "0.0.0.0/32",
                    Name = name,
                    EntryType = "custom",
                    Policy = "accept",
                    Description = name,
                },
            },
            Egresses = new[]
            {
                new AliCloud.Vpc.Inputs.NetworkAclEntriesEgressArgs
                {
                    Protocol = "all",
                    Port = "-1/-1",
                    DestinationCidrIp = "0.0.0.0/32",
                    Name = name,
                    EntryType = "custom",
                    Policy = "accept",
                    Description = name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.NetworkAcl;
    import com.pulumi.alicloud.vpc.NetworkAclArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.vpc.NetworkAclAttachment;
    import com.pulumi.alicloud.vpc.NetworkAclAttachmentArgs;
    import com.pulumi.alicloud.vpc.inputs.NetworkAclAttachmentResourceArgs;
    import com.pulumi.alicloud.vpc.NetworkAclEntries;
    import com.pulumi.alicloud.vpc.NetworkAclEntriesArgs;
    import com.pulumi.alicloud.vpc.inputs.NetworkAclEntriesIngressArgs;
    import com.pulumi.alicloud.vpc.inputs.NetworkAclEntriesEgressArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("NetworkAclEntries");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .name(name)
                .cidrBlock("172.16.0.0/12")
                .build());
    
            var defaultNetworkAcl = new NetworkAcl("defaultNetworkAcl", NetworkAclArgs.builder()
                .vpcId(defaultNetwork.id())
                .name(name)
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vpcId(defaultNetwork.id())
                .cidrBlock("172.16.0.0/21")
                .zoneId(default_.zones()[0].id())
                .name(name)
                .build());
    
            var defaultNetworkAclAttachment = new NetworkAclAttachment("defaultNetworkAclAttachment", NetworkAclAttachmentArgs.builder()
                .networkAclId(defaultNetworkAcl.id())
                .resources(NetworkAclAttachmentResourceArgs.builder()
                    .resourceId(defaultSwitch.id())
                    .resourceType("VSwitch")
                    .build())
                .build());
    
            var defaultNetworkAclEntries = new NetworkAclEntries("defaultNetworkAclEntries", NetworkAclEntriesArgs.builder()
                .networkAclId(defaultNetworkAcl.id())
                .ingresses(NetworkAclEntriesIngressArgs.builder()
                    .protocol("all")
                    .port("-1/-1")
                    .sourceCidrIp("0.0.0.0/32")
                    .name(name)
                    .entryType("custom")
                    .policy("accept")
                    .description(name)
                    .build())
                .egresses(NetworkAclEntriesEgressArgs.builder()
                    .protocol("all")
                    .port("-1/-1")
                    .destinationCidrIp("0.0.0.0/32")
                    .name(name)
                    .entryType("custom")
                    .policy("accept")
                    .description(name)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: NetworkAclEntries
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          name: ${name}
          cidrBlock: 172.16.0.0/12
      defaultNetworkAcl:
        type: alicloud:vpc:NetworkAcl
        name: default
        properties:
          vpcId: ${defaultNetwork.id}
          name: ${name}
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vpcId: ${defaultNetwork.id}
          cidrBlock: 172.16.0.0/21
          zoneId: ${default.zones[0].id}
          name: ${name}
      defaultNetworkAclAttachment:
        type: alicloud:vpc:NetworkAclAttachment
        name: default
        properties:
          networkAclId: ${defaultNetworkAcl.id}
          resources:
            - resourceId: ${defaultSwitch.id}
              resourceType: VSwitch
      defaultNetworkAclEntries:
        type: alicloud:vpc:NetworkAclEntries
        name: default
        properties:
          networkAclId: ${defaultNetworkAcl.id}
          ingresses:
            - protocol: all
              port: -1/-1
              sourceCidrIp: 0.0.0.0/32
              name: ${name}
              entryType: custom
              policy: accept
              description: ${name}
          egresses:
            - protocol: all
              port: -1/-1
              destinationCidrIp: 0.0.0.0/32
              name: ${name}
              entryType: custom
              policy: accept
              description: ${name}
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create NetworkAclEntries Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkAclEntries(name: string, args: NetworkAclEntriesArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkAclEntries(resource_name: str,
                          args: NetworkAclEntriesArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkAclEntries(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          network_acl_id: Optional[str] = None,
                          egresses: Optional[Sequence[NetworkAclEntriesEgressArgs]] = None,
                          ingresses: Optional[Sequence[NetworkAclEntriesIngressArgs]] = None)
    func NewNetworkAclEntries(ctx *Context, name string, args NetworkAclEntriesArgs, opts ...ResourceOption) (*NetworkAclEntries, error)
    public NetworkAclEntries(string name, NetworkAclEntriesArgs args, CustomResourceOptions? opts = null)
    public NetworkAclEntries(String name, NetworkAclEntriesArgs args)
    public NetworkAclEntries(String name, NetworkAclEntriesArgs args, CustomResourceOptions options)
    
    type: alicloud:vpc:NetworkAclEntries
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkAclEntriesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkAclEntriesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkAclEntriesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkAclEntriesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkAclEntriesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var networkAclEntriesResource = new AliCloud.Vpc.NetworkAclEntries("networkAclEntriesResource", new()
    {
        NetworkAclId = "string",
        Egresses = new[]
        {
            new AliCloud.Vpc.Inputs.NetworkAclEntriesEgressArgs
            {
                Description = "string",
                DestinationCidrIp = "string",
                EntryType = "string",
                Name = "string",
                Policy = "string",
                Port = "string",
                Protocol = "string",
            },
        },
        Ingresses = new[]
        {
            new AliCloud.Vpc.Inputs.NetworkAclEntriesIngressArgs
            {
                Description = "string",
                EntryType = "string",
                Name = "string",
                Policy = "string",
                Port = "string",
                Protocol = "string",
                SourceCidrIp = "string",
            },
        },
    });
    
    example, err := vpc.NewNetworkAclEntries(ctx, "networkAclEntriesResource", &vpc.NetworkAclEntriesArgs{
    	NetworkAclId: pulumi.String("string"),
    	Egresses: vpc.NetworkAclEntriesEgressArray{
    		&vpc.NetworkAclEntriesEgressArgs{
    			Description:       pulumi.String("string"),
    			DestinationCidrIp: pulumi.String("string"),
    			EntryType:         pulumi.String("string"),
    			Name:              pulumi.String("string"),
    			Policy:            pulumi.String("string"),
    			Port:              pulumi.String("string"),
    			Protocol:          pulumi.String("string"),
    		},
    	},
    	Ingresses: vpc.NetworkAclEntriesIngressArray{
    		&vpc.NetworkAclEntriesIngressArgs{
    			Description:  pulumi.String("string"),
    			EntryType:    pulumi.String("string"),
    			Name:         pulumi.String("string"),
    			Policy:       pulumi.String("string"),
    			Port:         pulumi.String("string"),
    			Protocol:     pulumi.String("string"),
    			SourceCidrIp: pulumi.String("string"),
    		},
    	},
    })
    
    var networkAclEntriesResource = new NetworkAclEntries("networkAclEntriesResource", NetworkAclEntriesArgs.builder()
        .networkAclId("string")
        .egresses(NetworkAclEntriesEgressArgs.builder()
            .description("string")
            .destinationCidrIp("string")
            .entryType("string")
            .name("string")
            .policy("string")
            .port("string")
            .protocol("string")
            .build())
        .ingresses(NetworkAclEntriesIngressArgs.builder()
            .description("string")
            .entryType("string")
            .name("string")
            .policy("string")
            .port("string")
            .protocol("string")
            .sourceCidrIp("string")
            .build())
        .build());
    
    network_acl_entries_resource = alicloud.vpc.NetworkAclEntries("networkAclEntriesResource",
        network_acl_id="string",
        egresses=[alicloud.vpc.NetworkAclEntriesEgressArgs(
            description="string",
            destination_cidr_ip="string",
            entry_type="string",
            name="string",
            policy="string",
            port="string",
            protocol="string",
        )],
        ingresses=[alicloud.vpc.NetworkAclEntriesIngressArgs(
            description="string",
            entry_type="string",
            name="string",
            policy="string",
            port="string",
            protocol="string",
            source_cidr_ip="string",
        )])
    
    const networkAclEntriesResource = new alicloud.vpc.NetworkAclEntries("networkAclEntriesResource", {
        networkAclId: "string",
        egresses: [{
            description: "string",
            destinationCidrIp: "string",
            entryType: "string",
            name: "string",
            policy: "string",
            port: "string",
            protocol: "string",
        }],
        ingresses: [{
            description: "string",
            entryType: "string",
            name: "string",
            policy: "string",
            port: "string",
            protocol: "string",
            sourceCidrIp: "string",
        }],
    });
    
    type: alicloud:vpc:NetworkAclEntries
    properties:
        egresses:
            - description: string
              destinationCidrIp: string
              entryType: string
              name: string
              policy: string
              port: string
              protocol: string
        ingresses:
            - description: string
              entryType: string
              name: string
              policy: string
              port: string
              protocol: string
              sourceCidrIp: string
        networkAclId: string
    

    NetworkAclEntries Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NetworkAclEntries resource accepts the following input properties:

    NetworkAclId string
    The id of the network acl, the field can't be changed.
    Egresses List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclEntriesEgress>
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    Ingresses List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclEntriesIngress>
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    NetworkAclId string
    The id of the network acl, the field can't be changed.
    Egresses []NetworkAclEntriesEgressArgs
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    Ingresses []NetworkAclEntriesIngressArgs
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    networkAclId String
    The id of the network acl, the field can't be changed.
    egresses List<NetworkAclEntriesEgress>
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses List<NetworkAclEntriesIngress>
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    networkAclId string
    The id of the network acl, the field can't be changed.
    egresses NetworkAclEntriesEgress[]
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses NetworkAclEntriesIngress[]
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    network_acl_id str
    The id of the network acl, the field can't be changed.
    egresses Sequence[NetworkAclEntriesEgressArgs]
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses Sequence[NetworkAclEntriesIngressArgs]
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    networkAclId String
    The id of the network acl, the field can't be changed.
    egresses List<Property Map>
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses List<Property Map>
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkAclEntries resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NetworkAclEntries Resource

    Get an existing NetworkAclEntries 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?: NetworkAclEntriesState, opts?: CustomResourceOptions): NetworkAclEntries
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            egresses: Optional[Sequence[NetworkAclEntriesEgressArgs]] = None,
            ingresses: Optional[Sequence[NetworkAclEntriesIngressArgs]] = None,
            network_acl_id: Optional[str] = None) -> NetworkAclEntries
    func GetNetworkAclEntries(ctx *Context, name string, id IDInput, state *NetworkAclEntriesState, opts ...ResourceOption) (*NetworkAclEntries, error)
    public static NetworkAclEntries Get(string name, Input<string> id, NetworkAclEntriesState? state, CustomResourceOptions? opts = null)
    public static NetworkAclEntries get(String name, Output<String> id, NetworkAclEntriesState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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:
    Egresses List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclEntriesEgress>
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    Ingresses List<Pulumi.AliCloud.Vpc.Inputs.NetworkAclEntriesIngress>
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    NetworkAclId string
    The id of the network acl, the field can't be changed.
    Egresses []NetworkAclEntriesEgressArgs
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    Ingresses []NetworkAclEntriesIngressArgs
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    NetworkAclId string
    The id of the network acl, the field can't be changed.
    egresses List<NetworkAclEntriesEgress>
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses List<NetworkAclEntriesIngress>
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    networkAclId String
    The id of the network acl, the field can't be changed.
    egresses NetworkAclEntriesEgress[]
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses NetworkAclEntriesIngress[]
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    networkAclId string
    The id of the network acl, the field can't be changed.
    egresses Sequence[NetworkAclEntriesEgressArgs]
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses Sequence[NetworkAclEntriesIngressArgs]
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    network_acl_id str
    The id of the network acl, the field can't be changed.
    egresses List<Property Map>
    List of the egress entries of the network acl. The order of the egress entries determines the priority. The details see Block Egress.
    ingresses List<Property Map>
    List of the ingress entries of the network acl. The order of the ingress entries determines the priority. The details see Block Ingress.
    networkAclId String
    The id of the network acl, the field can't be changed.

    Supporting Types

    NetworkAclEntriesEgress, NetworkAclEntriesEgressArgs

    Description string
    DestinationCidrIp string
    EntryType string
    Name string
    Policy string
    Port string
    Protocol string
    Description string
    DestinationCidrIp string
    EntryType string
    Name string
    Policy string
    Port string
    Protocol string
    description String
    destinationCidrIp String
    entryType String
    name String
    policy String
    port String
    protocol String
    description string
    destinationCidrIp string
    entryType string
    name string
    policy string
    port string
    protocol string
    description String
    destinationCidrIp String
    entryType String
    name String
    policy String
    port String
    protocol String

    NetworkAclEntriesIngress, NetworkAclEntriesIngressArgs

    Description string
    EntryType string
    Name string
    Policy string
    Port string
    Protocol string
    SourceCidrIp string
    Description string
    EntryType string
    Name string
    Policy string
    Port string
    Protocol string
    SourceCidrIp string
    description String
    entryType String
    name String
    policy String
    port String
    protocol String
    sourceCidrIp String
    description string
    entryType string
    name string
    policy string
    port string
    protocol string
    sourceCidrIp string
    description String
    entryType String
    name String
    policy String
    port String
    protocol String
    sourceCidrIp String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi