Acl

class Acl : KotlinCustomResource

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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.ga.Acl("default", {
aclName: "terraform-example",
addressIpVersion: "IPv4",
});
const defaultAclEntryAttachment = new alicloud.ga.AclEntryAttachment("default", {
aclId: _default.id,
entry: "192.168.1.1/32",
entryDescription: "terraform-example",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ga.Acl("default",
acl_name="terraform-example",
address_ip_version="IPv4")
default_acl_entry_attachment = alicloud.ga.AclEntryAttachment("default",
acl_id=default.id,
entry="192.168.1.1/32",
entry_description="terraform-example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Ga.Acl("default", new()
{
AclName = "terraform-example",
AddressIpVersion = "IPv4",
});
var defaultAclEntryAttachment = new AliCloud.Ga.AclEntryAttachment("default", new()
{
AclId = @default.Id,
Entry = "192.168.1.1/32",
EntryDescription = "terraform-example",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := ga.NewAcl(ctx, "default", &ga.AclArgs{
AclName: pulumi.String("terraform-example"),
AddressIpVersion: pulumi.String("IPv4"),
})
if err != nil {
return err
}
_, err = ga.NewAclEntryAttachment(ctx, "default", &ga.AclEntryAttachmentArgs{
AclId: _default.ID(),
Entry: pulumi.String("192.168.1.1/32"),
EntryDescription: pulumi.String("terraform-example"),
})
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.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 default_ = new Acl("default", AclArgs.builder()
.aclName("terraform-example")
.addressIpVersion("IPv4")
.build());
var defaultAclEntryAttachment = new AclEntryAttachment("defaultAclEntryAttachment", AclEntryAttachmentArgs.builder()
.aclId(default_.id())
.entry("192.168.1.1/32")
.entryDescription("terraform-example")
.build());
}
}
resources:
default:
type: alicloud:ga:Acl
properties:
aclName: terraform-example
addressIpVersion: IPv4
defaultAclEntryAttachment:
type: alicloud:ga:AclEntryAttachment
name: default
properties:
aclId: ${default.id}
entry: 192.168.1.1/32
entryDescription: terraform-example

Import

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

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

Properties

Link copied to clipboard

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>?

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

The IP version. Valid values: IPv4 and IPv6.

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

The dry run.

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 resourceGroupId: Output<String>

The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.

Link copied to clipboard
val status: Output<String>

The status of the resource.

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>