cloudflare.EmailSecurityTrustedDomains
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleEmailSecurityTrustedDomains = new cloudflare.EmailSecurityTrustedDomains("example_email_security_trusted_domains", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
isRecent: true,
isRegex: true,
isSimilarity: true,
pattern: "x",
comments: "comments",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_email_security_trusted_domains = cloudflare.EmailSecurityTrustedDomains("example_email_security_trusted_domains",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
is_recent=True,
is_regex=True,
is_similarity=True,
pattern="x",
comments="comments")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewEmailSecurityTrustedDomains(ctx, "example_email_security_trusted_domains", &cloudflare.EmailSecurityTrustedDomainsArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
IsRecent: pulumi.Bool(true),
IsRegex: pulumi.Bool(true),
IsSimilarity: pulumi.Bool(true),
Pattern: pulumi.String("x"),
Comments: pulumi.String("comments"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleEmailSecurityTrustedDomains = new Cloudflare.EmailSecurityTrustedDomains("example_email_security_trusted_domains", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
IsRecent = true,
IsRegex = true,
IsSimilarity = true,
Pattern = "x",
Comments = "comments",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.EmailSecurityTrustedDomains;
import com.pulumi.cloudflare.EmailSecurityTrustedDomainsArgs;
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 exampleEmailSecurityTrustedDomains = new EmailSecurityTrustedDomains("exampleEmailSecurityTrustedDomains", EmailSecurityTrustedDomainsArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.isRecent(true)
.isRegex(true)
.isSimilarity(true)
.pattern("x")
.comments("comments")
.build());
}
}
resources:
exampleEmailSecurityTrustedDomains:
type: cloudflare:EmailSecurityTrustedDomains
name: example_email_security_trusted_domains
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
isRecent: true
isRegex: true
isSimilarity: true
pattern: x
comments: comments
Create EmailSecurityTrustedDomains Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EmailSecurityTrustedDomains(name: string, args: EmailSecurityTrustedDomainsArgs, opts?: CustomResourceOptions);
@overload
def EmailSecurityTrustedDomains(resource_name: str,
args: EmailSecurityTrustedDomainsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EmailSecurityTrustedDomains(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bodies: Optional[Sequence[EmailSecurityTrustedDomainsBodyArgs]] = None,
comments: Optional[str] = None,
is_recent: Optional[bool] = None,
is_regex: Optional[bool] = None,
is_similarity: Optional[bool] = None,
pattern: Optional[str] = None)
func NewEmailSecurityTrustedDomains(ctx *Context, name string, args EmailSecurityTrustedDomainsArgs, opts ...ResourceOption) (*EmailSecurityTrustedDomains, error)
public EmailSecurityTrustedDomains(string name, EmailSecurityTrustedDomainsArgs args, CustomResourceOptions? opts = null)
public EmailSecurityTrustedDomains(String name, EmailSecurityTrustedDomainsArgs args)
public EmailSecurityTrustedDomains(String name, EmailSecurityTrustedDomainsArgs args, CustomResourceOptions options)
type: cloudflare:EmailSecurityTrustedDomains
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 EmailSecurityTrustedDomainsArgs
- 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 EmailSecurityTrustedDomainsArgs
- 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 EmailSecurityTrustedDomainsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailSecurityTrustedDomainsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailSecurityTrustedDomainsArgs
- 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 emailSecurityTrustedDomainsResource = new Cloudflare.EmailSecurityTrustedDomains("emailSecurityTrustedDomainsResource", new()
{
AccountId = "string",
Bodies = new[]
{
new Cloudflare.Inputs.EmailSecurityTrustedDomainsBodyArgs
{
IsRecent = false,
IsRegex = false,
IsSimilarity = false,
Pattern = "string",
Comments = "string",
},
},
Comments = "string",
IsRecent = false,
IsRegex = false,
IsSimilarity = false,
Pattern = "string",
});
example, err := cloudflare.NewEmailSecurityTrustedDomains(ctx, "emailSecurityTrustedDomainsResource", &cloudflare.EmailSecurityTrustedDomainsArgs{
AccountId: pulumi.String("string"),
Bodies: cloudflare.EmailSecurityTrustedDomainsBodyArray{
&cloudflare.EmailSecurityTrustedDomainsBodyArgs{
IsRecent: pulumi.Bool(false),
IsRegex: pulumi.Bool(false),
IsSimilarity: pulumi.Bool(false),
Pattern: pulumi.String("string"),
Comments: pulumi.String("string"),
},
},
Comments: pulumi.String("string"),
IsRecent: pulumi.Bool(false),
IsRegex: pulumi.Bool(false),
IsSimilarity: pulumi.Bool(false),
Pattern: pulumi.String("string"),
})
var emailSecurityTrustedDomainsResource = new EmailSecurityTrustedDomains("emailSecurityTrustedDomainsResource", EmailSecurityTrustedDomainsArgs.builder()
.accountId("string")
.bodies(EmailSecurityTrustedDomainsBodyArgs.builder()
.isRecent(false)
.isRegex(false)
.isSimilarity(false)
.pattern("string")
.comments("string")
.build())
.comments("string")
.isRecent(false)
.isRegex(false)
.isSimilarity(false)
.pattern("string")
.build());
email_security_trusted_domains_resource = cloudflare.EmailSecurityTrustedDomains("emailSecurityTrustedDomainsResource",
account_id="string",
bodies=[{
"is_recent": False,
"is_regex": False,
"is_similarity": False,
"pattern": "string",
"comments": "string",
}],
comments="string",
is_recent=False,
is_regex=False,
is_similarity=False,
pattern="string")
const emailSecurityTrustedDomainsResource = new cloudflare.EmailSecurityTrustedDomains("emailSecurityTrustedDomainsResource", {
accountId: "string",
bodies: [{
isRecent: false,
isRegex: false,
isSimilarity: false,
pattern: "string",
comments: "string",
}],
comments: "string",
isRecent: false,
isRegex: false,
isSimilarity: false,
pattern: "string",
});
type: cloudflare:EmailSecurityTrustedDomains
properties:
accountId: string
bodies:
- comments: string
isRecent: false
isRegex: false
isSimilarity: false
pattern: string
comments: string
isRecent: false
isRegex: false
isSimilarity: false
pattern: string
EmailSecurityTrustedDomains 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 EmailSecurityTrustedDomains resource accepts the following input properties:
- Account
Id string - Account Identifier
- Bodies
List<Email
Security Trusted Domains Body> - Comments string
- Is
Recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- Is
Regex bool - Is
Similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- Pattern string
- Account
Id string - Account Identifier
- Bodies
[]Email
Security Trusted Domains Body Args - Comments string
- Is
Recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- Is
Regex bool - Is
Similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- Pattern string
- account
Id String - Account Identifier
- bodies
List<Email
Security Trusted Domains Body> - comments String
- is
Recent Boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex Boolean - is
Similarity Boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern String
- account
Id string - Account Identifier
- bodies
Email
Security Trusted Domains Body[] - comments string
- is
Recent boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex boolean - is
Similarity boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern string
- account_
id str - Account Identifier
- bodies
Sequence[Email
Security Trusted Domains Body Args] - comments str
- is_
recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is_
regex bool - is_
similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern str
- account
Id String - Account Identifier
- bodies List<Property Map>
- comments String
- is
Recent Boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex Boolean - is
Similarity Boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern String
Outputs
All input properties are implicitly available as output properties. Additionally, the EmailSecurityTrustedDomains resource produces the following output properties:
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String
- created
At string - id string
- The provider-assigned unique ID for this managed resource.
- last
Modified string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- last_
modified str
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String
Look up Existing EmailSecurityTrustedDomains Resource
Get an existing EmailSecurityTrustedDomains 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?: EmailSecurityTrustedDomainsState, opts?: CustomResourceOptions): EmailSecurityTrustedDomains
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
bodies: Optional[Sequence[EmailSecurityTrustedDomainsBodyArgs]] = None,
comments: Optional[str] = None,
created_at: Optional[str] = None,
is_recent: Optional[bool] = None,
is_regex: Optional[bool] = None,
is_similarity: Optional[bool] = None,
last_modified: Optional[str] = None,
pattern: Optional[str] = None) -> EmailSecurityTrustedDomains
func GetEmailSecurityTrustedDomains(ctx *Context, name string, id IDInput, state *EmailSecurityTrustedDomainsState, opts ...ResourceOption) (*EmailSecurityTrustedDomains, error)
public static EmailSecurityTrustedDomains Get(string name, Input<string> id, EmailSecurityTrustedDomainsState? state, CustomResourceOptions? opts = null)
public static EmailSecurityTrustedDomains get(String name, Output<String> id, EmailSecurityTrustedDomainsState state, CustomResourceOptions options)
resources: _: type: cloudflare:EmailSecurityTrustedDomains 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.
- Account
Id string - Account Identifier
- Bodies
List<Email
Security Trusted Domains Body> - Comments string
- Created
At string - Is
Recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- Is
Regex bool - Is
Similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- Last
Modified string - Pattern string
- Account
Id string - Account Identifier
- Bodies
[]Email
Security Trusted Domains Body Args - Comments string
- Created
At string - Is
Recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- Is
Regex bool - Is
Similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- Last
Modified string - Pattern string
- account
Id String - Account Identifier
- bodies
List<Email
Security Trusted Domains Body> - comments String
- created
At String - is
Recent Boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex Boolean - is
Similarity Boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- last
Modified String - pattern String
- account
Id string - Account Identifier
- bodies
Email
Security Trusted Domains Body[] - comments string
- created
At string - is
Recent boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex boolean - is
Similarity boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- last
Modified string - pattern string
- account_
id str - Account Identifier
- bodies
Sequence[Email
Security Trusted Domains Body Args] - comments str
- created_
at str - is_
recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is_
regex bool - is_
similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- last_
modified str - pattern str
- account
Id String - Account Identifier
- bodies List<Property Map>
- comments String
- created
At String - is
Recent Boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex Boolean - is
Similarity Boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- last
Modified String - pattern String
Supporting Types
EmailSecurityTrustedDomainsBody, EmailSecurityTrustedDomainsBodyArgs
- Is
Recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- Is
Regex bool - Is
Similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- Pattern string
- Comments string
- Is
Recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- Is
Regex bool - Is
Similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- Pattern string
- Comments string
- is
Recent Boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex Boolean - is
Similarity Boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern String
- comments String
- is
Recent boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex boolean - is
Similarity boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern string
- comments string
- is_
recent bool - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is_
regex bool - is_
similarity bool - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern str
- comments str
- is
Recent Boolean - Select to prevent recently registered domains from triggering a Suspicious or Malicious disposition.
- is
Regex Boolean - is
Similarity Boolean - Select for partner or other approved domains that have similar spelling to your connected domains. Prevents listed domains from triggering a Spoof disposition.
- pattern String
- comments String
Import
$ pulumi import cloudflare:index/emailSecurityTrustedDomains:EmailSecurityTrustedDomains example '<account_id>/<trusted_domain_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.