1. Packages
  2. Constellix Provider
  3. API Docs
  4. getContactLists
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.getContactLists

Explore with Pulumi AI

constellix logo
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

    Data source for Contact List

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as constellix from "@pulumi/constellix";
    
    const contactlist = constellix.getContactLists({
        name: "contactlist1",
    });
    
    import pulumi
    import pulumi_constellix as constellix
    
    contactlist = constellix.get_contact_lists(name="contactlist1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/constellix/constellix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := constellix.LookupContactLists(ctx, &constellix.LookupContactListsArgs{
    			Name: "contactlist1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Constellix = Pulumi.Constellix;
    
    return await Deployment.RunAsync(() => 
    {
        var contactlist = Constellix.GetContactLists.Invoke(new()
        {
            Name = "contactlist1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.constellix.ConstellixFunctions;
    import com.pulumi.constellix.inputs.GetContactListsArgs;
    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) {
            final var contactlist = ConstellixFunctions.getContactLists(GetContactListsArgs.builder()
                .name("contactlist1")
                .build());
    
        }
    }
    
    variables:
      contactlist:
        fn::invoke:
          function: constellix:getContactLists
          arguments:
            name: contactlist1
    

    Argument Reference

    • name - (Required) Name of record. Name should be unique.

    Attribute Reference

    • name - (Required) Name of record. Name should be unique.
    • email_addresses - (Optional) List of email addresses

    Using getContactLists

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getContactLists(args: GetContactListsArgs, opts?: InvokeOptions): Promise<GetContactListsResult>
    function getContactListsOutput(args: GetContactListsOutputArgs, opts?: InvokeOptions): Output<GetContactListsResult>
    def get_contact_lists(email_addresses: Optional[Sequence[str]] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetContactListsResult
    def get_contact_lists_output(email_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetContactListsResult]
    func LookupContactLists(ctx *Context, args *LookupContactListsArgs, opts ...InvokeOption) (*LookupContactListsResult, error)
    func LookupContactListsOutput(ctx *Context, args *LookupContactListsOutputArgs, opts ...InvokeOption) LookupContactListsResultOutput

    > Note: This function is named LookupContactLists in the Go SDK.

    public static class GetContactLists 
    {
        public static Task<GetContactListsResult> InvokeAsync(GetContactListsArgs args, InvokeOptions? opts = null)
        public static Output<GetContactListsResult> Invoke(GetContactListsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContactListsResult> getContactLists(GetContactListsArgs args, InvokeOptions options)
    public static Output<GetContactListsResult> getContactLists(GetContactListsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: constellix:index/getContactLists:getContactLists
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    EmailAddresses List<string>
    Id string
    Name string
    EmailAddresses []string
    Id string
    name String
    emailAddresses List<String>
    id String
    name string
    emailAddresses string[]
    id string
    name str
    email_addresses Sequence[str]
    id str
    name String
    emailAddresses List<String>
    id String

    getContactLists Result

    The following output properties are available:

    EmailAddresses List<string>
    Id string
    Name string
    EmailAddresses []string
    Id string
    Name string
    emailAddresses List<String>
    id String
    name String
    emailAddresses string[]
    id string
    name string
    email_addresses Sequence[str]
    id str
    name str
    emailAddresses List<String>
    id String
    name String

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    constellix logo
    constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix