AclAttachment

class AclAttachment : KotlinCustomResource

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

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.Accelerator;
import com.pulumi.alicloud.ga.AcceleratorArgs;
import com.pulumi.alicloud.ga.BandwidthPackage;
import com.pulumi.alicloud.ga.BandwidthPackageArgs;
import com.pulumi.alicloud.ga.BandwidthPackageAttachment;
import com.pulumi.alicloud.ga.BandwidthPackageAttachmentArgs;
import com.pulumi.alicloud.ga.Listener;
import com.pulumi.alicloud.ga.ListenerArgs;
import com.pulumi.alicloud.ga.inputs.ListenerPortRangeArgs;
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 com.pulumi.alicloud.ga.AclAttachment;
import com.pulumi.alicloud.ga.AclAttachmentArgs;
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 defaultAccelerator = new Accelerator("defaultAccelerator", AcceleratorArgs.builder()
.duration(1)
.autoUseCoupon(true)
.spec("1")
.build());
var defaultBandwidthPackage = new BandwidthPackage("defaultBandwidthPackage", BandwidthPackageArgs.builder()
.bandwidth(100)
.type("Basic")
.bandwidthType("Basic")
.paymentType("PayAsYouGo")
.billingType("PayBy95")
.ratio(30)
.build());
var defaultBandwidthPackageAttachment = new BandwidthPackageAttachment("defaultBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()
.acceleratorId(defaultAccelerator.id())
.bandwidthPackageId(defaultBandwidthPackage.id())
.build());
var defaultListener = new Listener("defaultListener", ListenerArgs.builder()
.acceleratorId(defaultBandwidthPackageAttachment.acceleratorId())
.portRanges(ListenerPortRangeArgs.builder()
.fromPort(80)
.toPort(80)
.build())
.build());
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());
var defaultAclAttachment = new AclAttachment("defaultAclAttachment", AclAttachmentArgs.builder()
.listenerId(defaultListener.id())
.aclId(defaultAcl.id())
.aclType("white")
.build());
}
}

Import

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

$ pulumi import alicloud:ga/aclAttachment:AclAttachment example <listener_id>:<acl_id>

Properties

Link copied to clipboard
val aclId: Output<String>

The ID of an ACL.

Link copied to clipboard
val aclType: Output<String>

The type of the ACL. Valid values:

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

The dry run.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val listenerId: Output<String>

The ID of the listener.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

The status of the Acl Attachment.

Link copied to clipboard
val urn: Output<String>