Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.quicksight.kotlin
import com.pulumi.aws.quicksight.DataSourceArgs.builder
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceCredentialsArgs
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceCredentialsArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceParametersArgs
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceParametersArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourcePermissionArgs
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourcePermissionArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceSslPropertiesArgs
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceSslPropertiesArgsBuilder
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceVpcConnectionPropertiesArgs
import com.pulumi.aws.quicksight.kotlin.inputs.DataSourceVpcConnectionPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Resource for managing QuickSight Data Source
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const _default = new aws.quicksight.DataSource("default", {
* dataSourceId: "example-id",
* name: "My Cool Data in S3",
* parameters: {
* s3: {
* manifestFileLocation: {
* bucket: "my-bucket",
* key: "path/to/manifest.json",
* },
* },
* },
* type: "S3",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* default = aws.quicksight.DataSource("default",
* data_source_id="example-id",
* name="My Cool Data in S3",
* parameters={
* "s3": {
* "manifest_file_location": {
* "bucket": "my-bucket",
* "key": "path/to/manifest.json",
* },
* },
* },
* type="S3")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var @default = new Aws.Quicksight.DataSource("default", new()
* {
* DataSourceId = "example-id",
* Name = "My Cool Data in S3",
* Parameters = new Aws.Quicksight.Inputs.DataSourceParametersArgs
* {
* S3 = new Aws.Quicksight.Inputs.DataSourceParametersS3Args
* {
* ManifestFileLocation = new Aws.Quicksight.Inputs.DataSourceParametersS3ManifestFileLocationArgs
* {
* Bucket = "my-bucket",
* Key = "path/to/manifest.json",
* },
* },
* },
* Type = "S3",
* });
* });
* ```
* ```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.NewDataSource(ctx, "default", &quicksight.DataSourceArgs{
* DataSourceId: pulumi.String("example-id"),
* Name: pulumi.String("My Cool Data in S3"),
* Parameters: &quicksight.DataSourceParametersArgs{
* S3: &quicksight.DataSourceParametersS3Args{
* ManifestFileLocation: &quicksight.DataSourceParametersS3ManifestFileLocationArgs{
* Bucket: pulumi.String("my-bucket"),
* Key: pulumi.String("path/to/manifest.json"),
* },
* },
* },
* Type: pulumi.String("S3"),
* })
* 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.DataSource;
* import com.pulumi.aws.quicksight.DataSourceArgs;
* import com.pulumi.aws.quicksight.inputs.DataSourceParametersArgs;
* import com.pulumi.aws.quicksight.inputs.DataSourceParametersS3Args;
* import com.pulumi.aws.quicksight.inputs.DataSourceParametersS3ManifestFileLocationArgs;
* 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) {
* var default_ = new DataSource("default", DataSourceArgs.builder()
* .dataSourceId("example-id")
* .name("My Cool Data in S3")
* .parameters(DataSourceParametersArgs.builder()
* .s3(DataSourceParametersS3Args.builder()
* .manifestFileLocation(DataSourceParametersS3ManifestFileLocationArgs.builder()
* .bucket("my-bucket")
* .key("path/to/manifest.json")
* .build())
* .build())
* .build())
* .type("S3")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: aws:quicksight:DataSource
* properties:
* dataSourceId: example-id
* name: My Cool Data in S3
* parameters:
* s3:
* manifestFileLocation:
* bucket: my-bucket
* key: path/to/manifest.json
* type: S3
* ```
*
* ## Import
* Using `pulumi import`, import a QuickSight data source using the AWS account ID, and data source ID separated by a slash (`/`). For example:
* ```sh
* $ pulumi import aws:quicksight/dataSource:DataSource example 123456789123/my-data-source-id
* ```
* @property awsAccountId The ID for the AWS account that the data source is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.
* @property credentials The credentials Amazon QuickSight uses to connect to your underlying source. Currently, only credentials based on user name and password are supported. See Credentials below for more details.
* @property dataSourceId An identifier for the data source.
* @property name A name for the data source, maximum of 128 characters.
* @property parameters The parameters used to connect to this data source (exactly one).
* @property permissions A set of resource permissions on the data source. Maximum of 64 items. See Permission below for more details.
* @property sslProperties Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source. See SSL Properties below for more details.
* @property tags Key-value map of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
* @property type The type of the data source. See the [AWS Documentation](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateDataSource.html#QS-CreateDataSource-request-Type) for the complete list of valid values.
* The following arguments are optional:
* @property vpcConnectionProperties Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. See VPC Connection Properties below for more details.
*/
public data class DataSourceArgs(
public val awsAccountId: Output? = null,
public val credentials: Output? = null,
public val dataSourceId: Output? = null,
public val name: Output? = null,
public val parameters: Output? = null,
public val permissions: Output>? = null,
public val sslProperties: Output? = null,
public val tags: Output