Class CreateDynamoDbTableTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
io.github.gregwhitaker.awsemulator.core.AbstractAwsEmulatorTask
io.github.gregwhitaker.awsemulator.aws.AbstractAwsResourceTask
io.github.gregwhitaker.awsemulator.aws.dynamodb.AbstractDynamoDbTableTask
io.github.gregwhitaker.awsemulator.aws.dynamodb.CreateDynamoDbTableTask
- All Implemented Interfaces:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault(because="Provisions live emulator resources")
public abstract class CreateDynamoDbTableTask
extends AbstractDynamoDbTableTask
Creates a table, waits for ACTIVE, and optionally initializes a newly created table.
Reuses existing tables only when their schema, indexes, capacity, encryption, and streams
match the requested definition; configuration drift fails without modifying the table.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.AttributeDefinition>Required key attribute types; compared by attribute name when reusing a table.abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.GlobalSecondaryIndex>Complete set of global indexes, including projections and capacity.abstract org.gradle.api.provider.Property<String>Build-classpath class with a public DynamoDbClient constructor and a public void run() method.abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.KeySchemaElement>Required primary key schema; compared by key role when reusing a table.abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.LocalSecondaryIndex>Complete set of local indexes, including projections.abstract org.gradle.api.provider.Property<software.amazon.awssdk.services.dynamodb.model.ProvisionedThroughput>Provisioned read/write capacity.abstract org.gradle.api.provider.Property<software.amazon.awssdk.services.dynamodb.model.SSESpecification>Encryption settings for creation and reuse.abstract org.gradle.api.provider.Property<software.amazon.awssdk.services.dynamodb.model.StreamSpecification>Stream settings for creation and reuse.Methods inherited from class io.github.gregwhitaker.awsemulator.aws.dynamodb.AbstractDynamoDbTableTask
getTableName, getWaitTimeoutSeconds, setTableNameOption, tableNameMethods inherited from class io.github.gregwhitaker.awsemulator.aws.AbstractAwsResourceTask
connection, getApiCallTimeoutSeconds, getMode, setModeOptionMethods inherited from class io.github.gregwhitaker.awsemulator.core.AbstractAwsEmulatorTask
getRuntime, getRuntimeName, setRuntimeNameOptionMethods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCache
-
Constructor Details
-
CreateDynamoDbTableTask
public CreateDynamoDbTableTask()
-
-
Method Details
-
getKeySchema
@Input public abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.KeySchemaElement> getKeySchema()Required primary key schema; compared by key role when reusing a table. -
getAttributeDefinitions
@Input public abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.AttributeDefinition> getAttributeDefinitions()Required key attribute types; compared by attribute name when reusing a table. -
getGlobalSecondaryIndexes
@Input public abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.GlobalSecondaryIndex> getGlobalSecondaryIndexes()Complete set of global indexes, including projections and capacity. Defaults to empty. -
getLocalSecondaryIndexes
@Input public abstract org.gradle.api.provider.ListProperty<software.amazon.awssdk.services.dynamodb.model.LocalSecondaryIndex> getLocalSecondaryIndexes()Complete set of local indexes, including projections. Defaults to empty. -
getProvisionedThroughput
@Input public abstract org.gradle.api.provider.Property<software.amazon.awssdk.services.dynamodb.model.ProvisionedThroughput> getProvisionedThroughput()Provisioned read/write capacity. Defaults to 100 units each. -
getSseSpecification
@Input public abstract org.gradle.api.provider.Property<software.amazon.awssdk.services.dynamodb.model.SSESpecification> getSseSpecification()Encryption settings for creation and reuse. Defaults to enabled=true (KMS with alias/aws/dynamodb). Key IDs and aliases are resolved through the selected emulator's KMS client when checking reuse. -
getStreamSpecification
@Input @Optional public abstract org.gradle.api.provider.Property<software.amazon.awssdk.services.dynamodb.model.StreamSpecification> getStreamSpecification()Stream settings for creation and reuse. Unset means streams must be disabled. -
getInitializer
Build-classpath class with a public DynamoDbClient constructor and a public void run() method. -
createTable
public void createTable()
-