LicenseConfig class
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")
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 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
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "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 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.ArrayList;
import java.util.Arrays;
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
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}}
Constructors
- LicenseConfig(String name, {LicenseConfigArgs? args, CustomResourceOptions? options})
-
Creates a new LicenseConfig.
nameThe Pulumi resource name.argsArguments used to configure this LicenseConfig. The set of arguments for LicenseConfig.optionsResource options controlling this resource's behavior. - LicenseConfig.reference(String urn)
- Creates a typed reference to an existing LicenseConfig resource.
Properties
-
autoRenew
↔ Output<
bool?> -
Whether the license config should be auto renewed when it reaches the end date.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
endDate
↔ Output<
LicenseConfigEndDate?> -
The planned end date.
Structure is documented below.
latefinal
-
freeTrial
↔ Output<
bool?> -
Whether the license config is for free trial.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
licenseConfigId
↔ Output<
String> -
The unique id of the license config.
latefinal
-
licenseCount
↔ Output<
int> -
Number of licenses purchased.
latefinal
-
location
↔ Output<
String> -
The geographic location where the data store should reside. The value can
only be one of "global", "us" and "eu".
latefinal
-
name
↔ Output<
String> -
The unique full resource name of the license config. Values are of the format
projects/{project}/locations/{location}/licenseConfigs/{license_config}.latefinal -
project
↔ Output<
String> -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
startDate
↔ Output<
LicenseConfigStartDate> -
The start date.
Structure is documented below.
latefinal
-
subscriptionTerm
↔ Output<
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.latefinal -
subscriptionTier
↔ Output<
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.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {LicenseConfigState? state, CustomResourceOptions? options}) → LicenseConfig -
Gets an existing LicenseConfig resource's state with the given
nameandid.