alicloud.simpleapplicationserver.FirewallRule
Explore with Pulumi AI
Provides a Simple Application Server Firewall Rule resource.
For information about Simple Application Server Firewall Rule and how to use it, see What is Firewall Rule.
NOTE: Available in v1.143.0+.
Create FirewallRule Resource
new FirewallRule(name: string, args: FirewallRuleArgs, opts?: CustomResourceOptions);
@overload
def FirewallRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
port: Optional[str] = None,
remark: Optional[str] = None,
rule_protocol: Optional[str] = None)
@overload
def FirewallRule(resource_name: str,
args: FirewallRuleArgs,
opts: Optional[ResourceOptions] = None)
func NewFirewallRule(ctx *Context, name string, args FirewallRuleArgs, opts ...ResourceOption) (*FirewallRule, error)
public FirewallRule(string name, FirewallRuleArgs args, CustomResourceOptions? opts = null)
public FirewallRule(String name, FirewallRuleArgs args)
public FirewallRule(String name, FirewallRuleArgs args, CustomResourceOptions options)
type: alicloud:simpleapplicationserver:FirewallRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallRuleArgs
- 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 FirewallRuleArgs
- 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 FirewallRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FirewallRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FirewallRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FirewallRule resource accepts the following input properties:
- Instance
Id string Alibaba Cloud simple application server instance ID.
- Port string
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- Rule
Protocol string The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.- Remark string
The remarks of the firewall rule.
- Instance
Id string Alibaba Cloud simple application server instance ID.
- Port string
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- Rule
Protocol string The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.- Remark string
The remarks of the firewall rule.
- instance
Id String Alibaba Cloud simple application server instance ID.
- port String
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- rule
Protocol String The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.- remark String
The remarks of the firewall rule.
- instance
Id string Alibaba Cloud simple application server instance ID.
- port string
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- rule
Protocol string The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.- remark string
The remarks of the firewall rule.
- instance_
id str Alibaba Cloud simple application server instance ID.
- port str
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- rule_
protocol str The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.- remark str
The remarks of the firewall rule.
- instance
Id String Alibaba Cloud simple application server instance ID.
- port String
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- rule
Protocol String The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.- remark String
The remarks of the firewall rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallRule resource produces the following output properties:
- Firewall
Rule stringId The ID of the firewall rule.
- Id string
The provider-assigned unique ID for this managed resource.
- Firewall
Rule stringId The ID of the firewall rule.
- Id string
The provider-assigned unique ID for this managed resource.
- firewall
Rule StringId The ID of the firewall rule.
- id String
The provider-assigned unique ID for this managed resource.
- firewall
Rule stringId The ID of the firewall rule.
- id string
The provider-assigned unique ID for this managed resource.
- firewall_
rule_ strid The ID of the firewall rule.
- id str
The provider-assigned unique ID for this managed resource.
- firewall
Rule StringId The ID of the firewall rule.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing FirewallRule Resource
Get an existing FirewallRule 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?: FirewallRuleState, opts?: CustomResourceOptions): FirewallRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
firewall_rule_id: Optional[str] = None,
instance_id: Optional[str] = None,
port: Optional[str] = None,
remark: Optional[str] = None,
rule_protocol: Optional[str] = None) -> FirewallRule
func GetFirewallRule(ctx *Context, name string, id IDInput, state *FirewallRuleState, opts ...ResourceOption) (*FirewallRule, error)
public static FirewallRule Get(string name, Input<string> id, FirewallRuleState? state, CustomResourceOptions? opts = null)
public static FirewallRule get(String name, Output<String> id, FirewallRuleState 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.
- Firewall
Rule stringId The ID of the firewall rule.
- Instance
Id string Alibaba Cloud simple application server instance ID.
- Port string
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- Remark string
The remarks of the firewall rule.
- Rule
Protocol string The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.
- Firewall
Rule stringId The ID of the firewall rule.
- Instance
Id string Alibaba Cloud simple application server instance ID.
- Port string
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- Remark string
The remarks of the firewall rule.
- Rule
Protocol string The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.
- firewall
Rule StringId The ID of the firewall rule.
- instance
Id String Alibaba Cloud simple application server instance ID.
- port String
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- remark String
The remarks of the firewall rule.
- rule
Protocol String The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.
- firewall
Rule stringId The ID of the firewall rule.
- instance
Id string Alibaba Cloud simple application server instance ID.
- port string
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- remark string
The remarks of the firewall rule.
- rule
Protocol string The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.
- firewall_
rule_ strid The ID of the firewall rule.
- instance_
id str Alibaba Cloud simple application server instance ID.
- port str
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- remark str
The remarks of the firewall rule.
- rule_
protocol str The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.
- firewall
Rule StringId The ID of the firewall rule.
- instance
Id String Alibaba Cloud simple application server instance ID.
- port String
The port range. Valid values of port numbers:
1
to65535
. Specify a port range in the format of<start port number>/<end port number>
. Example:1024/1055
, which indicates the port range of1024
through1055
.- remark String
The remarks of the firewall rule.
- rule
Protocol String The transport layer protocol. Valid values:
Tcp
,Udp
,TcpAndUdp
.
Import
Simple Application Server Firewall Rule can be imported using the id, e.g.
$ pulumi import alicloud:simpleapplicationserver/firewallRule:FirewallRule example <instance_id>:<firewall_rule_id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.