1. Packages
  2. dbt Cloud
  3. API Docs
  4. LicenseMap
dbt Cloud v0.1.10 published on Thursday, Jul 18, 2024 by Pulumi

dbtcloud.LicenseMap

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.10 published on Thursday, Jul 18, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dbtcloud from "@pulumi/dbtcloud";
    
    // Developer license group mapping
    const devLicenseMap = new dbtcloud.LicenseMap("dev_license_map", {
        licenseType: "developer",
        ssoLicenseMappingGroups: ["DEV-SSO-GROUP"],
    });
    // Read-only license mapping
    const readOnlyLicenseMap = new dbtcloud.LicenseMap("read_only_license_map", {
        licenseType: "read_only",
        ssoLicenseMappingGroups: ["READ-ONLY-SSO-GROUP"],
    });
    // IT license mapping
    const itLicenseMap = new dbtcloud.LicenseMap("it_license_map", {
        licenseType: "it",
        ssoLicenseMappingGroups: ["IT-SSO-GROUP"],
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    # Developer license group mapping
    dev_license_map = dbtcloud.LicenseMap("dev_license_map",
        license_type="developer",
        sso_license_mapping_groups=["DEV-SSO-GROUP"])
    # Read-only license mapping
    read_only_license_map = dbtcloud.LicenseMap("read_only_license_map",
        license_type="read_only",
        sso_license_mapping_groups=["READ-ONLY-SSO-GROUP"])
    # IT license mapping
    it_license_map = dbtcloud.LicenseMap("it_license_map",
        license_type="it",
        sso_license_mapping_groups=["IT-SSO-GROUP"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Developer license group mapping
    		_, err := dbtcloud.NewLicenseMap(ctx, "dev_license_map", &dbtcloud.LicenseMapArgs{
    			LicenseType: pulumi.String("developer"),
    			SsoLicenseMappingGroups: pulumi.StringArray{
    				pulumi.String("DEV-SSO-GROUP"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Read-only license mapping
    		_, err = dbtcloud.NewLicenseMap(ctx, "read_only_license_map", &dbtcloud.LicenseMapArgs{
    			LicenseType: pulumi.String("read_only"),
    			SsoLicenseMappingGroups: pulumi.StringArray{
    				pulumi.String("READ-ONLY-SSO-GROUP"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// IT license mapping
    		_, err = dbtcloud.NewLicenseMap(ctx, "it_license_map", &dbtcloud.LicenseMapArgs{
    			LicenseType: pulumi.String("it"),
    			SsoLicenseMappingGroups: pulumi.StringArray{
    				pulumi.String("IT-SSO-GROUP"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DbtCloud = Pulumi.DbtCloud;
    
    return await Deployment.RunAsync(() => 
    {
        // Developer license group mapping
        var devLicenseMap = new DbtCloud.LicenseMap("dev_license_map", new()
        {
            LicenseType = "developer",
            SsoLicenseMappingGroups = new[]
            {
                "DEV-SSO-GROUP",
            },
        });
    
        // Read-only license mapping
        var readOnlyLicenseMap = new DbtCloud.LicenseMap("read_only_license_map", new()
        {
            LicenseType = "read_only",
            SsoLicenseMappingGroups = new[]
            {
                "READ-ONLY-SSO-GROUP",
            },
        });
    
        // IT license mapping
        var itLicenseMap = new DbtCloud.LicenseMap("it_license_map", new()
        {
            LicenseType = "it",
            SsoLicenseMappingGroups = new[]
            {
                "IT-SSO-GROUP",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dbtcloud.LicenseMap;
    import com.pulumi.dbtcloud.LicenseMapArgs;
    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) {
            // Developer license group mapping
            var devLicenseMap = new LicenseMap("devLicenseMap", LicenseMapArgs.builder()
                .licenseType("developer")
                .ssoLicenseMappingGroups("DEV-SSO-GROUP")
                .build());
    
            // Read-only license mapping
            var readOnlyLicenseMap = new LicenseMap("readOnlyLicenseMap", LicenseMapArgs.builder()
                .licenseType("read_only")
                .ssoLicenseMappingGroups("READ-ONLY-SSO-GROUP")
                .build());
    
            // IT license mapping
            var itLicenseMap = new LicenseMap("itLicenseMap", LicenseMapArgs.builder()
                .licenseType("it")
                .ssoLicenseMappingGroups("IT-SSO-GROUP")
                .build());
    
        }
    }
    
    resources:
      # Developer license group mapping
      devLicenseMap:
        type: dbtcloud:LicenseMap
        name: dev_license_map
        properties:
          licenseType: developer
          ssoLicenseMappingGroups:
            - DEV-SSO-GROUP
      # Read-only license mapping
      readOnlyLicenseMap:
        type: dbtcloud:LicenseMap
        name: read_only_license_map
        properties:
          licenseType: read_only
          ssoLicenseMappingGroups:
            - READ-ONLY-SSO-GROUP
      # IT license mapping
      itLicenseMap:
        type: dbtcloud:LicenseMap
        name: it_license_map
        properties:
          licenseType: it
          ssoLicenseMappingGroups:
            - IT-SSO-GROUP
    

    Create LicenseMap Resource

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

    Constructor syntax

    new LicenseMap(name: string, args: LicenseMapArgs, opts?: CustomResourceOptions);
    @overload
    def LicenseMap(resource_name: str,
                   args: LicenseMapArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LicenseMap(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   license_type: Optional[str] = None,
                   sso_license_mapping_groups: Optional[Sequence[str]] = None)
    func NewLicenseMap(ctx *Context, name string, args LicenseMapArgs, opts ...ResourceOption) (*LicenseMap, error)
    public LicenseMap(string name, LicenseMapArgs args, CustomResourceOptions? opts = null)
    public LicenseMap(String name, LicenseMapArgs args)
    public LicenseMap(String name, LicenseMapArgs args, CustomResourceOptions options)
    
    type: dbtcloud:LicenseMap
    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 LicenseMapArgs
    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 LicenseMapArgs
    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 LicenseMapArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LicenseMapArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LicenseMapArgs
    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 licenseMapResource = new DbtCloud.LicenseMap("licenseMapResource", new()
    {
        LicenseType = "string",
        SsoLicenseMappingGroups = new[]
        {
            "string",
        },
    });
    
    example, err := dbtcloud.NewLicenseMap(ctx, "licenseMapResource", &dbtcloud.LicenseMapArgs{
    	LicenseType: pulumi.String("string"),
    	SsoLicenseMappingGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var licenseMapResource = new LicenseMap("licenseMapResource", LicenseMapArgs.builder()
        .licenseType("string")
        .ssoLicenseMappingGroups("string")
        .build());
    
    license_map_resource = dbtcloud.LicenseMap("licenseMapResource",
        license_type="string",
        sso_license_mapping_groups=["string"])
    
    const licenseMapResource = new dbtcloud.LicenseMap("licenseMapResource", {
        licenseType: "string",
        ssoLicenseMappingGroups: ["string"],
    });
    
    type: dbtcloud:LicenseMap
    properties:
        licenseType: string
        ssoLicenseMappingGroups:
            - string
    

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

    LicenseType string
    License type
    SsoLicenseMappingGroups List<string>
    SSO license mapping group names for this group
    LicenseType string
    License type
    SsoLicenseMappingGroups []string
    SSO license mapping group names for this group
    licenseType String
    License type
    ssoLicenseMappingGroups List<String>
    SSO license mapping group names for this group
    licenseType string
    License type
    ssoLicenseMappingGroups string[]
    SSO license mapping group names for this group
    license_type str
    License type
    sso_license_mapping_groups Sequence[str]
    SSO license mapping group names for this group
    licenseType String
    License type
    ssoLicenseMappingGroups List<String>
    SSO license mapping group names for this group

    Outputs

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

    Get an existing LicenseMap 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?: LicenseMapState, opts?: CustomResourceOptions): LicenseMap
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            license_type: Optional[str] = None,
            sso_license_mapping_groups: Optional[Sequence[str]] = None) -> LicenseMap
    func GetLicenseMap(ctx *Context, name string, id IDInput, state *LicenseMapState, opts ...ResourceOption) (*LicenseMap, error)
    public static LicenseMap Get(string name, Input<string> id, LicenseMapState? state, CustomResourceOptions? opts = null)
    public static LicenseMap get(String name, Output<String> id, LicenseMapState 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:
    LicenseType string
    License type
    SsoLicenseMappingGroups List<string>
    SSO license mapping group names for this group
    LicenseType string
    License type
    SsoLicenseMappingGroups []string
    SSO license mapping group names for this group
    licenseType String
    License type
    ssoLicenseMappingGroups List<String>
    SSO license mapping group names for this group
    licenseType string
    License type
    ssoLicenseMappingGroups string[]
    SSO license mapping group names for this group
    license_type str
    License type
    sso_license_mapping_groups Sequence[str]
    SSO license mapping group names for this group
    licenseType String
    License type
    ssoLicenseMappingGroups List<String>
    SSO license mapping group names for this group

    Import

    using import blocks (requires Terraform >= 1.5)

    import {

    to = dbtcloud_license_map.my_license_map

    id = “license_map_id”

    }

    import {

    to = dbtcloud_license_map.my_license_map

    id = “12345”

    }

    using the older import command

    $ pulumi import dbtcloud:index/licenseMap:LicenseMap my_license_map "license_map_id"
    
    $ pulumi import dbtcloud:index/licenseMap:LicenseMap my_license_map 12345
    

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

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v0.1.10 published on Thursday, Jul 18, 2024 by Pulumi