1. Packages
  2. AWS
  3. API Docs
  4. dynamodb
  5. ContributorInsights
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.dynamodb.ContributorInsights

Explore with Pulumi AI

Provides a DynamoDB contributor insights resource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = new aws.dynamodb.ContributorInsights("test", {tableName: "ExampleTableName"});
Copy
import pulumi
import pulumi_aws as aws

test = aws.dynamodb.ContributorInsights("test", table_name="ExampleTableName")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  test:
    type: aws:dynamodb:ContributorInsights
    properties:
      tableName: ExampleTableName
Copy

Create ContributorInsights Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ContributorInsights(name: string, args: ContributorInsightsArgs, opts?: CustomResourceOptions);
@overload
def ContributorInsights(resource_name: str,
                        args: ContributorInsightsArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def ContributorInsights(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        table_name: Optional[str] = None,
                        index_name: Optional[str] = None)
func NewContributorInsights(ctx *Context, name string, args ContributorInsightsArgs, opts ...ResourceOption) (*ContributorInsights, error)
public ContributorInsights(string name, ContributorInsightsArgs args, CustomResourceOptions? opts = null)
public ContributorInsights(String name, ContributorInsightsArgs args)
public ContributorInsights(String name, ContributorInsightsArgs args, CustomResourceOptions options)
type: aws:dynamodb:ContributorInsights
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ContributorInsightsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ContributorInsightsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ContributorInsightsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ContributorInsightsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ContributorInsightsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var contributorInsightsResource = new Aws.DynamoDB.ContributorInsights("contributorInsightsResource", new()
{
    TableName = "string",
    IndexName = "string",
});
Copy
example, err := dynamodb.NewContributorInsights(ctx, "contributorInsightsResource", &dynamodb.ContributorInsightsArgs{
	TableName: pulumi.String("string"),
	IndexName: pulumi.String("string"),
})
Copy
var contributorInsightsResource = new ContributorInsights("contributorInsightsResource", ContributorInsightsArgs.builder()
    .tableName("string")
    .indexName("string")
    .build());
Copy
contributor_insights_resource = aws.dynamodb.ContributorInsights("contributorInsightsResource",
    table_name="string",
    index_name="string")
Copy
const contributorInsightsResource = new aws.dynamodb.ContributorInsights("contributorInsightsResource", {
    tableName: "string",
    indexName: "string",
});
Copy
type: aws:dynamodb:ContributorInsights
properties:
    indexName: string
    tableName: string
Copy

ContributorInsights Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ContributorInsights resource accepts the following input properties:

TableName
This property is required.
Changes to this property will trigger replacement.
string
The name of the table to enable contributor insights
IndexName Changes to this property will trigger replacement. string
The global secondary index name
TableName
This property is required.
Changes to this property will trigger replacement.
string
The name of the table to enable contributor insights
IndexName Changes to this property will trigger replacement. string
The global secondary index name
tableName
This property is required.
Changes to this property will trigger replacement.
String
The name of the table to enable contributor insights
indexName Changes to this property will trigger replacement. String
The global secondary index name
tableName
This property is required.
Changes to this property will trigger replacement.
string
The name of the table to enable contributor insights
indexName Changes to this property will trigger replacement. string
The global secondary index name
table_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the table to enable contributor insights
index_name Changes to this property will trigger replacement. str
The global secondary index name
tableName
This property is required.
Changes to this property will trigger replacement.
String
The name of the table to enable contributor insights
indexName Changes to this property will trigger replacement. String
The global secondary index name

Outputs

All input properties are implicitly available as output properties. Additionally, the ContributorInsights resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing ContributorInsights Resource

Get an existing ContributorInsights resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ContributorInsightsState, opts?: CustomResourceOptions): ContributorInsights
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        index_name: Optional[str] = None,
        table_name: Optional[str] = None) -> ContributorInsights
func GetContributorInsights(ctx *Context, name string, id IDInput, state *ContributorInsightsState, opts ...ResourceOption) (*ContributorInsights, error)
public static ContributorInsights Get(string name, Input<string> id, ContributorInsightsState? state, CustomResourceOptions? opts = null)
public static ContributorInsights get(String name, Output<String> id, ContributorInsightsState state, CustomResourceOptions options)
resources:  _:    type: aws:dynamodb:ContributorInsights    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
IndexName Changes to this property will trigger replacement. string
The global secondary index name
TableName Changes to this property will trigger replacement. string
The name of the table to enable contributor insights
IndexName Changes to this property will trigger replacement. string
The global secondary index name
TableName Changes to this property will trigger replacement. string
The name of the table to enable contributor insights
indexName Changes to this property will trigger replacement. String
The global secondary index name
tableName Changes to this property will trigger replacement. String
The name of the table to enable contributor insights
indexName Changes to this property will trigger replacement. string
The global secondary index name
tableName Changes to this property will trigger replacement. string
The name of the table to enable contributor insights
index_name Changes to this property will trigger replacement. str
The global secondary index name
table_name Changes to this property will trigger replacement. str
The name of the table to enable contributor insights
indexName Changes to this property will trigger replacement. String
The global secondary index name
tableName Changes to this property will trigger replacement. String
The name of the table to enable contributor insights

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:

$ pulumi import aws:dynamodb/contributorInsights:ContributorInsights test name:ExampleTableName/index:ExampleIndexName/123456789012
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.