1. Packages
  2. Volcengine
  3. API Docs
  4. clb
  5. AclEntry
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.clb.AclEntry

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage acl entry

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooAcl = new Volcengine.Clb.Acl("fooAcl", new()
        {
            AclName = "tf-test-3",
            Description = "tf-test",
        });
    
        var fooAclEntry = new Volcengine.Clb.AclEntry("fooAclEntry", new()
        {
            AclId = fooAcl.Id,
            Description = "tf acl entry desc demo",
            Entry = "192.2.2.1/32",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/clb"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooAcl, err := clb.NewAcl(ctx, "fooAcl", &clb.AclArgs{
    			AclName:     pulumi.String("tf-test-3"),
    			Description: pulumi.String("tf-test"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = clb.NewAclEntry(ctx, "fooAclEntry", &clb.AclEntryArgs{
    			AclId:       fooAcl.ID(),
    			Description: pulumi.String("tf acl entry desc demo"),
    			Entry:       pulumi.String("192.2.2.1/32"),
    		})
    		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.volcengine.clb.Acl;
    import com.pulumi.volcengine.clb.AclArgs;
    import com.pulumi.volcengine.clb.AclEntry;
    import com.pulumi.volcengine.clb.AclEntryArgs;
    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 fooAcl = new Acl("fooAcl", AclArgs.builder()        
                .aclName("tf-test-3")
                .description("tf-test")
                .build());
    
            var fooAclEntry = new AclEntry("fooAclEntry", AclEntryArgs.builder()        
                .aclId(fooAcl.id())
                .description("tf acl entry desc demo")
                .entry("192.2.2.1/32")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_acl = volcengine.clb.Acl("fooAcl",
        acl_name="tf-test-3",
        description="tf-test")
    foo_acl_entry = volcengine.clb.AclEntry("fooAclEntry",
        acl_id=foo_acl.id,
        description="tf acl entry desc demo",
        entry="192.2.2.1/32")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooAcl = new volcengine.clb.Acl("fooAcl", {
        aclName: "tf-test-3",
        description: "tf-test",
    });
    const fooAclEntry = new volcengine.clb.AclEntry("fooAclEntry", {
        aclId: fooAcl.id,
        description: "tf acl entry desc demo",
        entry: "192.2.2.1/32",
    });
    
    resources:
      fooAcl:
        type: volcengine:clb:Acl
        properties:
          aclName: tf-test-3
          description: tf-test
      fooAclEntry:
        type: volcengine:clb:AclEntry
        properties:
          aclId: ${fooAcl.id}
          description: tf acl entry desc demo
          entry: 192.2.2.1/32
    

    Create AclEntry Resource

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

    Constructor syntax

    new AclEntry(name: string, args: AclEntryArgs, opts?: CustomResourceOptions);
    @overload
    def AclEntry(resource_name: str,
                 args: AclEntryArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AclEntry(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 acl_id: Optional[str] = None,
                 entry: Optional[str] = None,
                 description: Optional[str] = None)
    func NewAclEntry(ctx *Context, name string, args AclEntryArgs, opts ...ResourceOption) (*AclEntry, error)
    public AclEntry(string name, AclEntryArgs args, CustomResourceOptions? opts = null)
    public AclEntry(String name, AclEntryArgs args)
    public AclEntry(String name, AclEntryArgs args, CustomResourceOptions options)
    
    type: volcengine:clb:AclEntry
    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 AclEntryArgs
    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 AclEntryArgs
    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 AclEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AclEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AclEntryArgs
    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 aclEntryResource = new Volcengine.Clb.AclEntry("aclEntryResource", new()
    {
        AclId = "string",
        Entry = "string",
        Description = "string",
    });
    
    example, err := clb.NewAclEntry(ctx, "aclEntryResource", &clb.AclEntryArgs{
    	AclId:       pulumi.String("string"),
    	Entry:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    var aclEntryResource = new AclEntry("aclEntryResource", AclEntryArgs.builder()        
        .aclId("string")
        .entry("string")
        .description("string")
        .build());
    
    acl_entry_resource = volcengine.clb.AclEntry("aclEntryResource",
        acl_id="string",
        entry="string",
        description="string")
    
    const aclEntryResource = new volcengine.clb.AclEntry("aclEntryResource", {
        aclId: "string",
        entry: "string",
        description: "string",
    });
    
    type: volcengine:clb:AclEntry
    properties:
        aclId: string
        description: string
        entry: string
    

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

    AclId string
    The ID of Acl.
    Entry string
    The content of the AclEntry.
    Description string
    The description of the AclEntry.
    AclId string
    The ID of Acl.
    Entry string
    The content of the AclEntry.
    Description string
    The description of the AclEntry.
    aclId String
    The ID of Acl.
    entry String
    The content of the AclEntry.
    description String
    The description of the AclEntry.
    aclId string
    The ID of Acl.
    entry string
    The content of the AclEntry.
    description string
    The description of the AclEntry.
    acl_id str
    The ID of Acl.
    entry str
    The content of the AclEntry.
    description str
    The description of the AclEntry.
    aclId String
    The ID of Acl.
    entry String
    The content of the AclEntry.
    description String
    The description of the AclEntry.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AclEntry 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 AclEntry Resource

    Get an existing AclEntry 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?: AclEntryState, opts?: CustomResourceOptions): AclEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_id: Optional[str] = None,
            description: Optional[str] = None,
            entry: Optional[str] = None) -> AclEntry
    func GetAclEntry(ctx *Context, name string, id IDInput, state *AclEntryState, opts ...ResourceOption) (*AclEntry, error)
    public static AclEntry Get(string name, Input<string> id, AclEntryState? state, CustomResourceOptions? opts = null)
    public static AclEntry get(String name, Output<String> id, AclEntryState 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 Acl.
    Description string
    The description of the AclEntry.
    Entry string
    The content of the AclEntry.
    AclId string
    The ID of Acl.
    Description string
    The description of the AclEntry.
    Entry string
    The content of the AclEntry.
    aclId String
    The ID of Acl.
    description String
    The description of the AclEntry.
    entry String
    The content of the AclEntry.
    aclId string
    The ID of Acl.
    description string
    The description of the AclEntry.
    entry string
    The content of the AclEntry.
    acl_id str
    The ID of Acl.
    description str
    The description of the AclEntry.
    entry str
    The content of the AclEntry.
    aclId String
    The ID of Acl.
    description String
    The description of the AclEntry.
    entry String
    The content of the AclEntry.

    Import

    AclEntry can be imported using the id, e.g.

     $ pulumi import volcengine:clb/aclEntry:AclEntry default ID is a string concatenated with colons(AclId:Entry)
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine