1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ga
  5. AclEntryAttachment
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.ga.AclEntryAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a Global Accelerator (GA) Acl entry attachment resource.

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

    NOTE: Available since v1.190.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: "tf-example-value",
        addressIpVersion: "IPv4",
    });
    const defaultAclEntryAttachment = new alicloud.ga.AclEntryAttachment("defaultAclEntryAttachment", {
        aclId: defaultAcl.id,
        entry: "192.168.1.1/32",
        entryDescription: "tf-example-value",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_acl = alicloud.ga.Acl("defaultAcl",
        acl_name="tf-example-value",
        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="tf-example-value")
    
    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("tf-example-value"),
    			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("tf-example-value"),
    		})
    		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 = "tf-example-value",
            AddressIpVersion = "IPv4",
        });
    
        var defaultAclEntryAttachment = new AliCloud.Ga.AclEntryAttachment("defaultAclEntryAttachment", new()
        {
            AclId = defaultAcl.Id,
            Entry = "192.168.1.1/32",
            EntryDescription = "tf-example-value",
        });
    
    });
    
    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("tf-example-value")
                .addressIpVersion("IPv4")
                .build());
    
            var defaultAclEntryAttachment = new AclEntryAttachment("defaultAclEntryAttachment", AclEntryAttachmentArgs.builder()        
                .aclId(defaultAcl.id())
                .entry("192.168.1.1/32")
                .entryDescription("tf-example-value")
                .build());
    
        }
    }
    
    resources:
      defaultAcl:
        type: alicloud:ga:Acl
        properties:
          aclName: tf-example-value
          addressIpVersion: IPv4
      defaultAclEntryAttachment:
        type: alicloud:ga:AclEntryAttachment
        properties:
          aclId: ${defaultAcl.id}
          entry: 192.168.1.1/32
          entryDescription: tf-example-value
    

    Create AclEntryAttachment Resource

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

    Constructor syntax

    new AclEntryAttachment(name: string, args: AclEntryAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def AclEntryAttachment(resource_name: str,
                           args: AclEntryAttachmentArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AclEntryAttachment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           acl_id: Optional[str] = None,
                           entry: Optional[str] = None,
                           entry_description: Optional[str] = None)
    func NewAclEntryAttachment(ctx *Context, name string, args AclEntryAttachmentArgs, opts ...ResourceOption) (*AclEntryAttachment, error)
    public AclEntryAttachment(string name, AclEntryAttachmentArgs args, CustomResourceOptions? opts = null)
    public AclEntryAttachment(String name, AclEntryAttachmentArgs args)
    public AclEntryAttachment(String name, AclEntryAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:ga:AclEntryAttachment
    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 AclEntryAttachmentArgs
    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 AclEntryAttachmentArgs
    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 AclEntryAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AclEntryAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AclEntryAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var alicloudAclEntryAttachmentResource = new AliCloud.Ga.AclEntryAttachment("alicloudAclEntryAttachmentResource", new()
    {
        AclId = "string",
        Entry = "string",
        EntryDescription = "string",
    });
    
    example, err := ga.NewAclEntryAttachment(ctx, "alicloudAclEntryAttachmentResource", &ga.AclEntryAttachmentArgs{
    	AclId:            pulumi.String("string"),
    	Entry:            pulumi.String("string"),
    	EntryDescription: pulumi.String("string"),
    })
    
    var alicloudAclEntryAttachmentResource = new AclEntryAttachment("alicloudAclEntryAttachmentResource", AclEntryAttachmentArgs.builder()        
        .aclId("string")
        .entry("string")
        .entryDescription("string")
        .build());
    
    alicloud_acl_entry_attachment_resource = alicloud.ga.AclEntryAttachment("alicloudAclEntryAttachmentResource",
        acl_id="string",
        entry="string",
        entry_description="string")
    
    const alicloudAclEntryAttachmentResource = new alicloud.ga.AclEntryAttachment("alicloudAclEntryAttachmentResource", {
        aclId: "string",
        entry: "string",
        entryDescription: "string",
    });
    
    type: alicloud:ga:AclEntryAttachment
    properties:
        aclId: string
        entry: string
        entryDescription: string
    

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

    AclId string
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    AclId string
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    aclId String
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    aclId string
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    acl_id str
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    aclId String
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).

    Outputs

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

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

    Look up Existing AclEntryAttachment Resource

    Get an existing AclEntryAttachment 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?: AclEntryAttachmentState, opts?: CustomResourceOptions): AclEntryAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_id: Optional[str] = None,
            entry: Optional[str] = None,
            entry_description: Optional[str] = None,
            status: Optional[str] = None) -> AclEntryAttachment
    func GetAclEntryAttachment(ctx *Context, name string, id IDInput, state *AclEntryAttachmentState, opts ...ResourceOption) (*AclEntryAttachment, error)
    public static AclEntryAttachment Get(string name, Input<string> id, AclEntryAttachmentState? state, CustomResourceOptions? opts = null)
    public static AclEntryAttachment get(String name, Output<String> id, AclEntryAttachmentState 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:
    AclId string
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    Status string
    The status of the network ACL.
    AclId string
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    Status string
    The status of the network ACL.
    aclId String
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    status String
    The status of the network ACL.
    aclId string
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    status string
    The status of the network ACL.
    acl_id str
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    status str
    The status of the network ACL.
    aclId String
    The ID of the global acceleration instance.
    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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
    status String
    The status of the network ACL.

    Import

    Global Accelerator (GA) Acl entry attachment can be imported using the id.Format to <acl_id>:<entry>, e.g.

    $ pulumi import alicloud:ga/aclEntryAttachment:AclEntryAttachment example your_acl_id:your_entry
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.53.0 published on Wednesday, Apr 17, 2024 by Pulumi