1. Packages
  2. Tailscale Provider
  3. API Docs
  4. Contacts
Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi

tailscale.Contacts

Explore with Pulumi AI

tailscale logo
Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tailscale from "@pulumi/tailscale";
    
    const sampleContacts = new tailscale.Contacts("sample_contacts", {
        account: {
            email: "account@example.com",
        },
        support: {
            email: "support@example.com",
        },
        security: {
            email: "security@example.com",
        },
    });
    
    import pulumi
    import pulumi_tailscale as tailscale
    
    sample_contacts = tailscale.Contacts("sample_contacts",
        account={
            "email": "account@example.com",
        },
        support={
            "email": "support@example.com",
        },
        security={
            "email": "security@example.com",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tailscale.NewContacts(ctx, "sample_contacts", &tailscale.ContactsArgs{
    			Account: &tailscale.ContactsAccountArgs{
    				Email: pulumi.String("account@example.com"),
    			},
    			Support: &tailscale.ContactsSupportArgs{
    				Email: pulumi.String("support@example.com"),
    			},
    			Security: &tailscale.ContactsSecurityArgs{
    				Email: pulumi.String("security@example.com"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tailscale = Pulumi.Tailscale;
    
    return await Deployment.RunAsync(() => 
    {
        var sampleContacts = new Tailscale.Contacts("sample_contacts", new()
        {
            Account = new Tailscale.Inputs.ContactsAccountArgs
            {
                Email = "account@example.com",
            },
            Support = new Tailscale.Inputs.ContactsSupportArgs
            {
                Email = "support@example.com",
            },
            Security = new Tailscale.Inputs.ContactsSecurityArgs
            {
                Email = "security@example.com",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tailscale.Contacts;
    import com.pulumi.tailscale.ContactsArgs;
    import com.pulumi.tailscale.inputs.ContactsAccountArgs;
    import com.pulumi.tailscale.inputs.ContactsSupportArgs;
    import com.pulumi.tailscale.inputs.ContactsSecurityArgs;
    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 sampleContacts = new Contacts("sampleContacts", ContactsArgs.builder()
                .account(ContactsAccountArgs.builder()
                    .email("account@example.com")
                    .build())
                .support(ContactsSupportArgs.builder()
                    .email("support@example.com")
                    .build())
                .security(ContactsSecurityArgs.builder()
                    .email("security@example.com")
                    .build())
                .build());
    
        }
    }
    
    resources:
      sampleContacts:
        type: tailscale:Contacts
        name: sample_contacts
        properties:
          account:
            email: account@example.com
          support:
            email: support@example.com
          security:
            email: security@example.com
    

    Create Contacts Resource

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

    Constructor syntax

    new Contacts(name: string, args: ContactsArgs, opts?: CustomResourceOptions);
    @overload
    def Contacts(resource_name: str,
                 args: ContactsArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Contacts(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account: Optional[ContactsAccountArgs] = None,
                 security: Optional[ContactsSecurityArgs] = None,
                 support: Optional[ContactsSupportArgs] = None)
    func NewContacts(ctx *Context, name string, args ContactsArgs, opts ...ResourceOption) (*Contacts, error)
    public Contacts(string name, ContactsArgs args, CustomResourceOptions? opts = null)
    public Contacts(String name, ContactsArgs args)
    public Contacts(String name, ContactsArgs args, CustomResourceOptions options)
    
    type: tailscale:Contacts
    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 ContactsArgs
    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 ContactsArgs
    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 ContactsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContactsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContactsArgs
    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 contactsResource = new Tailscale.Contacts("contactsResource", new()
    {
        Account = new Tailscale.Inputs.ContactsAccountArgs
        {
            Email = "string",
        },
        Security = new Tailscale.Inputs.ContactsSecurityArgs
        {
            Email = "string",
        },
        Support = new Tailscale.Inputs.ContactsSupportArgs
        {
            Email = "string",
        },
    });
    
    example, err := tailscale.NewContacts(ctx, "contactsResource", &tailscale.ContactsArgs{
    	Account: &tailscale.ContactsAccountArgs{
    		Email: pulumi.String("string"),
    	},
    	Security: &tailscale.ContactsSecurityArgs{
    		Email: pulumi.String("string"),
    	},
    	Support: &tailscale.ContactsSupportArgs{
    		Email: pulumi.String("string"),
    	},
    })
    
    var contactsResource = new Contacts("contactsResource", ContactsArgs.builder()
        .account(ContactsAccountArgs.builder()
            .email("string")
            .build())
        .security(ContactsSecurityArgs.builder()
            .email("string")
            .build())
        .support(ContactsSupportArgs.builder()
            .email("string")
            .build())
        .build());
    
    contacts_resource = tailscale.Contacts("contactsResource",
        account={
            "email": "string",
        },
        security={
            "email": "string",
        },
        support={
            "email": "string",
        })
    
    const contactsResource = new tailscale.Contacts("contactsResource", {
        account: {
            email: "string",
        },
        security: {
            email: "string",
        },
        support: {
            email: "string",
        },
    });
    
    type: tailscale:Contacts
    properties:
        account:
            email: string
        security:
            email: string
        support:
            email: string
    

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

    Account ContactsAccount
    Configuration for communications about important changes to your tailnet
    Security ContactsSecurity
    Configuration for communications about security issues affecting your tailnet
    Support ContactsSupport
    Configuration for communications about misconfigurations in your tailnet
    Account ContactsAccountArgs
    Configuration for communications about important changes to your tailnet
    Security ContactsSecurityArgs
    Configuration for communications about security issues affecting your tailnet
    Support ContactsSupportArgs
    Configuration for communications about misconfigurations in your tailnet
    account ContactsAccount
    Configuration for communications about important changes to your tailnet
    security ContactsSecurity
    Configuration for communications about security issues affecting your tailnet
    support ContactsSupport
    Configuration for communications about misconfigurations in your tailnet
    account ContactsAccount
    Configuration for communications about important changes to your tailnet
    security ContactsSecurity
    Configuration for communications about security issues affecting your tailnet
    support ContactsSupport
    Configuration for communications about misconfigurations in your tailnet
    account ContactsAccountArgs
    Configuration for communications about important changes to your tailnet
    security ContactsSecurityArgs
    Configuration for communications about security issues affecting your tailnet
    support ContactsSupportArgs
    Configuration for communications about misconfigurations in your tailnet
    account Property Map
    Configuration for communications about important changes to your tailnet
    security Property Map
    Configuration for communications about security issues affecting your tailnet
    support Property Map
    Configuration for communications about misconfigurations in your tailnet

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Contacts 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 Contacts Resource

    Get an existing Contacts 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?: ContactsState, opts?: CustomResourceOptions): Contacts
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account: Optional[ContactsAccountArgs] = None,
            security: Optional[ContactsSecurityArgs] = None,
            support: Optional[ContactsSupportArgs] = None) -> Contacts
    func GetContacts(ctx *Context, name string, id IDInput, state *ContactsState, opts ...ResourceOption) (*Contacts, error)
    public static Contacts Get(string name, Input<string> id, ContactsState? state, CustomResourceOptions? opts = null)
    public static Contacts get(String name, Output<String> id, ContactsState 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.
    The following state arguments are supported:
    Account ContactsAccount
    Configuration for communications about important changes to your tailnet
    Security ContactsSecurity
    Configuration for communications about security issues affecting your tailnet
    Support ContactsSupport
    Configuration for communications about misconfigurations in your tailnet
    Account ContactsAccountArgs
    Configuration for communications about important changes to your tailnet
    Security ContactsSecurityArgs
    Configuration for communications about security issues affecting your tailnet
    Support ContactsSupportArgs
    Configuration for communications about misconfigurations in your tailnet
    account ContactsAccount
    Configuration for communications about important changes to your tailnet
    security ContactsSecurity
    Configuration for communications about security issues affecting your tailnet
    support ContactsSupport
    Configuration for communications about misconfigurations in your tailnet
    account ContactsAccount
    Configuration for communications about important changes to your tailnet
    security ContactsSecurity
    Configuration for communications about security issues affecting your tailnet
    support ContactsSupport
    Configuration for communications about misconfigurations in your tailnet
    account ContactsAccountArgs
    Configuration for communications about important changes to your tailnet
    security ContactsSecurityArgs
    Configuration for communications about security issues affecting your tailnet
    support ContactsSupportArgs
    Configuration for communications about misconfigurations in your tailnet
    account Property Map
    Configuration for communications about important changes to your tailnet
    security Property Map
    Configuration for communications about security issues affecting your tailnet
    support Property Map
    Configuration for communications about misconfigurations in your tailnet

    Supporting Types

    ContactsAccount, ContactsAccountArgs

    Email string
    Email address to send communications to
    Email string
    Email address to send communications to
    email String
    Email address to send communications to
    email string
    Email address to send communications to
    email str
    Email address to send communications to
    email String
    Email address to send communications to

    ContactsSecurity, ContactsSecurityArgs

    Email string
    Email address to send communications to
    Email string
    Email address to send communications to
    email String
    Email address to send communications to
    email string
    Email address to send communications to
    email str
    Email address to send communications to
    email String
    Email address to send communications to

    ContactsSupport, ContactsSupportArgs

    Email string
    Email address to send communications to
    Email string
    Email address to send communications to
    email String
    Email address to send communications to
    email string
    Email address to send communications to
    email str
    Email address to send communications to
    email String
    Email address to send communications to

    Import

    ID doesn’t matter.

    $ pulumi import tailscale:index/contacts:Contacts sample_contacts contacts
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tailscale pulumi/pulumi-tailscale
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the tailscale Terraform Provider.
    tailscale logo
    Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi