alicloud.ga.AclEntryAttachment
Explore with Pulumi AI
Provides a Global Accelerator (GA) Acl entry attachment resource.
For information about Global Accelerator (GA) Acl entry attachment and how to use it, see What is Acl entry attachment.
NOTE: Available since v1.190.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: "tf-example-value",
addressIpVersion: "IPv4",
});
const defaultAclEntryAttachment = new alicloud.ga.AclEntryAttachment("default", {
aclId: _default.id,
entry: "192.168.1.1/32",
entryDescription: "tf-example-value",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.ga.Acl("default",
acl_name="tf-example-value",
address_ip_version="IPv4")
default_acl_entry_attachment = alicloud.ga.AclEntryAttachment("default",
acl_id=default.id,
entry="192.168.1.1/32",
entry_description="tf-example-value")
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("tf-example-value"),
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("tf-example-value"),
})
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 = "tf-example-value",
AddressIpVersion = "IPv4",
});
var defaultAclEntryAttachment = new AliCloud.Ga.AclEntryAttachment("default", new()
{
AclId = @default.Id,
Entry = "192.168.1.1/32",
EntryDescription = "tf-example-value",
});
});
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("tf-example-value")
.addressIpVersion("IPv4")
.build());
var defaultAclEntryAttachment = new AclEntryAttachment("defaultAclEntryAttachment", AclEntryAttachmentArgs.builder()
.aclId(default_.id())
.entry("192.168.1.1/32")
.entryDescription("tf-example-value")
.build());
}
}
resources:
default:
type: alicloud:ga:Acl
properties:
aclName: tf-example-value
addressIpVersion: IPv4
defaultAclEntryAttachment:
type: alicloud:ga:AclEntryAttachment
name: default
properties:
aclId: ${default.id}
entry: 192.168.1.1/32
entryDescription: tf-example-value
Create AclEntryAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AclEntryAttachment(name: string, args: AclEntryAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AclEntryAttachment(resource_name: str,
args: AclEntryAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AclEntryAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl_id: Optional[str] = None,
entry: Optional[str] = None,
entry_description: Optional[str] = None)
func NewAclEntryAttachment(ctx *Context, name string, args AclEntryAttachmentArgs, opts ...ResourceOption) (*AclEntryAttachment, error)
public AclEntryAttachment(string name, AclEntryAttachmentArgs args, CustomResourceOptions? opts = null)
public AclEntryAttachment(String name, AclEntryAttachmentArgs args)
public AclEntryAttachment(String name, AclEntryAttachmentArgs args, CustomResourceOptions options)
type: alicloud:ga:AclEntryAttachment
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 AclEntryAttachmentArgs
- 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 AclEntryAttachmentArgs
- 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 AclEntryAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AclEntryAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AclEntryAttachmentArgs
- 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 exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment = new AliCloud.Ga.AclEntryAttachment("exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment", new()
{
AclId = "string",
Entry = "string",
EntryDescription = "string",
});
example, err := ga.NewAclEntryAttachment(ctx, "exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment", &ga.AclEntryAttachmentArgs{
AclId: pulumi.String("string"),
Entry: pulumi.String("string"),
EntryDescription: pulumi.String("string"),
})
var exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment = new AclEntryAttachment("exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment", AclEntryAttachmentArgs.builder()
.aclId("string")
.entry("string")
.entryDescription("string")
.build());
exampleacl_entry_attachment_resource_resource_from_gaacl_entry_attachment = alicloud.ga.AclEntryAttachment("exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment",
acl_id="string",
entry="string",
entry_description="string")
const exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment = new alicloud.ga.AclEntryAttachment("exampleaclEntryAttachmentResourceResourceFromGaaclEntryAttachment", {
aclId: "string",
entry: "string",
entryDescription: "string",
});
type: alicloud:ga:AclEntryAttachment
properties:
aclId: string
entry: string
entryDescription: string
AclEntryAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AclEntryAttachment resource accepts the following input properties:
- Acl
Id string - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- Acl
Id string - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- acl
Id String - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- acl
Id string - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- acl_
id str - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- acl
Id String - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
Outputs
All input properties are implicitly available as output properties. Additionally, the AclEntryAttachment resource produces the following output properties:
Look up Existing AclEntryAttachment Resource
Get an existing AclEntryAttachment 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?: AclEntryAttachmentState, opts?: CustomResourceOptions): AclEntryAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_id: Optional[str] = None,
entry: Optional[str] = None,
entry_description: Optional[str] = None,
status: Optional[str] = None) -> AclEntryAttachment
func GetAclEntryAttachment(ctx *Context, name string, id IDInput, state *AclEntryAttachmentState, opts ...ResourceOption) (*AclEntryAttachment, error)
public static AclEntryAttachment Get(string name, Input<string> id, AclEntryAttachmentState? state, CustomResourceOptions? opts = null)
public static AclEntryAttachment get(String name, Output<String> id, AclEntryAttachmentState 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
Id string - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- Status string
- The status of the network ACL.
- Acl
Id string - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- Status string
- The status of the network ACL.
- acl
Id String - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- status String
- The status of the network ACL.
- acl
Id string - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- status string
- The status of the network ACL.
- acl_
id str - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- status str
- The status of the network ACL.
- acl
Id String - The ID of the global acceleration instance.
- 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 entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
- status String
- The status of the network ACL.
Import
Global Accelerator (GA) Acl entry attachment can be imported using the id.Format to <acl_id>:<entry>
, e.g.
$ pulumi import alicloud:ga/aclEntryAttachment:AclEntryAttachment example your_acl_id:your_entry
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.