cloudflare.EmailSecurityBlockSender
Explore with Pulumi AI
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:
- Account
Id string - Account Identifier
- Is
Regex bool - Pattern string
- Pattern
Type string - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Comments string
- Account
Id string - Account Identifier
- Is
Regex bool - Pattern string
- Pattern
Type string - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Comments string
- account
Id String - Account Identifier
- is
Regex Boolean - pattern String
- pattern
Type String - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- comments String
- account
Id string - Account Identifier
- is
Regex boolean - pattern string
- pattern
Type 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
- account
Id String - Account Identifier
- is
Regex Boolean - pattern String
- pattern
Type 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:
- 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 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.
- Account
Id string - Account Identifier
- Comments string
- Created
At string - Is
Regex bool - Last
Modified string - Pattern string
- Pattern
Type string - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- Account
Id string - Account Identifier
- Comments string
- Created
At string - Is
Regex bool - Last
Modified string - Pattern string
- Pattern
Type string - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account
Id String - Account Identifier
- comments String
- created
At String - is
Regex Boolean - last
Modified String - pattern String
- pattern
Type String - Available values: "EMAIL", "DOMAIN", "IP", "UNKNOWN".
- account
Id string - Account Identifier
- comments string
- created
At string - is
Regex boolean - last
Modified string - pattern string
- pattern
Type 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".
- account
Id String - Account Identifier
- comments String
- created
At String - is
Regex Boolean - last
Modified String - pattern String
- pattern
Type 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.