All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.inputs.LocalSecondaryIndexArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.KeySchemaArgs;
import com.pulumi.azurenative.awsconnector.inputs.ProjectionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of LocalSecondaryIndex
 * 
 */
public final class LocalSecondaryIndexArgs extends com.pulumi.resources.ResourceArgs {

    public static final LocalSecondaryIndexArgs Empty = new LocalSecondaryIndexArgs();

    /**
     * The name of the local secondary index. The name must be unique among all other indexes on this table.
     * 
     */
    @Import(name="indexName")
    private @Nullable Output indexName;

    /**
     * @return The name of the local secondary index. The name must be unique among all other indexes on this table.
     * 
     */
    public Optional> indexName() {
        return Optional.ofNullable(this.indexName);
    }

    /**
     * The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:  +   ``HASH`` - partition key  +   ``RANGE`` - sort key    The partition key of an item is also known as its *hash attribute*. The term 'hash attribute' derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its *range attribute*. The term 'range attribute' derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
     * 
     */
    @Import(name="keySchema")
    private @Nullable Output> keySchema;

    /**
     * @return The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:  +   ``HASH`` - partition key  +   ``RANGE`` - sort key    The partition key of an item is also known as its *hash attribute*. The term 'hash attribute' derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its *range attribute*. The term 'range attribute' derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
     * 
     */
    public Optional>> keySchema() {
        return Optional.ofNullable(this.keySchema);
    }

    /**
     * Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
     * 
     */
    @Import(name="projection")
    private @Nullable Output projection;

    /**
     * @return Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
     * 
     */
    public Optional> projection() {
        return Optional.ofNullable(this.projection);
    }

    private LocalSecondaryIndexArgs() {}

    private LocalSecondaryIndexArgs(LocalSecondaryIndexArgs $) {
        this.indexName = $.indexName;
        this.keySchema = $.keySchema;
        this.projection = $.projection;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(LocalSecondaryIndexArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private LocalSecondaryIndexArgs $;

        public Builder() {
            $ = new LocalSecondaryIndexArgs();
        }

        public Builder(LocalSecondaryIndexArgs defaults) {
            $ = new LocalSecondaryIndexArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param indexName The name of the local secondary index. The name must be unique among all other indexes on this table.
         * 
         * @return builder
         * 
         */
        public Builder indexName(@Nullable Output indexName) {
            $.indexName = indexName;
            return this;
        }

        /**
         * @param indexName The name of the local secondary index. The name must be unique among all other indexes on this table.
         * 
         * @return builder
         * 
         */
        public Builder indexName(String indexName) {
            return indexName(Output.of(indexName));
        }

        /**
         * @param keySchema The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:  +   ``HASH`` - partition key  +   ``RANGE`` - sort key    The partition key of an item is also known as its *hash attribute*. The term 'hash attribute' derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its *range attribute*. The term 'range attribute' derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
         * 
         * @return builder
         * 
         */
        public Builder keySchema(@Nullable Output> keySchema) {
            $.keySchema = keySchema;
            return this;
        }

        /**
         * @param keySchema The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:  +   ``HASH`` - partition key  +   ``RANGE`` - sort key    The partition key of an item is also known as its *hash attribute*. The term 'hash attribute' derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its *range attribute*. The term 'range attribute' derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
         * 
         * @return builder
         * 
         */
        public Builder keySchema(List keySchema) {
            return keySchema(Output.of(keySchema));
        }

        /**
         * @param keySchema The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:  +   ``HASH`` - partition key  +   ``RANGE`` - sort key    The partition key of an item is also known as its *hash attribute*. The term 'hash attribute' derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its *range attribute*. The term 'range attribute' derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
         * 
         * @return builder
         * 
         */
        public Builder keySchema(KeySchemaArgs... keySchema) {
            return keySchema(List.of(keySchema));
        }

        /**
         * @param projection Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
         * 
         * @return builder
         * 
         */
        public Builder projection(@Nullable Output projection) {
            $.projection = projection;
            return this;
        }

        /**
         * @param projection Represents attributes that are copied (projected) from the table into the local secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
         * 
         * @return builder
         * 
         */
        public Builder projection(ProjectionArgs projection) {
            return projection(Output.of(projection));
        }

        public LocalSecondaryIndexArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy