1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. Acl
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.ga.Acl

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a Global Accelerator (GA) Acl resource.

    For information about Global Accelerator (GA) Acl and how to use it, see What is Acl.

    NOTE: Available since v1.150.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaultAcl = new alicloud.ga.Acl("defaultAcl", {
        aclName: "terraform-example",
        addressIpVersion: "IPv4",
    });
    const defaultAclEntryAttachment = new alicloud.ga.AclEntryAttachment("defaultAclEntryAttachment", {
        aclId: defaultAcl.id,
        entry: "192.168.1.1/32",
        entryDescription: "terraform-example",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_acl = alicloud.ga.Acl("defaultAcl",
        acl_name="terraform-example",
        address_ip_version="IPv4")
    default_acl_entry_attachment = alicloud.ga.AclEntryAttachment("defaultAclEntryAttachment",
        acl_id=default_acl.id,
        entry="192.168.1.1/32",
        entry_description="terraform-example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaultAcl, err := ga.NewAcl(ctx, "defaultAcl", &ga.AclArgs{
    			AclName:          pulumi.String("terraform-example"),
    			AddressIpVersion: pulumi.String("IPv4"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ga.NewAclEntryAttachment(ctx, "defaultAclEntryAttachment", &ga.AclEntryAttachmentArgs{
    			AclId:            defaultAcl.ID(),
    			Entry:            pulumi.String("192.168.1.1/32"),
    			EntryDescription: pulumi.String("terraform-example"),
    		})
    		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 defaultAcl = new AliCloud.Ga.Acl("defaultAcl", new()
        {
            AclName = "terraform-example",
            AddressIpVersion = "IPv4",
        });
    
        var defaultAclEntryAttachment = new AliCloud.Ga.AclEntryAttachment("defaultAclEntryAttachment", new()
        {
            AclId = defaultAcl.Id,
            Entry = "192.168.1.1/32",
            EntryDescription = "terraform-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.ga.Acl;
    import com.pulumi.alicloud.ga.AclArgs;
    import com.pulumi.alicloud.ga.AclEntryAttachment;
    import com.pulumi.alicloud.ga.AclEntryAttachmentArgs;
    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 defaultAcl = new Acl("defaultAcl", AclArgs.builder()        
                .aclName("terraform-example")
                .addressIpVersion("IPv4")
                .build());
    
            var defaultAclEntryAttachment = new AclEntryAttachment("defaultAclEntryAttachment", AclEntryAttachmentArgs.builder()        
                .aclId(defaultAcl.id())
                .entry("192.168.1.1/32")
                .entryDescription("terraform-example")
                .build());
    
        }
    }
    
    resources:
      defaultAcl:
        type: alicloud:ga:Acl
        properties:
          aclName: terraform-example
          addressIpVersion: IPv4
      defaultAclEntryAttachment:
        type: alicloud:ga:AclEntryAttachment
        properties:
          aclId: ${defaultAcl.id}
          entry: 192.168.1.1/32
          entryDescription: terraform-example
    

    Create Acl Resource

    new Acl(name: string, args: AclArgs, opts?: CustomResourceOptions);
    @overload
    def Acl(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            acl_entries: Optional[Sequence[AclAclEntryArgs]] = None,
            acl_name: Optional[str] = None,
            address_ip_version: Optional[str] = None,
            dry_run: Optional[bool] = None,
            tags: Optional[Mapping[str, Any]] = None)
    @overload
    def Acl(resource_name: str,
            args: AclArgs,
            opts: Optional[ResourceOptions] = None)
    func NewAcl(ctx *Context, name string, args AclArgs, opts ...ResourceOption) (*Acl, error)
    public Acl(string name, AclArgs args, CustomResourceOptions? opts = null)
    public Acl(String name, AclArgs args)
    public Acl(String name, AclArgs args, CustomResourceOptions options)
    
    type: alicloud:ga:Acl
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AclArgs
    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 AclArgs
    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 AclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AclArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Acl 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 Acl resource accepts the following input properties:

    AddressIpVersion string
    The IP version. Valid values: IPv4 and IPv6.
    AclEntries List<Pulumi.AliCloud.Ga.Inputs.AclAclEntry>
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    AclName string
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    DryRun bool
    The dry run.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    AddressIpVersion string
    The IP version. Valid values: IPv4 and IPv6.
    AclEntries []AclAclEntryArgs
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    AclName string
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    DryRun bool
    The dry run.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    addressIpVersion String
    The IP version. Valid values: IPv4 and IPv6.
    aclEntries List<AclAclEntry>
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    aclName String
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    dryRun Boolean
    The dry run.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    addressIpVersion string
    The IP version. Valid values: IPv4 and IPv6.
    aclEntries AclAclEntry[]
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    aclName string
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    dryRun boolean
    The dry run.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    address_ip_version str
    The IP version. Valid values: IPv4 and IPv6.
    acl_entries Sequence[AclAclEntryArgs]
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    acl_name str
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    dry_run bool
    The dry run.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    addressIpVersion String
    The IP version. Valid values: IPv4 and IPv6.
    aclEntries List<Property Map>
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    aclName String
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    dryRun Boolean
    The dry run.
    tags Map<Any>
    A mapping of tags to assign to the resource.

    Outputs

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

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

    Look up Existing Acl Resource

    Get an existing Acl 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?: AclState, opts?: CustomResourceOptions): Acl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_entries: Optional[Sequence[AclAclEntryArgs]] = None,
            acl_name: Optional[str] = None,
            address_ip_version: Optional[str] = None,
            dry_run: Optional[bool] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, Any]] = None) -> Acl
    func GetAcl(ctx *Context, name string, id IDInput, state *AclState, opts ...ResourceOption) (*Acl, error)
    public static Acl Get(string name, Input<string> id, AclState? state, CustomResourceOptions? opts = null)
    public static Acl get(String name, Output<String> id, AclState 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:
    AclEntries List<Pulumi.AliCloud.Ga.Inputs.AclAclEntry>
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    AclName string
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    AddressIpVersion string
    The IP version. Valid values: IPv4 and IPv6.
    DryRun bool
    The dry run.
    Status string
    The status of the resource.
    Tags Dictionary<string, object>
    A mapping of tags to assign to the resource.
    AclEntries []AclAclEntryArgs
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    AclName string
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    AddressIpVersion string
    The IP version. Valid values: IPv4 and IPv6.
    DryRun bool
    The dry run.
    Status string
    The status of the resource.
    Tags map[string]interface{}
    A mapping of tags to assign to the resource.
    aclEntries List<AclAclEntry>
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    aclName String
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    addressIpVersion String
    The IP version. Valid values: IPv4 and IPv6.
    dryRun Boolean
    The dry run.
    status String
    The status of the resource.
    tags Map<String,Object>
    A mapping of tags to assign to the resource.
    aclEntries AclAclEntry[]
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    aclName string
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    addressIpVersion string
    The IP version. Valid values: IPv4 and IPv6.
    dryRun boolean
    The dry run.
    status string
    The status of the resource.
    tags {[key: string]: any}
    A mapping of tags to assign to the resource.
    acl_entries Sequence[AclAclEntryArgs]
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    acl_name str
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    address_ip_version str
    The IP version. Valid values: IPv4 and IPv6.
    dry_run bool
    The dry run.
    status str
    The status of the resource.
    tags Mapping[str, Any]
    A mapping of tags to assign to the resource.
    aclEntries List<Property Map>
    The entries of the Acl. See acl_entries below. NOTE: "Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment."

    Deprecated:Field acl_entries has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resource alicloud.ga.AclEntryAttachment.

    aclName String
    The name of the ACL. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter.
    addressIpVersion String
    The IP version. Valid values: IPv4 and IPv6.
    dryRun Boolean
    The dry run.
    status String
    The status of the resource.
    tags Map<Any>
    A mapping of tags to assign to the resource.

    Supporting Types

    AclAclEntry, AclAclEntryArgs

    Entry string
    The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
    EntryDescription string
    The description of the IP entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
    Entry string
    The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
    EntryDescription string
    The description of the IP entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
    entry String
    The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
    entryDescription String
    The description of the IP entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
    entry string
    The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
    entryDescription string
    The description of the IP entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
    entry str
    The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
    entry_description str
    The description of the IP entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
    entry String
    The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
    entryDescription String
    The description of the IP entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).

    Import

    Global Accelerator (GA) Acl can be imported using the id, e.g.

    $ pulumi import alicloud:ga/acl:Acl example <id>
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi