fortimanager.ObjectEmailfilterBwlEntries
Explore with Pulumi AI
Anti-spam black/white list entries.
This resource is a sub resource for variable
entries
of resourcefortimanager.ObjectEmailfilterBwl
. Conflict and overwrite may occur if use both of them.
Create ObjectEmailfilterBwlEntries Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectEmailfilterBwlEntries(name: string, args: ObjectEmailfilterBwlEntriesArgs, opts?: CustomResourceOptions);
@overload
def ObjectEmailfilterBwlEntries(resource_name: str,
args: ObjectEmailfilterBwlEntriesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectEmailfilterBwlEntries(resource_name: str,
opts: Optional[ResourceOptions] = None,
bwl: Optional[str] = None,
ip4_subnet: Optional[str] = None,
adom: Optional[str] = None,
addr_type: Optional[str] = None,
email_pattern: Optional[str] = None,
fosid: Optional[float] = None,
action: Optional[str] = None,
ip6_subnet: Optional[str] = None,
object_emailfilter_bwl_entries_id: Optional[str] = None,
pattern_type: Optional[str] = None,
scopetype: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None)
func NewObjectEmailfilterBwlEntries(ctx *Context, name string, args ObjectEmailfilterBwlEntriesArgs, opts ...ResourceOption) (*ObjectEmailfilterBwlEntries, error)
public ObjectEmailfilterBwlEntries(string name, ObjectEmailfilterBwlEntriesArgs args, CustomResourceOptions? opts = null)
public ObjectEmailfilterBwlEntries(String name, ObjectEmailfilterBwlEntriesArgs args)
public ObjectEmailfilterBwlEntries(String name, ObjectEmailfilterBwlEntriesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectEmailfilterBwlEntries
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 ObjectEmailfilterBwlEntriesArgs
- 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 ObjectEmailfilterBwlEntriesArgs
- 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 ObjectEmailfilterBwlEntriesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectEmailfilterBwlEntriesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectEmailfilterBwlEntriesArgs
- 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 objectEmailfilterBwlEntriesResource = new Fortimanager.ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource", new()
{
Bwl = "string",
Ip4Subnet = "string",
Adom = "string",
AddrType = "string",
EmailPattern = "string",
Fosid = 0,
Action = "string",
Ip6Subnet = "string",
ObjectEmailfilterBwlEntriesId = "string",
PatternType = "string",
Scopetype = "string",
Status = "string",
Type = "string",
});
example, err := fortimanager.NewObjectEmailfilterBwlEntries(ctx, "objectEmailfilterBwlEntriesResource", &fortimanager.ObjectEmailfilterBwlEntriesArgs{
Bwl: pulumi.String("string"),
Ip4Subnet: pulumi.String("string"),
Adom: pulumi.String("string"),
AddrType: pulumi.String("string"),
EmailPattern: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Action: pulumi.String("string"),
Ip6Subnet: pulumi.String("string"),
ObjectEmailfilterBwlEntriesId: pulumi.String("string"),
PatternType: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Status: pulumi.String("string"),
Type: pulumi.String("string"),
})
var objectEmailfilterBwlEntriesResource = new ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource", ObjectEmailfilterBwlEntriesArgs.builder()
.bwl("string")
.ip4Subnet("string")
.adom("string")
.addrType("string")
.emailPattern("string")
.fosid(0)
.action("string")
.ip6Subnet("string")
.objectEmailfilterBwlEntriesId("string")
.patternType("string")
.scopetype("string")
.status("string")
.type("string")
.build());
object_emailfilter_bwl_entries_resource = fortimanager.ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource",
bwl="string",
ip4_subnet="string",
adom="string",
addr_type="string",
email_pattern="string",
fosid=0,
action="string",
ip6_subnet="string",
object_emailfilter_bwl_entries_id="string",
pattern_type="string",
scopetype="string",
status="string",
type="string")
const objectEmailfilterBwlEntriesResource = new fortimanager.ObjectEmailfilterBwlEntries("objectEmailfilterBwlEntriesResource", {
bwl: "string",
ip4Subnet: "string",
adom: "string",
addrType: "string",
emailPattern: "string",
fosid: 0,
action: "string",
ip6Subnet: "string",
objectEmailfilterBwlEntriesId: "string",
patternType: "string",
scopetype: "string",
status: "string",
type: "string",
});
type: fortimanager:ObjectEmailfilterBwlEntries
properties:
action: string
addrType: string
adom: string
bwl: string
emailPattern: string
fosid: 0
ip4Subnet: string
ip6Subnet: string
objectEmailfilterBwlEntriesId: string
patternType: string
scopetype: string
status: string
type: string
ObjectEmailfilterBwlEntries 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 ObjectEmailfilterBwlEntries resource accepts the following input properties:
- Bwl string
- Bwl.
- Action string
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - Addr
Type string - IP address type. Valid values:
ipv4
,ipv6
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Email
Pattern string - Email address pattern.
- Fosid double
- Entry ID.
- Ip4Subnet string
- IPv4 network address/subnet mask bits.
- Ip6Subnet string
- IPv6 network address/subnet mask bits.
- Object
Emailfilter stringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- Pattern
Type string - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Status string
- Enable/disable status. Valid values:
disable
,enable
. - Type string
- Entry type. Valid values:
ip
,email
.
- Bwl string
- Bwl.
- Action string
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - Addr
Type string - IP address type. Valid values:
ipv4
,ipv6
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Email
Pattern string - Email address pattern.
- Fosid float64
- Entry ID.
- Ip4Subnet string
- IPv4 network address/subnet mask bits.
- Ip6Subnet string
- IPv6 network address/subnet mask bits.
- Object
Emailfilter stringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- Pattern
Type string - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Status string
- Enable/disable status. Valid values:
disable
,enable
. - Type string
- Entry type. Valid values:
ip
,email
.
- bwl String
- Bwl.
- action String
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr
Type String - IP address type. Valid values:
ipv4
,ipv6
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - email
Pattern String - Email address pattern.
- fosid Double
- Entry ID.
- ip4Subnet String
- IPv4 network address/subnet mask bits.
- ip6Subnet String
- IPv6 network address/subnet mask bits.
- object
Emailfilter StringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- pattern
Type String - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status String
- Enable/disable status. Valid values:
disable
,enable
. - type String
- Entry type. Valid values:
ip
,email
.
- bwl string
- Bwl.
- action string
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr
Type string - IP address type. Valid values:
ipv4
,ipv6
. - adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - email
Pattern string - Email address pattern.
- fosid number
- Entry ID.
- ip4Subnet string
- IPv4 network address/subnet mask bits.
- ip6Subnet string
- IPv6 network address/subnet mask bits.
- object
Emailfilter stringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- pattern
Type string - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status string
- Enable/disable status. Valid values:
disable
,enable
. - type string
- Entry type. Valid values:
ip
,email
.
- bwl str
- Bwl.
- action str
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr_
type str - IP address type. Valid values:
ipv4
,ipv6
. - adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - email_
pattern str - Email address pattern.
- fosid float
- Entry ID.
- ip4_
subnet str - IPv4 network address/subnet mask bits.
- ip6_
subnet str - IPv6 network address/subnet mask bits.
- object_
emailfilter_ strbwl_ entries_ id - an identifier for the resource with format {{fosid}}.
- pattern_
type str - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status str
- Enable/disable status. Valid values:
disable
,enable
. - type str
- Entry type. Valid values:
ip
,email
.
- bwl String
- Bwl.
- action String
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr
Type String - IP address type. Valid values:
ipv4
,ipv6
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - email
Pattern String - Email address pattern.
- fosid Number
- Entry ID.
- ip4Subnet String
- IPv4 network address/subnet mask bits.
- ip6Subnet String
- IPv6 network address/subnet mask bits.
- object
Emailfilter StringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- pattern
Type String - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status String
- Enable/disable status. Valid values:
disable
,enable
. - type String
- Entry type. Valid values:
ip
,email
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectEmailfilterBwlEntries 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 ObjectEmailfilterBwlEntries Resource
Get an existing ObjectEmailfilterBwlEntries 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?: ObjectEmailfilterBwlEntriesState, opts?: CustomResourceOptions): ObjectEmailfilterBwlEntries
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
addr_type: Optional[str] = None,
adom: Optional[str] = None,
bwl: Optional[str] = None,
email_pattern: Optional[str] = None,
fosid: Optional[float] = None,
ip4_subnet: Optional[str] = None,
ip6_subnet: Optional[str] = None,
object_emailfilter_bwl_entries_id: Optional[str] = None,
pattern_type: Optional[str] = None,
scopetype: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> ObjectEmailfilterBwlEntries
func GetObjectEmailfilterBwlEntries(ctx *Context, name string, id IDInput, state *ObjectEmailfilterBwlEntriesState, opts ...ResourceOption) (*ObjectEmailfilterBwlEntries, error)
public static ObjectEmailfilterBwlEntries Get(string name, Input<string> id, ObjectEmailfilterBwlEntriesState? state, CustomResourceOptions? opts = null)
public static ObjectEmailfilterBwlEntries get(String name, Output<String> id, ObjectEmailfilterBwlEntriesState state, CustomResourceOptions options)
resources: _: type: fortimanager:ObjectEmailfilterBwlEntries 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
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - Addr
Type string - IP address type. Valid values:
ipv4
,ipv6
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Bwl string
- Bwl.
- Email
Pattern string - Email address pattern.
- Fosid double
- Entry ID.
- Ip4Subnet string
- IPv4 network address/subnet mask bits.
- Ip6Subnet string
- IPv6 network address/subnet mask bits.
- Object
Emailfilter stringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- Pattern
Type string - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Status string
- Enable/disable status. Valid values:
disable
,enable
. - Type string
- Entry type. Valid values:
ip
,email
.
- Action string
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - Addr
Type string - IP address type. Valid values:
ipv4
,ipv6
. - Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Bwl string
- Bwl.
- Email
Pattern string - Email address pattern.
- Fosid float64
- Entry ID.
- Ip4Subnet string
- IPv4 network address/subnet mask bits.
- Ip6Subnet string
- IPv6 network address/subnet mask bits.
- Object
Emailfilter stringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- Pattern
Type string - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - Scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - Status string
- Enable/disable status. Valid values:
disable
,enable
. - Type string
- Entry type. Valid values:
ip
,email
.
- action String
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr
Type String - IP address type. Valid values:
ipv4
,ipv6
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - bwl String
- Bwl.
- email
Pattern String - Email address pattern.
- fosid Double
- Entry ID.
- ip4Subnet String
- IPv4 network address/subnet mask bits.
- ip6Subnet String
- IPv6 network address/subnet mask bits.
- object
Emailfilter StringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- pattern
Type String - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status String
- Enable/disable status. Valid values:
disable
,enable
. - type String
- Entry type. Valid values:
ip
,email
.
- action string
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr
Type string - IP address type. Valid values:
ipv4
,ipv6
. - adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - bwl string
- Bwl.
- email
Pattern string - Email address pattern.
- fosid number
- Entry ID.
- ip4Subnet string
- IPv4 network address/subnet mask bits.
- ip6Subnet string
- IPv6 network address/subnet mask bits.
- object
Emailfilter stringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- pattern
Type string - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype string
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status string
- Enable/disable status. Valid values:
disable
,enable
. - type string
- Entry type. Valid values:
ip
,email
.
- action str
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr_
type str - IP address type. Valid values:
ipv4
,ipv6
. - adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - bwl str
- Bwl.
- email_
pattern str - Email address pattern.
- fosid float
- Entry ID.
- ip4_
subnet str - IPv4 network address/subnet mask bits.
- ip6_
subnet str - IPv6 network address/subnet mask bits.
- object_
emailfilter_ strbwl_ entries_ id - an identifier for the resource with format {{fosid}}.
- pattern_
type str - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype str
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status str
- Enable/disable status. Valid values:
disable
,enable
. - type str
- Entry type. Valid values:
ip
,email
.
- action String
- Reject, mark as spam or good email. Valid values:
spam
,clear
,reject
. - addr
Type String - IP address type. Valid values:
ipv4
,ipv6
. - adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - bwl String
- Bwl.
- email
Pattern String - Email address pattern.
- fosid Number
- Entry ID.
- ip4Subnet String
- IPv4 network address/subnet mask bits.
- ip6Subnet String
- IPv6 network address/subnet mask bits.
- object
Emailfilter StringBwl Entries Id - an identifier for the resource with format {{fosid}}.
- pattern
Type String - Wildcard pattern or regular expression. Valid values:
wildcard
,regexp
. - scopetype String
- The scope of application of the resource. Valid values:
inherit
,adom
,global
. Theinherit
means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit
. - status String
- Enable/disable status. Valid values:
disable
,enable
. - type String
- Entry type. Valid values:
ip
,email
.
Import
ObjectEmailfilter BwlEntries can be imported using any of these accepted formats:
Set import_options = [“bwl=YOUR_VALUE”] in the provider section.
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectEmailfilterBwlEntries:ObjectEmailfilterBwlEntries labelname {{fosid}}
$ unset “FORTIMANAGER_IMPORT_TABLE”
-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortimanager fortinetdev/terraform-provider-fortimanager
- License
- Notes
- This Pulumi package is based on the
fortimanager
Terraform Provider.