Configure labels used by DLP blocking.
The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.
entries:fortimanager.ObjectDlpLabelEntries
Create ObjectDlpLabel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectDlpLabel(name: string, args?: ObjectDlpLabelArgs, opts?: CustomResourceOptions);@overload
def ObjectDlpLabel(resource_name: str,
args: Optional[ObjectDlpLabelArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectDlpLabel(resource_name: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
comment: Optional[str] = None,
connectors: Optional[Sequence[str]] = None,
dynamic_sort_subtable: Optional[str] = None,
entries: Optional[Sequence[ObjectDlpLabelEntryArgs]] = None,
mpip_type: Optional[str] = None,
name: Optional[str] = None,
object_dlp_label_id: Optional[str] = None,
scopetype: Optional[str] = None,
type: Optional[str] = None)func NewObjectDlpLabel(ctx *Context, name string, args *ObjectDlpLabelArgs, opts ...ResourceOption) (*ObjectDlpLabel, error)public ObjectDlpLabel(string name, ObjectDlpLabelArgs? args = null, CustomResourceOptions? opts = null)
public ObjectDlpLabel(String name, ObjectDlpLabelArgs args)
public ObjectDlpLabel(String name, ObjectDlpLabelArgs args, CustomResourceOptions options)
type: fortimanager:ObjectDlpLabel
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 ObjectDlpLabelArgs
- 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 ObjectDlpLabelArgs
- 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 ObjectDlpLabelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectDlpLabelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectDlpLabelArgs
- 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 objectDlpLabelResource = new Fortimanager.ObjectDlpLabel("objectDlpLabelResource", new()
{
Adom = "string",
Comment = "string",
Connectors = new[]
{
"string",
},
DynamicSortSubtable = "string",
Entries = new[]
{
new Fortimanager.Inputs.ObjectDlpLabelEntryArgs
{
FortidataLabelName = "string",
Guid = "string",
Id = 0,
MpipLabelName = "string",
},
},
MpipType = "string",
Name = "string",
ObjectDlpLabelId = "string",
Scopetype = "string",
Type = "string",
});
example, err := fortimanager.NewObjectDlpLabel(ctx, "objectDlpLabelResource", &fortimanager.ObjectDlpLabelArgs{
Adom: pulumi.String("string"),
Comment: pulumi.String("string"),
Connectors: pulumi.StringArray{
pulumi.String("string"),
},
DynamicSortSubtable: pulumi.String("string"),
Entries: fortimanager.ObjectDlpLabelEntryArray{
&fortimanager.ObjectDlpLabelEntryArgs{
FortidataLabelName: pulumi.String("string"),
Guid: pulumi.String("string"),
Id: pulumi.Float64(0),
MpipLabelName: pulumi.String("string"),
},
},
MpipType: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectDlpLabelId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Type: pulumi.String("string"),
})
var objectDlpLabelResource = new ObjectDlpLabel("objectDlpLabelResource", ObjectDlpLabelArgs.builder()
.adom("string")
.comment("string")
.connectors("string")
.dynamicSortSubtable("string")
.entries(ObjectDlpLabelEntryArgs.builder()
.fortidataLabelName("string")
.guid("string")
.id(0.0)
.mpipLabelName("string")
.build())
.mpipType("string")
.name("string")
.objectDlpLabelId("string")
.scopetype("string")
.type("string")
.build());
object_dlp_label_resource = fortimanager.ObjectDlpLabel("objectDlpLabelResource",
adom="string",
comment="string",
connectors=["string"],
dynamic_sort_subtable="string",
entries=[{
"fortidata_label_name": "string",
"guid": "string",
"id": 0,
"mpip_label_name": "string",
}],
mpip_type="string",
name="string",
object_dlp_label_id="string",
scopetype="string",
type="string")
const objectDlpLabelResource = new fortimanager.ObjectDlpLabel("objectDlpLabelResource", {
adom: "string",
comment: "string",
connectors: ["string"],
dynamicSortSubtable: "string",
entries: [{
fortidataLabelName: "string",
guid: "string",
id: 0,
mpipLabelName: "string",
}],
mpipType: "string",
name: "string",
objectDlpLabelId: "string",
scopetype: "string",
type: "string",
});
type: fortimanager:ObjectDlpLabel
properties:
adom: string
comment: string
connectors:
- string
dynamicSortSubtable: string
entries:
- fortidataLabelName: string
guid: string
id: 0
mpipLabelName: string
mpipType: string
name: string
objectDlpLabelId: string
scopetype: string
type: string
ObjectDlpLabel 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 ObjectDlpLabel resource accepts the following input properties:
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comment string
- Optional comments.
- Connectors List<string>
- Name of SDN connector.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Entries
List<Object
Dlp Label Entry> - Entries. The structure of
entriesblock is documented below. - Mpip
Type string - MPIP label type. Valid values:
local,remote. - Name string
- Name of table containing the label.
- Object
Dlp stringLabel Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Type string
- Label type. Valid values:
mpip.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comment string
- Optional comments.
- Connectors []string
- Name of SDN connector.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Entries
[]Object
Dlp Label Entry Args - Entries. The structure of
entriesblock is documented below. - Mpip
Type string - MPIP label type. Valid values:
local,remote. - Name string
- Name of table containing the label.
- Object
Dlp stringLabel Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Type string
- Label type. Valid values:
mpip.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment String
- Optional comments.
- connectors List<String>
- Name of SDN connector.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries
List<Object
Dlp Label Entry> - Entries. The structure of
entriesblock is documented below. - mpip
Type String - MPIP label type. Valid values:
local,remote. - name String
- Name of table containing the label.
- object
Dlp StringLabel Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type String
- Label type. Valid values:
mpip.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment string
- Optional comments.
- connectors string[]
- Name of SDN connector.
- dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries
Object
Dlp Label Entry[] - Entries. The structure of
entriesblock is documented below. - mpip
Type string - MPIP label type. Valid values:
local,remote. - name string
- Name of table containing the label.
- object
Dlp stringLabel Id - an identifier for the resource with format {{name}}.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type string
- Label type. Valid values:
mpip.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment str
- Optional comments.
- connectors Sequence[str]
- Name of SDN connector.
- dynamic_
sort_ strsubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries
Sequence[Object
Dlp Label Entry Args] - Entries. The structure of
entriesblock is documented below. - mpip_
type str - MPIP label type. Valid values:
local,remote. - name str
- Name of table containing the label.
- object_
dlp_ strlabel_ id - an identifier for the resource with format {{name}}.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type str
- Label type. Valid values:
mpip.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment String
- Optional comments.
- connectors List<String>
- Name of SDN connector.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries List<Property Map>
- Entries. The structure of
entriesblock is documented below. - mpip
Type String - MPIP label type. Valid values:
local,remote. - name String
- Name of table containing the label.
- object
Dlp StringLabel Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type String
- Label type. Valid values:
mpip.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectDlpLabel 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 ObjectDlpLabel Resource
Get an existing ObjectDlpLabel 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?: ObjectDlpLabelState, opts?: CustomResourceOptions): ObjectDlpLabel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
comment: Optional[str] = None,
connectors: Optional[Sequence[str]] = None,
dynamic_sort_subtable: Optional[str] = None,
entries: Optional[Sequence[ObjectDlpLabelEntryArgs]] = None,
mpip_type: Optional[str] = None,
name: Optional[str] = None,
object_dlp_label_id: Optional[str] = None,
scopetype: Optional[str] = None,
type: Optional[str] = None) -> ObjectDlpLabelfunc GetObjectDlpLabel(ctx *Context, name string, id IDInput, state *ObjectDlpLabelState, opts ...ResourceOption) (*ObjectDlpLabel, error)public static ObjectDlpLabel Get(string name, Input<string> id, ObjectDlpLabelState? state, CustomResourceOptions? opts = null)public static ObjectDlpLabel get(String name, Output<String> id, ObjectDlpLabelState state, CustomResourceOptions options)resources: _: type: fortimanager:ObjectDlpLabel 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.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comment string
- Optional comments.
- Connectors List<string>
- Name of SDN connector.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Entries
List<Object
Dlp Label Entry> - Entries. The structure of
entriesblock is documented below. - Mpip
Type string - MPIP label type. Valid values:
local,remote. - Name string
- Name of table containing the label.
- Object
Dlp stringLabel Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Type string
- Label type. Valid values:
mpip.
- Adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - Comment string
- Optional comments.
- Connectors []string
- Name of SDN connector.
- Dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- Entries
[]Object
Dlp Label Entry Args - Entries. The structure of
entriesblock is documented below. - Mpip
Type string - MPIP label type. Valid values:
local,remote. - Name string
- Name of table containing the label.
- Object
Dlp stringLabel Id - an identifier for the resource with format {{name}}.
- Scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - Type string
- Label type. Valid values:
mpip.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment String
- Optional comments.
- connectors List<String>
- Name of SDN connector.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries
List<Object
Dlp Label Entry> - Entries. The structure of
entriesblock is documented below. - mpip
Type String - MPIP label type. Valid values:
local,remote. - name String
- Name of table containing the label.
- object
Dlp StringLabel Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type String
- Label type. Valid values:
mpip.
- adom string
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment string
- Optional comments.
- connectors string[]
- Name of SDN connector.
- dynamic
Sort stringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries
Object
Dlp Label Entry[] - Entries. The structure of
entriesblock is documented below. - mpip
Type string - MPIP label type. Valid values:
local,remote. - name string
- Name of table containing the label.
- object
Dlp stringLabel Id - an identifier for the resource with format {{name}}.
- scopetype string
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type string
- Label type. Valid values:
mpip.
- adom str
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment str
- Optional comments.
- connectors Sequence[str]
- Name of SDN connector.
- dynamic_
sort_ strsubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries
Sequence[Object
Dlp Label Entry Args] - Entries. The structure of
entriesblock is documented below. - mpip_
type str - MPIP label type. Valid values:
local,remote. - name str
- Name of table containing the label.
- object_
dlp_ strlabel_ id - an identifier for the resource with format {{name}}.
- scopetype str
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type str
- Label type. Valid values:
mpip.
- adom String
- Adom. This value is valid only when the
scopetypeisadom, otherwise the value of adom in the provider will be inherited. - comment String
- Optional comments.
- connectors List<String>
- Name of SDN connector.
- dynamic
Sort StringSubtable - true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
- entries List<Property Map>
- Entries. The structure of
entriesblock is documented below. - mpip
Type String - MPIP label type. Valid values:
local,remote. - name String
- Name of table containing the label.
- object
Dlp StringLabel Id - an identifier for the resource with format {{name}}.
- scopetype String
- The scope of application of the resource. Valid values:
inherit,adom,global. Theinheritmeans that the scopetype of the provider will be inherited, and adom will also be inherited. The default value isinherit. - type String
- Label type. Valid values:
mpip.
Supporting Types
ObjectDlpLabelEntry, ObjectDlpLabelEntryArgs
- Fortidata
Label stringName - Name of FortiData label
- Guid string
- MPIP label guid.
- Id double
- ID.
- Mpip
Label stringName - Name of MPIP label.
- Fortidata
Label stringName - Name of FortiData label
- Guid string
- MPIP label guid.
- Id float64
- ID.
- Mpip
Label stringName - Name of MPIP label.
- fortidata
Label StringName - Name of FortiData label
- guid String
- MPIP label guid.
- id Double
- ID.
- mpip
Label StringName - Name of MPIP label.
- fortidata
Label stringName - Name of FortiData label
- guid string
- MPIP label guid.
- id number
- ID.
- mpip
Label stringName - Name of MPIP label.
- fortidata_
label_ strname - Name of FortiData label
- guid str
- MPIP label guid.
- id float
- ID.
- mpip_
label_ strname - Name of MPIP label.
- fortidata
Label StringName - Name of FortiData label
- guid String
- MPIP label guid.
- id Number
- ID.
- mpip
Label StringName - Name of MPIP label.
Import
ObjectDlp Label can be imported using any of these accepted formats:
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectDlpLabel:ObjectDlpLabel labelname {{name}}
$ 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
fortimanagerTerraform Provider.
