glesys.Emailalias
Explore with Pulumi AI
Create a GleSYS Email alias.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as glesys from "@pulumi/glesys";
const alice = new glesys.Emailalias("alice", {
emailalias: "info@example.com",
goto: "alice@example.com,bob@example.com",
});
import pulumi
import pulumi_glesys as glesys
alice = glesys.Emailalias("alice",
emailalias="info@example.com",
goto="alice@example.com,bob@example.com")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/glesys/glesys"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glesys.NewEmailalias(ctx, "alice", &glesys.EmailaliasArgs{
Emailalias: pulumi.String("info@example.com"),
Goto: pulumi.String("alice@example.com,bob@example.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Glesys = Pulumi.Glesys;
return await Deployment.RunAsync(() =>
{
var alice = new Glesys.Emailalias("alice", new()
{
Emailalias = "info@example.com",
Goto = "alice@example.com,bob@example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.glesys.Emailalias;
import com.pulumi.glesys.EmailaliasArgs;
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 alice = new Emailalias("alice", EmailaliasArgs.builder()
.emailalias("info@example.com")
.goto_("alice@example.com,bob@example.com")
.build());
}
}
resources:
alice:
type: glesys:Emailalias
properties:
emailalias: info@example.com
goto: alice@example.com,bob@example.com
Create Emailalias Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Emailalias(name: string, args: EmailaliasArgs, opts?: CustomResourceOptions);
@overload
def Emailalias(resource_name: str,
args: EmailaliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Emailalias(resource_name: str,
opts: Optional[ResourceOptions] = None,
emailalias: Optional[str] = None,
goto: Optional[str] = None,
emailalias_id: Optional[str] = None)
func NewEmailalias(ctx *Context, name string, args EmailaliasArgs, opts ...ResourceOption) (*Emailalias, error)
public Emailalias(string name, EmailaliasArgs args, CustomResourceOptions? opts = null)
public Emailalias(String name, EmailaliasArgs args)
public Emailalias(String name, EmailaliasArgs args, CustomResourceOptions options)
type: glesys:Emailalias
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 EmailaliasArgs
- 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 EmailaliasArgs
- 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 EmailaliasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EmailaliasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EmailaliasArgs
- 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 emailaliasResource = new Glesys.Emailalias("emailaliasResource", new()
{
Emailalias = "string",
Goto = "string",
EmailaliasId = "string",
});
example, err := glesys.NewEmailalias(ctx, "emailaliasResource", &glesys.EmailaliasArgs{
Emailalias: pulumi.String("string"),
Goto: pulumi.String("string"),
EmailaliasId: pulumi.String("string"),
})
var emailaliasResource = new Emailalias("emailaliasResource", EmailaliasArgs.builder()
.emailalias("string")
.goto_("string")
.emailaliasId("string")
.build());
emailalias_resource = glesys.Emailalias("emailaliasResource",
emailalias="string",
goto="string",
emailalias_id="string")
const emailaliasResource = new glesys.Emailalias("emailaliasResource", {
emailalias: "string",
goto: "string",
emailaliasId: "string",
});
type: glesys:Emailalias
properties:
emailalias: string
emailaliasId: string
goto: string
Emailalias 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 Emailalias resource accepts the following input properties:
- Emailalias string
- Email alias name.
- Goto string
- Email alias goto. Comma separated list of email destinations.
- Emailalias
Id string - The ID of this resource.
- Emailalias string
- Email alias name.
- Goto string
- Email alias goto. Comma separated list of email destinations.
- Emailalias
Id string - The ID of this resource.
- emailalias String
- Email alias name.
- goto_ String
- Email alias goto. Comma separated list of email destinations.
- emailalias
Id String - The ID of this resource.
- emailalias string
- Email alias name.
- goto string
- Email alias goto. Comma separated list of email destinations.
- emailalias
Id string - The ID of this resource.
- emailalias str
- Email alias name.
- goto str
- Email alias goto. Comma separated list of email destinations.
- emailalias_
id str - The ID of this resource.
- emailalias String
- Email alias name.
- goto String
- Email alias goto. Comma separated list of email destinations.
- emailalias
Id String - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Emailalias resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Emailalias Resource
Get an existing Emailalias 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?: EmailaliasState, opts?: CustomResourceOptions): Emailalias
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
emailalias: Optional[str] = None,
emailalias_id: Optional[str] = None,
goto: Optional[str] = None) -> Emailalias
func GetEmailalias(ctx *Context, name string, id IDInput, state *EmailaliasState, opts ...ResourceOption) (*Emailalias, error)
public static Emailalias Get(string name, Input<string> id, EmailaliasState? state, CustomResourceOptions? opts = null)
public static Emailalias get(String name, Output<String> id, EmailaliasState state, CustomResourceOptions options)
resources: _: type: glesys:Emailalias 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.
- Emailalias string
- Email alias name.
- Emailalias
Id string - The ID of this resource.
- Goto string
- Email alias goto. Comma separated list of email destinations.
- Emailalias string
- Email alias name.
- Emailalias
Id string - The ID of this resource.
- Goto string
- Email alias goto. Comma separated list of email destinations.
- emailalias String
- Email alias name.
- emailalias
Id String - The ID of this resource.
- goto_ String
- Email alias goto. Comma separated list of email destinations.
- emailalias string
- Email alias name.
- emailalias
Id string - The ID of this resource.
- goto string
- Email alias goto. Comma separated list of email destinations.
- emailalias str
- Email alias name.
- emailalias_
id str - The ID of this resource.
- goto str
- Email alias goto. Comma separated list of email destinations.
- emailalias String
- Email alias name.
- emailalias
Id String - The ID of this resource.
- goto String
- Email alias goto. Comma separated list of email destinations.
Import
Email alias import.
$ pulumi import glesys:index/emailalias:Emailalias info info@example.com
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- glesys glesys/terraform-provider-glesys
- License
- Notes
- This Pulumi package is based on the
glesys
Terraform Provider.