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

cloudflare.EmailSecurityImpersonationRegistry

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 exampleEmailSecurityImpersonationRegistry = new cloudflare.EmailSecurityImpersonationRegistry("example_email_security_impersonation_registry", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        email: "email",
        isEmailRegex: true,
        name: "name",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_security_impersonation_registry = cloudflare.EmailSecurityImpersonationRegistry("example_email_security_impersonation_registry",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        email="email",
        is_email_regex=True,
        name="name")
    
    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.NewEmailSecurityImpersonationRegistry(ctx, "example_email_security_impersonation_registry", &cloudflare.EmailSecurityImpersonationRegistryArgs{
    			AccountId:    pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Email:        pulumi.String("email"),
    			IsEmailRegex: pulumi.Bool(true),
    			Name:         pulumi.String("name"),
    		})
    		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 exampleEmailSecurityImpersonationRegistry = new Cloudflare.EmailSecurityImpersonationRegistry("example_email_security_impersonation_registry", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Email = "email",
            IsEmailRegex = true,
            Name = "name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.EmailSecurityImpersonationRegistry;
    import com.pulumi.cloudflare.EmailSecurityImpersonationRegistryArgs;
    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 exampleEmailSecurityImpersonationRegistry = new EmailSecurityImpersonationRegistry("exampleEmailSecurityImpersonationRegistry", EmailSecurityImpersonationRegistryArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .email("email")
                .isEmailRegex(true)
                .name("name")
                .build());
    
        }
    }
    
    resources:
      exampleEmailSecurityImpersonationRegistry:
        type: cloudflare:EmailSecurityImpersonationRegistry
        name: example_email_security_impersonation_registry
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          email: email
          isEmailRegex: true
          name: name
    

    Create EmailSecurityImpersonationRegistry Resource

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

    Constructor syntax

    new EmailSecurityImpersonationRegistry(name: string, args: EmailSecurityImpersonationRegistryArgs, opts?: CustomResourceOptions);
    @overload
    def EmailSecurityImpersonationRegistry(resource_name: str,
                                           args: EmailSecurityImpersonationRegistryArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmailSecurityImpersonationRegistry(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           account_id: Optional[str] = None,
                                           email: Optional[str] = None,
                                           is_email_regex: Optional[bool] = None,
                                           name: Optional[str] = None)
    func NewEmailSecurityImpersonationRegistry(ctx *Context, name string, args EmailSecurityImpersonationRegistryArgs, opts ...ResourceOption) (*EmailSecurityImpersonationRegistry, error)
    public EmailSecurityImpersonationRegistry(string name, EmailSecurityImpersonationRegistryArgs args, CustomResourceOptions? opts = null)
    public EmailSecurityImpersonationRegistry(String name, EmailSecurityImpersonationRegistryArgs args)
    public EmailSecurityImpersonationRegistry(String name, EmailSecurityImpersonationRegistryArgs args, CustomResourceOptions options)
    
    type: cloudflare:EmailSecurityImpersonationRegistry
    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 EmailSecurityImpersonationRegistryArgs
    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 EmailSecurityImpersonationRegistryArgs
    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 EmailSecurityImpersonationRegistryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailSecurityImpersonationRegistryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailSecurityImpersonationRegistryArgs
    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 emailSecurityImpersonationRegistryResource = new Cloudflare.EmailSecurityImpersonationRegistry("emailSecurityImpersonationRegistryResource", new()
    {
        AccountId = "string",
        Email = "string",
        IsEmailRegex = false,
        Name = "string",
    });
    
    example, err := cloudflare.NewEmailSecurityImpersonationRegistry(ctx, "emailSecurityImpersonationRegistryResource", &cloudflare.EmailSecurityImpersonationRegistryArgs{
    	AccountId:    pulumi.String("string"),
    	Email:        pulumi.String("string"),
    	IsEmailRegex: pulumi.Bool(false),
    	Name:         pulumi.String("string"),
    })
    
    var emailSecurityImpersonationRegistryResource = new EmailSecurityImpersonationRegistry("emailSecurityImpersonationRegistryResource", EmailSecurityImpersonationRegistryArgs.builder()
        .accountId("string")
        .email("string")
        .isEmailRegex(false)
        .name("string")
        .build());
    
    email_security_impersonation_registry_resource = cloudflare.EmailSecurityImpersonationRegistry("emailSecurityImpersonationRegistryResource",
        account_id="string",
        email="string",
        is_email_regex=False,
        name="string")
    
    const emailSecurityImpersonationRegistryResource = new cloudflare.EmailSecurityImpersonationRegistry("emailSecurityImpersonationRegistryResource", {
        accountId: "string",
        email: "string",
        isEmailRegex: false,
        name: "string",
    });
    
    type: cloudflare:EmailSecurityImpersonationRegistry
    properties:
        accountId: string
        email: string
        isEmailRegex: false
        name: string
    

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

    AccountId string
    Account Identifier
    Email string
    IsEmailRegex bool
    Name string
    AccountId string
    Account Identifier
    Email string
    IsEmailRegex bool
    Name string
    accountId String
    Account Identifier
    email String
    isEmailRegex Boolean
    name String
    accountId string
    Account Identifier
    email string
    isEmailRegex boolean
    name string
    account_id str
    Account Identifier
    email str
    is_email_regex bool
    name str
    accountId String
    Account Identifier
    email String
    isEmailRegex Boolean
    name String

    Outputs

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

    Comments string
    CreatedAt string
    DirectoryId int
    DirectoryNodeId int
    ExternalDirectoryNodeId string

    Deprecated: This attribute is deprecated.

    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    Provenance string
    Comments string
    CreatedAt string
    DirectoryId int
    DirectoryNodeId int
    ExternalDirectoryNodeId string

    Deprecated: This attribute is deprecated.

    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    Provenance string
    comments String
    createdAt String
    directoryId Integer
    directoryNodeId Integer
    externalDirectoryNodeId String

    Deprecated: This attribute is deprecated.

    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    provenance String
    comments string
    createdAt string
    directoryId number
    directoryNodeId number
    externalDirectoryNodeId string

    Deprecated: This attribute is deprecated.

    id string
    The provider-assigned unique ID for this managed resource.
    lastModified string
    provenance string
    comments str
    created_at str
    directory_id int
    directory_node_id int
    external_directory_node_id str

    Deprecated: This attribute is deprecated.

    id str
    The provider-assigned unique ID for this managed resource.
    last_modified str
    provenance str
    comments String
    createdAt String
    directoryId Number
    directoryNodeId Number
    externalDirectoryNodeId String

    Deprecated: This attribute is deprecated.

    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    provenance String

    Look up Existing EmailSecurityImpersonationRegistry Resource

    Get an existing EmailSecurityImpersonationRegistry 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?: EmailSecurityImpersonationRegistryState, opts?: CustomResourceOptions): EmailSecurityImpersonationRegistry
    @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,
            directory_id: Optional[int] = None,
            directory_node_id: Optional[int] = None,
            email: Optional[str] = None,
            external_directory_node_id: Optional[str] = None,
            is_email_regex: Optional[bool] = None,
            last_modified: Optional[str] = None,
            name: Optional[str] = None,
            provenance: Optional[str] = None) -> EmailSecurityImpersonationRegistry
    func GetEmailSecurityImpersonationRegistry(ctx *Context, name string, id IDInput, state *EmailSecurityImpersonationRegistryState, opts ...ResourceOption) (*EmailSecurityImpersonationRegistry, error)
    public static EmailSecurityImpersonationRegistry Get(string name, Input<string> id, EmailSecurityImpersonationRegistryState? state, CustomResourceOptions? opts = null)
    public static EmailSecurityImpersonationRegistry get(String name, Output<String> id, EmailSecurityImpersonationRegistryState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:EmailSecurityImpersonationRegistry    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
    DirectoryId int
    DirectoryNodeId int
    Email string
    ExternalDirectoryNodeId string

    Deprecated: This attribute is deprecated.

    IsEmailRegex bool
    LastModified string
    Name string
    Provenance string
    AccountId string
    Account Identifier
    Comments string
    CreatedAt string
    DirectoryId int
    DirectoryNodeId int
    Email string
    ExternalDirectoryNodeId string

    Deprecated: This attribute is deprecated.

    IsEmailRegex bool
    LastModified string
    Name string
    Provenance string
    accountId String
    Account Identifier
    comments String
    createdAt String
    directoryId Integer
    directoryNodeId Integer
    email String
    externalDirectoryNodeId String

    Deprecated: This attribute is deprecated.

    isEmailRegex Boolean
    lastModified String
    name String
    provenance String
    accountId string
    Account Identifier
    comments string
    createdAt string
    directoryId number
    directoryNodeId number
    email string
    externalDirectoryNodeId string

    Deprecated: This attribute is deprecated.

    isEmailRegex boolean
    lastModified string
    name string
    provenance string
    account_id str
    Account Identifier
    comments str
    created_at str
    directory_id int
    directory_node_id int
    email str
    external_directory_node_id str

    Deprecated: This attribute is deprecated.

    is_email_regex bool
    last_modified str
    name str
    provenance str
    accountId String
    Account Identifier
    comments String
    createdAt String
    directoryId Number
    directoryNodeId Number
    email String
    externalDirectoryNodeId String

    Deprecated: This attribute is deprecated.

    isEmailRegex Boolean
    lastModified String
    name String
    provenance String

    Import

    $ pulumi import cloudflare:index/emailSecurityImpersonationRegistry:EmailSecurityImpersonationRegistry example '<account_id>/<display_name_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