1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudfirewall
  5. PolicyAdvancedConfig
Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi

alicloud.cloudfirewall.PolicyAdvancedConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi

    Import

    Cloud Firewall Policy Advanced Config can be imported using the id, e.g.

    $ pulumi import alicloud:cloudfirewall/policyAdvancedConfig:PolicyAdvancedConfig example 
    

    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:

    InternetSwitch string
    Access control policy strict mode of on-state. Valid values:
    InternetSwitch string
    Access control policy strict mode of on-state. Valid values:
    internetSwitch String
    Access control policy strict mode of on-state. Valid values:
    internetSwitch string
    Access control policy strict mode of on-state. Valid values:
    internet_switch str
    Access control policy strict mode of on-state. Valid values:
    internetSwitch 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) -> PolicyAdvancedConfig
    func 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.
    The following state arguments are supported:
    InternetSwitch string
    Access control policy strict mode of on-state. Valid values:
    InternetSwitch string
    Access control policy strict mode of on-state. Valid values:
    internetSwitch String
    Access control policy strict mode of on-state. Valid values:
    internetSwitch string
    Access control policy strict mode of on-state. Valid values:
    internet_switch str
    Access control policy strict mode of on-state. Valid values:
    internetSwitch String
    Access control policy strict mode of on-state. Valid values:

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi