ibm.CisFirewallRule
Explore with Pulumi AI
Create CisFirewallRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CisFirewallRule(name: string, args: CisFirewallRuleArgs, opts?: CustomResourceOptions);
@overload
def CisFirewallRule(resource_name: str,
args: CisFirewallRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CisFirewallRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
cis_id: Optional[str] = None,
domain_id: Optional[str] = None,
filter_id: Optional[str] = None,
cis_firewall_rule_id: Optional[str] = None,
description: Optional[str] = None,
paused: Optional[bool] = None,
priority: Optional[float] = None)
func NewCisFirewallRule(ctx *Context, name string, args CisFirewallRuleArgs, opts ...ResourceOption) (*CisFirewallRule, error)
public CisFirewallRule(string name, CisFirewallRuleArgs args, CustomResourceOptions? opts = null)
public CisFirewallRule(String name, CisFirewallRuleArgs args)
public CisFirewallRule(String name, CisFirewallRuleArgs args, CustomResourceOptions options)
type: ibm:CisFirewallRule
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 CisFirewallRuleArgs
- 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 CisFirewallRuleArgs
- 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 CisFirewallRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisFirewallRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CisFirewallRuleArgs
- 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 cisFirewallRuleResource = new Ibm.CisFirewallRule("cisFirewallRuleResource", new()
{
Action = "string",
CisId = "string",
DomainId = "string",
FilterId = "string",
CisFirewallRuleId = "string",
Description = "string",
Paused = false,
Priority = 0,
});
example, err := ibm.NewCisFirewallRule(ctx, "cisFirewallRuleResource", &ibm.CisFirewallRuleArgs{
Action: pulumi.String("string"),
CisId: pulumi.String("string"),
DomainId: pulumi.String("string"),
FilterId: pulumi.String("string"),
CisFirewallRuleId: pulumi.String("string"),
Description: pulumi.String("string"),
Paused: pulumi.Bool(false),
Priority: pulumi.Float64(0),
})
var cisFirewallRuleResource = new CisFirewallRule("cisFirewallRuleResource", CisFirewallRuleArgs.builder()
.action("string")
.cisId("string")
.domainId("string")
.filterId("string")
.cisFirewallRuleId("string")
.description("string")
.paused(false)
.priority(0.0)
.build());
cis_firewall_rule_resource = ibm.CisFirewallRule("cisFirewallRuleResource",
action="string",
cis_id="string",
domain_id="string",
filter_id="string",
cis_firewall_rule_id="string",
description="string",
paused=False,
priority=0)
const cisFirewallRuleResource = new ibm.CisFirewallRule("cisFirewallRuleResource", {
action: "string",
cisId: "string",
domainId: "string",
filterId: "string",
cisFirewallRuleId: "string",
description: "string",
paused: false,
priority: 0,
});
type: ibm:CisFirewallRule
properties:
action: string
cisFirewallRuleId: string
cisId: string
description: string
domainId: string
filterId: string
paused: false
priority: 0
CisFirewallRule 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 CisFirewallRule resource accepts the following input properties:
- Action string
- Firewallrules Action
- Cis
Id string - CIS instance crn
- Domain
Id string - Associated CIS domain
- Filter
Id string - Firewallrules Existing FilterID
- Cis
Firewall stringRule Id - Description string
- Firewallrules Description
- Paused bool
- Firewallrules Paused
- Priority double
- Firewallrules Action
- Action string
- Firewallrules Action
- Cis
Id string - CIS instance crn
- Domain
Id string - Associated CIS domain
- Filter
Id string - Firewallrules Existing FilterID
- Cis
Firewall stringRule Id - Description string
- Firewallrules Description
- Paused bool
- Firewallrules Paused
- Priority float64
- Firewallrules Action
- action String
- Firewallrules Action
- cis
Id String - CIS instance crn
- domain
Id String - Associated CIS domain
- filter
Id String - Firewallrules Existing FilterID
- cis
Firewall StringRule Id - description String
- Firewallrules Description
- paused Boolean
- Firewallrules Paused
- priority Double
- Firewallrules Action
- action string
- Firewallrules Action
- cis
Id string - CIS instance crn
- domain
Id string - Associated CIS domain
- filter
Id string - Firewallrules Existing FilterID
- cis
Firewall stringRule Id - description string
- Firewallrules Description
- paused boolean
- Firewallrules Paused
- priority number
- Firewallrules Action
- action str
- Firewallrules Action
- cis_
id str - CIS instance crn
- domain_
id str - Associated CIS domain
- filter_
id str - Firewallrules Existing FilterID
- cis_
firewall_ strrule_ id - description str
- Firewallrules Description
- paused bool
- Firewallrules Paused
- priority float
- Firewallrules Action
- action String
- Firewallrules Action
- cis
Id String - CIS instance crn
- domain
Id String - Associated CIS domain
- filter
Id String - Firewallrules Existing FilterID
- cis
Firewall StringRule Id - description String
- Firewallrules Description
- paused Boolean
- Firewallrules Paused
- priority Number
- Firewallrules Action
Outputs
All input properties are implicitly available as output properties. Additionally, the CisFirewallRule 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 CisFirewallRule Resource
Get an existing CisFirewallRule 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?: CisFirewallRuleState, opts?: CustomResourceOptions): CisFirewallRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
cis_firewall_rule_id: Optional[str] = None,
cis_id: Optional[str] = None,
description: Optional[str] = None,
domain_id: Optional[str] = None,
filter_id: Optional[str] = None,
paused: Optional[bool] = None,
priority: Optional[float] = None) -> CisFirewallRule
func GetCisFirewallRule(ctx *Context, name string, id IDInput, state *CisFirewallRuleState, opts ...ResourceOption) (*CisFirewallRule, error)
public static CisFirewallRule Get(string name, Input<string> id, CisFirewallRuleState? state, CustomResourceOptions? opts = null)
public static CisFirewallRule get(String name, Output<String> id, CisFirewallRuleState state, CustomResourceOptions options)
resources: _: type: ibm:CisFirewallRule 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.
- Action string
- Firewallrules Action
- Cis
Firewall stringRule Id - Cis
Id string - CIS instance crn
- Description string
- Firewallrules Description
- Domain
Id string - Associated CIS domain
- Filter
Id string - Firewallrules Existing FilterID
- Paused bool
- Firewallrules Paused
- Priority double
- Firewallrules Action
- Action string
- Firewallrules Action
- Cis
Firewall stringRule Id - Cis
Id string - CIS instance crn
- Description string
- Firewallrules Description
- Domain
Id string - Associated CIS domain
- Filter
Id string - Firewallrules Existing FilterID
- Paused bool
- Firewallrules Paused
- Priority float64
- Firewallrules Action
- action String
- Firewallrules Action
- cis
Firewall StringRule Id - cis
Id String - CIS instance crn
- description String
- Firewallrules Description
- domain
Id String - Associated CIS domain
- filter
Id String - Firewallrules Existing FilterID
- paused Boolean
- Firewallrules Paused
- priority Double
- Firewallrules Action
- action string
- Firewallrules Action
- cis
Firewall stringRule Id - cis
Id string - CIS instance crn
- description string
- Firewallrules Description
- domain
Id string - Associated CIS domain
- filter
Id string - Firewallrules Existing FilterID
- paused boolean
- Firewallrules Paused
- priority number
- Firewallrules Action
- action str
- Firewallrules Action
- cis_
firewall_ strrule_ id - cis_
id str - CIS instance crn
- description str
- Firewallrules Description
- domain_
id str - Associated CIS domain
- filter_
id str - Firewallrules Existing FilterID
- paused bool
- Firewallrules Paused
- priority float
- Firewallrules Action
- action String
- Firewallrules Action
- cis
Firewall StringRule Id - cis
Id String - CIS instance crn
- description String
- Firewallrules Description
- domain
Id String - Associated CIS domain
- filter
Id String - Firewallrules Existing FilterID
- paused Boolean
- Firewallrules Paused
- priority Number
- Firewallrules Action
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.