cloudflare.EmailRoutingAddress
Explore with Pulumi AI
Provides a resource for managing Email Routing Addresses.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.EmailRoutingAddress("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Email = "user@example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewEmailRoutingAddress(ctx, "example", &cloudflare.EmailRoutingAddressArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Email: pulumi.String("user@example.com"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.EmailRoutingAddress;
import com.pulumi.cloudflare.EmailRoutingAddressArgs;
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 example = new EmailRoutingAddress("example", EmailRoutingAddressArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.email("user@example.com")
.build());
}
}
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.EmailRoutingAddress("example",
account_id="f037e56e89293a057740de681ac9abbe",
email="user@example.com")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.EmailRoutingAddress("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
email: "user@example.com",
});
resources:
example:
type: cloudflare:EmailRoutingAddress
properties:
accountId: f037e56e89293a057740de681ac9abbe
email: user@example.com
Create EmailRoutingAddress Resource
new EmailRoutingAddress(name: string, args: EmailRoutingAddressArgs, opts?: CustomResourceOptions);
@overload
def EmailRoutingAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
email: Optional[str] = None)
@overload
def EmailRoutingAddress(resource_name: str,
args: EmailRoutingAddressArgs,
opts: Optional[ResourceOptions] = None)
func NewEmailRoutingAddress(ctx *Context, name string, args EmailRoutingAddressArgs, opts ...ResourceOption) (*EmailRoutingAddress, error)
public EmailRoutingAddress(string name, EmailRoutingAddressArgs args, CustomResourceOptions? opts = null)
public EmailRoutingAddress(String name, EmailRoutingAddressArgs args)
public EmailRoutingAddress(String name, EmailRoutingAddressArgs args, CustomResourceOptions options)
type: cloudflare:EmailRoutingAddress
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailRoutingAddressArgs
- 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 EmailRoutingAddressArgs
- 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 EmailRoutingAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailRoutingAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailRoutingAddressArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EmailRoutingAddress Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EmailRoutingAddress resource accepts the following input properties:
- account_
id str The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- email str
The contact email address of the user. Modifying this attribute will force creation of a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the EmailRoutingAddress resource produces the following output properties:
- Created string
The date and time the destination address has been created.
- Id string
The provider-assigned unique ID for this managed resource.
- Modified string
The date and time the destination address was last modified.
- Tag string
Destination address identifier.
- Verified string
The date and time the destination address has been verified. Null means not verified yet.
- Created string
The date and time the destination address has been created.
- Id string
The provider-assigned unique ID for this managed resource.
- Modified string
The date and time the destination address was last modified.
- Tag string
Destination address identifier.
- Verified string
The date and time the destination address has been verified. Null means not verified yet.
- created String
The date and time the destination address has been created.
- id String
The provider-assigned unique ID for this managed resource.
- modified String
The date and time the destination address was last modified.
- tag String
Destination address identifier.
- verified String
The date and time the destination address has been verified. Null means not verified yet.
- created string
The date and time the destination address has been created.
- id string
The provider-assigned unique ID for this managed resource.
- modified string
The date and time the destination address was last modified.
- tag string
Destination address identifier.
- verified string
The date and time the destination address has been verified. Null means not verified yet.
- created str
The date and time the destination address has been created.
- id str
The provider-assigned unique ID for this managed resource.
- modified str
The date and time the destination address was last modified.
- tag str
Destination address identifier.
- verified str
The date and time the destination address has been verified. Null means not verified yet.
- created String
The date and time the destination address has been created.
- id String
The provider-assigned unique ID for this managed resource.
- modified String
The date and time the destination address was last modified.
- tag String
Destination address identifier.
- verified String
The date and time the destination address has been verified. Null means not verified yet.
Look up Existing EmailRoutingAddress Resource
Get an existing EmailRoutingAddress 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?: EmailRoutingAddressState, opts?: CustomResourceOptions): EmailRoutingAddress
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created: Optional[str] = None,
email: Optional[str] = None,
modified: Optional[str] = None,
tag: Optional[str] = None,
verified: Optional[str] = None) -> EmailRoutingAddress
func GetEmailRoutingAddress(ctx *Context, name string, id IDInput, state *EmailRoutingAddressState, opts ...ResourceOption) (*EmailRoutingAddress, error)
public static EmailRoutingAddress Get(string name, Input<string> id, EmailRoutingAddressState? state, CustomResourceOptions? opts = null)
public static EmailRoutingAddress get(String name, Output<String> id, EmailRoutingAddressState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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 The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Created string
The date and time the destination address has been created.
- Email string
The contact email address of the user. Modifying this attribute will force creation of a new resource.
- Modified string
The date and time the destination address was last modified.
- Tag string
Destination address identifier.
- Verified string
The date and time the destination address has been verified. Null means not verified yet.
- Account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Created string
The date and time the destination address has been created.
- Email string
The contact email address of the user. Modifying this attribute will force creation of a new resource.
- Modified string
The date and time the destination address was last modified.
- Tag string
Destination address identifier.
- Verified string
The date and time the destination address has been verified. Null means not verified yet.
- account
Id String The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- created String
The date and time the destination address has been created.
- email String
The contact email address of the user. Modifying this attribute will force creation of a new resource.
- modified String
The date and time the destination address was last modified.
- tag String
Destination address identifier.
- verified String
The date and time the destination address has been verified. Null means not verified yet.
- account
Id string The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- created string
The date and time the destination address has been created.
- email string
The contact email address of the user. Modifying this attribute will force creation of a new resource.
- modified string
The date and time the destination address was last modified.
- tag string
Destination address identifier.
- verified string
The date and time the destination address has been verified. Null means not verified yet.
- account_
id str The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- created str
The date and time the destination address has been created.
- email str
The contact email address of the user. Modifying this attribute will force creation of a new resource.
- modified str
The date and time the destination address was last modified.
- tag str
Destination address identifier.
- verified str
The date and time the destination address has been verified. Null means not verified yet.
- account
Id String The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- created String
The date and time the destination address has been created.
- email String
The contact email address of the user. Modifying this attribute will force creation of a new resource.
- modified String
The date and time the destination address was last modified.
- tag String
Destination address identifier.
- verified String
The date and time the destination address has been verified. Null means not verified yet.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.