1. Packages
  2. Dbtcloud Provider
  3. API Docs
  4. PartialLicenseMap
dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi

dbtcloud.PartialLicenseMap

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.25 published on Friday, Nov 8, 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.PartialLicenseMap("dev_license_map", {
        licenseType: "developer",
        ssoLicenseMappingGroups: ["DEV-SSO-GROUP"],
    });
    // Read-only license mapping
    const readOnlyLicenseMap = new dbtcloud.PartialLicenseMap("read_only_license_map", {
        licenseType: "read_only",
        ssoLicenseMappingGroups: ["READ-ONLY-SSO-GROUP"],
    });
    // IT license mapping
    const itLicenseMap = new dbtcloud.PartialLicenseMap("it_license_map", {
        licenseType: "it",
        ssoLicenseMappingGroups: ["IT-SSO-GROUP"],
    });
    
    import pulumi
    import pulumi_dbtcloud as dbtcloud
    
    # Developer license group mapping
    dev_license_map = dbtcloud.PartialLicenseMap("dev_license_map",
        license_type="developer",
        sso_license_mapping_groups=["DEV-SSO-GROUP"])
    # Read-only license mapping
    read_only_license_map = dbtcloud.PartialLicenseMap("read_only_license_map",
        license_type="read_only",
        sso_license_mapping_groups=["READ-ONLY-SSO-GROUP"])
    # IT license mapping
    it_license_map = dbtcloud.PartialLicenseMap("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.NewPartialLicenseMap(ctx, "dev_license_map", &dbtcloud.PartialLicenseMapArgs{
    			LicenseType: pulumi.String("developer"),
    			SsoLicenseMappingGroups: pulumi.StringArray{
    				pulumi.String("DEV-SSO-GROUP"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// Read-only license mapping
    		_, err = dbtcloud.NewPartialLicenseMap(ctx, "read_only_license_map", &dbtcloud.PartialLicenseMapArgs{
    			LicenseType: pulumi.String("read_only"),
    			SsoLicenseMappingGroups: pulumi.StringArray{
    				pulumi.String("READ-ONLY-SSO-GROUP"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// IT license mapping
    		_, err = dbtcloud.NewPartialLicenseMap(ctx, "it_license_map", &dbtcloud.PartialLicenseMapArgs{
    			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.PartialLicenseMap("dev_license_map", new()
        {
            LicenseType = "developer",
            SsoLicenseMappingGroups = new[]
            {
                "DEV-SSO-GROUP",
            },
        });
    
        // Read-only license mapping
        var readOnlyLicenseMap = new DbtCloud.PartialLicenseMap("read_only_license_map", new()
        {
            LicenseType = "read_only",
            SsoLicenseMappingGroups = new[]
            {
                "READ-ONLY-SSO-GROUP",
            },
        });
    
        // IT license mapping
        var itLicenseMap = new DbtCloud.PartialLicenseMap("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.PartialLicenseMap;
    import com.pulumi.dbtcloud.PartialLicenseMapArgs;
    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 PartialLicenseMap("devLicenseMap", PartialLicenseMapArgs.builder()
                .licenseType("developer")
                .ssoLicenseMappingGroups("DEV-SSO-GROUP")
                .build());
    
            // Read-only license mapping
            var readOnlyLicenseMap = new PartialLicenseMap("readOnlyLicenseMap", PartialLicenseMapArgs.builder()
                .licenseType("read_only")
                .ssoLicenseMappingGroups("READ-ONLY-SSO-GROUP")
                .build());
    
            // IT license mapping
            var itLicenseMap = new PartialLicenseMap("itLicenseMap", PartialLicenseMapArgs.builder()
                .licenseType("it")
                .ssoLicenseMappingGroups("IT-SSO-GROUP")
                .build());
    
        }
    }
    
    resources:
      # Developer license group mapping
      devLicenseMap:
        type: dbtcloud:PartialLicenseMap
        name: dev_license_map
        properties:
          licenseType: developer
          ssoLicenseMappingGroups:
            - DEV-SSO-GROUP
      # Read-only license mapping
      readOnlyLicenseMap:
        type: dbtcloud:PartialLicenseMap
        name: read_only_license_map
        properties:
          licenseType: read_only
          ssoLicenseMappingGroups:
            - READ-ONLY-SSO-GROUP
      # IT license mapping
      itLicenseMap:
        type: dbtcloud:PartialLicenseMap
        name: it_license_map
        properties:
          licenseType: it
          ssoLicenseMappingGroups:
            - IT-SSO-GROUP
    

    Create PartialLicenseMap Resource

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

    Constructor syntax

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

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

    LicenseType string
    The license type to update
    SsoLicenseMappingGroups List<string>
    List of SSO groups to map to the license type.
    LicenseType string
    The license type to update
    SsoLicenseMappingGroups []string
    List of SSO groups to map to the license type.
    licenseType String
    The license type to update
    ssoLicenseMappingGroups List<String>
    List of SSO groups to map to the license type.
    licenseType string
    The license type to update
    ssoLicenseMappingGroups string[]
    List of SSO groups to map to the license type.
    license_type str
    The license type to update
    sso_license_mapping_groups Sequence[str]
    List of SSO groups to map to the license type.
    licenseType String
    The license type to update
    ssoLicenseMappingGroups List<String>
    List of SSO groups to map to the license type.

    Outputs

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

    Get an existing PartialLicenseMap 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?: PartialLicenseMapState, opts?: CustomResourceOptions): PartialLicenseMap
    @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) -> PartialLicenseMap
    func GetPartialLicenseMap(ctx *Context, name string, id IDInput, state *PartialLicenseMapState, opts ...ResourceOption) (*PartialLicenseMap, error)
    public static PartialLicenseMap Get(string name, Input<string> id, PartialLicenseMapState? state, CustomResourceOptions? opts = null)
    public static PartialLicenseMap get(String name, Output<String> id, PartialLicenseMapState 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
    The license type to update
    SsoLicenseMappingGroups List<string>
    List of SSO groups to map to the license type.
    LicenseType string
    The license type to update
    SsoLicenseMappingGroups []string
    List of SSO groups to map to the license type.
    licenseType String
    The license type to update
    ssoLicenseMappingGroups List<String>
    List of SSO groups to map to the license type.
    licenseType string
    The license type to update
    ssoLicenseMappingGroups string[]
    List of SSO groups to map to the license type.
    license_type str
    The license type to update
    sso_license_mapping_groups Sequence[str]
    List of SSO groups to map to the license type.
    licenseType String
    The license type to update
    ssoLicenseMappingGroups List<String>
    List of SSO groups to map to the license type.

    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.25 published on Friday, Nov 8, 2024 by Pulumi