1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. EmailSecurityBlockSender
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.EmailSecurityBlockSender

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleEmailSecurityBlockSender = new cloudflare.EmailSecurityBlockSender("example_email_security_block_sender", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        isRegex: true,
        pattern: "x",
        patternType: "EMAIL",
        comments: "comments",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_security_block_sender = cloudflare.EmailSecurityBlockSender("example_email_security_block_sender",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        is_regex=True,
        pattern="x",
        pattern_type="EMAIL",
        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.NewEmailSecurityBlockSender(ctx, "example_email_security_block_sender", &cloudflare.EmailSecurityBlockSenderArgs{
    			AccountId:   pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			IsRegex:     pulumi.Bool(true),
    			Pattern:     pulumi.String("x"),
    			PatternType: pulumi.String("EMAIL"),
    			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 exampleEmailSecurityBlockSender = new Cloudflare.EmailSecurityBlockSender("example_email_security_block_sender", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            IsRegex = true,
            Pattern = "x",
            PatternType = "EMAIL",
            Comments = "comments",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.EmailSecurityBlockSender;
    import com.pulumi.cloudflare.EmailSecurityBlockSenderArgs;
    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 exampleEmailSecurityBlockSender = new EmailSecurityBlockSender("exampleEmailSecurityBlockSender", EmailSecurityBlockSenderArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .isRegex(true)
                .pattern("x")
                .patternType("EMAIL")
                .comments("comments")
                .build());
    
        }
    }
    
    resources:
      exampleEmailSecurityBlockSender:
        type: cloudflare:EmailSecurityBlockSender
        name: example_email_security_block_sender
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          isRegex: true
          pattern: x
          patternType: EMAIL
          comments: comments
    

    Create EmailSecurityBlockSender Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EmailSecurityBlockSender(name: string, args: EmailSecurityBlockSenderArgs, opts?: CustomResourceOptions);
    @overload
    def EmailSecurityBlockSender(resource_name: str,
                                 args: EmailSecurityBlockSenderArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmailSecurityBlockSender(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 account_id: Optional[str] = None,
                                 is_regex: Optional[bool] = None,
                                 pattern: Optional[str] = None,
                                 pattern_type: Optional[str] = None,
                                 comments: Optional[str] = None)
    func NewEmailSecurityBlockSender(ctx *Context, name string, args EmailSecurityBlockSenderArgs, opts ...ResourceOption) (*EmailSecurityBlockSender, error)
    public EmailSecurityBlockSender(string name, EmailSecurityBlockSenderArgs args, CustomResourceOptions? opts = null)
    public EmailSecurityBlockSender(String name, EmailSecurityBlockSenderArgs args)
    public EmailSecurityBlockSender(String name, EmailSecurityBlockSenderArgs args, CustomResourceOptions options)
    
    type: cloudflare:EmailSecurityBlockSender
    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 EmailSecurityBlockSenderArgs
    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 EmailSecurityBlockSenderArgs
    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 EmailSecurityBlockSenderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailSecurityBlockSenderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailSecurityBlockSenderArgs
    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 emailSecurityBlockSenderResource = new Cloudflare.EmailSecurityBlockSender("emailSecurityBlockSenderResource", new()
    {
        AccountId = "string",
        IsRegex = false,
        Pattern = "string",
        PatternType = "string",
        Comments = "string",
    });
    
    example, err := cloudflare.NewEmailSecurityBlockSender(ctx, "emailSecurityBlockSenderResource", &cloudflare.EmailSecurityBlockSenderArgs{
    	AccountId:   pulumi.String("string"),
    	IsRegex:     pulumi.Bool(false),
    	Pattern:     pulumi.String("string"),
    	PatternType: pulumi.String("string"),
    	Comments:    pulumi.String("string"),
    })
    
    var emailSecurityBlockSenderResource = new EmailSecurityBlockSender("emailSecurityBlockSenderResource", EmailSecurityBlockSenderArgs.builder()
        .accountId("string")
        .isRegex(false)
        .pattern("string")
        .patternType("string")
        .comments("string")
        .build());
    
    email_security_block_sender_resource = cloudflare.EmailSecurityBlockSender("emailSecurityBlockSenderResource",
        account_id="string",
        is_regex=False,
        pattern="string",
        pattern_type="string",
        comments="string")
    
    const emailSecurityBlockSenderResource = new cloudflare.EmailSecurityBlockSender("emailSecurityBlockSenderResource", {
        accountId: "string",
        isRegex: false,
        pattern: "string",
        patternType: "string",
        comments: "string",
    });
    
    type: cloudflare:EmailSecurityBlockSender
    properties:
        accountId: string
        comments: string
        isRegex: false
        pattern: string
        patternType: string
    

    EmailSecurityBlockSender 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 EmailSecurityBlockSender resource accepts the following input properties:

    AccountId string
    Account Identifier
    IsRegex bool
    Pattern string
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Comments string
    AccountId string
    Account Identifier
    IsRegex bool
    Pattern string
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    Comments string
    accountId String
    Account Identifier
    isRegex Boolean
    pattern String
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments String
    accountId string
    Account Identifier
    isRegex boolean
    pattern string
    patternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments string
    account_id str
    Account Identifier
    is_regex bool
    pattern str
    pattern_type str
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments str
    accountId String
    Account Identifier
    isRegex Boolean
    pattern String
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    comments String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EmailSecurityBlockSender resource produces the following output properties:

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String

    Look up Existing EmailSecurityBlockSender Resource

    Get an existing EmailSecurityBlockSender 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?: EmailSecurityBlockSenderState, opts?: CustomResourceOptions): EmailSecurityBlockSender
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            comments: Optional[str] = None,
            created_at: Optional[str] = None,
            is_regex: Optional[bool] = None,
            last_modified: Optional[str] = None,
            pattern: Optional[str] = None,
            pattern_type: Optional[str] = None) -> EmailSecurityBlockSender
    func GetEmailSecurityBlockSender(ctx *Context, name string, id IDInput, state *EmailSecurityBlockSenderState, opts ...ResourceOption) (*EmailSecurityBlockSender, error)
    public static EmailSecurityBlockSender Get(string name, Input<string> id, EmailSecurityBlockSenderState? state, CustomResourceOptions? opts = null)
    public static EmailSecurityBlockSender get(String name, Output<String> id, EmailSecurityBlockSenderState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:EmailSecurityBlockSender    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.
    The following state arguments are supported:
    AccountId string
    Account Identifier
    Comments string
    CreatedAt string
    IsRegex bool
    LastModified string
    Pattern string
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    AccountId string
    Account Identifier
    Comments string
    CreatedAt string
    IsRegex bool
    LastModified string
    Pattern string
    PatternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    accountId String
    Account Identifier
    comments String
    createdAt String
    isRegex Boolean
    lastModified String
    pattern String
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    accountId string
    Account Identifier
    comments string
    createdAt string
    isRegex boolean
    lastModified string
    pattern string
    patternType string
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    account_id str
    Account Identifier
    comments str
    created_at str
    is_regex bool
    last_modified str
    pattern str
    pattern_type str
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
    accountId String
    Account Identifier
    comments String
    createdAt String
    isRegex Boolean
    lastModified String
    pattern String
    patternType String
    Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".

    Import

    $ pulumi import cloudflare:index/emailSecurityBlockSender:EmailSecurityBlockSender example '<account_id>/<pattern_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.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi