Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
Get attributes used by provider to configure client connection.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var client = Output.Create(Yandex.GetClientConfig.InvokeAsync());
var kubernetes = Output.Create(Yandex.GetKubernetesCluster.InvokeAsync(new Yandex.GetKubernetesClusterArgs
{
Name = "kubernetes",
}));
}
}
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 {
_, err := yandex.GetClientConfig(ctx, nil, nil)
if err != nil {
return err
}
opt0 := "kubernetes"
_, err = yandex.LookupKubernetesCluster(ctx, &GetKubernetesClusterArgs{
Name: &opt0,
}, nil)
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const client = yandex.getClientConfig({});
const kubernetes = yandex.getKubernetesCluster({
name: "kubernetes",
});
import pulumi
import pulumi_yandex as yandex
client = yandex.get_client_config()
kubernetes = yandex.get_kubernetes_cluster(name="kubernetes")
Example coming soon!
Using getClientConfig
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 getClientConfig(opts?: InvokeOptions): Promise<GetClientConfigResult>
function getClientConfigOutput(opts?: InvokeOptions): Output<GetClientConfigResult>def get_client_config(opts: Optional[InvokeOptions] = None) -> GetClientConfigResult
def get_client_config_output(opts: Optional[InvokeOptions] = None) -> Output[GetClientConfigResult]func GetClientConfig(ctx *Context, opts ...InvokeOption) (*GetClientConfigResult, error)
func GetClientConfigOutput(ctx *Context, opts ...InvokeOption) GetClientConfigResultOutput> Note: This function is named GetClientConfig in the Go SDK.
public static class GetClientConfig
{
public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetClientConfigResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetClientConfigResult> getClientConfig(InvokeOptions options)
public static Output<GetClientConfigResult> getClientConfig(InvokeOptions options)
fn::invoke:
function: yandex:index/getClientConfig:getClientConfig
arguments:
# arguments dictionarygetClientConfig Result
The following output properties are available:
- Cloud
Id string - The ID of the cloud that the provider is connecting to.
- Folder
Id string - The ID of the folder in which we operate.
- Iam
Token string - A short-lived token that can be used for authentication in a Kubernetes cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Zone string
- The default availability zone.
- Cloud
Id string - The ID of the cloud that the provider is connecting to.
- Folder
Id string - The ID of the folder in which we operate.
- Iam
Token string - A short-lived token that can be used for authentication in a Kubernetes cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Zone string
- The default availability zone.
- cloud
Id String - The ID of the cloud that the provider is connecting to.
- folder
Id String - The ID of the folder in which we operate.
- iam
Token String - A short-lived token that can be used for authentication in a Kubernetes cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- zone String
- The default availability zone.
- cloud
Id string - The ID of the cloud that the provider is connecting to.
- folder
Id string - The ID of the folder in which we operate.
- iam
Token string - A short-lived token that can be used for authentication in a Kubernetes cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- zone string
- The default availability zone.
- cloud_
id str - The ID of the cloud that the provider is connecting to.
- folder_
id str - The ID of the folder in which we operate.
- iam_
token str - A short-lived token that can be used for authentication in a Kubernetes cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- zone str
- The default availability zone.
- cloud
Id String - The ID of the cloud that the provider is connecting to.
- folder
Id String - The ID of the folder in which we operate.
- iam
Token String - A short-lived token that can be used for authentication in a Kubernetes cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- zone String
- The default availability zone.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandexTerraform Provider.
Viewing docs for Yandex v0.13.0
published on Tuesday, Feb 22, 2022 by Pulumi
published on Tuesday, Feb 22, 2022 by Pulumi
