spectrocloud.DeveloperSetting
Explore with Pulumi AI
Each developer in this tenant may create up to 1 virtual clusters and will be allocated compute and storage quota across all their virtual clusters based on the configuration in developer setting Developer Setting guide.
The developer_setting resource enforces a usage quota for developer. By default, a developer quota is configured in Palette with default values. Users can update the developer settings as per their requirements. Every new virtual cluster will consume about 3 CPU and 3 GiB memory even without any user workloads, we recommend that you allocate quota accordingly. When a spectrocloud.DeveloperSetting resource is destroyed, the developer setting will revert to the Palette default settings.
Example Usage
An example of managing an developer setting in Palette.
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const devSetting = new spectrocloud.DeveloperSetting("devSetting", {
cpu: 20,
hideSystemClusterGroup: false,
memory: 100,
storage: 100,
virtualClustersLimit: 10,
});
import pulumi
import pulumi_spectrocloud as spectrocloud
dev_setting = spectrocloud.DeveloperSetting("devSetting",
cpu=20,
hide_system_cluster_group=False,
memory=100,
storage=100,
virtual_clusters_limit=10)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spectrocloud.NewDeveloperSetting(ctx, "devSetting", &spectrocloud.DeveloperSettingArgs{
Cpu: pulumi.Float64(20),
HideSystemClusterGroup: pulumi.Bool(false),
Memory: pulumi.Float64(100),
Storage: pulumi.Float64(100),
VirtualClustersLimit: pulumi.Float64(10),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var devSetting = new Spectrocloud.DeveloperSetting("devSetting", new()
{
Cpu = 20,
HideSystemClusterGroup = false,
Memory = 100,
Storage = 100,
VirtualClustersLimit = 10,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.DeveloperSetting;
import com.pulumi.spectrocloud.DeveloperSettingArgs;
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 devSetting = new DeveloperSetting("devSetting", DeveloperSettingArgs.builder()
.cpu(20)
.hideSystemClusterGroup(false)
.memory(100)
.storage(100)
.virtualClustersLimit(10)
.build());
}
}
resources:
devSetting:
type: spectrocloud:DeveloperSetting
properties:
cpu: 20
hideSystemClusterGroup: false
memory: 100
storage: 100
virtualClustersLimit: 10
Create DeveloperSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeveloperSetting(name: string, args?: DeveloperSettingArgs, opts?: CustomResourceOptions);
@overload
def DeveloperSetting(resource_name: str,
args: Optional[DeveloperSettingArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DeveloperSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
cpu: Optional[float] = None,
developer_setting_id: Optional[str] = None,
hide_system_cluster_group: Optional[bool] = None,
memory: Optional[float] = None,
storage: Optional[float] = None,
timeouts: Optional[DeveloperSettingTimeoutsArgs] = None,
virtual_clusters_limit: Optional[float] = None)
func NewDeveloperSetting(ctx *Context, name string, args *DeveloperSettingArgs, opts ...ResourceOption) (*DeveloperSetting, error)
public DeveloperSetting(string name, DeveloperSettingArgs? args = null, CustomResourceOptions? opts = null)
public DeveloperSetting(String name, DeveloperSettingArgs args)
public DeveloperSetting(String name, DeveloperSettingArgs args, CustomResourceOptions options)
type: spectrocloud:DeveloperSetting
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 DeveloperSettingArgs
- 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 DeveloperSettingArgs
- 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 DeveloperSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeveloperSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeveloperSettingArgs
- 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 developerSettingResource = new Spectrocloud.DeveloperSetting("developerSettingResource", new()
{
Cpu = 0,
DeveloperSettingId = "string",
HideSystemClusterGroup = false,
Memory = 0,
Storage = 0,
Timeouts = new Spectrocloud.Inputs.DeveloperSettingTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
VirtualClustersLimit = 0,
});
example, err := spectrocloud.NewDeveloperSetting(ctx, "developerSettingResource", &spectrocloud.DeveloperSettingArgs{
Cpu: pulumi.Float64(0),
DeveloperSettingId: pulumi.String("string"),
HideSystemClusterGroup: pulumi.Bool(false),
Memory: pulumi.Float64(0),
Storage: pulumi.Float64(0),
Timeouts: &spectrocloud.DeveloperSettingTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VirtualClustersLimit: pulumi.Float64(0),
})
var developerSettingResource = new DeveloperSetting("developerSettingResource", DeveloperSettingArgs.builder()
.cpu(0)
.developerSettingId("string")
.hideSystemClusterGroup(false)
.memory(0)
.storage(0)
.timeouts(DeveloperSettingTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.virtualClustersLimit(0)
.build());
developer_setting_resource = spectrocloud.DeveloperSetting("developerSettingResource",
cpu=0,
developer_setting_id="string",
hide_system_cluster_group=False,
memory=0,
storage=0,
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
virtual_clusters_limit=0)
const developerSettingResource = new spectrocloud.DeveloperSetting("developerSettingResource", {
cpu: 0,
developerSettingId: "string",
hideSystemClusterGroup: false,
memory: 0,
storage: 0,
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
virtualClustersLimit: 0,
});
type: spectrocloud:DeveloperSetting
properties:
cpu: 0
developerSettingId: string
hideSystemClusterGroup: false
memory: 0
storage: 0
timeouts:
create: string
delete: string
update: string
virtualClustersLimit: 0
DeveloperSetting 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 DeveloperSetting resource accepts the following input properties:
- Cpu double
- Defines the number of CPU cores allocated to the cluster.
- Developer
Setting stringId - The ID of this resource.
- Hide
System boolCluster Group - If set to
true
, hides the system cluster. - Memory double
- Specifies the amount of memory (in GiB) allocated to the cluster.
- Storage double
- Defines the storage capacity (in GiB) allocated to the cluster.
- Timeouts
Developer
Setting Timeouts - Virtual
Clusters doubleLimit - Specifies the number of virtual clusters to be created.
- Cpu float64
- Defines the number of CPU cores allocated to the cluster.
- Developer
Setting stringId - The ID of this resource.
- Hide
System boolCluster Group - If set to
true
, hides the system cluster. - Memory float64
- Specifies the amount of memory (in GiB) allocated to the cluster.
- Storage float64
- Defines the storage capacity (in GiB) allocated to the cluster.
- Timeouts
Developer
Setting Timeouts Args - Virtual
Clusters float64Limit - Specifies the number of virtual clusters to be created.
- cpu Double
- Defines the number of CPU cores allocated to the cluster.
- developer
Setting StringId - The ID of this resource.
- hide
System BooleanCluster Group - If set to
true
, hides the system cluster. - memory Double
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage Double
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts
Developer
Setting Timeouts - virtual
Clusters DoubleLimit - Specifies the number of virtual clusters to be created.
- cpu number
- Defines the number of CPU cores allocated to the cluster.
- developer
Setting stringId - The ID of this resource.
- hide
System booleanCluster Group - If set to
true
, hides the system cluster. - memory number
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage number
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts
Developer
Setting Timeouts - virtual
Clusters numberLimit - Specifies the number of virtual clusters to be created.
- cpu float
- Defines the number of CPU cores allocated to the cluster.
- developer_
setting_ strid - The ID of this resource.
- hide_
system_ boolcluster_ group - If set to
true
, hides the system cluster. - memory float
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage float
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts
Developer
Setting Timeouts Args - virtual_
clusters_ floatlimit - Specifies the number of virtual clusters to be created.
- cpu Number
- Defines the number of CPU cores allocated to the cluster.
- developer
Setting StringId - The ID of this resource.
- hide
System BooleanCluster Group - If set to
true
, hides the system cluster. - memory Number
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage Number
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts Property Map
- virtual
Clusters NumberLimit - Specifies the number of virtual clusters to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeveloperSetting 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 DeveloperSetting Resource
Get an existing DeveloperSetting 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?: DeveloperSettingState, opts?: CustomResourceOptions): DeveloperSetting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cpu: Optional[float] = None,
developer_setting_id: Optional[str] = None,
hide_system_cluster_group: Optional[bool] = None,
memory: Optional[float] = None,
storage: Optional[float] = None,
timeouts: Optional[DeveloperSettingTimeoutsArgs] = None,
virtual_clusters_limit: Optional[float] = None) -> DeveloperSetting
func GetDeveloperSetting(ctx *Context, name string, id IDInput, state *DeveloperSettingState, opts ...ResourceOption) (*DeveloperSetting, error)
public static DeveloperSetting Get(string name, Input<string> id, DeveloperSettingState? state, CustomResourceOptions? opts = null)
public static DeveloperSetting get(String name, Output<String> id, DeveloperSettingState state, CustomResourceOptions options)
resources: _: type: spectrocloud:DeveloperSetting 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.
- Cpu double
- Defines the number of CPU cores allocated to the cluster.
- Developer
Setting stringId - The ID of this resource.
- Hide
System boolCluster Group - If set to
true
, hides the system cluster. - Memory double
- Specifies the amount of memory (in GiB) allocated to the cluster.
- Storage double
- Defines the storage capacity (in GiB) allocated to the cluster.
- Timeouts
Developer
Setting Timeouts - Virtual
Clusters doubleLimit - Specifies the number of virtual clusters to be created.
- Cpu float64
- Defines the number of CPU cores allocated to the cluster.
- Developer
Setting stringId - The ID of this resource.
- Hide
System boolCluster Group - If set to
true
, hides the system cluster. - Memory float64
- Specifies the amount of memory (in GiB) allocated to the cluster.
- Storage float64
- Defines the storage capacity (in GiB) allocated to the cluster.
- Timeouts
Developer
Setting Timeouts Args - Virtual
Clusters float64Limit - Specifies the number of virtual clusters to be created.
- cpu Double
- Defines the number of CPU cores allocated to the cluster.
- developer
Setting StringId - The ID of this resource.
- hide
System BooleanCluster Group - If set to
true
, hides the system cluster. - memory Double
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage Double
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts
Developer
Setting Timeouts - virtual
Clusters DoubleLimit - Specifies the number of virtual clusters to be created.
- cpu number
- Defines the number of CPU cores allocated to the cluster.
- developer
Setting stringId - The ID of this resource.
- hide
System booleanCluster Group - If set to
true
, hides the system cluster. - memory number
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage number
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts
Developer
Setting Timeouts - virtual
Clusters numberLimit - Specifies the number of virtual clusters to be created.
- cpu float
- Defines the number of CPU cores allocated to the cluster.
- developer_
setting_ strid - The ID of this resource.
- hide_
system_ boolcluster_ group - If set to
true
, hides the system cluster. - memory float
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage float
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts
Developer
Setting Timeouts Args - virtual_
clusters_ floatlimit - Specifies the number of virtual clusters to be created.
- cpu Number
- Defines the number of CPU cores allocated to the cluster.
- developer
Setting StringId - The ID of this resource.
- hide
System BooleanCluster Group - If set to
true
, hides the system cluster. - memory Number
- Specifies the amount of memory (in GiB) allocated to the cluster.
- storage Number
- Defines the storage capacity (in GiB) allocated to the cluster.
- timeouts Property Map
- virtual
Clusters NumberLimit - Specifies the number of virtual clusters to be created.
Supporting Types
DeveloperSettingTimeouts, DeveloperSettingTimeoutsArgs
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.