com.pulumi.aws.dynamodb.kotlin.ContributorInsightsArgs.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.dynamodb.kotlin
import com.pulumi.aws.dynamodb.ContributorInsightsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides a DynamoDB contributor insights resource
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.dynamodb.ContributorInsights("test", {tableName: "ExampleTableName"});
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.dynamodb.ContributorInsights("test", table_name="ExampleTableName")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.DynamoDB.ContributorInsights("test", new()
* {
* TableName = "ExampleTableName",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/dynamodb"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := dynamodb.NewContributorInsights(ctx, "test", &dynamodb.ContributorInsightsArgs{
* TableName: pulumi.String("ExampleTableName"),
* })
* 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.dynamodb.ContributorInsights;
* import com.pulumi.aws.dynamodb.ContributorInsightsArgs;
* 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 test = new ContributorInsights("test", ContributorInsightsArgs.builder()
* .tableName("ExampleTableName")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:dynamodb:ContributorInsights
* properties:
* tableName: ExampleTableName
* ```
*
* ## Import
* Using `pulumi import`, import `aws_dynamodb_contributor_insights` using the format `name:table_name/index:index_name`, followed by the account number. For example:
* ```sh
* $ pulumi import aws:dynamodb/contributorInsights:ContributorInsights test name:ExampleTableName/index:ExampleIndexName/123456789012
* ```
* @property indexName The global secondary index name
* @property tableName The name of the table to enable contributor insights
*/
public data class ContributorInsightsArgs(
public val indexName: Output? = null,
public val tableName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.dynamodb.ContributorInsightsArgs =
com.pulumi.aws.dynamodb.ContributorInsightsArgs.builder()
.indexName(indexName?.applyValue({ args0 -> args0 }))
.tableName(tableName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContributorInsightsArgs].
*/
@PulumiTagMarker
public class ContributorInsightsArgsBuilder internal constructor() {
private var indexName: Output? = null
private var tableName: Output? = null
/**
* @param value The global secondary index name
*/
@JvmName("rpudqahojwoljomw")
public suspend fun indexName(`value`: Output) {
this.indexName = value
}
/**
* @param value The name of the table to enable contributor insights
*/
@JvmName("tpgncgvieouwgccs")
public suspend fun tableName(`value`: Output) {
this.tableName = value
}
/**
* @param value The global secondary index name
*/
@JvmName("qmrktcdwubcsjxje")
public suspend fun indexName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.indexName = mapped
}
/**
* @param value The name of the table to enable contributor insights
*/
@JvmName("tyspbbcsnondwywk")
public suspend fun tableName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tableName = mapped
}
internal fun build(): ContributorInsightsArgs = ContributorInsightsArgs(
indexName = indexName,
tableName = tableName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy