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) : 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 in 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.inputs.AclAclEntryArgs;
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 default_ = new Acl("default", AclArgs.builder()
.aclEntries(AclAclEntryArgs.builder()
.entry("192.168.1.0/24")
.entryDescription("tf-test1")
.build())
.aclName("tf-testAccAcl")
.addressIpVersion("IPv4")
.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)

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 the following Block acl_entries. 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.