published on Wednesday, Aug 5, 2026 by vantage-sh
published on Wednesday, Aug 5, 2026 by vantage-sh
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vantage from "@pulumi/vantage";
const demo = new vantage.ScenarioModel("demo", {
title: "Hiring Plan",
periods: [
{
startAt: "2026-01-01",
endAt: "2026-03-31",
amount: 1250.75,
amountType: "dollar",
},
{
startAt: "2026-04-01",
amount: 10,
amountType: "percent",
},
],
});
import pulumi
import pulumi_vantage as vantage
demo = vantage.ScenarioModel("demo",
title="Hiring Plan",
periods=[
{
"start_at": "2026-01-01",
"end_at": "2026-03-31",
"amount": 1250.75,
"amount_type": "dollar",
},
{
"start_at": "2026-04-01",
"amount": 10,
"amount_type": "percent",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vantage/vantage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vantage.NewScenarioModel(ctx, "demo", &vantage.ScenarioModelArgs{
Title: pulumi.String("Hiring Plan"),
Periods: vantage.ScenarioModelPeriodArray{
&vantage.ScenarioModelPeriodArgs{
StartAt: pulumi.String("2026-01-01"),
EndAt: pulumi.String("2026-03-31"),
Amount: pulumi.Float64(1250.75),
AmountType: pulumi.String("dollar"),
},
&vantage.ScenarioModelPeriodArgs{
StartAt: pulumi.String("2026-04-01"),
Amount: pulumi.Float64(10),
AmountType: pulumi.String("percent"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vantage = Pulumi.Vantage;
return await Deployment.RunAsync(() =>
{
var demo = new Vantage.ScenarioModel("demo", new()
{
Title = "Hiring Plan",
Periods = new[]
{
new Vantage.Inputs.ScenarioModelPeriodArgs
{
StartAt = "2026-01-01",
EndAt = "2026-03-31",
Amount = 1250.75,
AmountType = "dollar",
},
new Vantage.Inputs.ScenarioModelPeriodArgs
{
StartAt = "2026-04-01",
Amount = 10,
AmountType = "percent",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vantage.ScenarioModel;
import com.pulumi.vantage.ScenarioModelArgs;
import com.pulumi.vantage.inputs.ScenarioModelPeriodArgs;
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 demo = new ScenarioModel("demo", ScenarioModelArgs.builder()
.title("Hiring Plan")
.periods(
ScenarioModelPeriodArgs.builder()
.startAt("2026-01-01")
.endAt("2026-03-31")
.amount(1250.75)
.amountType("dollar")
.build(),
ScenarioModelPeriodArgs.builder()
.startAt("2026-04-01")
.amount(10.0)
.amountType("percent")
.build())
.build());
}
}
resources:
demo:
type: vantage:ScenarioModel
properties:
title: Hiring Plan
periods:
- startAt: 2026-01-01
endAt: 2026-03-31
amount: 1250.75
amountType: dollar
- startAt: 2026-04-01
amount: 10
amountType: percent
Example coming soon!
Create ScenarioModel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScenarioModel(name: string, args: ScenarioModelArgs, opts?: CustomResourceOptions);@overload
def ScenarioModel(resource_name: str,
args: ScenarioModelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScenarioModel(resource_name: str,
opts: Optional[ResourceOptions] = None,
title: Optional[str] = None,
cloud_provider: Optional[str] = None,
periods: Optional[Sequence[ScenarioModelPeriodArgs]] = None,
priority: Optional[float] = None,
service: Optional[str] = None,
workspace_token: Optional[str] = None)func NewScenarioModel(ctx *Context, name string, args ScenarioModelArgs, opts ...ResourceOption) (*ScenarioModel, error)public ScenarioModel(string name, ScenarioModelArgs args, CustomResourceOptions? opts = null)
public ScenarioModel(String name, ScenarioModelArgs args)
public ScenarioModel(String name, ScenarioModelArgs args, CustomResourceOptions options)
type: vantage:ScenarioModel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "vantage_scenario_model" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ScenarioModelArgs
- 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 ScenarioModelArgs
- 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 ScenarioModelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScenarioModelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScenarioModelArgs
- 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 scenarioModelResource = new Vantage.ScenarioModel("scenarioModelResource", new()
{
Title = "string",
CloudProvider = "string",
Periods = new[]
{
new Vantage.Inputs.ScenarioModelPeriodArgs
{
Amount = 0,
AmountType = "string",
StartAt = "string",
EndAt = "string",
},
},
Priority = 0,
Service = "string",
WorkspaceToken = "string",
});
example, err := vantage.NewScenarioModel(ctx, "scenarioModelResource", &vantage.ScenarioModelArgs{
Title: pulumi.String("string"),
CloudProvider: pulumi.String("string"),
Periods: vantage.ScenarioModelPeriodArray{
&vantage.ScenarioModelPeriodArgs{
Amount: pulumi.Float64(0),
AmountType: pulumi.String("string"),
StartAt: pulumi.String("string"),
EndAt: pulumi.String("string"),
},
},
Priority: pulumi.Float64(0),
Service: pulumi.String("string"),
WorkspaceToken: pulumi.String("string"),
})
resource "vantage_scenario_model" "scenarioModelResource" {
lifecycle {
create_before_destroy = true
}
title = "string"
cloud_provider = "string"
periods {
amount = 0
amount_type = "string"
start_at = "string"
end_at = "string"
}
priority = 0
service = "string"
workspace_token = "string"
}
var scenarioModelResource = new ScenarioModel("scenarioModelResource", ScenarioModelArgs.builder()
.title("string")
.cloudProvider("string")
.periods(ScenarioModelPeriodArgs.builder()
.amount(0.0)
.amountType("string")
.startAt("string")
.endAt("string")
.build())
.priority(0.0)
.service("string")
.workspaceToken("string")
.build());
scenario_model_resource = vantage.ScenarioModel("scenarioModelResource",
title="string",
cloud_provider="string",
periods=[{
"amount": float(0),
"amount_type": "string",
"start_at": "string",
"end_at": "string",
}],
priority=float(0),
service="string",
workspace_token="string")
const scenarioModelResource = new vantage.ScenarioModel("scenarioModelResource", {
title: "string",
cloudProvider: "string",
periods: [{
amount: 0,
amountType: "string",
startAt: "string",
endAt: "string",
}],
priority: 0,
service: "string",
workspaceToken: "string",
});
type: vantage:ScenarioModel
properties:
cloudProvider: string
periods:
- amount: 0
amountType: string
endAt: string
startAt: string
priority: 0
service: string
title: string
workspaceToken: string
ScenarioModel 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 ScenarioModel resource accepts the following input properties:
- Title string
- Cloud
Provider string - The cloud provider filter for the ScenarioModel.
- Periods
List<Scenario
Model Period> - The periods for the ScenarioModel.
- Priority double
- Service string
- Workspace
Token string
- Title string
- Cloud
Provider string - The cloud provider filter for the ScenarioModel.
- Periods
[]Scenario
Model Period Args - The periods for the ScenarioModel.
- Priority float64
- Service string
- Workspace
Token string
- title string
- cloud_
provider string - The cloud provider filter for the ScenarioModel.
- periods list(object)
- The periods for the ScenarioModel.
- priority number
- service string
- workspace_
token string
- title String
- cloud
Provider String - The cloud provider filter for the ScenarioModel.
- periods
List<Scenario
Model Period> - The periods for the ScenarioModel.
- priority Double
- service String
- workspace
Token String
- title string
- cloud
Provider string - The cloud provider filter for the ScenarioModel.
- periods
Scenario
Model Period[] - The periods for the ScenarioModel.
- priority number
- service string
- workspace
Token string
- title str
- cloud_
provider str - The cloud provider filter for the ScenarioModel.
- periods
Sequence[Scenario
Model Period Args] - The periods for the ScenarioModel.
- priority float
- service str
- workspace_
token str
- title String
- cloud
Provider String - The cloud provider filter for the ScenarioModel.
- periods List<Property Map>
- The periods for the ScenarioModel.
- priority Number
- service String
- workspace
Token String
Outputs
All input properties are implicitly available as output properties. Additionally, the ScenarioModel resource produces the following output properties:
- Created
At string - Created
By stringToken - Id string
- The provider-assigned unique ID for this managed resource.
- Token string
- The token of the scenario model
- Updated
At string
- Created
At string - Created
By stringToken - Id string
- The provider-assigned unique ID for this managed resource.
- Token string
- The token of the scenario model
- Updated
At string
- created_
at string - created_
by_ stringtoken - id string
- The provider-assigned unique ID for this managed resource.
- token string
- The token of the scenario model
- updated_
at string
- created
At String - created
By StringToken - id String
- The provider-assigned unique ID for this managed resource.
- token String
- The token of the scenario model
- updated
At String
- created
At string - created
By stringToken - id string
- The provider-assigned unique ID for this managed resource.
- token string
- The token of the scenario model
- updated
At string
- created_
at str - created_
by_ strtoken - id str
- The provider-assigned unique ID for this managed resource.
- token str
- The token of the scenario model
- updated_
at str
- created
At String - created
By StringToken - id String
- The provider-assigned unique ID for this managed resource.
- token String
- The token of the scenario model
- updated
At String
Look up Existing ScenarioModel Resource
Get an existing ScenarioModel 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?: ScenarioModelState, opts?: CustomResourceOptions): ScenarioModel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
created_at: Optional[str] = None,
created_by_token: Optional[str] = None,
periods: Optional[Sequence[ScenarioModelPeriodArgs]] = None,
priority: Optional[float] = None,
service: Optional[str] = None,
title: Optional[str] = None,
token: Optional[str] = None,
updated_at: Optional[str] = None,
workspace_token: Optional[str] = None) -> ScenarioModelfunc GetScenarioModel(ctx *Context, name string, id IDInput, state *ScenarioModelState, opts ...ResourceOption) (*ScenarioModel, error)public static ScenarioModel Get(string name, Input<string> id, ScenarioModelState? state, CustomResourceOptions? opts = null)public static ScenarioModel get(String name, Output<String> id, ScenarioModelState state, CustomResourceOptions options)resources: _: type: vantage:ScenarioModel get: id: ${id}import {
to = vantage_scenario_model.example
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.
- Cloud
Provider string - The cloud provider filter for the ScenarioModel.
- Created
At string - Created
By stringToken - Periods
List<Scenario
Model Period> - The periods for the ScenarioModel.
- Priority double
- Service string
- Title string
- Token string
- The token of the scenario model
- Updated
At string - Workspace
Token string
- Cloud
Provider string - The cloud provider filter for the ScenarioModel.
- Created
At string - Created
By stringToken - Periods
[]Scenario
Model Period Args - The periods for the ScenarioModel.
- Priority float64
- Service string
- Title string
- Token string
- The token of the scenario model
- Updated
At string - Workspace
Token string
- cloud_
provider string - The cloud provider filter for the ScenarioModel.
- created_
at string - created_
by_ stringtoken - periods list(object)
- The periods for the ScenarioModel.
- priority number
- service string
- title string
- token string
- The token of the scenario model
- updated_
at string - workspace_
token string
- cloud
Provider String - The cloud provider filter for the ScenarioModel.
- created
At String - created
By StringToken - periods
List<Scenario
Model Period> - The periods for the ScenarioModel.
- priority Double
- service String
- title String
- token String
- The token of the scenario model
- updated
At String - workspace
Token String
- cloud
Provider string - The cloud provider filter for the ScenarioModel.
- created
At string - created
By stringToken - periods
Scenario
Model Period[] - The periods for the ScenarioModel.
- priority number
- service string
- title string
- token string
- The token of the scenario model
- updated
At string - workspace
Token string
- cloud_
provider str - The cloud provider filter for the ScenarioModel.
- created_
at str - created_
by_ strtoken - periods
Sequence[Scenario
Model Period Args] - The periods for the ScenarioModel.
- priority float
- service str
- title str
- token str
- The token of the scenario model
- updated_
at str - workspace_
token str
- cloud
Provider String - The cloud provider filter for the ScenarioModel.
- created
At String - created
By StringToken - periods List<Property Map>
- The periods for the ScenarioModel.
- priority Number
- service String
- title String
- token String
- The token of the scenario model
- updated
At String - workspace
Token String
Supporting Types
ScenarioModelPeriod, ScenarioModelPeriodArgs
- Amount double
- Amount
Type string - Whether the amount is in dollars or percent.
- Start
At string - The ISO 8601 start date of the period.
- End
At string - The ISO 8601 end date of the period.
- Amount float64
- Amount
Type string - Whether the amount is in dollars or percent.
- Start
At string - The ISO 8601 start date of the period.
- End
At string - The ISO 8601 end date of the period.
- amount number
- amount_
type string - Whether the amount is in dollars or percent.
- start_
at string - The ISO 8601 start date of the period.
- end_
at string - The ISO 8601 end date of the period.
- amount Double
- amount
Type String - Whether the amount is in dollars or percent.
- start
At String - The ISO 8601 start date of the period.
- end
At String - The ISO 8601 end date of the period.
- amount number
- amount
Type string - Whether the amount is in dollars or percent.
- start
At string - The ISO 8601 start date of the period.
- end
At string - The ISO 8601 end date of the period.
- amount float
- amount_
type str - Whether the amount is in dollars or percent.
- start_
at str - The ISO 8601 start date of the period.
- end_
at str - The ISO 8601 end date of the period.
- amount Number
- amount
Type String - Whether the amount is in dollars or percent.
- start
At String - The ISO 8601 start date of the period.
- end
At String - The ISO 8601 end date of the period.
Package Details
- Repository
- vantage vantage-sh/terraform-provider-vantage
- License
- Notes
- This Pulumi package is based on the
vantageTerraform Provider.
published on Wednesday, Aug 5, 2026 by vantage-sh