Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
const spark = vkcs.getDataplatformTemplate({
productName: "spark",
productVersion: "3.5.1",
});
import pulumi
import pulumi_vkcs as vkcs
spark = vkcs.get_dataplatform_template(product_name="spark",
product_version="3.5.1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vkcs.GetDataplatformTemplate(ctx, &vkcs.GetDataplatformTemplateArgs{
ProductName: "spark",
ProductVersion: pulumi.StringRef("3.5.1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
var spark = Vkcs.GetDataplatformTemplate.Invoke(new()
{
ProductName = "spark",
ProductVersion = "3.5.1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.VkcsFunctions;
import com.pulumi.vkcs.inputs.GetDataplatformTemplateArgs;
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) {
final var spark = VkcsFunctions.getDataplatformTemplate(GetDataplatformTemplateArgs.builder()
.productName("spark")
.productVersion("3.5.1")
.build());
}
}
variables:
spark:
fn::invoke:
function: vkcs:getDataplatformTemplate
arguments:
productName: spark
productVersion: 3.5.1
Using getDataplatformTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDataplatformTemplate(args: GetDataplatformTemplateArgs, opts?: InvokeOptions): Promise<GetDataplatformTemplateResult>
function getDataplatformTemplateOutput(args: GetDataplatformTemplateOutputArgs, opts?: InvokeOptions): Output<GetDataplatformTemplateResult>def get_dataplatform_template(product_name: Optional[str] = None,
product_version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataplatformTemplateResult
def get_dataplatform_template_output(product_name: Optional[pulumi.Input[str]] = None,
product_version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataplatformTemplateResult]func GetDataplatformTemplate(ctx *Context, args *GetDataplatformTemplateArgs, opts ...InvokeOption) (*GetDataplatformTemplateResult, error)
func GetDataplatformTemplateOutput(ctx *Context, args *GetDataplatformTemplateOutputArgs, opts ...InvokeOption) GetDataplatformTemplateResultOutput> Note: This function is named GetDataplatformTemplate in the Go SDK.
public static class GetDataplatformTemplate
{
public static Task<GetDataplatformTemplateResult> InvokeAsync(GetDataplatformTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetDataplatformTemplateResult> Invoke(GetDataplatformTemplateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataplatformTemplateResult> getDataplatformTemplate(GetDataplatformTemplateArgs args, InvokeOptions options)
public static Output<GetDataplatformTemplateResult> getDataplatformTemplate(GetDataplatformTemplateArgs args, InvokeOptions options)
fn::invoke:
function: vkcs:index/getDataplatformTemplate:getDataplatformTemplate
arguments:
# arguments dictionaryThe following arguments are supported:
- Product
Name string - required string → Product name.
- Product
Version string - optional string → Product version.
- Product
Name string - required string → Product name.
- Product
Version string - optional string → Product version.
- product
Name String - required string → Product name.
- product
Version String - optional string → Product version.
- product
Name string - required string → Product name.
- product
Version string - optional string → Product version.
- product_
name str - required string → Product name.
- product_
version str - optional string → Product version.
- product
Name String - required string → Product name.
- product
Version String - optional string → Product version.
getDataplatformTemplate Result
The following output properties are available:
- Id string
- string → ID of the cluster template.
- Name string
- string → Pod group name.
- Pod
Groups List<GetDataplatform Template Pod Group> - list → List of pod groups in the template.
- Product
Name string - Product
Version string
- Id string
- string → ID of the cluster template.
- Name string
- string → Pod group name.
- Pod
Groups []GetDataplatform Template Pod Group - list → List of pod groups in the template.
- Product
Name string - Product
Version string
- id String
- string → ID of the cluster template.
- name String
- string → Pod group name.
- pod
Groups List<GetDataplatform Template Pod Group> - list → List of pod groups in the template.
- product
Name String - product
Version String
- id string
- string → ID of the cluster template.
- name string
- string → Pod group name.
- pod
Groups GetDataplatform Template Pod Group[] - list → List of pod groups in the template.
- product
Name string - product
Version string
- id str
- string → ID of the cluster template.
- name str
- string → Pod group name.
- pod_
groups Sequence[GetDataplatform Template Pod Group] - list → List of pod groups in the template.
- product_
name str - product_
version str
- id String
- string → ID of the cluster template.
- name String
- string → Pod group name.
- pod
Groups List<Property Map> - list → List of pod groups in the template.
- product
Name String - product
Version String
Supporting Types
GetDataplatformTemplatePodGroup
- Count double
- number → Volume count.
- Name string
- string → Pod group name.
- Resource
Get
Dataplatform Template Pod Group Resource - → Resource settings for the pod group.
- Volumes
Dictionary<string, Get
Dataplatform Template Pod Group Volumes> - map → Volumes configuration for the pod group.
- Count float64
- number → Volume count.
- Name string
- string → Pod group name.
- Resource
Get
Dataplatform Template Pod Group Resource - → Resource settings for the pod group.
- Volumes
map[string]Get
Dataplatform Template Pod Group Volumes - map → Volumes configuration for the pod group.
- count Double
- number → Volume count.
- name String
- string → Pod group name.
- resource
Get
Dataplatform Template Pod Group Resource - → Resource settings for the pod group.
- volumes
Map<String,Get
Dataplatform Template Pod Group Volumes> - map → Volumes configuration for the pod group.
- count number
- number → Volume count.
- name string
- string → Pod group name.
- resource
Get
Dataplatform Template Pod Group Resource - → Resource settings for the pod group.
- volumes
{[key: string]: Get
Dataplatform Template Pod Group Volumes} - map → Volumes configuration for the pod group.
- count float
- number → Volume count.
- name str
- string → Pod group name.
- resource
Get
Dataplatform Template Pod Group Resource - → Resource settings for the pod group.
- volumes
Mapping[str, Get
Dataplatform Template Pod Group Volumes] - map → Volumes configuration for the pod group.
- count Number
- number → Volume count.
- name String
- string → Pod group name.
- resource Property Map
- → Resource settings for the pod group.
- volumes Map<Property Map>
- map → Volumes configuration for the pod group.
GetDataplatformTemplatePodGroupResource
- Cpu
Margin double - number → CPU margin for the pod group.
- Cpu
Request string - string → CPU request for the pod group.
- Ram
Margin double - number → RAM margin for the pod group.
- Ram
Request string - string → RAM request for the pod group.
- Cpu
Margin float64 - number → CPU margin for the pod group.
- Cpu
Request string - string → CPU request for the pod group.
- Ram
Margin float64 - number → RAM margin for the pod group.
- Ram
Request string - string → RAM request for the pod group.
- cpu
Margin Double - number → CPU margin for the pod group.
- cpu
Request String - string → CPU request for the pod group.
- ram
Margin Double - number → RAM margin for the pod group.
- ram
Request String - string → RAM request for the pod group.
- cpu
Margin number - number → CPU margin for the pod group.
- cpu
Request string - string → CPU request for the pod group.
- ram
Margin number - number → RAM margin for the pod group.
- ram
Request string - string → RAM request for the pod group.
- cpu_
margin float - number → CPU margin for the pod group.
- cpu_
request str - string → CPU request for the pod group.
- ram_
margin float - number → RAM margin for the pod group.
- ram_
request str - string → RAM request for the pod group.
- cpu
Margin Number - number → CPU margin for the pod group.
- cpu
Request String - string → CPU request for the pod group.
- ram
Margin Number - number → RAM margin for the pod group.
- ram
Request String - string → RAM request for the pod group.
GetDataplatformTemplatePodGroupVolumes
- Count double
- number → Volume count.
- Storage string
- string → Volume storage size.
- Storage
Class stringName - string → Storage class name for the volume.
- Count float64
- number → Volume count.
- Storage string
- string → Volume storage size.
- Storage
Class stringName - string → Storage class name for the volume.
- count Double
- number → Volume count.
- storage String
- string → Volume storage size.
- storage
Class StringName - string → Storage class name for the volume.
- count number
- number → Volume count.
- storage string
- string → Volume storage size.
- storage
Class stringName - string → Storage class name for the volume.
- count float
- number → Volume count.
- storage str
- string → Volume storage size.
- storage_
class_ strname - string → Storage class name for the volume.
- count Number
- number → Volume count.
- storage String
- string → Volume storage size.
- storage
Class StringName - string → Storage class name for the volume.
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcsTerraform Provider.
