Struct aws_sdk_dynamodb::types::builders::TableDescriptionBuilder
source · #[non_exhaustive]pub struct TableDescriptionBuilder { /* private fields */ }
Expand description
A builder for TableDescription
.
Implementations§
source§impl TableDescriptionBuilder
impl TableDescriptionBuilder
sourcepub fn attribute_definitions(self, input: AttributeDefinition) -> Self
pub fn attribute_definitions(self, input: AttributeDefinition) -> Self
Appends an item to attribute_definitions
.
To override the contents of this collection use set_attribute_definitions
.
An array of AttributeDefinition
objects. Each of these objects describes one attribute in the table and index key schema.
Each AttributeDefinition
object in this array is composed of:
-
AttributeName
- The name of the attribute. -
AttributeType
- The data type for the attribute.
sourcepub fn set_attribute_definitions(
self,
input: Option<Vec<AttributeDefinition>>,
) -> Self
pub fn set_attribute_definitions( self, input: Option<Vec<AttributeDefinition>>, ) -> Self
An array of AttributeDefinition
objects. Each of these objects describes one attribute in the table and index key schema.
Each AttributeDefinition
object in this array is composed of:
-
AttributeName
- The name of the attribute. -
AttributeType
- The data type for the attribute.
sourcepub fn get_attribute_definitions(&self) -> &Option<Vec<AttributeDefinition>>
pub fn get_attribute_definitions(&self) -> &Option<Vec<AttributeDefinition>>
An array of AttributeDefinition
objects. Each of these objects describes one attribute in the table and index key schema.
Each AttributeDefinition
object in this array is composed of:
-
AttributeName
- The name of the attribute. -
AttributeType
- The data type for the attribute.
sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the table.
sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the table.
sourcepub fn get_table_name(&self) -> &Option<String>
pub fn get_table_name(&self) -> &Option<String>
The name of the table.
sourcepub fn key_schema(self, input: KeySchemaElement) -> Self
pub fn key_schema(self, input: KeySchemaElement) -> Self
Appends an item to key_schema
.
To override the contents of this collection use set_key_schema
.
The primary key structure for the table. Each KeySchemaElement
consists of:
-
AttributeName
- The name of the attribute. -
KeyType
- The role of the attribute:-
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.
-
For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.
sourcepub fn set_key_schema(self, input: Option<Vec<KeySchemaElement>>) -> Self
pub fn set_key_schema(self, input: Option<Vec<KeySchemaElement>>) -> Self
The primary key structure for the table. Each KeySchemaElement
consists of:
-
AttributeName
- The name of the attribute. -
KeyType
- The role of the attribute:-
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.
-
For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.
sourcepub fn get_key_schema(&self) -> &Option<Vec<KeySchemaElement>>
pub fn get_key_schema(&self) -> &Option<Vec<KeySchemaElement>>
The primary key structure for the table. Each KeySchemaElement
consists of:
-
AttributeName
- The name of the attribute. -
KeyType
- The role of the attribute:-
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.
-
For more information about primary keys, see Primary Key in the Amazon DynamoDB Developer Guide.
sourcepub fn table_status(self, input: TableStatus) -> Self
pub fn table_status(self, input: TableStatus) -> Self
The current state of the table:
-
CREATING
- The table is being created. -
UPDATING
- The table/index configuration is being updated. The table/index remains available for data operations whenUPDATING
. -
DELETING
- The table is being deleted. -
ACTIVE
- The table is ready for use. -
INACCESSIBLE_ENCRYPTION_CREDENTIALS
- The KMS key used to encrypt the table in inaccessible. Table operations may fail due to failure to use the KMS key. DynamoDB will initiate the table archival process when a table's KMS key remains inaccessible for more than seven days. -
ARCHIVING
- The table is being archived. Operations are not allowed until archival is complete. -
ARCHIVED
- The table has been archived. See the ArchivalReason for more information.
sourcepub fn set_table_status(self, input: Option<TableStatus>) -> Self
pub fn set_table_status(self, input: Option<TableStatus>) -> Self
The current state of the table:
-
CREATING
- The table is being created. -
UPDATING
- The table/index configuration is being updated. The table/index remains available for data operations whenUPDATING
. -
DELETING
- The table is being deleted. -
ACTIVE
- The table is ready for use. -
INACCESSIBLE_ENCRYPTION_CREDENTIALS
- The KMS key used to encrypt the table in inaccessible. Table operations may fail due to failure to use the KMS key. DynamoDB will initiate the table archival process when a table's KMS key remains inaccessible for more than seven days. -
ARCHIVING
- The table is being archived. Operations are not allowed until archival is complete. -
ARCHIVED
- The table has been archived. See the ArchivalReason for more information.
sourcepub fn get_table_status(&self) -> &Option<TableStatus>
pub fn get_table_status(&self) -> &Option<TableStatus>
The current state of the table:
-
CREATING
- The table is being created. -
UPDATING
- The table/index configuration is being updated. The table/index remains available for data operations whenUPDATING
. -
DELETING
- The table is being deleted. -
ACTIVE
- The table is ready for use. -
INACCESSIBLE_ENCRYPTION_CREDENTIALS
- The KMS key used to encrypt the table in inaccessible. Table operations may fail due to failure to use the KMS key. DynamoDB will initiate the table archival process when a table's KMS key remains inaccessible for more than seven days. -
ARCHIVING
- The table is being archived. Operations are not allowed until archival is complete. -
ARCHIVED
- The table has been archived. See the ArchivalReason for more information.
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The date and time when the table was created, in UNIX epoch time format.
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
The date and time when the table was created, in UNIX epoch time format.
sourcepub fn get_creation_date_time(&self) -> &Option<DateTime>
pub fn get_creation_date_time(&self) -> &Option<DateTime>
The date and time when the table was created, in UNIX epoch time format.
sourcepub fn provisioned_throughput(
self,
input: ProvisionedThroughputDescription,
) -> Self
pub fn provisioned_throughput( self, input: ProvisionedThroughputDescription, ) -> Self
The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.
sourcepub fn set_provisioned_throughput(
self,
input: Option<ProvisionedThroughputDescription>,
) -> Self
pub fn set_provisioned_throughput( self, input: Option<ProvisionedThroughputDescription>, ) -> Self
The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.
sourcepub fn get_provisioned_throughput(
&self,
) -> &Option<ProvisionedThroughputDescription>
pub fn get_provisioned_throughput( &self, ) -> &Option<ProvisionedThroughputDescription>
The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.
sourcepub fn table_size_bytes(self, input: i64) -> Self
pub fn table_size_bytes(self, input: i64) -> Self
The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
sourcepub fn set_table_size_bytes(self, input: Option<i64>) -> Self
pub fn set_table_size_bytes(self, input: Option<i64>) -> Self
The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
sourcepub fn get_table_size_bytes(&self) -> &Option<i64>
pub fn get_table_size_bytes(&self) -> &Option<i64>
The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
sourcepub fn item_count(self, input: i64) -> Self
pub fn item_count(self, input: i64) -> Self
The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
sourcepub fn set_item_count(self, input: Option<i64>) -> Self
pub fn set_item_count(self, input: Option<i64>) -> Self
The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
sourcepub fn get_item_count(&self) -> &Option<i64>
pub fn get_item_count(&self) -> &Option<i64>
The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
sourcepub fn table_arn(self, input: impl Into<String>) -> Self
pub fn table_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that uniquely identifies the table.
sourcepub fn set_table_arn(self, input: Option<String>) -> Self
pub fn set_table_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that uniquely identifies the table.
sourcepub fn get_table_arn(&self) -> &Option<String>
pub fn get_table_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) that uniquely identifies the table.
sourcepub fn table_id(self, input: impl Into<String>) -> Self
pub fn table_id(self, input: impl Into<String>) -> Self
Unique identifier for the table for which the backup was created.
sourcepub fn set_table_id(self, input: Option<String>) -> Self
pub fn set_table_id(self, input: Option<String>) -> Self
Unique identifier for the table for which the backup was created.
sourcepub fn get_table_id(&self) -> &Option<String>
pub fn get_table_id(&self) -> &Option<String>
Unique identifier for the table for which the backup was created.
sourcepub fn billing_mode_summary(self, input: BillingModeSummary) -> Self
pub fn billing_mode_summary(self, input: BillingModeSummary) -> Self
Contains the details for the read/write capacity mode.
sourcepub fn set_billing_mode_summary(self, input: Option<BillingModeSummary>) -> Self
pub fn set_billing_mode_summary(self, input: Option<BillingModeSummary>) -> Self
Contains the details for the read/write capacity mode.
sourcepub fn get_billing_mode_summary(&self) -> &Option<BillingModeSummary>
pub fn get_billing_mode_summary(&self) -> &Option<BillingModeSummary>
Contains the details for the read/write capacity mode.
sourcepub fn local_secondary_indexes(
self,
input: LocalSecondaryIndexDescription,
) -> Self
pub fn local_secondary_indexes( self, input: LocalSecondaryIndexDescription, ) -> Self
Appends an item to local_secondary_indexes
.
To override the contents of this collection use set_local_secondary_indexes
.
Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:
-
IndexName
- The name of the local secondary index. -
KeySchema
- Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. -
Projection
- Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:-
ProjectionType
- One of the following:-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- Only the specified table attributes are projected into the index. The list of projected attributes is inNonKeyAttributes
. -
ALL
- All of the table attributes are projected into the index.
-
-
NonKeyAttributes
- A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided inNonKeyAttributes
, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
-
-
IndexSizeBytes
- Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
ItemCount
- Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
If the table is in the DELETING
state, no information about indexes will be returned.
sourcepub fn set_local_secondary_indexes(
self,
input: Option<Vec<LocalSecondaryIndexDescription>>,
) -> Self
pub fn set_local_secondary_indexes( self, input: Option<Vec<LocalSecondaryIndexDescription>>, ) -> Self
Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:
-
IndexName
- The name of the local secondary index. -
KeySchema
- Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. -
Projection
- Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:-
ProjectionType
- One of the following:-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- Only the specified table attributes are projected into the index. The list of projected attributes is inNonKeyAttributes
. -
ALL
- All of the table attributes are projected into the index.
-
-
NonKeyAttributes
- A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided inNonKeyAttributes
, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
-
-
IndexSizeBytes
- Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
ItemCount
- Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
If the table is in the DELETING
state, no information about indexes will be returned.
sourcepub fn get_local_secondary_indexes(
&self,
) -> &Option<Vec<LocalSecondaryIndexDescription>>
pub fn get_local_secondary_indexes( &self, ) -> &Option<Vec<LocalSecondaryIndexDescription>>
Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:
-
IndexName
- The name of the local secondary index. -
KeySchema
- Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. -
Projection
- Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:-
ProjectionType
- One of the following:-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- Only the specified table attributes are projected into the index. The list of projected attributes is inNonKeyAttributes
. -
ALL
- All of the table attributes are projected into the index.
-
-
NonKeyAttributes
- A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided inNonKeyAttributes
, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
-
-
IndexSizeBytes
- Represents the total size of the index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
ItemCount
- Represents the number of items in the index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
If the table is in the DELETING
state, no information about indexes will be returned.
sourcepub fn global_secondary_indexes(
self,
input: GlobalSecondaryIndexDescription,
) -> Self
pub fn global_secondary_indexes( self, input: GlobalSecondaryIndexDescription, ) -> Self
Appends an item to global_secondary_indexes
.
To override the contents of this collection use set_global_secondary_indexes
.
The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:
-
Backfilling
- If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table. It is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during aCreateTable
operation.)You can delete an index that is being created during the
Backfilling
phase whenIndexStatus
is set to CREATING andBackfilling
is true. You can't delete the index that is being created whenIndexStatus
is set to CREATING andBackfilling
is false. (This attribute does not appear for indexes that were created during aCreateTable
operation.) -
IndexName
- The name of the global secondary index. -
IndexSizeBytes
- The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
IndexStatus
- The current status of the global secondary index:-
CREATING
- The index is being created. -
UPDATING
- The index is being updated. -
DELETING
- The index is being deleted. -
ACTIVE
- The index is ready for use.
-
-
ItemCount
- The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
KeySchema
- Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. -
Projection
- Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:-
ProjectionType
- One of the following:-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
-
-
NonKeyAttributes
- A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided inNonKeyAttributes
, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
-
-
ProvisionedThroughput
- The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.
If the table is in the DELETING
state, no information about indexes will be returned.
sourcepub fn set_global_secondary_indexes(
self,
input: Option<Vec<GlobalSecondaryIndexDescription>>,
) -> Self
pub fn set_global_secondary_indexes( self, input: Option<Vec<GlobalSecondaryIndexDescription>>, ) -> Self
The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:
-
Backfilling
- If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table. It is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during aCreateTable
operation.)You can delete an index that is being created during the
Backfilling
phase whenIndexStatus
is set to CREATING andBackfilling
is true. You can't delete the index that is being created whenIndexStatus
is set to CREATING andBackfilling
is false. (This attribute does not appear for indexes that were created during aCreateTable
operation.) -
IndexName
- The name of the global secondary index. -
IndexSizeBytes
- The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
IndexStatus
- The current status of the global secondary index:-
CREATING
- The index is being created. -
UPDATING
- The index is being updated. -
DELETING
- The index is being deleted. -
ACTIVE
- The index is ready for use.
-
-
ItemCount
- The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
KeySchema
- Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. -
Projection
- Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:-
ProjectionType
- One of the following:-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
-
-
NonKeyAttributes
- A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided inNonKeyAttributes
, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
-
-
ProvisionedThroughput
- The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.
If the table is in the DELETING
state, no information about indexes will be returned.
sourcepub fn get_global_secondary_indexes(
&self,
) -> &Option<Vec<GlobalSecondaryIndexDescription>>
pub fn get_global_secondary_indexes( &self, ) -> &Option<Vec<GlobalSecondaryIndexDescription>>
The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:
-
Backfilling
- If true, then the index is currently in the backfilling phase. Backfilling occurs only when a new global secondary index is added to the table. It is the process by which DynamoDB populates the new index with data from the table. (This attribute does not appear for indexes that were created during aCreateTable
operation.)You can delete an index that is being created during the
Backfilling
phase whenIndexStatus
is set to CREATING andBackfilling
is true. You can't delete the index that is being created whenIndexStatus
is set to CREATING andBackfilling
is false. (This attribute does not appear for indexes that were created during aCreateTable
operation.) -
IndexName
- The name of the global secondary index. -
IndexSizeBytes
- The total size of the global secondary index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
IndexStatus
- The current status of the global secondary index:-
CREATING
- The index is being created. -
UPDATING
- The index is being updated. -
DELETING
- The index is being deleted. -
ACTIVE
- The index is ready for use.
-
-
ItemCount
- The number of items in the global secondary index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value. -
KeySchema
- Specifies the complete index key schema. The attribute names in the key schema must be between 1 and 255 characters (inclusive). The key schema must begin with the same partition key as the table. -
Projection
- Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:-
ProjectionType
- One of the following:-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
-
-
NonKeyAttributes
- A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided inNonKeyAttributes
, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
-
-
ProvisionedThroughput
- The provisioned throughput settings for the global secondary index, consisting of read and write capacity units, along with data about increases and decreases.
If the table is in the DELETING
state, no information about indexes will be returned.
sourcepub fn stream_specification(self, input: StreamSpecification) -> Self
pub fn stream_specification(self, input: StreamSpecification) -> Self
The current DynamoDB Streams configuration for the table.
sourcepub fn set_stream_specification(
self,
input: Option<StreamSpecification>,
) -> Self
pub fn set_stream_specification( self, input: Option<StreamSpecification>, ) -> Self
The current DynamoDB Streams configuration for the table.
sourcepub fn get_stream_specification(&self) -> &Option<StreamSpecification>
pub fn get_stream_specification(&self) -> &Option<StreamSpecification>
The current DynamoDB Streams configuration for the table.
sourcepub fn latest_stream_label(self, input: impl Into<String>) -> Self
pub fn latest_stream_label(self, input: impl Into<String>) -> Self
A timestamp, in ISO 8601 format, for this stream.
Note that LatestStreamLabel
is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:
-
Amazon Web Services customer ID
-
Table name
-
StreamLabel
sourcepub fn set_latest_stream_label(self, input: Option<String>) -> Self
pub fn set_latest_stream_label(self, input: Option<String>) -> Self
A timestamp, in ISO 8601 format, for this stream.
Note that LatestStreamLabel
is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:
-
Amazon Web Services customer ID
-
Table name
-
StreamLabel
sourcepub fn get_latest_stream_label(&self) -> &Option<String>
pub fn get_latest_stream_label(&self) -> &Option<String>
A timestamp, in ISO 8601 format, for this stream.
Note that LatestStreamLabel
is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique:
-
Amazon Web Services customer ID
-
Table name
-
StreamLabel
sourcepub fn latest_stream_arn(self, input: impl Into<String>) -> Self
pub fn latest_stream_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.
sourcepub fn set_latest_stream_arn(self, input: Option<String>) -> Self
pub fn set_latest_stream_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.
sourcepub fn get_latest_stream_arn(&self) -> &Option<String>
pub fn get_latest_stream_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.
sourcepub fn global_table_version(self, input: impl Into<String>) -> Self
pub fn global_table_version(self, input: impl Into<String>) -> Self
Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.
sourcepub fn set_global_table_version(self, input: Option<String>) -> Self
pub fn set_global_table_version(self, input: Option<String>) -> Self
Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.
sourcepub fn get_global_table_version(&self) -> &Option<String>
pub fn get_global_table_version(&self) -> &Option<String>
Represents the version of global tables in use, if the table is replicated across Amazon Web Services Regions.
sourcepub fn replicas(self, input: ReplicaDescription) -> Self
pub fn replicas(self, input: ReplicaDescription) -> Self
Appends an item to replicas
.
To override the contents of this collection use set_replicas
.
Represents replicas of the table.
sourcepub fn set_replicas(self, input: Option<Vec<ReplicaDescription>>) -> Self
pub fn set_replicas(self, input: Option<Vec<ReplicaDescription>>) -> Self
Represents replicas of the table.
sourcepub fn get_replicas(&self) -> &Option<Vec<ReplicaDescription>>
pub fn get_replicas(&self) -> &Option<Vec<ReplicaDescription>>
Represents replicas of the table.
sourcepub fn restore_summary(self, input: RestoreSummary) -> Self
pub fn restore_summary(self, input: RestoreSummary) -> Self
Contains details for the restore.
sourcepub fn set_restore_summary(self, input: Option<RestoreSummary>) -> Self
pub fn set_restore_summary(self, input: Option<RestoreSummary>) -> Self
Contains details for the restore.
sourcepub fn get_restore_summary(&self) -> &Option<RestoreSummary>
pub fn get_restore_summary(&self) -> &Option<RestoreSummary>
Contains details for the restore.
sourcepub fn sse_description(self, input: SseDescription) -> Self
pub fn sse_description(self, input: SseDescription) -> Self
The description of the server-side encryption status on the specified table.
sourcepub fn set_sse_description(self, input: Option<SseDescription>) -> Self
pub fn set_sse_description(self, input: Option<SseDescription>) -> Self
The description of the server-side encryption status on the specified table.
sourcepub fn get_sse_description(&self) -> &Option<SseDescription>
pub fn get_sse_description(&self) -> &Option<SseDescription>
The description of the server-side encryption status on the specified table.
sourcepub fn archival_summary(self, input: ArchivalSummary) -> Self
pub fn archival_summary(self, input: ArchivalSummary) -> Self
Contains information about the table archive.
sourcepub fn set_archival_summary(self, input: Option<ArchivalSummary>) -> Self
pub fn set_archival_summary(self, input: Option<ArchivalSummary>) -> Self
Contains information about the table archive.
sourcepub fn get_archival_summary(&self) -> &Option<ArchivalSummary>
pub fn get_archival_summary(&self) -> &Option<ArchivalSummary>
Contains information about the table archive.
sourcepub fn table_class_summary(self, input: TableClassSummary) -> Self
pub fn table_class_summary(self, input: TableClassSummary) -> Self
Contains details of the table class.
sourcepub fn set_table_class_summary(self, input: Option<TableClassSummary>) -> Self
pub fn set_table_class_summary(self, input: Option<TableClassSummary>) -> Self
Contains details of the table class.
sourcepub fn get_table_class_summary(&self) -> &Option<TableClassSummary>
pub fn get_table_class_summary(&self) -> &Option<TableClassSummary>
Contains details of the table class.
sourcepub fn deletion_protection_enabled(self, input: bool) -> Self
pub fn deletion_protection_enabled(self, input: bool) -> Self
Indicates whether deletion protection is enabled (true) or disabled (false) on the table.
sourcepub fn set_deletion_protection_enabled(self, input: Option<bool>) -> Self
pub fn set_deletion_protection_enabled(self, input: Option<bool>) -> Self
Indicates whether deletion protection is enabled (true) or disabled (false) on the table.
sourcepub fn get_deletion_protection_enabled(&self) -> &Option<bool>
pub fn get_deletion_protection_enabled(&self) -> &Option<bool>
Indicates whether deletion protection is enabled (true) or disabled (false) on the table.
sourcepub fn on_demand_throughput(self, input: OnDemandThroughput) -> Self
pub fn on_demand_throughput(self, input: OnDemandThroughput) -> Self
The maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
sourcepub fn set_on_demand_throughput(self, input: Option<OnDemandThroughput>) -> Self
pub fn set_on_demand_throughput(self, input: Option<OnDemandThroughput>) -> Self
The maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
sourcepub fn get_on_demand_throughput(&self) -> &Option<OnDemandThroughput>
pub fn get_on_demand_throughput(&self) -> &Option<OnDemandThroughput>
The maximum number of read and write units for the specified on-demand table. If you use this parameter, you must specify MaxReadRequestUnits
, MaxWriteRequestUnits
, or both.
sourcepub fn build(self) -> TableDescription
pub fn build(self) -> TableDescription
Consumes the builder and constructs a TableDescription
.
Trait Implementations§
source§impl Clone for TableDescriptionBuilder
impl Clone for TableDescriptionBuilder
source§fn clone(&self) -> TableDescriptionBuilder
fn clone(&self) -> TableDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TableDescriptionBuilder
impl Debug for TableDescriptionBuilder
source§impl Default for TableDescriptionBuilder
impl Default for TableDescriptionBuilder
source§fn default() -> TableDescriptionBuilder
fn default() -> TableDescriptionBuilder
source§impl PartialEq for TableDescriptionBuilder
impl PartialEq for TableDescriptionBuilder
source§fn eq(&self, other: &TableDescriptionBuilder) -> bool
fn eq(&self, other: &TableDescriptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TableDescriptionBuilder
Auto Trait Implementations§
impl Freeze for TableDescriptionBuilder
impl RefUnwindSafe for TableDescriptionBuilder
impl Send for TableDescriptionBuilder
impl Sync for TableDescriptionBuilder
impl Unpin for TableDescriptionBuilder
impl UnwindSafe for TableDescriptionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute
] value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
[Quirk
] value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition
] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);