alicloud.ga.Acl
Explore with Pulumi AI
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")
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 {
_, 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
})
}
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 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
Create Acl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Acl(name: string, args: AclArgs, opts?: CustomResourceOptions);
@overload
def Acl(resource_name: str,
args: AclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Acl(resource_name: str,
opts: Optional[ResourceOptions] = None,
address_ip_version: Optional[str] = None,
acl_entries: Optional[Sequence[AclAclEntryArgs]] = None,
acl_name: Optional[str] = None,
dry_run: Optional[bool] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAcl(ctx *Context, name string, args AclArgs, opts ...ResourceOption) (*Acl, error)
public Acl(string name, AclArgs args, CustomResourceOptions? opts = null)
type: alicloud:ga:Acl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AclArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AclArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudAclResource = new AliCloud.Ga.Acl("alicloudAclResource", new()
{
AddressIpVersion = "string",
AclName = "string",
DryRun = false,
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := ga.NewAcl(ctx, "alicloudAclResource", &ga.AclArgs{
AddressIpVersion: pulumi.String("string"),
AclName: pulumi.String("string"),
DryRun: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var alicloudAclResource = new Acl("alicloudAclResource", AclArgs.builder()
.addressIpVersion("string")
.aclName("string")
.dryRun(false)
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.build());
alicloud_acl_resource = alicloud.ga.Acl("alicloudAclResource",
address_ip_version="string",
acl_name="string",
dry_run=False,
resource_group_id="string",
tags={
"string": "string",
})
const alicloudAclResource = new alicloud.ga.Acl("alicloudAclResource", {
addressIpVersion: "string",
aclName: "string",
dryRun: false,
resourceGroupId: "string",
tags: {
string: "string",
},
});
type: alicloud:ga:Acl
properties:
aclName: string
addressIpVersion: string
dryRun: false
resourceGroupId: string
tags:
string: string
Acl Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Acl resource accepts the following input properties:
- Address
Ip stringVersion - The IP version. Valid values:
IPv4
andIPv6
. - Acl
Entries List<Pulumi.Ali Cloud. Ga. Inputs. Acl Acl Entry> - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - Acl
Name string - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - Dry
Run bool - The dry run.
- Resource
Group stringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Address
Ip stringVersion - The IP version. Valid values:
IPv4
andIPv6
. - Acl
Entries []AclAcl Entry Args - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - Acl
Name string - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - Dry
Run bool - The dry run.
- Resource
Group stringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- map[string]string
- A mapping of tags to assign to the resource.
- address
Ip StringVersion - The IP version. Valid values:
IPv4
andIPv6
. - acl
Entries List<AclAcl Entry> - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl
Name String - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - dry
Run Boolean - The dry run.
- resource
Group StringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- Map<String,String>
- A mapping of tags to assign to the resource.
- address
Ip stringVersion - The IP version. Valid values:
IPv4
andIPv6
. - acl
Entries AclAcl Entry[] - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl
Name string - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - dry
Run boolean - The dry run.
- resource
Group stringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- address_
ip_ strversion - The IP version. Valid values:
IPv4
andIPv6
. - acl_
entries Sequence[AclAcl Entry Args] - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl_
name str - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - dry_
run bool - The dry run.
- resource_
group_ strid - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- address
Ip StringVersion - The IP version. Valid values:
IPv4
andIPv6
. - acl
Entries List<Property Map> - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl
Name String - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - dry
Run Boolean - The dry run.
- resource
Group StringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Acl resource produces the following output properties:
Look up Existing Acl Resource
Get an existing Acl resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AclState, opts?: CustomResourceOptions): Acl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_entries: Optional[Sequence[AclAclEntryArgs]] = None,
acl_name: Optional[str] = None,
address_ip_version: Optional[str] = None,
dry_run: Optional[bool] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Acl
func GetAcl(ctx *Context, name string, id IDInput, state *AclState, opts ...ResourceOption) (*Acl, error)
public static Acl Get(string name, Input<string> id, AclState? state, CustomResourceOptions? opts = null)
public static Acl get(String name, Output<String> id, AclState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acl
Entries List<Pulumi.Ali Cloud. Ga. Inputs. Acl Acl Entry> - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - Acl
Name string - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - Address
Ip stringVersion - The IP version. Valid values:
IPv4
andIPv6
. - Dry
Run bool - The dry run.
- Resource
Group stringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- Status string
- The status of the resource.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Acl
Entries []AclAcl Entry Args - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - Acl
Name string - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - Address
Ip stringVersion - The IP version. Valid values:
IPv4
andIPv6
. - Dry
Run bool - The dry run.
- Resource
Group stringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- Status string
- The status of the resource.
- map[string]string
- A mapping of tags to assign to the resource.
- acl
Entries List<AclAcl Entry> - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl
Name String - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - address
Ip StringVersion - The IP version. Valid values:
IPv4
andIPv6
. - dry
Run Boolean - The dry run.
- resource
Group StringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- status String
- The status of the resource.
- Map<String,String>
- A mapping of tags to assign to the resource.
- acl
Entries AclAcl Entry[] - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl
Name string - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - address
Ip stringVersion - The IP version. Valid values:
IPv4
andIPv6
. - dry
Run boolean - The dry run.
- resource
Group stringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- status string
- The status of the resource.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- acl_
entries Sequence[AclAcl Entry Args] - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl_
name str - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - address_
ip_ strversion - The IP version. Valid values:
IPv4
andIPv6
. - dry_
run bool - The dry run.
- resource_
group_ strid - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- status str
- The status of the resource.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- acl
Entries List<Property Map> - The entries of the Acl. See
acl_entries
below. NOTE: "Fieldacl_entries
has been deprecated from provider version 1.190.0 and it will be removed in the future version. Please use the new resourcealicloud.ga.AclEntryAttachment
." - acl
Name String - The name of the ACL. The name must be
2
to128
characters in length, and can contain letters, digits, periods (.), hyphens (-) and underscores (_). It must start with a letter. - address
Ip StringVersion - The IP version. Valid values:
IPv4
andIPv6
. - dry
Run Boolean - The dry run.
- resource
Group StringId - The ID of the resource group. Note: Once you set a value of this property, you cannot set it to an empty string anymore.
- status String
- The status of the resource.
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
AclAclEntry, AclAclEntryArgs
- Entry string
- The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
- Entry
Description string - The description of the IP entry. The description must be
1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
- Entry string
- The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
- Entry
Description string - The description of the IP entry. The description must be
1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
- entry String
- The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
- entry
Description String - The description of the IP entry. The description must be
1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
- entry string
- The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
- entry
Description string - The description of the IP entry. The description must be
1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
- entry str
- The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
- entry_
description str - The description of the IP entry. The description must be
1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
- entry String
- The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
- entry
Description String - The description of the IP entry. The description must be
1
to256
characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
Import
Global Accelerator (GA) Acl can be imported using the id, e.g.
$ pulumi import alicloud:ga/acl:Acl example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.