AclEntryAttachment

class AclEntryAttachment : KotlinCustomResource

For information about acl entry attachment and how to use it, see Configure an acl entry.

NOTE: Available since v1.166.0.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.alb.Acl;
import com.pulumi.alicloud.alb.AclArgs;
import com.pulumi.alicloud.alb.AclEntryAttachment;
import com.pulumi.alicloud.alb.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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var defaultAcl = new Acl("defaultAcl", AclArgs.builder()
.aclName(name)
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.build());
var defaultAclEntryAttachment = new AclEntryAttachment("defaultAclEntryAttachment", AclEntryAttachmentArgs.builder()
.aclId(defaultAcl.id())
.entry("168.10.10.0/24")
.description(name)
.build());
}
}

Import

Acl entry attachment can be imported using the id, e.g.

$ pulumi import alicloud:alb/aclEntryAttachment:AclEntryAttachment example <acl_id>:<entry>

Properties

Link copied to clipboard
val aclId: Output<String>

The ID of the Acl.

Link copied to clipboard
val description: Output<String>?

The description of the entry.

Link copied to clipboard
val entry: Output<String>

The CIDR blocks.

Link copied to clipboard
val id: Output<String>
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 resource.

Link copied to clipboard
val urn: Output<String>