alicloud.cloudfirewall.PolicyAdvancedConfig
Explore with Pulumi AI
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:
- 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) -> 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.
- 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:
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.