com.pulumi.aws.quicksight.kotlin.QuicksightFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.quicksight.kotlin
import com.pulumi.aws.quicksight.QuicksightFunctions.getAnalysisPlain
import com.pulumi.aws.quicksight.QuicksightFunctions.getDataSetPlain
import com.pulumi.aws.quicksight.QuicksightFunctions.getQuicksightAnalysisPlain
import com.pulumi.aws.quicksight.QuicksightFunctions.getQuicksightGroupPlain
import com.pulumi.aws.quicksight.QuicksightFunctions.getQuicksightUserPlain
import com.pulumi.aws.quicksight.QuicksightFunctions.getThemePlain
import com.pulumi.aws.quicksight.kotlin.inputs.GetAnalysisPlainArgs
import com.pulumi.aws.quicksight.kotlin.inputs.GetAnalysisPlainArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.GetDataSetPlainArgs
import com.pulumi.aws.quicksight.kotlin.inputs.GetDataSetPlainArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightAnalysisPlainArgs
import com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightAnalysisPlainArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightGroupPlainArgs
import com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightGroupPlainArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightUserPlainArgs
import com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightUserPlainArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.GetThemePlainArgs
import com.pulumi.aws.quicksight.kotlin.inputs.GetThemePlainArgsBuilder
import com.pulumi.aws.quicksight.kotlin.outputs.GetAnalysisResult
import com.pulumi.aws.quicksight.kotlin.outputs.GetDataSetResult
import com.pulumi.aws.quicksight.kotlin.outputs.GetQuicksightAnalysisResult
import com.pulumi.aws.quicksight.kotlin.outputs.GetQuicksightGroupResult
import com.pulumi.aws.quicksight.kotlin.outputs.GetQuicksightUserResult
import com.pulumi.aws.quicksight.kotlin.outputs.GetThemeResult
import kotlinx.coroutines.future.await
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.aws.quicksight.kotlin.outputs.GetAnalysisResult.Companion.toKotlin as getAnalysisResultToKotlin
import com.pulumi.aws.quicksight.kotlin.outputs.GetDataSetResult.Companion.toKotlin as getDataSetResultToKotlin
import com.pulumi.aws.quicksight.kotlin.outputs.GetQuicksightAnalysisResult.Companion.toKotlin as getQuicksightAnalysisResultToKotlin
import com.pulumi.aws.quicksight.kotlin.outputs.GetQuicksightGroupResult.Companion.toKotlin as getQuicksightGroupResultToKotlin
import com.pulumi.aws.quicksight.kotlin.outputs.GetQuicksightUserResult.Companion.toKotlin as getQuicksightUserResultToKotlin
import com.pulumi.aws.quicksight.kotlin.outputs.GetThemeResult.Companion.toKotlin as getThemeResultToKotlin
public object QuicksightFunctions {
/**
* Data source for managing an AWS QuickSight Analysis.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = aws.quicksight.getQuicksightAnalysis({
* analysisId: "example-id",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.get_quicksight_analysis(analysis_id="example-id")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = Aws.Quicksight.GetQuicksightAnalysis.Invoke(new()
* {
* AnalysisId = "example-id",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.GetQuicksightAnalysis(ctx, &quicksight.GetQuicksightAnalysisArgs{
* AnalysisId: "example-id",
* }, 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.aws.quicksight.QuicksightFunctions;
* import com.pulumi.aws.quicksight.inputs.GetQuicksightAnalysisArgs;
* 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 example = QuicksightFunctions.getQuicksightAnalysis(GetQuicksightAnalysisArgs.builder()
* .analysisId("example-id")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: aws:quicksight:getQuicksightAnalysis
* Arguments:
* analysisId: example-id
* ```
*
* @param argument A collection of arguments for invoking getAnalysis.
* @return A collection of values returned by getAnalysis.
*/
@Deprecated(
message = """
aws.quicksight/getanalysis.getAnalysis has been deprecated in favor of
aws.quicksight/getquicksightanalysis.getQuicksightAnalysis
""",
)
public suspend fun getAnalysis(argument: GetAnalysisPlainArgs): GetAnalysisResult =
getAnalysisResultToKotlin(getAnalysisPlain(argument.toJava()).await())
/**
* @see [getAnalysis].
* @param analysisId Identifier for the analysis.
* The following arguments are optional:
* @param awsAccountId AWS account ID.
* @param tags
* @return A collection of values returned by getAnalysis.
*/
@Deprecated(
message = """
aws.quicksight/getanalysis.getAnalysis has been deprecated in favor of
aws.quicksight/getquicksightanalysis.getQuicksightAnalysis
""",
)
public suspend fun getAnalysis(
analysisId: String,
awsAccountId: String? = null,
tags: Map? = null,
): GetAnalysisResult {
val argument = GetAnalysisPlainArgs(
analysisId = analysisId,
awsAccountId = awsAccountId,
tags = tags,
)
return getAnalysisResultToKotlin(getAnalysisPlain(argument.toJava()).await())
}
/**
* @see [getAnalysis].
* @param argument Builder for [com.pulumi.aws.quicksight.kotlin.inputs.GetAnalysisPlainArgs].
* @return A collection of values returned by getAnalysis.
*/
@Deprecated(
message = """
aws.quicksight/getanalysis.getAnalysis has been deprecated in favor of
aws.quicksight/getquicksightanalysis.getQuicksightAnalysis
""",
)
public suspend fun getAnalysis(argument: suspend GetAnalysisPlainArgsBuilder.() -> Unit): GetAnalysisResult {
val builder = GetAnalysisPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getAnalysisResultToKotlin(getAnalysisPlain(builtArgument.toJava()).await())
}
/**
* Data source for managing a QuickSight Data Set.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = aws.quicksight.getDataSet({
* dataSetId: "example-id",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.get_data_set(data_set_id="example-id")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = Aws.Quicksight.GetDataSet.Invoke(new()
* {
* DataSetId = "example-id",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.LookupDataSet(ctx, &quicksight.LookupDataSetArgs{
* DataSetId: "example-id",
* }, 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.aws.quicksight.QuicksightFunctions;
* import com.pulumi.aws.quicksight.inputs.GetDataSetArgs;
* 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 example = QuicksightFunctions.getDataSet(GetDataSetArgs.builder()
* .dataSetId("example-id")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: aws:quicksight:getDataSet
* Arguments:
* dataSetId: example-id
* ```
*
* @param argument A collection of arguments for invoking getDataSet.
* @return A collection of values returned by getDataSet.
*/
public suspend fun getDataSet(argument: GetDataSetPlainArgs): GetDataSetResult =
getDataSetResultToKotlin(getDataSetPlain(argument.toJava()).await())
/**
* @see [getDataSet].
* @param awsAccountId AWS account ID.
* @param dataSetId Identifier for the data set.
* The following arguments are optional:
* @param tags
* @param tagsAll
* @return A collection of values returned by getDataSet.
*/
public suspend fun getDataSet(
awsAccountId: String? = null,
dataSetId: String,
tags: Map? = null,
tagsAll: Map? = null,
): GetDataSetResult {
val argument = GetDataSetPlainArgs(
awsAccountId = awsAccountId,
dataSetId = dataSetId,
tags = tags,
tagsAll = tagsAll,
)
return getDataSetResultToKotlin(getDataSetPlain(argument.toJava()).await())
}
/**
* @see [getDataSet].
* @param argument Builder for [com.pulumi.aws.quicksight.kotlin.inputs.GetDataSetPlainArgs].
* @return A collection of values returned by getDataSet.
*/
public suspend fun getDataSet(argument: suspend GetDataSetPlainArgsBuilder.() -> Unit): GetDataSetResult {
val builder = GetDataSetPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDataSetResultToKotlin(getDataSetPlain(builtArgument.toJava()).await())
}
/**
* Data source for managing an AWS QuickSight Analysis.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = aws.quicksight.getQuicksightAnalysis({
* analysisId: "example-id",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.get_quicksight_analysis(analysis_id="example-id")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = Aws.Quicksight.GetQuicksightAnalysis.Invoke(new()
* {
* AnalysisId = "example-id",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.GetQuicksightAnalysis(ctx, &quicksight.GetQuicksightAnalysisArgs{
* AnalysisId: "example-id",
* }, 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.aws.quicksight.QuicksightFunctions;
* import com.pulumi.aws.quicksight.inputs.GetQuicksightAnalysisArgs;
* 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 example = QuicksightFunctions.getQuicksightAnalysis(GetQuicksightAnalysisArgs.builder()
* .analysisId("example-id")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: aws:quicksight:getQuicksightAnalysis
* Arguments:
* analysisId: example-id
* ```
*
* @param argument A collection of arguments for invoking getQuicksightAnalysis.
* @return A collection of values returned by getQuicksightAnalysis.
*/
public suspend fun getQuicksightAnalysis(argument: GetQuicksightAnalysisPlainArgs): GetQuicksightAnalysisResult =
getQuicksightAnalysisResultToKotlin(getQuicksightAnalysisPlain(argument.toJava()).await())
/**
* @see [getQuicksightAnalysis].
* @param analysisId Identifier for the analysis.
* The following arguments are optional:
* @param awsAccountId AWS account ID.
* @param tags
* @return A collection of values returned by getQuicksightAnalysis.
*/
public suspend fun getQuicksightAnalysis(
analysisId: String,
awsAccountId: String? = null,
tags: Map? = null,
): GetQuicksightAnalysisResult {
val argument = GetQuicksightAnalysisPlainArgs(
analysisId = analysisId,
awsAccountId = awsAccountId,
tags = tags,
)
return getQuicksightAnalysisResultToKotlin(getQuicksightAnalysisPlain(argument.toJava()).await())
}
/**
* @see [getQuicksightAnalysis].
* @param argument Builder for [com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightAnalysisPlainArgs].
* @return A collection of values returned by getQuicksightAnalysis.
*/
public suspend fun getQuicksightAnalysis(argument: suspend GetQuicksightAnalysisPlainArgsBuilder.() -> Unit): GetQuicksightAnalysisResult {
val builder = GetQuicksightAnalysisPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getQuicksightAnalysisResultToKotlin(getQuicksightAnalysisPlain(builtArgument.toJava()).await())
}
/**
* This data source can be used to fetch information about a specific
* QuickSight group. By using this data source, you can reference QuickSight group
* properties without having to hard code ARNs or unique IDs as input.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = aws.quicksight.getQuicksightGroup({
* groupName: "example",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.get_quicksight_group(group_name="example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = Aws.Quicksight.GetQuicksightGroup.Invoke(new()
* {
* GroupName = "example",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.GetQuicksightGroup(ctx, &quicksight.GetQuicksightGroupArgs{
* GroupName: "example",
* }, 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.aws.quicksight.QuicksightFunctions;
* import com.pulumi.aws.quicksight.inputs.GetQuicksightGroupArgs;
* 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 example = QuicksightFunctions.getQuicksightGroup(GetQuicksightGroupArgs.builder()
* .groupName("example")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: aws:quicksight:getQuicksightGroup
* Arguments:
* groupName: example
* ```
*
* @param argument A collection of arguments for invoking getQuicksightGroup.
* @return A collection of values returned by getQuicksightGroup.
*/
public suspend fun getQuicksightGroup(argument: GetQuicksightGroupPlainArgs): GetQuicksightGroupResult =
getQuicksightGroupResultToKotlin(getQuicksightGroupPlain(argument.toJava()).await())
/**
* @see [getQuicksightGroup].
* @param awsAccountId AWS account ID.
* @param groupName The name of the group that you want to match.
* The following arguments are optional:
* @param namespace QuickSight namespace. Defaults to `default`.
* @return A collection of values returned by getQuicksightGroup.
*/
public suspend fun getQuicksightGroup(
awsAccountId: String? = null,
groupName: String,
namespace: String? = null,
): GetQuicksightGroupResult {
val argument = GetQuicksightGroupPlainArgs(
awsAccountId = awsAccountId,
groupName = groupName,
namespace = namespace,
)
return getQuicksightGroupResultToKotlin(getQuicksightGroupPlain(argument.toJava()).await())
}
/**
* @see [getQuicksightGroup].
* @param argument Builder for [com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightGroupPlainArgs].
* @return A collection of values returned by getQuicksightGroup.
*/
public suspend fun getQuicksightGroup(argument: suspend GetQuicksightGroupPlainArgsBuilder.() -> Unit): GetQuicksightGroupResult {
val builder = GetQuicksightGroupPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getQuicksightGroupResultToKotlin(getQuicksightGroupPlain(builtArgument.toJava()).await())
}
/**
* This data source can be used to fetch information about a specific
* QuickSight user. By using this data source, you can reference QuickSight user
* properties without having to hard code ARNs or unique IDs as input.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = aws.quicksight.getQuicksightUser({
* userName: "example",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.get_quicksight_user(user_name="example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = Aws.Quicksight.GetQuicksightUser.Invoke(new()
* {
* UserName = "example",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.GetQuicksightUser(ctx, &quicksight.GetQuicksightUserArgs{
* UserName: "example",
* }, 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.aws.quicksight.QuicksightFunctions;
* import com.pulumi.aws.quicksight.inputs.GetQuicksightUserArgs;
* 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 example = QuicksightFunctions.getQuicksightUser(GetQuicksightUserArgs.builder()
* .userName("example")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: aws:quicksight:getQuicksightUser
* Arguments:
* userName: example
* ```
*
* @param argument A collection of arguments for invoking getQuicksightUser.
* @return A collection of values returned by getQuicksightUser.
*/
public suspend fun getQuicksightUser(argument: GetQuicksightUserPlainArgs): GetQuicksightUserResult =
getQuicksightUserResultToKotlin(getQuicksightUserPlain(argument.toJava()).await())
/**
* @see [getQuicksightUser].
* @param awsAccountId AWS account ID.
* @param namespace QuickSight namespace. Defaults to `default`.
* @param userName The name of the user that you want to match.
* The following arguments are optional:
* @return A collection of values returned by getQuicksightUser.
*/
public suspend fun getQuicksightUser(
awsAccountId: String? = null,
namespace: String? = null,
userName: String,
): GetQuicksightUserResult {
val argument = GetQuicksightUserPlainArgs(
awsAccountId = awsAccountId,
namespace = namespace,
userName = userName,
)
return getQuicksightUserResultToKotlin(getQuicksightUserPlain(argument.toJava()).await())
}
/**
* @see [getQuicksightUser].
* @param argument Builder for [com.pulumi.aws.quicksight.kotlin.inputs.GetQuicksightUserPlainArgs].
* @return A collection of values returned by getQuicksightUser.
*/
public suspend fun getQuicksightUser(argument: suspend GetQuicksightUserPlainArgsBuilder.() -> Unit): GetQuicksightUserResult {
val builder = GetQuicksightUserPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getQuicksightUserResultToKotlin(getQuicksightUserPlain(builtArgument.toJava()).await())
}
/**
* Data source for managing an AWS QuickSight Theme.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = aws.quicksight.getTheme({
* themeId: "example",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.quicksight.get_theme(theme_id="example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = Aws.Quicksight.GetTheme.Invoke(new()
* {
* ThemeId = "example",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/quicksight"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := quicksight.LookupTheme(ctx, &quicksight.LookupThemeArgs{
* ThemeId: "example",
* }, 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.aws.quicksight.QuicksightFunctions;
* import com.pulumi.aws.quicksight.inputs.GetThemeArgs;
* 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 example = QuicksightFunctions.getTheme(GetThemeArgs.builder()
* .themeId("example")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: aws:quicksight:getTheme
* Arguments:
* themeId: example
* ```
*
* @param argument A collection of arguments for invoking getTheme.
* @return A collection of values returned by getTheme.
*/
public suspend fun getTheme(argument: GetThemePlainArgs): GetThemeResult =
getThemeResultToKotlin(getThemePlain(argument.toJava()).await())
/**
* @see [getTheme].
* @param awsAccountId AWS account ID.
* @param tags A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
* @param themeId Identifier of the theme.
* The following arguments are optional:
* @return A collection of values returned by getTheme.
*/
public suspend fun getTheme(
awsAccountId: String? = null,
tags: Map? = null,
themeId: String,
): GetThemeResult {
val argument = GetThemePlainArgs(
awsAccountId = awsAccountId,
tags = tags,
themeId = themeId,
)
return getThemeResultToKotlin(getThemePlain(argument.toJava()).await())
}
/**
* @see [getTheme].
* @param argument Builder for [com.pulumi.aws.quicksight.kotlin.inputs.GetThemePlainArgs].
* @return A collection of values returned by getTheme.
*/
public suspend fun getTheme(argument: suspend GetThemePlainArgsBuilder.() -> Unit): GetThemeResult {
val builder = GetThemePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getThemeResultToKotlin(getThemePlain(builtArgument.toJava()).await())
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy