published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Provides a Cloud Firewall Policy Advanced Config resource.
Access Control Advanced Configuration.
For information about Cloud Firewall Policy Advanced Config and how to use it, see What is Policy Advanced Config.
NOTE: Available since v1.253.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = new alicloud.cloudfirewall.PolicyAdvancedConfig("default", {internetSwitch: "off"});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cloudfirewall.PolicyAdvancedConfig("default", internet_switch="off")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := cloudfirewall.NewPolicyAdvancedConfig(ctx, "default", &cloudfirewall.PolicyAdvancedConfigArgs{
InternetSwitch: pulumi.String("off"),
})
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 config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = new AliCloud.CloudFirewall.PolicyAdvancedConfig("default", new()
{
InternetSwitch = "off",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.PolicyAdvancedConfig;
import com.pulumi.alicloud.cloudfirewall.PolicyAdvancedConfigArgs;
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("terraform-example");
var default_ = new PolicyAdvancedConfig("default", PolicyAdvancedConfigArgs.builder()
.internetSwitch("off")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:cloudfirewall:PolicyAdvancedConfig
properties:
internetSwitch: off
Deleting alicloud.cloudfirewall.PolicyAdvancedConfig or removing it from your configuration
Terraform cannot destroy resource alicloud.cloudfirewall.PolicyAdvancedConfig. Terraform will remove this resource from the state file, however resources may remain.
📚 Need more examples? VIEW MORE EXAMPLES
Create PolicyAdvancedConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyAdvancedConfig(name: string, args: PolicyAdvancedConfigArgs, opts?: CustomResourceOptions);@overload
def PolicyAdvancedConfig(resource_name: str,
args: PolicyAdvancedConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyAdvancedConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
internet_switch: Optional[str] = None)func NewPolicyAdvancedConfig(ctx *Context, name string, args PolicyAdvancedConfigArgs, opts ...ResourceOption) (*PolicyAdvancedConfig, error)public PolicyAdvancedConfig(string name, PolicyAdvancedConfigArgs args, CustomResourceOptions? opts = null)
public PolicyAdvancedConfig(String name, PolicyAdvancedConfigArgs args)
public PolicyAdvancedConfig(String name, PolicyAdvancedConfigArgs args, CustomResourceOptions options)
type: alicloud:cloudfirewall:PolicyAdvancedConfig
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 PolicyAdvancedConfigArgs
- 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 PolicyAdvancedConfigArgs
- 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 PolicyAdvancedConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyAdvancedConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyAdvancedConfigArgs
- 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 policyAdvancedConfigResource = new AliCloud.CloudFirewall.PolicyAdvancedConfig("policyAdvancedConfigResource", new()
{
InternetSwitch = "string",
});
example, err := cloudfirewall.NewPolicyAdvancedConfig(ctx, "policyAdvancedConfigResource", &cloudfirewall.PolicyAdvancedConfigArgs{
InternetSwitch: pulumi.String("string"),
})
var policyAdvancedConfigResource = new PolicyAdvancedConfig("policyAdvancedConfigResource", PolicyAdvancedConfigArgs.builder()
.internetSwitch("string")
.build());
policy_advanced_config_resource = alicloud.cloudfirewall.PolicyAdvancedConfig("policyAdvancedConfigResource", internet_switch="string")
const policyAdvancedConfigResource = new alicloud.cloudfirewall.PolicyAdvancedConfig("policyAdvancedConfigResource", {internetSwitch: "string"});
type: alicloud:cloudfirewall:PolicyAdvancedConfig
properties:
internetSwitch: string
PolicyAdvancedConfig 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 PolicyAdvancedConfig resource accepts the following input properties:
- Internet
Switch string - Access control policy strict mode of on-state. Valid values:
- Internet
Switch string - Access control policy strict mode of on-state. Valid values:
- internet
Switch String - Access control policy strict mode of on-state. Valid values:
- internet
Switch string - Access control policy strict mode of on-state. Valid values:
- internet_
switch str - Access control policy strict mode of on-state. Valid values:
- internet
Switch String - Access control policy strict mode of on-state. Valid values:
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyAdvancedConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing PolicyAdvancedConfig Resource
Get an existing PolicyAdvancedConfig 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?: PolicyAdvancedConfigState, opts?: CustomResourceOptions): PolicyAdvancedConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
internet_switch: Optional[str] = None) -> PolicyAdvancedConfigfunc GetPolicyAdvancedConfig(ctx *Context, name string, id IDInput, state *PolicyAdvancedConfigState, opts ...ResourceOption) (*PolicyAdvancedConfig, error)public static PolicyAdvancedConfig Get(string name, Input<string> id, PolicyAdvancedConfigState? state, CustomResourceOptions? opts = null)public static PolicyAdvancedConfig get(String name, Output<String> id, PolicyAdvancedConfigState state, CustomResourceOptions options)resources: _: type: alicloud:cloudfirewall:PolicyAdvancedConfig get: 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.
- Internet
Switch string - Access control policy strict mode of on-state. Valid values:
- Internet
Switch string - Access control policy strict mode of on-state. Valid values:
- internet
Switch String - Access control policy strict mode of on-state. Valid values:
- internet
Switch string - Access control policy strict mode of on-state. Valid values:
- internet_
switch str - Access control policy strict mode of on-state. Valid values:
- internet
Switch String - Access control policy strict mode of on-state. Valid values:
Import
Cloud Firewall Policy Advanced Config can be imported using the id, e.g.
$ terraform import alicloud_cloud_firewall_policy_advanced_config.example
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
alicloudTerraform Provider.
published on Saturday, Mar 14, 2026 by Pulumi
