published on Friday, Aug 14, 2026 by tencentcloudstack
published on Friday, Aug 14, 2026 by tencentcloudstack
Provides a resource to create a GA2 (Global Accelerator V2) global accelerator ACL policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.Ga2GlobalAccelerator("example", {
name: "tf-example",
instanceChargeType: "POSTPAID",
description: "tf example global accelerator",
tags: {
createdBy: "Terraform",
},
});
const exampleGa2GlobalAcceleratorAclPolicy = new tencentcloud.Ga2GlobalAcceleratorAclPolicy("example", {
globalAcceleratorId: example.ga2GlobalAcceleratorId,
defaultAction: "ACCEPT",
status: "OPEN",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.Ga2GlobalAccelerator("example",
name="tf-example",
instance_charge_type="POSTPAID",
description="tf example global accelerator",
tags={
"createdBy": "Terraform",
})
example_ga2_global_accelerator_acl_policy = tencentcloud.Ga2GlobalAcceleratorAclPolicy("example",
global_accelerator_id=example.ga2_global_accelerator_id,
default_action="ACCEPT",
status="OPEN")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := tencentcloud.NewGa2GlobalAccelerator(ctx, "example", &tencentcloud.Ga2GlobalAcceleratorArgs{
Name: pulumi.String("tf-example"),
InstanceChargeType: pulumi.String("POSTPAID"),
Description: pulumi.String("tf example global accelerator"),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("Terraform"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewGa2GlobalAcceleratorAclPolicy(ctx, "example", &tencentcloud.Ga2GlobalAcceleratorAclPolicyArgs{
GlobalAcceleratorId: example.Ga2GlobalAcceleratorId,
DefaultAction: pulumi.String("ACCEPT"),
Status: pulumi.String("OPEN"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.Ga2GlobalAccelerator("example", new()
{
Name = "tf-example",
InstanceChargeType = "POSTPAID",
Description = "tf example global accelerator",
Tags =
{
{ "createdBy", "Terraform" },
},
});
var exampleGa2GlobalAcceleratorAclPolicy = new Tencentcloud.Ga2GlobalAcceleratorAclPolicy("example", new()
{
GlobalAcceleratorId = example.Ga2GlobalAcceleratorId,
DefaultAction = "ACCEPT",
Status = "OPEN",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.Ga2GlobalAccelerator;
import com.pulumi.tencentcloud.Ga2GlobalAcceleratorArgs;
import com.pulumi.tencentcloud.Ga2GlobalAcceleratorAclPolicy;
import com.pulumi.tencentcloud.Ga2GlobalAcceleratorAclPolicyArgs;
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 example = new Ga2GlobalAccelerator("example", Ga2GlobalAcceleratorArgs.builder()
.name("tf-example")
.instanceChargeType("POSTPAID")
.description("tf example global accelerator")
.tags(Map.of("createdBy", "Terraform"))
.build());
var exampleGa2GlobalAcceleratorAclPolicy = new Ga2GlobalAcceleratorAclPolicy("exampleGa2GlobalAcceleratorAclPolicy", Ga2GlobalAcceleratorAclPolicyArgs.builder()
.globalAcceleratorId(example.ga2GlobalAcceleratorId())
.defaultAction("ACCEPT")
.status("OPEN")
.build());
}
}
resources:
example:
type: tencentcloud:Ga2GlobalAccelerator
properties:
name: tf-example
instanceChargeType: POSTPAID
description: tf example global accelerator
tags:
createdBy: Terraform
exampleGa2GlobalAcceleratorAclPolicy:
type: tencentcloud:Ga2GlobalAcceleratorAclPolicy
name: example
properties:
globalAcceleratorId: ${example.ga2GlobalAcceleratorId}
defaultAction: ACCEPT
status: OPEN
Example coming soon!
Create Ga2GlobalAcceleratorAclPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ga2GlobalAcceleratorAclPolicy(name: string, args: Ga2GlobalAcceleratorAclPolicyArgs, opts?: CustomResourceOptions);@overload
def Ga2GlobalAcceleratorAclPolicy(resource_name: str,
args: Ga2GlobalAcceleratorAclPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ga2GlobalAcceleratorAclPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_action: Optional[str] = None,
global_accelerator_id: Optional[str] = None,
ga2_global_accelerator_acl_policy_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[Ga2GlobalAcceleratorAclPolicyTimeoutsArgs] = None)func NewGa2GlobalAcceleratorAclPolicy(ctx *Context, name string, args Ga2GlobalAcceleratorAclPolicyArgs, opts ...ResourceOption) (*Ga2GlobalAcceleratorAclPolicy, error)public Ga2GlobalAcceleratorAclPolicy(string name, Ga2GlobalAcceleratorAclPolicyArgs args, CustomResourceOptions? opts = null)
public Ga2GlobalAcceleratorAclPolicy(String name, Ga2GlobalAcceleratorAclPolicyArgs args)
public Ga2GlobalAcceleratorAclPolicy(String name, Ga2GlobalAcceleratorAclPolicyArgs args, CustomResourceOptions options)
type: tencentcloud:Ga2GlobalAcceleratorAclPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_ga2_global_accelerator_acl_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args Ga2GlobalAcceleratorAclPolicyArgs
- 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 Ga2GlobalAcceleratorAclPolicyArgs
- 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 Ga2GlobalAcceleratorAclPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ga2GlobalAcceleratorAclPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Ga2GlobalAcceleratorAclPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Ga2GlobalAcceleratorAclPolicy 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 Ga2GlobalAcceleratorAclPolicy resource accepts the following input properties:
- Default
Action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - Global
Accelerator stringId - Global accelerator instance ID this ACL policy belongs to.
- Ga2Global
Accelerator stringAcl Policy Id - ID of the resource.
- Status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - Timeouts
Ga2Global
Accelerator Acl Policy Timeouts
- Default
Action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - Global
Accelerator stringId - Global accelerator instance ID this ACL policy belongs to.
- Ga2Global
Accelerator stringAcl Policy Id - ID of the resource.
- Status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - Timeouts
Ga2Global
Accelerator Acl Policy Timeouts Args
- default_
action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - global_
accelerator_ stringid - Global accelerator instance ID this ACL policy belongs to.
- ga2_
global_ stringaccelerator_ acl_ policy_ id - ID of the resource.
- status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts object
- default
Action String - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - global
Accelerator StringId - Global accelerator instance ID this ACL policy belongs to.
- ga2Global
Accelerator StringAcl Policy Id - ID of the resource.
- status String
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts
Ga2Global
Accelerator Acl Policy Timeouts
- default
Action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - global
Accelerator stringId - Global accelerator instance ID this ACL policy belongs to.
- ga2Global
Accelerator stringAcl Policy Id - ID of the resource.
- status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts
Ga2Global
Accelerator Acl Policy Timeouts
- default_
action str - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - global_
accelerator_ strid - Global accelerator instance ID this ACL policy belongs to.
- ga2_
global_ straccelerator_ acl_ policy_ id - ID of the resource.
- status str
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts
Ga2Global
Accelerator Acl Policy Timeouts Args
- default
Action String - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - global
Accelerator StringId - Global accelerator instance ID this ACL policy belongs to.
- ga2Global
Accelerator StringAcl Policy Id - ID of the resource.
- status String
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Ga2GlobalAcceleratorAclPolicy resource produces the following output properties:
- Global
Accelerator stringAcl Policy Id - ACL policy ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Global
Accelerator stringAcl Policy Id - ACL policy ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- global_
accelerator_ stringacl_ policy_ id - ACL policy ID.
- id string
- The provider-assigned unique ID for this managed resource.
- global
Accelerator StringAcl Policy Id - ACL policy ID.
- id String
- The provider-assigned unique ID for this managed resource.
- global
Accelerator stringAcl Policy Id - ACL policy ID.
- id string
- The provider-assigned unique ID for this managed resource.
- global_
accelerator_ stracl_ policy_ id - ACL policy ID.
- id str
- The provider-assigned unique ID for this managed resource.
- global
Accelerator StringAcl Policy Id - ACL policy ID.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Ga2GlobalAcceleratorAclPolicy Resource
Get an existing Ga2GlobalAcceleratorAclPolicy 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?: Ga2GlobalAcceleratorAclPolicyState, opts?: CustomResourceOptions): Ga2GlobalAcceleratorAclPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_action: Optional[str] = None,
ga2_global_accelerator_acl_policy_id: Optional[str] = None,
global_accelerator_acl_policy_id: Optional[str] = None,
global_accelerator_id: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[Ga2GlobalAcceleratorAclPolicyTimeoutsArgs] = None) -> Ga2GlobalAcceleratorAclPolicyfunc GetGa2GlobalAcceleratorAclPolicy(ctx *Context, name string, id IDInput, state *Ga2GlobalAcceleratorAclPolicyState, opts ...ResourceOption) (*Ga2GlobalAcceleratorAclPolicy, error)public static Ga2GlobalAcceleratorAclPolicy Get(string name, Input<string> id, Ga2GlobalAcceleratorAclPolicyState? state, CustomResourceOptions? opts = null)public static Ga2GlobalAcceleratorAclPolicy get(String name, Output<String> id, Ga2GlobalAcceleratorAclPolicyState state, CustomResourceOptions options)resources: _: type: tencentcloud:Ga2GlobalAcceleratorAclPolicy get: id: ${id}import {
to = tencentcloud_ga2_global_accelerator_acl_policy.example
id = "${id}"
}
- 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.
- Default
Action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - Ga2Global
Accelerator stringAcl Policy Id - ID of the resource.
- Global
Accelerator stringAcl Policy Id - ACL policy ID.
- Global
Accelerator stringId - Global accelerator instance ID this ACL policy belongs to.
- Status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - Timeouts
Ga2Global
Accelerator Acl Policy Timeouts
- Default
Action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - Ga2Global
Accelerator stringAcl Policy Id - ID of the resource.
- Global
Accelerator stringAcl Policy Id - ACL policy ID.
- Global
Accelerator stringId - Global accelerator instance ID this ACL policy belongs to.
- Status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - Timeouts
Ga2Global
Accelerator Acl Policy Timeouts Args
- default_
action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - ga2_
global_ stringaccelerator_ acl_ policy_ id - ID of the resource.
- global_
accelerator_ stringacl_ policy_ id - ACL policy ID.
- global_
accelerator_ stringid - Global accelerator instance ID this ACL policy belongs to.
- status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts object
- default
Action String - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - ga2Global
Accelerator StringAcl Policy Id - ID of the resource.
- global
Accelerator StringAcl Policy Id - ACL policy ID.
- global
Accelerator StringId - Global accelerator instance ID this ACL policy belongs to.
- status String
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts
Ga2Global
Accelerator Acl Policy Timeouts
- default
Action string - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - ga2Global
Accelerator stringAcl Policy Id - ID of the resource.
- global
Accelerator stringAcl Policy Id - ACL policy ID.
- global
Accelerator stringId - Global accelerator instance ID this ACL policy belongs to.
- status string
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts
Ga2Global
Accelerator Acl Policy Timeouts
- default_
action str - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - ga2_
global_ straccelerator_ acl_ policy_ id - ID of the resource.
- global_
accelerator_ stracl_ policy_ id - ACL policy ID.
- global_
accelerator_ strid - Global accelerator instance ID this ACL policy belongs to.
- status str
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts
Ga2Global
Accelerator Acl Policy Timeouts Args
- default
Action String - Default traffic action. Enumerated values:
ACCEPT(allow all traffic by default),DROP(deny all traffic by default). - ga2Global
Accelerator StringAcl Policy Id - ID of the resource.
- global
Accelerator StringAcl Policy Id - ACL policy ID.
- global
Accelerator StringId - Global accelerator instance ID this ACL policy belongs to.
- status String
- ACL policy state. Enumerated values:
OPEN(enabled),CLOSE(disabled). Default isCLOSE. - timeouts Property Map
Supporting Types
Ga2GlobalAcceleratorAclPolicyTimeouts, Ga2GlobalAcceleratorAclPolicyTimeoutsArgs
Import
GA2 global accelerator ACL policy can be imported using the composite id <global_accelerator_id>#<global_accelerator_acl_policy_id>, e.g.
$ pulumi import tencentcloud:index/ga2GlobalAcceleratorAclPolicy:Ga2GlobalAcceleratorAclPolicy example ga-ntc1iaco#sp-nseaj82f
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Aug 14, 2026 by tencentcloudstack