Share via


DynamoDBResourceExtensions.AddGlobalSecondaryIndex Method

Definition

Adds an global secondary index to the table.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.DynamoDB.Table>> AddGlobalSecondaryIndex (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.DynamoDB.Table>> builder, Amazon.CDK.AWS.DynamoDB.IGlobalSecondaryIndexProps props);
static member AddGlobalSecondaryIndex : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.DynamoDB.Table>> * Amazon.CDK.AWS.DynamoDB.IGlobalSecondaryIndexProps -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.DynamoDB.Table>>
<Extension()>
Public Function AddGlobalSecondaryIndex (builder As IResourceBuilder(Of IConstructResource(Of Table)), props As IGlobalSecondaryIndexProps) As IResourceBuilder(Of IConstructResource(Of Table))

Parameters

builder
IResourceBuilder<IConstructResource<Amazon.CDK.AWS.DynamoDB.Table>>

The builder for the table resource.

props
Amazon.CDK.AWS.DynamoDB.IGlobalSecondaryIndexProps

The properties for the global secondary index.

Returns

IResourceBuilder<IConstructResource<Amazon.CDK.AWS.DynamoDB.Table>>

Applies to