.provisionedThroughput(table_throughput) .tableName(table_name) .build();
throws ResourceInUseException, ResourceNotFoundException, LimitExceededException, InternalServerErrorException, AwsServiceException, SdkClientException, DynamoDbException { return updateTable(UpdateTableRequest.builder().applyMutation(updateTableRequest).build());
return updateTable(UpdateTableRequest.builder().applyMutation(updateTableRequest).build());
/** * <p> * Represents the DynamoDB Streams configuration for the table. * </p> * <note> * <p> * You will receive a <code>ResourceInUseException</code> if you attempt to enable a stream on a table that * already has a stream, or if you attempt to disable a stream on a table which does not have a stream. * </p> * </note> This is a convenience that creates an instance of the {@link StreamSpecification.Builder} avoiding * the need to create one manually via {@link StreamSpecification#builder()}. * * When the {@link Consumer} completes, {@link StreamSpecification.Builder#build()} is called immediately and * its result is passed to {@link #streamSpecification(StreamSpecification)}. * * @param streamSpecification * a consumer that will call methods on {@link StreamSpecification.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #streamSpecification(StreamSpecification) */ default Builder streamSpecification(Consumer<StreamSpecification.Builder> streamSpecification) { return streamSpecification(StreamSpecification.builder().applyMutation(streamSpecification).build()); }
/** * <p> * The new provisioned throughput settings for the specified table or index. * </p> * This is a convenience that creates an instance of the {@link ProvisionedThroughput.Builder} avoiding the need * to create one manually via {@link ProvisionedThroughput#builder()}. * * When the {@link Consumer} completes, {@link ProvisionedThroughput.Builder#build()} is called immediately and * its result is passed to {@link #provisionedThroughput(ProvisionedThroughput)}. * * @param provisionedThroughput * a consumer that will call methods on {@link ProvisionedThroughput.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #provisionedThroughput(ProvisionedThroughput) */ default Builder provisionedThroughput(Consumer<ProvisionedThroughput.Builder> provisionedThroughput) { return provisionedThroughput(ProvisionedThroughput.builder().applyMutation(provisionedThroughput).build()); }
/** * <p> * The new server-side encryption settings for the specified table. * </p> * This is a convenience that creates an instance of the {@link SSESpecification.Builder} avoiding the need to * create one manually via {@link SSESpecification#builder()}. * * When the {@link Consumer} completes, {@link SSESpecification.Builder#build()} is called immediately and its * result is passed to {@link #sseSpecification(SSESpecification)}. * * @param sseSpecification * a consumer that will call methods on {@link SSESpecification.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #sseSpecification(SSESpecification) */ default Builder sseSpecification(Consumer<SSESpecification.Builder> sseSpecification) { return sseSpecification(SSESpecification.builder().applyMutation(sseSpecification).build()); }