1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. discoveryengine
  5. LicenseConfig
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

gcp.discoveryengine.LicenseConfig

Start a Neo task
Explain and create a gcp.discoveryengine.LicenseConfig resource
gcp logo
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

    License Configuration.

    To get more information about LicenseConfig, see:

    Example Usage

    Discoveryengine Licenseconfig Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const basic = new gcp.discoveryengine.LicenseConfig("basic", {
        location: "global",
        licenseConfigId: "license-config-id",
        licenseCount: 50,
        subscriptionTier: "SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT",
        startDate: {
            year: 2099,
            month: 1,
            day: 1,
        },
        endDate: {
            year: 2100,
            month: 1,
            day: 1,
        },
        subscriptionTerm: "SUBSCRIPTION_TERM_ONE_YEAR",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    basic = gcp.discoveryengine.LicenseConfig("basic",
        location="global",
        license_config_id="license-config-id",
        license_count=50,
        subscription_tier="SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT",
        start_date={
            "year": 2099,
            "month": 1,
            "day": 1,
        },
        end_date={
            "year": 2100,
            "month": 1,
            "day": 1,
        },
        subscription_term="SUBSCRIPTION_TERM_ONE_YEAR")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/discoveryengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := discoveryengine.NewLicenseConfig(ctx, "basic", &discoveryengine.LicenseConfigArgs{
    			Location:         pulumi.String("global"),
    			LicenseConfigId:  pulumi.String("license-config-id"),
    			LicenseCount:     pulumi.Int(50),
    			SubscriptionTier: pulumi.String("SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT"),
    			StartDate: &discoveryengine.LicenseConfigStartDateArgs{
    				Year:  pulumi.Int(2099),
    				Month: pulumi.Int(1),
    				Day:   pulumi.Int(1),
    			},
    			EndDate: &discoveryengine.LicenseConfigEndDateArgs{
    				Year:  pulumi.Int(2100),
    				Month: pulumi.Int(1),
    				Day:   pulumi.Int(1),
    			},
    			SubscriptionTerm: pulumi.String("SUBSCRIPTION_TERM_ONE_YEAR"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var basic = new Gcp.DiscoveryEngine.LicenseConfig("basic", new()
        {
            Location = "global",
            LicenseConfigId = "license-config-id",
            LicenseCount = 50,
            SubscriptionTier = "SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT",
            StartDate = new Gcp.DiscoveryEngine.Inputs.LicenseConfigStartDateArgs
            {
                Year = 2099,
                Month = 1,
                Day = 1,
            },
            EndDate = new Gcp.DiscoveryEngine.Inputs.LicenseConfigEndDateArgs
            {
                Year = 2100,
                Month = 1,
                Day = 1,
            },
            SubscriptionTerm = "SUBSCRIPTION_TERM_ONE_YEAR",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.discoveryengine.LicenseConfig;
    import com.pulumi.gcp.discoveryengine.LicenseConfigArgs;
    import com.pulumi.gcp.discoveryengine.inputs.LicenseConfigStartDateArgs;
    import com.pulumi.gcp.discoveryengine.inputs.LicenseConfigEndDateArgs;
    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 basic = new LicenseConfig("basic", LicenseConfigArgs.builder()
                .location("global")
                .licenseConfigId("license-config-id")
                .licenseCount(50)
                .subscriptionTier("SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT")
                .startDate(LicenseConfigStartDateArgs.builder()
                    .year(2099)
                    .month(1)
                    .day(1)
                    .build())
                .endDate(LicenseConfigEndDateArgs.builder()
                    .year(2100)
                    .month(1)
                    .day(1)
                    .build())
                .subscriptionTerm("SUBSCRIPTION_TERM_ONE_YEAR")
                .build());
    
        }
    }
    
    resources:
      basic:
        type: gcp:discoveryengine:LicenseConfig
        properties:
          location: global
          licenseConfigId: license-config-id
          licenseCount: 50
          subscriptionTier: SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT
          startDate:
            year: 2099
            month: 1
            day: 1
          endDate:
            year: 2100
            month: 1
            day: 1
          subscriptionTerm: SUBSCRIPTION_TERM_ONE_YEAR
    

    Create LicenseConfig Resource

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

    Constructor syntax

    new LicenseConfig(name: string, args: LicenseConfigArgs, opts?: CustomResourceOptions);
    @overload
    def LicenseConfig(resource_name: str,
                      args: LicenseConfigArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def LicenseConfig(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      license_config_id: Optional[str] = None,
                      license_count: Optional[int] = None,
                      location: Optional[str] = None,
                      start_date: Optional[LicenseConfigStartDateArgs] = None,
                      subscription_term: Optional[str] = None,
                      subscription_tier: Optional[str] = None,
                      auto_renew: Optional[bool] = None,
                      end_date: Optional[LicenseConfigEndDateArgs] = None,
                      free_trial: Optional[bool] = None,
                      project: Optional[str] = None)
    func NewLicenseConfig(ctx *Context, name string, args LicenseConfigArgs, opts ...ResourceOption) (*LicenseConfig, error)
    public LicenseConfig(string name, LicenseConfigArgs args, CustomResourceOptions? opts = null)
    public LicenseConfig(String name, LicenseConfigArgs args)
    public LicenseConfig(String name, LicenseConfigArgs args, CustomResourceOptions options)
    
    type: gcp:discoveryengine:LicenseConfig
    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 LicenseConfigArgs
    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 LicenseConfigArgs
    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 LicenseConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LicenseConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LicenseConfigArgs
    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 licenseConfigResource = new Gcp.DiscoveryEngine.LicenseConfig("licenseConfigResource", new()
    {
        LicenseConfigId = "string",
        LicenseCount = 0,
        Location = "string",
        StartDate = new Gcp.DiscoveryEngine.Inputs.LicenseConfigStartDateArgs
        {
            Day = 0,
            Month = 0,
            Year = 0,
        },
        SubscriptionTerm = "string",
        SubscriptionTier = "string",
        AutoRenew = false,
        EndDate = new Gcp.DiscoveryEngine.Inputs.LicenseConfigEndDateArgs
        {
            Day = 0,
            Month = 0,
            Year = 0,
        },
        FreeTrial = false,
        Project = "string",
    });
    
    example, err := discoveryengine.NewLicenseConfig(ctx, "licenseConfigResource", &discoveryengine.LicenseConfigArgs{
    	LicenseConfigId: pulumi.String("string"),
    	LicenseCount:    pulumi.Int(0),
    	Location:        pulumi.String("string"),
    	StartDate: &discoveryengine.LicenseConfigStartDateArgs{
    		Day:   pulumi.Int(0),
    		Month: pulumi.Int(0),
    		Year:  pulumi.Int(0),
    	},
    	SubscriptionTerm: pulumi.String("string"),
    	SubscriptionTier: pulumi.String("string"),
    	AutoRenew:        pulumi.Bool(false),
    	EndDate: &discoveryengine.LicenseConfigEndDateArgs{
    		Day:   pulumi.Int(0),
    		Month: pulumi.Int(0),
    		Year:  pulumi.Int(0),
    	},
    	FreeTrial: pulumi.Bool(false),
    	Project:   pulumi.String("string"),
    })
    
    var licenseConfigResource = new LicenseConfig("licenseConfigResource", LicenseConfigArgs.builder()
        .licenseConfigId("string")
        .licenseCount(0)
        .location("string")
        .startDate(LicenseConfigStartDateArgs.builder()
            .day(0)
            .month(0)
            .year(0)
            .build())
        .subscriptionTerm("string")
        .subscriptionTier("string")
        .autoRenew(false)
        .endDate(LicenseConfigEndDateArgs.builder()
            .day(0)
            .month(0)
            .year(0)
            .build())
        .freeTrial(false)
        .project("string")
        .build());
    
    license_config_resource = gcp.discoveryengine.LicenseConfig("licenseConfigResource",
        license_config_id="string",
        license_count=0,
        location="string",
        start_date={
            "day": 0,
            "month": 0,
            "year": 0,
        },
        subscription_term="string",
        subscription_tier="string",
        auto_renew=False,
        end_date={
            "day": 0,
            "month": 0,
            "year": 0,
        },
        free_trial=False,
        project="string")
    
    const licenseConfigResource = new gcp.discoveryengine.LicenseConfig("licenseConfigResource", {
        licenseConfigId: "string",
        licenseCount: 0,
        location: "string",
        startDate: {
            day: 0,
            month: 0,
            year: 0,
        },
        subscriptionTerm: "string",
        subscriptionTier: "string",
        autoRenew: false,
        endDate: {
            day: 0,
            month: 0,
            year: 0,
        },
        freeTrial: false,
        project: "string",
    });
    
    type: gcp:discoveryengine:LicenseConfig
    properties:
        autoRenew: false
        endDate:
            day: 0
            month: 0
            year: 0
        freeTrial: false
        licenseConfigId: string
        licenseCount: 0
        location: string
        project: string
        startDate:
            day: 0
            month: 0
            year: 0
        subscriptionTerm: string
        subscriptionTier: string
    

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

    LicenseConfigId string
    The unique id of the license config.
    LicenseCount int
    Number of licenses purchased.
    Location string
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    StartDate LicenseConfigStartDate
    The start date. Structure is documented below.
    SubscriptionTerm string
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    SubscriptionTier string
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    AutoRenew bool
    Whether the license config should be auto renewed when it reaches the end date.
    EndDate LicenseConfigEndDate
    The planned end date. Structure is documented below.
    FreeTrial bool
    Whether the license config is for free trial.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    LicenseConfigId string
    The unique id of the license config.
    LicenseCount int
    Number of licenses purchased.
    Location string
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    StartDate LicenseConfigStartDateArgs
    The start date. Structure is documented below.
    SubscriptionTerm string
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    SubscriptionTier string
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    AutoRenew bool
    Whether the license config should be auto renewed when it reaches the end date.
    EndDate LicenseConfigEndDateArgs
    The planned end date. Structure is documented below.
    FreeTrial bool
    Whether the license config is for free trial.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    licenseConfigId String
    The unique id of the license config.
    licenseCount Integer
    Number of licenses purchased.
    location String
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    startDate LicenseConfigStartDate
    The start date. Structure is documented below.
    subscriptionTerm String
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscriptionTier String
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    autoRenew Boolean
    Whether the license config should be auto renewed when it reaches the end date.
    endDate LicenseConfigEndDate
    The planned end date. Structure is documented below.
    freeTrial Boolean
    Whether the license config is for free trial.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    licenseConfigId string
    The unique id of the license config.
    licenseCount number
    Number of licenses purchased.
    location string
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    startDate LicenseConfigStartDate
    The start date. Structure is documented below.
    subscriptionTerm string
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscriptionTier string
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    autoRenew boolean
    Whether the license config should be auto renewed when it reaches the end date.
    endDate LicenseConfigEndDate
    The planned end date. Structure is documented below.
    freeTrial boolean
    Whether the license config is for free trial.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    license_config_id str
    The unique id of the license config.
    license_count int
    Number of licenses purchased.
    location str
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    start_date LicenseConfigStartDateArgs
    The start date. Structure is documented below.
    subscription_term str
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscription_tier str
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    auto_renew bool
    Whether the license config should be auto renewed when it reaches the end date.
    end_date LicenseConfigEndDateArgs
    The planned end date. Structure is documented below.
    free_trial bool
    Whether the license config is for free trial.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    licenseConfigId String
    The unique id of the license config.
    licenseCount Number
    Number of licenses purchased.
    location String
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    startDate Property Map
    The start date. Structure is documented below.
    subscriptionTerm String
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscriptionTier String
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    autoRenew Boolean
    Whether the license config should be auto renewed when it reaches the end date.
    endDate Property Map
    The planned end date. Structure is documented below.
    freeTrial Boolean
    Whether the license config is for free trial.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LicenseConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.

    Look up Existing LicenseConfig Resource

    Get an existing LicenseConfig 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?: LicenseConfigState, opts?: CustomResourceOptions): LicenseConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_renew: Optional[bool] = None,
            end_date: Optional[LicenseConfigEndDateArgs] = None,
            free_trial: Optional[bool] = None,
            license_config_id: Optional[str] = None,
            license_count: Optional[int] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            start_date: Optional[LicenseConfigStartDateArgs] = None,
            subscription_term: Optional[str] = None,
            subscription_tier: Optional[str] = None) -> LicenseConfig
    func GetLicenseConfig(ctx *Context, name string, id IDInput, state *LicenseConfigState, opts ...ResourceOption) (*LicenseConfig, error)
    public static LicenseConfig Get(string name, Input<string> id, LicenseConfigState? state, CustomResourceOptions? opts = null)
    public static LicenseConfig get(String name, Output<String> id, LicenseConfigState state, CustomResourceOptions options)
    resources:  _:    type: gcp:discoveryengine:LicenseConfig    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.
    The following state arguments are supported:
    AutoRenew bool
    Whether the license config should be auto renewed when it reaches the end date.
    EndDate LicenseConfigEndDate
    The planned end date. Structure is documented below.
    FreeTrial bool
    Whether the license config is for free trial.
    LicenseConfigId string
    The unique id of the license config.
    LicenseCount int
    Number of licenses purchased.
    Location string
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    Name string
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    StartDate LicenseConfigStartDate
    The start date. Structure is documented below.
    SubscriptionTerm string
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    SubscriptionTier string
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    AutoRenew bool
    Whether the license config should be auto renewed when it reaches the end date.
    EndDate LicenseConfigEndDateArgs
    The planned end date. Structure is documented below.
    FreeTrial bool
    Whether the license config is for free trial.
    LicenseConfigId string
    The unique id of the license config.
    LicenseCount int
    Number of licenses purchased.
    Location string
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    Name string
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    StartDate LicenseConfigStartDateArgs
    The start date. Structure is documented below.
    SubscriptionTerm string
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    SubscriptionTier string
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    autoRenew Boolean
    Whether the license config should be auto renewed when it reaches the end date.
    endDate LicenseConfigEndDate
    The planned end date. Structure is documented below.
    freeTrial Boolean
    Whether the license config is for free trial.
    licenseConfigId String
    The unique id of the license config.
    licenseCount Integer
    Number of licenses purchased.
    location String
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    name String
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    startDate LicenseConfigStartDate
    The start date. Structure is documented below.
    subscriptionTerm String
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscriptionTier String
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    autoRenew boolean
    Whether the license config should be auto renewed when it reaches the end date.
    endDate LicenseConfigEndDate
    The planned end date. Structure is documented below.
    freeTrial boolean
    Whether the license config is for free trial.
    licenseConfigId string
    The unique id of the license config.
    licenseCount number
    Number of licenses purchased.
    location string
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    name string
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    startDate LicenseConfigStartDate
    The start date. Structure is documented below.
    subscriptionTerm string
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscriptionTier string
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    auto_renew bool
    Whether the license config should be auto renewed when it reaches the end date.
    end_date LicenseConfigEndDateArgs
    The planned end date. Structure is documented below.
    free_trial bool
    Whether the license config is for free trial.
    license_config_id str
    The unique id of the license config.
    license_count int
    Number of licenses purchased.
    location str
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    name str
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    start_date LicenseConfigStartDateArgs
    The start date. Structure is documented below.
    subscription_term str
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscription_tier str
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.
    autoRenew Boolean
    Whether the license config should be auto renewed when it reaches the end date.
    endDate Property Map
    The planned end date. Structure is documented below.
    freeTrial Boolean
    Whether the license config is for free trial.
    licenseConfigId String
    The unique id of the license config.
    licenseCount Number
    Number of licenses purchased.
    location String
    The geographic location where the data store should reside. The value can only be one of "global", "us" and "eu".
    name String
    The unique full resource name of the license config. Values are of the format projects/{project}/locations/{location}/licenseConfigs/{license_config}.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    startDate Property Map
    The start date. Structure is documented below.
    subscriptionTerm String
    Subscription term. Possible values are: SUBSCRIPTION_TERM_UNSPECIFIED, SUBSCRIPTION_TERM_ONE_MONTH, SUBSCRIPTION_TERM_ONE_YEAR, SUBSCRIPTION_TERM_THREE_YEARS, SUBSCRIPTION_TERM_THREE_MONTHS, SUBSCRIPTION_TERM_FOURTEEN_DAYS, SUBSCRIPTION_TERM_CUSTOM.
    subscriptionTier String
    Subscription tier information for the license config. Possible values are: SUBSCRIPTION_TIER_UNSPECIFIED, SUBSCRIPTION_TIER_SEARCH, SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT, SUBSCRIPTION_TIER_NOTEBOOK_LM, SUBSCRIPTION_TIER_FRONTLINE_WORKER, SUBSCRIPTION_TIER_AGENTSPACE_STARTER, SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS, SUBSCRIPTION_TIER_ENTERPRISE, SUBSCRIPTION_TIER_EDU, SUBSCRIPTION_TIER_EDU_PRO.

    Supporting Types

    LicenseConfigEndDate, LicenseConfigEndDateArgs

    Day int
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    Month int
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    Year int
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    Day int
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    Month int
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    Year int
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day Integer
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month Integer
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year Integer
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day number
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month number
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year number
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day int
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month int
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year int
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day Number
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month Number
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year Number
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

    LicenseConfigStartDate, LicenseConfigStartDateArgs

    Day int
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    Month int
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    Year int
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    Day int
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    Month int
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    Year int
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day Integer
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month Integer
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year Integer
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day number
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month number
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year number
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day int
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month int
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year int
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
    day Number
    Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
    month Number
    Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
    year Number
    Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.

    Import

    LicenseConfig can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/licenseConfigs/{{license_config_id}}

    • {{project}}/{{location}}/{{license_config_id}}

    • {{location}}/{{license_config_id}}

    When using the pulumi import command, LicenseConfig can be imported using one of the formats above. For example:

    $ pulumi import gcp:discoveryengine/licenseConfig:LicenseConfig default projects/{{project}}/locations/{{location}}/licenseConfigs/{{license_config_id}}
    
    $ pulumi import gcp:discoveryengine/licenseConfig:LicenseConfig default {{project}}/{{location}}/{{license_config_id}}
    
    $ pulumi import gcp:discoveryengine/licenseConfig:LicenseConfig default {{location}}/{{license_config_id}}
    

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

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate