All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.logging.kotlin.LoggingFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.logging.kotlin

import com.pulumi.gcp.logging.LoggingFunctions.getFolderSettingsPlain
import com.pulumi.gcp.logging.LoggingFunctions.getOrganizationSettingsPlain
import com.pulumi.gcp.logging.LoggingFunctions.getProjectCmekSettingsPlain
import com.pulumi.gcp.logging.LoggingFunctions.getProjectSettingsPlain
import com.pulumi.gcp.logging.LoggingFunctions.getSinkPlain
import com.pulumi.gcp.logging.kotlin.inputs.GetFolderSettingsPlainArgs
import com.pulumi.gcp.logging.kotlin.inputs.GetFolderSettingsPlainArgsBuilder
import com.pulumi.gcp.logging.kotlin.inputs.GetOrganizationSettingsPlainArgs
import com.pulumi.gcp.logging.kotlin.inputs.GetOrganizationSettingsPlainArgsBuilder
import com.pulumi.gcp.logging.kotlin.inputs.GetProjectCmekSettingsPlainArgs
import com.pulumi.gcp.logging.kotlin.inputs.GetProjectCmekSettingsPlainArgsBuilder
import com.pulumi.gcp.logging.kotlin.inputs.GetProjectSettingsPlainArgs
import com.pulumi.gcp.logging.kotlin.inputs.GetProjectSettingsPlainArgsBuilder
import com.pulumi.gcp.logging.kotlin.inputs.GetSinkPlainArgs
import com.pulumi.gcp.logging.kotlin.inputs.GetSinkPlainArgsBuilder
import com.pulumi.gcp.logging.kotlin.outputs.GetFolderSettingsResult
import com.pulumi.gcp.logging.kotlin.outputs.GetOrganizationSettingsResult
import com.pulumi.gcp.logging.kotlin.outputs.GetProjectCmekSettingsResult
import com.pulumi.gcp.logging.kotlin.outputs.GetProjectSettingsResult
import com.pulumi.gcp.logging.kotlin.outputs.GetSinkResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.logging.kotlin.outputs.GetFolderSettingsResult.Companion.toKotlin as getFolderSettingsResultToKotlin
import com.pulumi.gcp.logging.kotlin.outputs.GetOrganizationSettingsResult.Companion.toKotlin as getOrganizationSettingsResultToKotlin
import com.pulumi.gcp.logging.kotlin.outputs.GetProjectCmekSettingsResult.Companion.toKotlin as getProjectCmekSettingsResultToKotlin
import com.pulumi.gcp.logging.kotlin.outputs.GetProjectSettingsResult.Companion.toKotlin as getProjectSettingsResultToKotlin
import com.pulumi.gcp.logging.kotlin.outputs.GetSinkResult.Companion.toKotlin as getSinkResultToKotlin

public object LoggingFunctions {
    /**
     * Describes the settings associated with a folder.
     * To get more information about LoggingFolderSettings, see:
     * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/folders/getSettings)
     * * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
     * ## Example Usage
     * ### Logging Folder Settings Basic
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const settings = gcp.logging.getFolderSettings({
     *     folder: "my-folder-name",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * settings = gcp.logging.get_folder_settings(folder="my-folder-name")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var settings = Gcp.Logging.GetFolderSettings.Invoke(new()
     *     {
     *         Folder = "my-folder-name",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := logging.LookupFolderSettings(ctx, &logging.LookupFolderSettingsArgs{
     * 			Folder: "my-folder-name",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.gcp.logging.LoggingFunctions;
     * import com.pulumi.gcp.logging.inputs.GetFolderSettingsArgs;
     * 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 settings = LoggingFunctions.getFolderSettings(GetFolderSettingsArgs.builder()
     *             .folder("my-folder-name")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   settings:
     *     fn::invoke:
     *       Function: gcp:logging:getFolderSettings
     *       Arguments:
     *         folder: my-folder-name
     * ```
     * 
     * @param argument A collection of arguments for invoking getFolderSettings.
     * @return A collection of values returned by getFolderSettings.
     */
    public suspend fun getFolderSettings(argument: GetFolderSettingsPlainArgs): GetFolderSettingsResult =
        getFolderSettingsResultToKotlin(getFolderSettingsPlain(argument.toJava()).await())

    /**
     * @see [getFolderSettings].
     * @param folder The ID of the folder for which to retrieve settings.
     * @return A collection of values returned by getFolderSettings.
     */
    public suspend fun getFolderSettings(folder: String): GetFolderSettingsResult {
        val argument = GetFolderSettingsPlainArgs(
            folder = folder,
        )
        return getFolderSettingsResultToKotlin(getFolderSettingsPlain(argument.toJava()).await())
    }

    /**
     * @see [getFolderSettings].
     * @param argument Builder for [com.pulumi.gcp.logging.kotlin.inputs.GetFolderSettingsPlainArgs].
     * @return A collection of values returned by getFolderSettings.
     */
    public suspend fun getFolderSettings(argument: suspend GetFolderSettingsPlainArgsBuilder.() -> Unit): GetFolderSettingsResult {
        val builder = GetFolderSettingsPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFolderSettingsResultToKotlin(getFolderSettingsPlain(builtArgument.toJava()).await())
    }

    /**
     * Describes the settings associated with a organization.
     * To get more information about LoggingOrganizationSettings, see:
     * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/organizations/getSettings)
     * * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
     * ## Example Usage
     * ### Logging Organization Settings Basic
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const settings = gcp.logging.getOrganizationSettings({
     *     organization: "my-organization-name",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * settings = gcp.logging.get_organization_settings(organization="my-organization-name")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var settings = Gcp.Logging.GetOrganizationSettings.Invoke(new()
     *     {
     *         Organization = "my-organization-name",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := logging.LookupOrganizationSettings(ctx, &logging.LookupOrganizationSettingsArgs{
     * 			Organization: "my-organization-name",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.gcp.logging.LoggingFunctions;
     * import com.pulumi.gcp.logging.inputs.GetOrganizationSettingsArgs;
     * 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 settings = LoggingFunctions.getOrganizationSettings(GetOrganizationSettingsArgs.builder()
     *             .organization("my-organization-name")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   settings:
     *     fn::invoke:
     *       Function: gcp:logging:getOrganizationSettings
     *       Arguments:
     *         organization: my-organization-name
     * ```
     * 
     * @param argument A collection of arguments for invoking getOrganizationSettings.
     * @return A collection of values returned by getOrganizationSettings.
     */
    public suspend fun getOrganizationSettings(argument: GetOrganizationSettingsPlainArgs): GetOrganizationSettingsResult =
        getOrganizationSettingsResultToKotlin(getOrganizationSettingsPlain(argument.toJava()).await())

    /**
     * @see [getOrganizationSettings].
     * @param organization The ID of the organization for which to retrieve settings.
     * @return A collection of values returned by getOrganizationSettings.
     */
    public suspend fun getOrganizationSettings(organization: String): GetOrganizationSettingsResult {
        val argument = GetOrganizationSettingsPlainArgs(
            organization = organization,
        )
        return getOrganizationSettingsResultToKotlin(getOrganizationSettingsPlain(argument.toJava()).await())
    }

    /**
     * @see [getOrganizationSettings].
     * @param argument Builder for [com.pulumi.gcp.logging.kotlin.inputs.GetOrganizationSettingsPlainArgs].
     * @return A collection of values returned by getOrganizationSettings.
     */
    public suspend fun getOrganizationSettings(argument: suspend GetOrganizationSettingsPlainArgsBuilder.() -> Unit): GetOrganizationSettingsResult {
        val builder = GetOrganizationSettingsPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getOrganizationSettingsResultToKotlin(getOrganizationSettingsPlain(builtArgument.toJava()).await())
    }

    /**
     * Describes the customer-managed encryption key (CMEK) settings associated with a project.
     * To get more information about Service, see:
     * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getCmekSettings)
     * * [Enable CMEK](https://cloud.google.com/logging/docs/routing/managed-encryption-storage#enable).
     * ## Example Usage
     * ### Logging Project Cmek Settings Basic
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const cmekSettings = gcp.logging.getProjectCmekSettings({
     *     project: "my-project-name",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * cmek_settings = gcp.logging.get_project_cmek_settings(project="my-project-name")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var cmekSettings = Gcp.Logging.GetProjectCmekSettings.Invoke(new()
     *     {
     *         Project = "my-project-name",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := logging.GetProjectCmekSettings(ctx, &logging.GetProjectCmekSettingsArgs{
     * 			Project: "my-project-name",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.gcp.logging.LoggingFunctions;
     * import com.pulumi.gcp.logging.inputs.GetProjectCmekSettingsArgs;
     * 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 cmekSettings = LoggingFunctions.getProjectCmekSettings(GetProjectCmekSettingsArgs.builder()
     *             .project("my-project-name")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   cmekSettings:
     *     fn::invoke:
     *       Function: gcp:logging:getProjectCmekSettings
     *       Arguments:
     *         project: my-project-name
     * ```
     * 
     * @param argument A collection of arguments for invoking getProjectCmekSettings.
     * @return A collection of values returned by getProjectCmekSettings.
     */
    public suspend fun getProjectCmekSettings(argument: GetProjectCmekSettingsPlainArgs): GetProjectCmekSettingsResult =
        getProjectCmekSettingsResultToKotlin(getProjectCmekSettingsPlain(argument.toJava()).await())

    /**
     * @see [getProjectCmekSettings].
     * @param kmsKeyName The resource name for the configured Cloud KMS key.
     * KMS key name format:
     * `'projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]'`
     * To enable CMEK for the bucket, set this field to a valid kmsKeyName for which the associated service account has the required cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
     * The Cloud KMS key used by the bucket can be updated by changing the kmsKeyName to a new valid key name. Encryption operations that are in progress will be completed with the key that was in use when they started. Decryption operations will be completed using the key that was used at the time of encryption unless access to that key has been revoked.
     * See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/routing/managed-encryption-storage) for more information.
     * @param project The ID of the project.
     * @return A collection of values returned by getProjectCmekSettings.
     */
    public suspend fun getProjectCmekSettings(kmsKeyName: String? = null, project: String): GetProjectCmekSettingsResult {
        val argument = GetProjectCmekSettingsPlainArgs(
            kmsKeyName = kmsKeyName,
            project = project,
        )
        return getProjectCmekSettingsResultToKotlin(getProjectCmekSettingsPlain(argument.toJava()).await())
    }

    /**
     * @see [getProjectCmekSettings].
     * @param argument Builder for [com.pulumi.gcp.logging.kotlin.inputs.GetProjectCmekSettingsPlainArgs].
     * @return A collection of values returned by getProjectCmekSettings.
     */
    public suspend fun getProjectCmekSettings(argument: suspend GetProjectCmekSettingsPlainArgsBuilder.() -> Unit): GetProjectCmekSettingsResult {
        val builder = GetProjectCmekSettingsPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getProjectCmekSettingsResultToKotlin(getProjectCmekSettingsPlain(builtArgument.toJava()).await())
    }

    /**
     * Describes the settings associated with a project.
     * To get more information about LoggingProjectSettings, see:
     * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects/getSettings)
     * * [Configure default settings for organizations and folders](https://cloud.google.com/logging/docs/default-settings).
     * ## Example Usage
     * ### Logging Project Settings Basic
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const settings = gcp.logging.getProjectSettings({
     *     project: "my-project-name",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * settings = gcp.logging.get_project_settings(project="my-project-name")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var settings = Gcp.Logging.GetProjectSettings.Invoke(new()
     *     {
     *         Project = "my-project-name",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := logging.GetProjectSettings(ctx, &logging.GetProjectSettingsArgs{
     * 			Project: "my-project-name",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.gcp.logging.LoggingFunctions;
     * import com.pulumi.gcp.logging.inputs.GetProjectSettingsArgs;
     * 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 settings = LoggingFunctions.getProjectSettings(GetProjectSettingsArgs.builder()
     *             .project("my-project-name")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   settings:
     *     fn::invoke:
     *       Function: gcp:logging:getProjectSettings
     *       Arguments:
     *         project: my-project-name
     * ```
     * 
     * @param argument A collection of arguments for invoking getProjectSettings.
     * @return A collection of values returned by getProjectSettings.
     */
    public suspend fun getProjectSettings(argument: GetProjectSettingsPlainArgs): GetProjectSettingsResult =
        getProjectSettingsResultToKotlin(getProjectSettingsPlain(argument.toJava()).await())

    /**
     * @see [getProjectSettings].
     * @param project The ID of the project for which to retrieve settings.
     * @return A collection of values returned by getProjectSettings.
     */
    public suspend fun getProjectSettings(project: String): GetProjectSettingsResult {
        val argument = GetProjectSettingsPlainArgs(
            project = project,
        )
        return getProjectSettingsResultToKotlin(getProjectSettingsPlain(argument.toJava()).await())
    }

    /**
     * @see [getProjectSettings].
     * @param argument Builder for [com.pulumi.gcp.logging.kotlin.inputs.GetProjectSettingsPlainArgs].
     * @return A collection of values returned by getProjectSettings.
     */
    public suspend fun getProjectSettings(argument: suspend GetProjectSettingsPlainArgsBuilder.() -> Unit): GetProjectSettingsResult {
        val builder = GetProjectSettingsPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getProjectSettingsResultToKotlin(getProjectSettingsPlain(builtArgument.toJava()).await())
    }

    /**
     * Use this data source to get a project, folder, organization or billing account logging sink details.
     * To get more information about Service, see:
     * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/sinks)
     * ## Example Usage
     * ### Retrieve Project Logging Sink Basic
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const project-sink = gcp.logging.getSink({
     *     id: "projects/0123456789/sinks/my-sink-name",
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * project_sink = gcp.logging.get_sink(id="projects/0123456789/sinks/my-sink-name")
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var project_sink = Gcp.Logging.GetSink.Invoke(new()
     *     {
     *         Id = "projects/0123456789/sinks/my-sink-name",
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/logging"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := logging.GetSink(ctx, &logging.GetSinkArgs{
     * 			Id: "projects/0123456789/sinks/my-sink-name",
     * 		}, nil)
     * 		if err != nil {
     * 			return err
     * 		}
     * 		return nil
     * 	})
     * }
     * ```
     * ```java
     * package generated_program;
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.gcp.logging.LoggingFunctions;
     * import com.pulumi.gcp.logging.inputs.GetSinkArgs;
     * 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 project-sink = LoggingFunctions.getSink(GetSinkArgs.builder()
     *             .id("projects/0123456789/sinks/my-sink-name")
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   project-sink:
     *     fn::invoke:
     *       Function: gcp:logging:getSink
     *       Arguments:
     *         id: projects/0123456789/sinks/my-sink-name
     * ```
     * 
     * @param argument A collection of arguments for invoking getSink.
     * @return A collection of values returned by getSink.
     */
    public suspend fun getSink(argument: GetSinkPlainArgs): GetSinkResult =
        getSinkResultToKotlin(getSinkPlain(argument.toJava()).await())

    /**
     * @see [getSink].
     * @param id The identifier for the resource.
     * Examples:
     * - `projects/[PROJECT_ID]/sinks/[SINK_NAME]`
     * - `organizations/[ORGANIZATION_ID]/sinks/[SINK_NAME]`
     * -  `billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_NAME]`
     * - `folders/[FOLDER_ID]/sinks/[SINK_NAME]`
     * @return A collection of values returned by getSink.
     */
    public suspend fun getSink(id: String): GetSinkResult {
        val argument = GetSinkPlainArgs(
            id = id,
        )
        return getSinkResultToKotlin(getSinkPlain(argument.toJava()).await())
    }

    /**
     * @see [getSink].
     * @param argument Builder for [com.pulumi.gcp.logging.kotlin.inputs.GetSinkPlainArgs].
     * @return A collection of values returned by getSink.
     */
    public suspend fun getSink(argument: suspend GetSinkPlainArgsBuilder.() -> Unit): GetSinkResult {
        val builder = GetSinkPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getSinkResultToKotlin(getSinkPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy