AclArgs

data class AclArgs(val aclEntries: Output<List<AclAclEntryArgs>>? = null, val aclName: Output<String>? = null, val addressIpVersion: Output<String>? = null, val dryRun: Output<Boolean>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<AclArgs>

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

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());
}
}

Import

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

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

Constructors

Link copied to clipboard
fun AclArgs(aclEntries: Output<List<AclAclEntryArgs>>? = null, aclName: Output<String>? = null, addressIpVersion: Output<String>? = null, dryRun: Output<Boolean>? = null, tags: Output<Map<String, Any>>? = null)

Functions

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

Properties

Link copied to clipboard
val aclEntries: Output<List<AclAclEntryArgs>>? = null

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."

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

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.

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

The IP version. Valid values: IPv4 and IPv6.

Link copied to clipboard
val dryRun: Output<Boolean>? = null

The dry run.

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

A mapping of tags to assign to the resource.