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.
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.finspace.kotlin
import com.pulumi.aws.finspace.KxDataviewArgs.builder
import com.pulumi.aws.finspace.kotlin.inputs.KxDataviewSegmentConfigurationArgs
import com.pulumi.aws.finspace.kotlin.inputs.KxDataviewSegmentConfigurationArgsBuilder
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.Boolean
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 an AWS FinSpace Kx Dataview.
* ## Example Usage
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.finspace.KxDataview("example", {
* name: "my-tf-kx-dataview",
* environmentId: exampleAwsFinspaceKxEnvironment.id,
* databaseName: exampleAwsFinspaceKxDatabase.name,
* availabilityZoneId: "use1-az2",
* description: "Terraform managed Kx Dataview",
* azMode: "SINGLE",
* autoUpdate: true,
* segmentConfigurations: [{
* volumeName: exampleAwsFinspaceKxVolume.name,
* dbPaths: ["/*"],
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.finspace.KxDataview("example",
* name="my-tf-kx-dataview",
* environment_id=example_aws_finspace_kx_environment["id"],
* database_name=example_aws_finspace_kx_database["name"],
* availability_zone_id="use1-az2",
* description="Terraform managed Kx Dataview",
* az_mode="SINGLE",
* auto_update=True,
* segment_configurations=[{
* "volume_name": example_aws_finspace_kx_volume["name"],
* "db_paths": ["/*"],
* }])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.FinSpace.KxDataview("example", new()
* {
* Name = "my-tf-kx-dataview",
* EnvironmentId = exampleAwsFinspaceKxEnvironment.Id,
* DatabaseName = exampleAwsFinspaceKxDatabase.Name,
* AvailabilityZoneId = "use1-az2",
* Description = "Terraform managed Kx Dataview",
* AzMode = "SINGLE",
* AutoUpdate = true,
* SegmentConfigurations = new[]
* {
* new Aws.FinSpace.Inputs.KxDataviewSegmentConfigurationArgs
* {
* VolumeName = exampleAwsFinspaceKxVolume.Name,
* DbPaths = new[]
* {
* "/*",
* },
* },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := finspace.NewKxDataview(ctx, "example", &finspace.KxDataviewArgs{
* Name: pulumi.String("my-tf-kx-dataview"),
* EnvironmentId: pulumi.Any(exampleAwsFinspaceKxEnvironment.Id),
* DatabaseName: pulumi.Any(exampleAwsFinspaceKxDatabase.Name),
* AvailabilityZoneId: pulumi.String("use1-az2"),
* Description: pulumi.String("Terraform managed Kx Dataview"),
* AzMode: pulumi.String("SINGLE"),
* AutoUpdate: pulumi.Bool(true),
* SegmentConfigurations: finspace.KxDataviewSegmentConfigurationArray{
* &finspace.KxDataviewSegmentConfigurationArgs{
* VolumeName: pulumi.Any(exampleAwsFinspaceKxVolume.Name),
* DbPaths: pulumi.StringArray{
* pulumi.String("/*"),
* },
* },
* },
* })
* 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.finspace.KxDataview;
* import com.pulumi.aws.finspace.KxDataviewArgs;
* import com.pulumi.aws.finspace.inputs.KxDataviewSegmentConfigurationArgs;
* 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 example = new KxDataview("example", KxDataviewArgs.builder()
* .name("my-tf-kx-dataview")
* .environmentId(exampleAwsFinspaceKxEnvironment.id())
* .databaseName(exampleAwsFinspaceKxDatabase.name())
* .availabilityZoneId("use1-az2")
* .description("Terraform managed Kx Dataview")
* .azMode("SINGLE")
* .autoUpdate(true)
* .segmentConfigurations(KxDataviewSegmentConfigurationArgs.builder()
* .volumeName(exampleAwsFinspaceKxVolume.name())
* .dbPaths("/*")
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:finspace:KxDataview
* properties:
* name: my-tf-kx-dataview
* environmentId: ${exampleAwsFinspaceKxEnvironment.id}
* databaseName: ${exampleAwsFinspaceKxDatabase.name}
* availabilityZoneId: use1-az2
* description: Terraform managed Kx Dataview
* azMode: SINGLE
* autoUpdate: true
* segmentConfigurations:
* - volumeName: ${exampleAwsFinspaceKxVolume.name}
* dbPaths:
* - /*
* ```
*
* ## Import
* Using `pulumi import`, import an AWS FinSpace Kx Cluster using the `id` (environment ID and cluster name, comma-delimited). For example:
* ```sh
* $ pulumi import aws:finspace/kxDataview:KxDataview example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-database,my-tf-kx-dataview
* ```
* @property autoUpdate The option to specify whether you want to apply all the future additions and corrections automatically to the dataview, when you ingest new changesets. The default value is false.
* @property availabilityZoneId The identifier of the availability zones. If attaching a volume, the volume must be in the same availability zone as the dataview that you are attaching to.
* @property azMode The number of availability zones you want to assign per cluster. This can be one of the following:
* * `SINGLE` - Assigns one availability zone per cluster.
* * `MULTI` - Assigns all the availability zones per cluster.
* @property changesetId A unique identifier of the changeset of the database that you want to use to ingest data.
* @property databaseName The name of the database where you want to create a dataview.
* @property description A description for the dataview.
* @property environmentId Unique identifier for the KX environment.
* @property name A unique identifier for the dataview.
* The following arguments are optional:
* @property readWrite The option to specify whether you want to make the dataview writable to perform database maintenance. The following are some considerations related to writable dataviews.
* * You cannot create partial writable dataviews. When you create writeable dataviews you must provide the entire database path. You cannot perform updates on a writeable dataview. Hence, `auto_update` must be set as `false` if `read_write` is `true` for a dataview.
* * You must also use a unique volume for creating a writeable dataview. So, if you choose a volume that is already in use by another dataview, the dataview creation fails.
* * Once you create a dataview as writeable, you cannot change it to read-only. So, you cannot update the `read_write` parameter later.
* @property segmentConfigurations The configuration that contains the database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume. If you do not explicitly specify any database path for a volume, they are accessible from the cluster through the default S3/object store segment. See segment_configurations below.
* @property tags Key-value mapping 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.
* */*/*/*/*/*/
*/
public data class KxDataviewArgs(
public val autoUpdate: Output? = null,
public val availabilityZoneId: Output? = null,
public val azMode: Output? = null,
public val changesetId: Output? = null,
public val databaseName: Output? = null,
public val description: Output? = null,
public val environmentId: Output? = null,
public val name: Output? = null,
public val readWrite: Output? = null,
public val segmentConfigurations: Output>? = null,
public val tags: Output