Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getDataprocCluster
Explore with Pulumi AI
Get information about a Yandex Data Proc cluster. For more information, see the official documentation.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Yandex.GetDataprocCluster.InvokeAsync(new Yandex.GetDataprocClusterArgs
{
Name = "test",
}));
this.ServiceAccountId = foo.Apply(foo => foo.ServiceAccountId);
}
[Output("serviceAccountId")]
public Output<string> ServiceAccountId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "test"
foo, err := yandex.LookupDataprocCluster(ctx, &GetDataprocClusterArgs{
Name: &opt0,
}, nil)
if err != nil {
return err
}
ctx.Export("serviceAccountId", foo.ServiceAccountId)
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
foo = yandex.get_dataproc_cluster(name="test")
pulumi.export("serviceAccountId", foo.service_account_id)
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const foo = pulumi.output(yandex.getDataprocCluster({
name: "test",
}));
export const serviceAccountId = foo.serviceAccountId;
Coming soon!
Using getDataprocCluster
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 getDataprocCluster(args: GetDataprocClusterArgs, opts?: InvokeOptions): Promise<GetDataprocClusterResult>
function getDataprocClusterOutput(args: GetDataprocClusterOutputArgs, opts?: InvokeOptions): Output<GetDataprocClusterResult>
def get_dataproc_cluster(cluster_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDataprocClusterResult
def get_dataproc_cluster_output(cluster_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDataprocClusterResult]
func LookupDataprocCluster(ctx *Context, args *LookupDataprocClusterArgs, opts ...InvokeOption) (*LookupDataprocClusterResult, error)
func LookupDataprocClusterOutput(ctx *Context, args *LookupDataprocClusterOutputArgs, opts ...InvokeOption) LookupDataprocClusterResultOutput
> Note: This function is named LookupDataprocCluster
in the Go SDK.
public static class GetDataprocCluster
{
public static Task<GetDataprocClusterResult> InvokeAsync(GetDataprocClusterArgs args, InvokeOptions? opts = null)
public static Output<GetDataprocClusterResult> Invoke(GetDataprocClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDataprocClusterResult> getDataprocCluster(GetDataprocClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getDataprocCluster:getDataprocCluster
arguments:
# arguments dictionary
The following arguments are supported:
- cluster_
id str - The ID of the Data Proc cluster.
- name str
- The name of the Data Proc cluster.
getDataprocCluster Result
The following output properties are available:
- Bucket string
- Name of the Object Storage bucket used for Data Proc jobs.
- Cluster
Configs List<GetDataproc Cluster Cluster Config> - Configuration and resources of the cluster. The structure is documented below.
- Cluster
Id string - Created
At string - The Data Proc cluster creation timestamp.
- Deletion
Protection bool - Description string
- Description of the Data Proc cluster.
- Folder
Id string - Host
Group List<string>Ids - A list of IDs of the host groups hosting VMs of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- A set of key/value label pairs assigned to the Data Proc cluster.
- Name string
- Name of the Data Proc subcluster.
- Security
Group List<string>Ids - Service
Account stringId - Service account used by the Data Proc agent to access resources of Yandex.Cloud.
- Ui
Proxy bool - Whether UI proxy feature is enabled.
- Zone
Id string - ID of the availability zone where the cluster resides.
- Bucket string
- Name of the Object Storage bucket used for Data Proc jobs.
- Cluster
Configs []GetDataproc Cluster Cluster Config - Configuration and resources of the cluster. The structure is documented below.
- Cluster
Id string - Created
At string - The Data Proc cluster creation timestamp.
- Deletion
Protection bool - Description string
- Description of the Data Proc cluster.
- Folder
Id string - Host
Group []stringIds - A list of IDs of the host groups hosting VMs of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- A set of key/value label pairs assigned to the Data Proc cluster.
- Name string
- Name of the Data Proc subcluster.
- Security
Group []stringIds - Service
Account stringId - Service account used by the Data Proc agent to access resources of Yandex.Cloud.
- Ui
Proxy bool - Whether UI proxy feature is enabled.
- Zone
Id string - ID of the availability zone where the cluster resides.
- bucket String
- Name of the Object Storage bucket used for Data Proc jobs.
- cluster
Configs List<GetDataproc Cluster Cluster Config> - Configuration and resources of the cluster. The structure is documented below.
- cluster
Id String - created
At String - The Data Proc cluster creation timestamp.
- deletion
Protection Boolean - description String
- Description of the Data Proc cluster.
- folder
Id String - host
Group List<String>Ids - A list of IDs of the host groups hosting VMs of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- A set of key/value label pairs assigned to the Data Proc cluster.
- name String
- Name of the Data Proc subcluster.
- security
Group List<String>Ids - service
Account StringId - Service account used by the Data Proc agent to access resources of Yandex.Cloud.
- ui
Proxy Boolean - Whether UI proxy feature is enabled.
- zone
Id String - ID of the availability zone where the cluster resides.
- bucket string
- Name of the Object Storage bucket used for Data Proc jobs.
- cluster
Configs GetDataproc Cluster Cluster Config[] - Configuration and resources of the cluster. The structure is documented below.
- cluster
Id string - created
At string - The Data Proc cluster creation timestamp.
- deletion
Protection boolean - description string
- Description of the Data Proc cluster.
- folder
Id string - host
Group string[]Ids - A list of IDs of the host groups hosting VMs of the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- A set of key/value label pairs assigned to the Data Proc cluster.
- name string
- Name of the Data Proc subcluster.
- security
Group string[]Ids - service
Account stringId - Service account used by the Data Proc agent to access resources of Yandex.Cloud.
- ui
Proxy boolean - Whether UI proxy feature is enabled.
- zone
Id string - ID of the availability zone where the cluster resides.
- bucket str
- Name of the Object Storage bucket used for Data Proc jobs.
- cluster_
configs Sequence[GetDataproc Cluster Cluster Config] - Configuration and resources of the cluster. The structure is documented below.
- cluster_
id str - created_
at str - The Data Proc cluster creation timestamp.
- deletion_
protection bool - description str
- Description of the Data Proc cluster.
- folder_
id str - host_
group_ Sequence[str]ids - A list of IDs of the host groups hosting VMs of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- A set of key/value label pairs assigned to the Data Proc cluster.
- name str
- Name of the Data Proc subcluster.
- security_
group_ Sequence[str]ids - service_
account_ strid - Service account used by the Data Proc agent to access resources of Yandex.Cloud.
- ui_
proxy bool - Whether UI proxy feature is enabled.
- zone_
id str - ID of the availability zone where the cluster resides.
- bucket String
- Name of the Object Storage bucket used for Data Proc jobs.
- cluster
Configs List<Property Map> - Configuration and resources of the cluster. The structure is documented below.
- cluster
Id String - created
At String - The Data Proc cluster creation timestamp.
- deletion
Protection Boolean - description String
- Description of the Data Proc cluster.
- folder
Id String - host
Group List<String>Ids - A list of IDs of the host groups hosting VMs of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- A set of key/value label pairs assigned to the Data Proc cluster.
- name String
- Name of the Data Proc subcluster.
- security
Group List<String>Ids - service
Account StringId - Service account used by the Data Proc agent to access resources of Yandex.Cloud.
- ui
Proxy Boolean - Whether UI proxy feature is enabled.
- zone
Id String - ID of the availability zone where the cluster resides.
Supporting Types
GetDataprocClusterClusterConfig
- Hadoops
List<Get
Dataproc Cluster Cluster Config Hadoop> - Data Proc specific options. The structure is documented below.
- Subcluster
Specs List<GetDataproc Cluster Cluster Config Subcluster Spec> - Configuration of the Data Proc subcluster. The structure is documented below.
- Version
Id string - Version of Data Proc image.
- Hadoops
[]Get
Dataproc Cluster Cluster Config Hadoop - Data Proc specific options. The structure is documented below.
- Subcluster
Specs []GetDataproc Cluster Cluster Config Subcluster Spec - Configuration of the Data Proc subcluster. The structure is documented below.
- Version
Id string - Version of Data Proc image.
- hadoops
List<Get
Dataproc Cluster Cluster Config Hadoop> - Data Proc specific options. The structure is documented below.
- subcluster
Specs List<GetDataproc Cluster Cluster Config Subcluster Spec> - Configuration of the Data Proc subcluster. The structure is documented below.
- version
Id String - Version of Data Proc image.
- hadoops
Get
Dataproc Cluster Cluster Config Hadoop[] - Data Proc specific options. The structure is documented below.
- subcluster
Specs GetDataproc Cluster Cluster Config Subcluster Spec[] - Configuration of the Data Proc subcluster. The structure is documented below.
- version
Id string - Version of Data Proc image.
- hadoops
Sequence[Get
Dataproc Cluster Cluster Config Hadoop] - Data Proc specific options. The structure is documented below.
- subcluster_
specs Sequence[GetDataproc Cluster Cluster Config Subcluster Spec] - Configuration of the Data Proc subcluster. The structure is documented below.
- version_
id str - Version of Data Proc image.
- hadoops List<Property Map>
- Data Proc specific options. The structure is documented below.
- subcluster
Specs List<Property Map> - Configuration of the Data Proc subcluster. The structure is documented below.
- version
Id String - Version of Data Proc image.
GetDataprocClusterClusterConfigHadoop
- Properties Dictionary<string, string>
- A set of key/value pairs used to configure cluster services.
- Services List<string>
- List of services launched on Data Proc cluster.
- Ssh
Public List<string>Keys - List of SSH public keys distributed to the hosts of the cluster.
- Properties map[string]string
- A set of key/value pairs used to configure cluster services.
- Services []string
- List of services launched on Data Proc cluster.
- Ssh
Public []stringKeys - List of SSH public keys distributed to the hosts of the cluster.
- properties Map<String,String>
- A set of key/value pairs used to configure cluster services.
- services List<String>
- List of services launched on Data Proc cluster.
- ssh
Public List<String>Keys - List of SSH public keys distributed to the hosts of the cluster.
- properties {[key: string]: string}
- A set of key/value pairs used to configure cluster services.
- services string[]
- List of services launched on Data Proc cluster.
- ssh
Public string[]Keys - List of SSH public keys distributed to the hosts of the cluster.
- properties Mapping[str, str]
- A set of key/value pairs used to configure cluster services.
- services Sequence[str]
- List of services launched on Data Proc cluster.
- ssh_
public_ Sequence[str]keys - List of SSH public keys distributed to the hosts of the cluster.
- properties Map<String>
- A set of key/value pairs used to configure cluster services.
- services List<String>
- List of services launched on Data Proc cluster.
- ssh
Public List<String>Keys - List of SSH public keys distributed to the hosts of the cluster.
GetDataprocClusterClusterConfigSubclusterSpec
- Autoscaling
Configs List<GetDataproc Cluster Cluster Config Subcluster Spec Autoscaling Config> - Optional autoscaling configuration for compute subclusters.
- Hosts
Count int - Number of hosts within Data Proc subcluster.
- Id string
- ID of the Data Proc subcluster.
- Name string
- The name of the Data Proc cluster.
- Resources
List<Get
Dataproc Cluster Cluster Config Subcluster Spec Resource> - Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
- Role string
- Role of the subcluster in the Data Proc cluster.
- Subnet
Id string - The ID of the subnet, to which hosts of the subcluster belong.
- Autoscaling
Configs []GetDataproc Cluster Cluster Config Subcluster Spec Autoscaling Config - Optional autoscaling configuration for compute subclusters.
- Hosts
Count int - Number of hosts within Data Proc subcluster.
- Id string
- ID of the Data Proc subcluster.
- Name string
- The name of the Data Proc cluster.
- Resources
[]Get
Dataproc Cluster Cluster Config Subcluster Spec Resource - Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
- Role string
- Role of the subcluster in the Data Proc cluster.
- Subnet
Id string - The ID of the subnet, to which hosts of the subcluster belong.
- autoscaling
Configs List<GetDataproc Cluster Cluster Config Subcluster Spec Autoscaling Config> - Optional autoscaling configuration for compute subclusters.
- hosts
Count Integer - Number of hosts within Data Proc subcluster.
- id String
- ID of the Data Proc subcluster.
- name String
- The name of the Data Proc cluster.
- resources
List<Get
Dataproc Cluster Cluster Config Subcluster Spec Resource> - Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
- role String
- Role of the subcluster in the Data Proc cluster.
- subnet
Id String - The ID of the subnet, to which hosts of the subcluster belong.
- autoscaling
Configs GetDataproc Cluster Cluster Config Subcluster Spec Autoscaling Config[] - Optional autoscaling configuration for compute subclusters.
- hosts
Count number - Number of hosts within Data Proc subcluster.
- id string
- ID of the Data Proc subcluster.
- name string
- The name of the Data Proc cluster.
- resources
Get
Dataproc Cluster Cluster Config Subcluster Spec Resource[] - Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
- role string
- Role of the subcluster in the Data Proc cluster.
- subnet
Id string - The ID of the subnet, to which hosts of the subcluster belong.
- autoscaling_
configs Sequence[GetDataproc Cluster Cluster Config Subcluster Spec Autoscaling Config] - Optional autoscaling configuration for compute subclusters.
- hosts_
count int - Number of hosts within Data Proc subcluster.
- id str
- ID of the Data Proc subcluster.
- name str
- The name of the Data Proc cluster.
- resources
Sequence[Get
Dataproc Cluster Cluster Config Subcluster Spec Resource] - Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
- role str
- Role of the subcluster in the Data Proc cluster.
- subnet_
id str - The ID of the subnet, to which hosts of the subcluster belong.
- autoscaling
Configs List<Property Map> - Optional autoscaling configuration for compute subclusters.
- hosts
Count Number - Number of hosts within Data Proc subcluster.
- id String
- ID of the Data Proc subcluster.
- name String
- The name of the Data Proc cluster.
- resources List<Property Map>
- Resources allocated to each host of the Data Proc subcluster. The structure is documented below.
- role String
- Role of the subcluster in the Data Proc cluster.
- subnet
Id String - The ID of the subnet, to which hosts of the subcluster belong.
GetDataprocClusterClusterConfigSubclusterSpecAutoscalingConfig
- Cpu
Utilization doubleTarget - Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
- Decommission
Timeout int - Timeout to gracefully decommission nodes during downscaling. In seconds.
- Max
Hosts intCount - Maximum number of nodes in autoscaling subclusters.
- Measurement
Duration int - Time in seconds allotted for averaging metrics.
- Preemptible bool
- Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see Preemptible Virtual Machines.
- Stabilization
Duration int - Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
- Warmup
Duration int - The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
- Cpu
Utilization float64Target - Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
- Decommission
Timeout int - Timeout to gracefully decommission nodes during downscaling. In seconds.
- Max
Hosts intCount - Maximum number of nodes in autoscaling subclusters.
- Measurement
Duration int - Time in seconds allotted for averaging metrics.
- Preemptible bool
- Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see Preemptible Virtual Machines.
- Stabilization
Duration int - Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
- Warmup
Duration int - The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
- cpu
Utilization DoubleTarget - Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
- decommission
Timeout Integer - Timeout to gracefully decommission nodes during downscaling. In seconds.
- max
Hosts IntegerCount - Maximum number of nodes in autoscaling subclusters.
- measurement
Duration Integer - Time in seconds allotted for averaging metrics.
- preemptible Boolean
- Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see Preemptible Virtual Machines.
- stabilization
Duration Integer - Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
- warmup
Duration Integer - The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
- cpu
Utilization numberTarget - Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
- decommission
Timeout number - Timeout to gracefully decommission nodes during downscaling. In seconds.
- max
Hosts numberCount - Maximum number of nodes in autoscaling subclusters.
- measurement
Duration number - Time in seconds allotted for averaging metrics.
- preemptible boolean
- Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see Preemptible Virtual Machines.
- stabilization
Duration number - Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
- warmup
Duration number - The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
- cpu_
utilization_ floattarget - Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
- decommission_
timeout int - Timeout to gracefully decommission nodes during downscaling. In seconds.
- max_
hosts_ intcount - Maximum number of nodes in autoscaling subclusters.
- measurement_
duration int - Time in seconds allotted for averaging metrics.
- preemptible bool
- Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see Preemptible Virtual Machines.
- stabilization_
duration int - Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
- warmup_
duration int - The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
- cpu
Utilization NumberTarget - Defines an autoscaling rule based on the average CPU utilization of the instance group. If not set default autoscaling metric will be used.
- decommission
Timeout Number - Timeout to gracefully decommission nodes during downscaling. In seconds.
- max
Hosts NumberCount - Maximum number of nodes in autoscaling subclusters.
- measurement
Duration Number - Time in seconds allotted for averaging metrics.
- preemptible Boolean
- Bool flag -- whether to use preemptible compute instances. Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time if their resources are needed by Compute. For more information, see Preemptible Virtual Machines.
- stabilization
Duration Number - Minimum amount of time in seconds allotted for monitoring before Instance Groups can reduce the number of instances in the group. During this time, the group size doesn't decrease, even if the new metric values indicate that it should.
- warmup
Duration Number - The warmup time of the instance in seconds. During this time, traffic is sent to the instance, but instance metrics are not collected.
GetDataprocClusterClusterConfigSubclusterSpecResource
- Disk
Size int - Volume of the storage available to a host, in gigabytes.
- Disk
Type stringId - Type of the storage of a host.
- Resource
Preset stringId - The ID of the preset for computational resources available to a host. All available presets are listed in the documentation.
- Disk
Size int - Volume of the storage available to a host, in gigabytes.
- Disk
Type stringId - Type of the storage of a host.
- Resource
Preset stringId - The ID of the preset for computational resources available to a host. All available presets are listed in the documentation.
- disk
Size Integer - Volume of the storage available to a host, in gigabytes.
- disk
Type StringId - Type of the storage of a host.
- resource
Preset StringId - The ID of the preset for computational resources available to a host. All available presets are listed in the documentation.
- disk
Size number - Volume of the storage available to a host, in gigabytes.
- disk
Type stringId - Type of the storage of a host.
- resource
Preset stringId - The ID of the preset for computational resources available to a host. All available presets are listed in the documentation.
- disk_
size int - Volume of the storage available to a host, in gigabytes.
- disk_
type_ strid - Type of the storage of a host.
- resource_
preset_ strid - The ID of the preset for computational resources available to a host. All available presets are listed in the documentation.
- disk
Size Number - Volume of the storage available to a host, in gigabytes.
- disk
Type StringId - Type of the storage of a host.
- resource
Preset StringId - The ID of the preset for computational resources available to a host. All available presets are listed in the documentation.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.