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"});
import pulumi
import pulumi_aws as aws
test = aws.dynamodb.ContributorInsights("test", table_name="ExampleTableName")
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
})
}
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",
});
});
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());
}
}
resources:
test:
type: aws:dynamodb:ContributorInsights
properties:
tableName: ExampleTableName
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 string
- The unique name of the resource.
- args ContributorInsightsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ContributorInsightsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContributorInsightsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := dynamodb.NewContributorInsights(ctx, "contributorInsightsResource", &dynamodb.ContributorInsightsArgs{
TableName: pulumi.String("string"),
IndexName: pulumi.String("string"),
})
var contributorInsightsResource = new ContributorInsights("contributorInsightsResource", ContributorInsightsArgs.builder()
.tableName("string")
.indexName("string")
.build());
contributor_insights_resource = aws.dynamodb.ContributorInsights("contributorInsightsResource",
table_name="string",
index_name="string")
const contributorInsightsResource = new aws.dynamodb.ContributorInsights("contributorInsightsResource", {
tableName: "string",
indexName: "string",
});
type: aws:dynamodb:ContributorInsights
properties:
indexName: string
tableName: string
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
The ContributorInsights resource accepts the following input properties:
- table_
name str - The name of the table to enable contributor insights
- index_
name str - 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- index_
name str - The global secondary index name
- table_
name str - 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
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.