fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature
Explore with Pulumi AI
Configure Mail signature.
This resource is a sub resource for variable
mail_signature
of resourcefortimanager.ObjectFirewallProfileprotocoloptions
. Conflict and overwrite may occur if use both of them.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";
const trnameObjectFirewallProfileprotocoloptions = new fortimanager.ObjectFirewallProfileprotocoloptions("trnameObjectFirewallProfileprotocoloptions", {});
const trnameObjectFirewallProfileprotocoloptionsMailsignature = new fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature("trnameObjectFirewallProfileprotocoloptionsMailsignature", {
profileProtocolOptions: trnameObjectFirewallProfileprotocoloptions.name,
status: "disable",
}, {
dependsOn: [trnameObjectFirewallProfileprotocoloptions],
});
import pulumi
import pulumi_fortimanager as fortimanager
trname_object_firewall_profileprotocoloptions = fortimanager.ObjectFirewallProfileprotocoloptions("trnameObjectFirewallProfileprotocoloptions")
trname_object_firewall_profileprotocoloptions_mailsignature = fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature("trnameObjectFirewallProfileprotocoloptionsMailsignature",
profile_protocol_options=trname_object_firewall_profileprotocoloptions.name,
status="disable",
opts = pulumi.ResourceOptions(depends_on=[trname_object_firewall_profileprotocoloptions]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
trnameObjectFirewallProfileprotocoloptions, err := fortimanager.NewObjectFirewallProfileprotocoloptions(ctx, "trnameObjectFirewallProfileprotocoloptions", nil)
if err != nil {
return err
}
_, err = fortimanager.NewObjectFirewallProfileprotocoloptionsMailsignature(ctx, "trnameObjectFirewallProfileprotocoloptionsMailsignature", &fortimanager.ObjectFirewallProfileprotocoloptionsMailsignatureArgs{
ProfileProtocolOptions: trnameObjectFirewallProfileprotocoloptions.Name,
Status: pulumi.String("disable"),
}, pulumi.DependsOn([]pulumi.Resource{
trnameObjectFirewallProfileprotocoloptions,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;
return await Deployment.RunAsync(() =>
{
var trnameObjectFirewallProfileprotocoloptions = new Fortimanager.ObjectFirewallProfileprotocoloptions("trnameObjectFirewallProfileprotocoloptions");
var trnameObjectFirewallProfileprotocoloptionsMailsignature = new Fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature("trnameObjectFirewallProfileprotocoloptionsMailsignature", new()
{
ProfileProtocolOptions = trnameObjectFirewallProfileprotocoloptions.Name,
Status = "disable",
}, new CustomResourceOptions
{
DependsOn =
{
trnameObjectFirewallProfileprotocoloptions,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallProfileprotocoloptions;
import com.pulumi.fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature;
import com.pulumi.fortimanager.ObjectFirewallProfileprotocoloptionsMailsignatureArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var trnameObjectFirewallProfileprotocoloptions = new ObjectFirewallProfileprotocoloptions("trnameObjectFirewallProfileprotocoloptions");
var trnameObjectFirewallProfileprotocoloptionsMailsignature = new ObjectFirewallProfileprotocoloptionsMailsignature("trnameObjectFirewallProfileprotocoloptionsMailsignature", ObjectFirewallProfileprotocoloptionsMailsignatureArgs.builder()
.profileProtocolOptions(trnameObjectFirewallProfileprotocoloptions.name())
.status("disable")
.build(), CustomResourceOptions.builder()
.dependsOn(trnameObjectFirewallProfileprotocoloptions)
.build());
}
}
resources:
trnameObjectFirewallProfileprotocoloptionsMailsignature:
type: fortimanager:ObjectFirewallProfileprotocoloptionsMailsignature
properties:
profileProtocolOptions: ${trnameObjectFirewallProfileprotocoloptions.name}
status: disable
options:
dependsOn:
- ${trnameObjectFirewallProfileprotocoloptions}
trnameObjectFirewallProfileprotocoloptions:
type: fortimanager:ObjectFirewallProfileprotocoloptions
Create ObjectFirewallProfileprotocoloptionsMailsignature Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectFirewallProfileprotocoloptionsMailsignature(name: string, args: ObjectFirewallProfileprotocoloptionsMailsignatureArgs, opts?: CustomResourceOptions);
@overload
def ObjectFirewallProfileprotocoloptionsMailsignature(resource_name: str,
args: ObjectFirewallProfileprotocoloptionsMailsignatureArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectFirewallProfileprotocoloptionsMailsignature(resource_name: str,
opts: Optional[ResourceOptions] = None,
profile_protocol_options: Optional[str] = None,
adom: Optional[str] = None,
object_firewall_profileprotocoloptions_mailsignature_id: Optional[str] = None,
scopetype: Optional[str] = None,
signature: Optional[str] = None,
status: Optional[str] = None)
func NewObjectFirewallProfileprotocoloptionsMailsignature(ctx *Context, name string, args ObjectFirewallProfileprotocoloptionsMailsignatureArgs, opts ...ResourceOption) (*ObjectFirewallProfileprotocoloptionsMailsignature, error)
public ObjectFirewallProfileprotocoloptionsMailsignature(string name, ObjectFirewallProfileprotocoloptionsMailsignatureArgs args, CustomResourceOptions? opts = null)
public ObjectFirewallProfileprotocoloptionsMailsignature(String name, ObjectFirewallProfileprotocoloptionsMailsignatureArgs args)
public ObjectFirewallProfileprotocoloptionsMailsignature(String name, ObjectFirewallProfileprotocoloptionsMailsignatureArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallProfileprotocoloptionsMailsignature
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 ObjectFirewallProfileprotocoloptionsMailsignatureArgs
- 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 ObjectFirewallProfileprotocoloptionsMailsignatureArgs
- 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 ObjectFirewallProfileprotocoloptionsMailsignatureArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectFirewallProfileprotocoloptionsMailsignatureArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectFirewallProfileprotocoloptionsMailsignatureArgs
- 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 objectFirewallProfileprotocoloptionsMailsignatureResource = new Fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature("objectFirewallProfileprotocoloptionsMailsignatureResource", new()
{
ProfileProtocolOptions = "string",
Adom = "string",
ObjectFirewallProfileprotocoloptionsMailsignatureId = "string",
Scopetype = "string",
Signature = "string",
Status = "string",
});
example, err := fortimanager.NewObjectFirewallProfileprotocoloptionsMailsignature(ctx, "objectFirewallProfileprotocoloptionsMailsignatureResource", &fortimanager.ObjectFirewallProfileprotocoloptionsMailsignatureArgs{
ProfileProtocolOptions: pulumi.String("string"),
Adom: pulumi.String("string"),
ObjectFirewallProfileprotocoloptionsMailsignatureId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Signature: pulumi.String("string"),
Status: pulumi.String("string"),
})
var objectFirewallProfileprotocoloptionsMailsignatureResource = new ObjectFirewallProfileprotocoloptionsMailsignature("objectFirewallProfileprotocoloptionsMailsignatureResource", ObjectFirewallProfileprotocoloptionsMailsignatureArgs.builder()
.profileProtocolOptions("string")
.adom("string")
.objectFirewallProfileprotocoloptionsMailsignatureId("string")
.scopetype("string")
.signature("string")
.status("string")
.build());
object_firewall_profileprotocoloptions_mailsignature_resource = fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature("objectFirewallProfileprotocoloptionsMailsignatureResource",
profile_protocol_options="string",
adom="string",
object_firewall_profileprotocoloptions_mailsignature_id="string",
scopetype="string",
signature="string",
status="string")
const objectFirewallProfileprotocoloptionsMailsignatureResource = new fortimanager.ObjectFirewallProfileprotocoloptionsMailsignature("objectFirewallProfileprotocoloptionsMailsignatureResource", {
profileProtocolOptions: "string",
adom: "string",
objectFirewallProfileprotocoloptionsMailsignatureId: "string",
scopetype: "string",
signature: "string",
status: "string",
});
type: fortimanager:ObjectFirewallProfileprotocoloptionsMailsignature
properties:
adom: string
objectFirewallProfileprotocoloptionsMailsignatureId: string
profileProtocolOptions: string
scopetype: string
signature: string
status: string
ObjectFirewallProfileprotocoloptionsMailsignature 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 ObjectFirewallProfileprotocoloptionsMailsignature resource accepts the following input properties:
- Profile
Protocol stringOptions - Profile Protocol Options.
- Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Object
Firewall stringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- 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
. - Signature string
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- Status string
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- Profile
Protocol stringOptions - Profile Protocol Options.
- Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Object
Firewall stringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- 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
. - Signature string
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- Status string
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- profile
Protocol StringOptions - Profile Protocol Options.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object
Firewall StringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- 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
. - signature String
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status String
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- profile
Protocol stringOptions - Profile Protocol Options.
- adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object
Firewall stringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- 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
. - signature string
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status string
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- profile_
protocol_ stroptions - Profile Protocol Options.
- adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object_
firewall_ strprofileprotocoloptions_ mailsignature_ id - an identifier for the resource.
- 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
. - signature str
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status str
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- profile
Protocol StringOptions - Profile Protocol Options.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object
Firewall StringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- 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
. - signature String
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status String
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectFirewallProfileprotocoloptionsMailsignature 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 ObjectFirewallProfileprotocoloptionsMailsignature Resource
Get an existing ObjectFirewallProfileprotocoloptionsMailsignature 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?: ObjectFirewallProfileprotocoloptionsMailsignatureState, opts?: CustomResourceOptions): ObjectFirewallProfileprotocoloptionsMailsignature
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
object_firewall_profileprotocoloptions_mailsignature_id: Optional[str] = None,
profile_protocol_options: Optional[str] = None,
scopetype: Optional[str] = None,
signature: Optional[str] = None,
status: Optional[str] = None) -> ObjectFirewallProfileprotocoloptionsMailsignature
func GetObjectFirewallProfileprotocoloptionsMailsignature(ctx *Context, name string, id IDInput, state *ObjectFirewallProfileprotocoloptionsMailsignatureState, opts ...ResourceOption) (*ObjectFirewallProfileprotocoloptionsMailsignature, error)
public static ObjectFirewallProfileprotocoloptionsMailsignature Get(string name, Input<string> id, ObjectFirewallProfileprotocoloptionsMailsignatureState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallProfileprotocoloptionsMailsignature get(String name, Output<String> id, ObjectFirewallProfileprotocoloptionsMailsignatureState state, CustomResourceOptions options)
resources: _: type: fortimanager:ObjectFirewallProfileprotocoloptionsMailsignature 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
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Object
Firewall stringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- Profile
Protocol stringOptions - Profile Protocol Options.
- 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
. - Signature string
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- Status string
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- Adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - Object
Firewall stringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- Profile
Protocol stringOptions - Profile Protocol Options.
- 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
. - Signature string
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- Status string
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object
Firewall StringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- profile
Protocol StringOptions - Profile Protocol Options.
- 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
. - signature String
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status String
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- adom string
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object
Firewall stringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- profile
Protocol stringOptions - Profile Protocol Options.
- 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
. - signature string
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status string
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- adom str
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object_
firewall_ strprofileprotocoloptions_ mailsignature_ id - an identifier for the resource.
- profile_
protocol_ stroptions - Profile Protocol Options.
- 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
. - signature str
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status str
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
- adom String
- Adom. This value is valid only when the
scopetype
isadom
, otherwise the value of adom in the provider will be inherited. - object
Firewall StringProfileprotocoloptions Mailsignature Id - an identifier for the resource.
- profile
Protocol StringOptions - Profile Protocol Options.
- 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
. - signature String
- Email signature to be added to outgoing email (if the signature contains spaces, enclose with quotation marks).
- status String
- Enable/disable adding an email signature to SMTP email messages as they pass through the FortiGate. Valid values:
disable
,enable
.
Import
ObjectFirewall ProfileProtocolOptionsMailSignature can be imported using any of these accepted formats:
Set import_options = [“profile_protocol_options=YOUR_VALUE”] in the provider section.
$ export “FORTIMANAGER_IMPORT_TABLE”=“true”
$ pulumi import fortimanager:index/objectFirewallProfileprotocoloptionsMailsignature:ObjectFirewallProfileprotocoloptionsMailsignature labelname ObjectFirewallProfileProtocolOptionsMailSignature
$ 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.