Class CreateDynamoDbTableTask
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- com.nike.pdm.localstack.aws.dynamodb.CreateDynamoDbTableTask
-
- All Implemented Interfaces:
java.lang.Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
public class CreateDynamoDbTableTask extends org.gradle.api.DefaultTaskTask that creates a DynamoDB table.
-
-
Constructor Summary
Constructors Constructor Description CreateDynamoDbTableTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<com.amazonaws.services.dynamodbv2.model.AttributeDefinition>getAttributeDefinitions()Gets the table attribute definitions.java.lang.StringgetDescription()java.util.List<com.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndex>getGlobalSecondaryIndexes()Gets the global secondary indexes defined for the table.java.lang.StringgetGroup()java.lang.StringgetInitializer()Gets the fully-qualified class name of the table initializer to run on setup.java.util.List<com.amazonaws.services.dynamodbv2.model.KeySchemaElement>getKeySchema()Gets the table key schema elements.java.util.List<com.amazonaws.services.dynamodbv2.model.LocalSecondaryIndex>getLocalSecondaryIndexes()Gets the local secondary indexes defined for the table.com.amazonaws.services.dynamodbv2.model.ProvisionedThroughputgetProvisionedThroughput()Sets the provisioned throughput for the table.com.amazonaws.services.dynamodbv2.model.SSESpecificationgetSseSpecification()Gets the table SSE specification.com.amazonaws.services.dynamodbv2.model.StreamSpecificationgetStreamSpecification()Gets the table stream specification.java.lang.StringgetTableName()Gets the name of the table to create.voidrun()voidsetAttributeDefinitions(java.util.List<com.amazonaws.services.dynamodbv2.model.AttributeDefinition> attributeDefinitions)Sets the table attribute definitions.voidsetGlobalSecondaryIndexes(java.util.List<com.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndex> globalSecondaryIndexes)Sets the global secondary indexes to apply to the table.voidsetInitializer(java.lang.String initializer)Sets the fully-qualified class name of the table initializer to run on setup.voidsetKeySchema(java.util.List<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> keySchema)Sets the table key schema elements.voidsetLocalSecondaryIndexes(java.util.List<com.amazonaws.services.dynamodbv2.model.LocalSecondaryIndex> localSecondaryIndexes)Sets the local secondary indexes defined for the table.voidsetProvisionedThroughput(com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput provisionedThroughput)Sets the provisioned throughput for the table.voidsetSseSpecification(com.amazonaws.services.dynamodbv2.model.SSESpecification sseSpecification)Sets the table SSE specificationvoidsetStreamSpecification(com.amazonaws.services.dynamodbv2.model.StreamSpecification streamSpecification)Sets the table stream specificationvoidsetTableName(java.lang.String tableName)Sets the name of the table to create.-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
-
-
-
Method Detail
-
run
public void run()
-
getGroup
@Internal public java.lang.String getGroup()
- Specified by:
getGroupin interfaceorg.gradle.api.Task- Overrides:
getGroupin classorg.gradle.api.internal.AbstractTask
-
getDescription
@Internal public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceorg.gradle.api.Task- Overrides:
getDescriptionin classorg.gradle.api.internal.AbstractTask
-
getTableName
public java.lang.String getTableName()
Gets the name of the table to create.- Returns:
- table name
-
setTableName
public void setTableName(java.lang.String tableName)
Sets the name of the table to create.- Parameters:
tableName- table name
-
getKeySchema
public java.util.List<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> getKeySchema()
Gets the table key schema elements.- Returns:
- table key schema elements
-
setKeySchema
public void setKeySchema(java.util.List<com.amazonaws.services.dynamodbv2.model.KeySchemaElement> keySchema)
Sets the table key schema elements.- Parameters:
keySchema- table key schema elements
-
getAttributeDefinitions
public java.util.List<com.amazonaws.services.dynamodbv2.model.AttributeDefinition> getAttributeDefinitions()
Gets the table attribute definitions.- Returns:
- table attribute definitions
-
setAttributeDefinitions
public void setAttributeDefinitions(java.util.List<com.amazonaws.services.dynamodbv2.model.AttributeDefinition> attributeDefinitions)
Sets the table attribute definitions.- Parameters:
attributeDefinitions- table attribute definitions
-
getGlobalSecondaryIndexes
public java.util.List<com.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndex> getGlobalSecondaryIndexes()
Gets the global secondary indexes defined for the table.- Returns:
- table global secondary indexes
-
setGlobalSecondaryIndexes
public void setGlobalSecondaryIndexes(java.util.List<com.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndex> globalSecondaryIndexes)
Sets the global secondary indexes to apply to the table.- Parameters:
globalSecondaryIndexes- table global secondary indexes
-
getLocalSecondaryIndexes
public java.util.List<com.amazonaws.services.dynamodbv2.model.LocalSecondaryIndex> getLocalSecondaryIndexes()
Gets the local secondary indexes defined for the table.- Returns:
- table local secondary indexes
-
setLocalSecondaryIndexes
public void setLocalSecondaryIndexes(java.util.List<com.amazonaws.services.dynamodbv2.model.LocalSecondaryIndex> localSecondaryIndexes)
Sets the local secondary indexes defined for the table.- Parameters:
localSecondaryIndexes- table local secondary indexes
-
getProvisionedThroughput
public com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput getProvisionedThroughput()
Sets the provisioned throughput for the table.- Returns:
- table provisioned throughput
-
setProvisionedThroughput
public void setProvisionedThroughput(com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput provisionedThroughput)
Sets the provisioned throughput for the table.- Parameters:
provisionedThroughput- table provisioned throughput
-
getSseSpecification
public com.amazonaws.services.dynamodbv2.model.SSESpecification getSseSpecification()
Gets the table SSE specification.- Returns:
- table sse specification
-
setSseSpecification
public void setSseSpecification(com.amazonaws.services.dynamodbv2.model.SSESpecification sseSpecification)
Sets the table SSE specification- Parameters:
sseSpecification- table sse specification
-
getStreamSpecification
public com.amazonaws.services.dynamodbv2.model.StreamSpecification getStreamSpecification()
Gets the table stream specification.- Returns:
- table stream specification
-
setStreamSpecification
public void setStreamSpecification(com.amazonaws.services.dynamodbv2.model.StreamSpecification streamSpecification)
Sets the table stream specification- Parameters:
streamSpecification- table stream specification
-
getInitializer
public java.lang.String getInitializer()
Gets the fully-qualified class name of the table initializer to run on setup.- Returns:
- fully-qualified class name of table initializer
-
setInitializer
public void setInitializer(java.lang.String initializer)
Sets the fully-qualified class name of the table initializer to run on setup.- Parameters:
initializer- fully-qualified class name of table initializer.
-
-