1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Amazon Keyspaces supports the target tracking auto scaling policy. With this
// policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed
// to provisioned capacity stays at or near the target value that you specify. You
// define the target value as a percentage between 20 and 90.
type AutoScalingPolicy struct {
// Auto scaling scales up capacity automatically when traffic exceeds this target
// utilization rate, and then back down when it falls below the target. A double
// between 20 and 90.
TargetTrackingScalingPolicyConfiguration *TargetTrackingScalingPolicyConfiguration
noSmithyDocumentSerde
}
// The optional auto scaling settings for a table with provisioned throughput
// capacity.
//
// To turn on auto scaling for a table in throughputMode:PROVISIONED , you must
// specify the following parameters.
//
// Configure the minimum and maximum capacity units. The auto scaling policy
// ensures that capacity never goes below the minimum or above the maximum range.
//
// - minimumUnits : The minimum level of throughput the table should always be
// ready to support. The value must be between 1 and the max throughput per second
// quota for your account (40,000 by default).
//
// - maximumUnits : The maximum level of throughput the table should always be
// ready to support. The value must be between 1 and the max throughput per second
// quota for your account (40,000 by default).
//
// - scalingPolicy : Amazon Keyspaces supports the target tracking scaling
// policy. The auto scaling target is the provisioned capacity of the table.
//
// - targetTrackingScalingPolicyConfiguration : To define the target tracking
// policy, you must define the target value.
//
// - targetValue : The target utilization rate of the table. Amazon Keyspaces
// auto scaling ensures that the ratio of consumed capacity to provisioned capacity
// stays at or near this value. You define targetValue as a percentage. A double
// between 20 and 90. (Required)
//
// - disableScaleIn : A boolean that specifies if scale-in is disabled or enabled
// for the table. This parameter is disabled by default. To turn on scale-in ,
// set the boolean value to FALSE . This means that capacity for a table can be
// automatically scaled down on your behalf. (Optional)
//
// - scaleInCooldown : A cooldown period in seconds between scaling activities
// that lets the table stabilize before another scale in activity starts. If no
// value is provided, the default is 0. (Optional)
//
// - scaleOutCooldown : A cooldown period in seconds between scaling activities
// that lets the table stabilize before another scale out activity starts. If no
// value is provided, the default is 0. (Optional)
//
// For more information, see [Managing throughput capacity automatically with Amazon Keyspaces auto scaling] in the Amazon Keyspaces Developer Guide.
//
// [Managing throughput capacity automatically with Amazon Keyspaces auto scaling]: https://docs.aws.amazon.com/keyspaces/latest/devguide/autoscaling.html
type AutoScalingSettings struct {
// This optional parameter enables auto scaling for the table if set to false .
AutoScalingDisabled bool
// Manage costs by specifying the maximum amount of throughput to provision. The
// value must be between 1 and the max throughput per second quota for your account
// (40,000 by default).
MaximumUnits *int64
// The minimum level of throughput the table should always be ready to support.
// The value must be between 1 and the max throughput per second quota for your
// account (40,000 by default).
MinimumUnits *int64
// Amazon Keyspaces supports the target tracking auto scaling policy. With this
// policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed
// to provisioned capacity stays at or near the target value that you specify. You
// define the target value as a percentage between 20 and 90.
ScalingPolicy *AutoScalingPolicy
noSmithyDocumentSerde
}
// The optional auto scaling capacity settings for a table in provisioned capacity
// mode.
type AutoScalingSpecification struct {
// The auto scaling settings for the table's read capacity.
ReadCapacityAutoScaling *AutoScalingSettings
// The auto scaling settings for the table's write capacity.
WriteCapacityAutoScaling *AutoScalingSettings
noSmithyDocumentSerde
}
// Amazon Keyspaces has two read/write capacity modes for processing reads and
// writes on your tables:
//
// - On-demand (default)
//
// - Provisioned
//
// The read/write capacity mode that you choose controls how you are charged for
// read and write throughput and how table throughput capacity is managed.
//
// For more information, see [Read/write capacity modes] in the Amazon Keyspaces Developer Guide.
//
// [Read/write capacity modes]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
type CapacitySpecification struct {
// The read/write throughput capacity mode for a table. The options are:
//
// - throughputMode:PAY_PER_REQUEST and
//
// - throughputMode:PROVISIONED - Provisioned capacity mode requires
// readCapacityUnits and writeCapacityUnits as input.
//
// The default is throughput_mode:PAY_PER_REQUEST .
//
// For more information, see [Read/write capacity modes] in the Amazon Keyspaces Developer Guide.
//
// [Read/write capacity modes]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
//
// This member is required.
ThroughputMode ThroughputMode
// The throughput capacity specified for read operations defined in read capacity
// units (RCUs) .
ReadCapacityUnits *int64
// The throughput capacity specified for write operations defined in write
// capacity units (WCUs) .
WriteCapacityUnits *int64
noSmithyDocumentSerde
}
// The read/write throughput capacity mode for a table. The options are:
//
// - throughputMode:PAY_PER_REQUEST and
//
// - throughputMode:PROVISIONED .
//
// For more information, see [Read/write capacity modes] in the Amazon Keyspaces Developer Guide.
//
// [Read/write capacity modes]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
type CapacitySpecificationSummary struct {
// The read/write throughput capacity mode for a table. The options are:
//
// - throughputMode:PAY_PER_REQUEST and
//
// - throughputMode:PROVISIONED - Provisioned capacity mode requires
// readCapacityUnits and writeCapacityUnits as input.
//
// The default is throughput_mode:PAY_PER_REQUEST .
//
// For more information, see [Read/write capacity modes] in the Amazon Keyspaces Developer Guide.
//
// [Read/write capacity modes]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
//
// This member is required.
ThroughputMode ThroughputMode
// The timestamp of the last operation that changed the provisioned throughput
// capacity of a table.
LastUpdateToPayPerRequestTimestamp *time.Time
// The throughput capacity specified for read operations defined in read capacity
// units (RCUs) .
ReadCapacityUnits *int64
// The throughput capacity specified for write operations defined in write
// capacity units (WCUs) .
WriteCapacityUnits *int64
noSmithyDocumentSerde
}
// The client-side timestamp setting of the table.
//
// For more information, see [How it works: Amazon Keyspaces client-side timestamps] in the Amazon Keyspaces Developer Guide.
//
// [How it works: Amazon Keyspaces client-side timestamps]: https://docs.aws.amazon.com/keyspaces/latest/devguide/client-side-timestamps-how-it-works.html
type ClientSideTimestamps struct {
// Shows how to enable client-side timestamps settings for the specified table.
//
// This member is required.
Status ClientSideTimestampsStatus
noSmithyDocumentSerde
}
// The optional clustering column portion of your primary key determines how the
// data is clustered and sorted within each partition.
type ClusteringKey struct {
// The name(s) of the clustering column(s).
//
// This member is required.
Name *string
// Sets the ascendant ( ASC ) or descendant ( DESC ) order modifier.
//
// This member is required.
OrderBy SortOrder
noSmithyDocumentSerde
}
// The names and data types of regular columns.
type ColumnDefinition struct {
// The name of the column.
//
// This member is required.
Name *string
// The data type of the column. For a list of available data types, see [Data types] in the
// Amazon Keyspaces Developer Guide.
//
// [Data types]: https://docs.aws.amazon.com/keyspaces/latest/devguide/cql.elements.html#cql.data-types
//
// This member is required.
Type *string
noSmithyDocumentSerde
}
// An optional comment that describes the table.
type Comment struct {
// An optional description of the table.
//
// This member is required.
Message *string
noSmithyDocumentSerde
}
// Amazon Keyspaces encrypts and decrypts the table data at rest transparently and
// integrates with Key Management Service for storing and managing the encryption
// key. You can choose one of the following KMS keys (KMS keys):
//
// - Amazon Web Services owned key - This is the default encryption type. The
// key is owned by Amazon Keyspaces (no additional charge).
//
// - Customer managed key - This key is stored in your account and is created,
// owned, and managed by you. You have full control over the customer managed key
// (KMS charges apply).
//
// For more information about encryption at rest in Amazon Keyspaces, see [Encryption at rest] in the
// Amazon Keyspaces Developer Guide.
//
// For more information about KMS, see [KMS management service concepts] in the Key Management Service Developer
// Guide.
//
// [KMS management service concepts]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
// [Encryption at rest]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
type EncryptionSpecification struct {
// The encryption option specified for the table. You can choose one of the
// following KMS keys (KMS keys):
//
// - type:AWS_OWNED_KMS_KEY - This key is owned by Amazon Keyspaces.
//
// - type:CUSTOMER_MANAGED_KMS_KEY - This key is stored in your account and is
// created, owned, and managed by you. This option requires the
// kms_key_identifier of the KMS key in Amazon Resource Name (ARN) format as
// input.
//
// The default is type:AWS_OWNED_KMS_KEY .
//
// For more information, see [Encryption at rest] in the Amazon Keyspaces Developer Guide.
//
// [Encryption at rest]: https://docs.aws.amazon.com/keyspaces/latest/devguide/EncryptionAtRest.html
//
// This member is required.
Type EncryptionType
// The Amazon Resource Name (ARN) of the customer managed KMS key, for example
// kms_key_identifier:ARN .
KmsKeyIdentifier *string
noSmithyDocumentSerde
}
// Represents the properties of a keyspace.
type KeyspaceSummary struct {
// The name of the keyspace.
//
// This member is required.
KeyspaceName *string
// This property specifies if a keyspace is a single Region keyspace or a
// multi-Region keyspace. The available values are SINGLE_REGION or MULTI_REGION .
//
// This member is required.
ReplicationStrategy Rs
// The unique identifier of the keyspace in the format of an Amazon Resource Name
// (ARN).
//
// This member is required.
ResourceArn *string
// If the replicationStrategy of the keyspace is MULTI_REGION , a list of
// replication Regions is returned.
ReplicationRegions []string
noSmithyDocumentSerde
}
// The partition key portion of the primary key is required and determines how
// Amazon Keyspaces stores the data. The partition key can be a single column, or
// it can be a compound value composed of two or more columns.
type PartitionKey struct {
// The name(s) of the partition key column(s).
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Point-in-time recovery (PITR) helps protect your Amazon Keyspaces tables from
// accidental write or delete operations by providing you continuous backups of
// your table data.
//
// For more information, see [Point-in-time recovery] in the Amazon Keyspaces Developer Guide.
//
// [Point-in-time recovery]: https://docs.aws.amazon.com/keyspaces/latest/devguide/PointInTimeRecovery.html
type PointInTimeRecovery struct {
// The options are:
//
// - status=ENABLED
//
// - status=DISABLED
//
// This member is required.
Status PointInTimeRecoveryStatus
noSmithyDocumentSerde
}
// The point-in-time recovery status of the specified table.
type PointInTimeRecoverySummary struct {
// Shows if point-in-time recovery is enabled or disabled for the specified table.
//
// This member is required.
Status PointInTimeRecoveryStatus
// Specifies the earliest possible restore point of the table in ISO 8601 format.
EarliestRestorableTimestamp *time.Time
noSmithyDocumentSerde
}
// The auto scaling settings of a multi-Region table in the specified Amazon Web
// Services Region.
type ReplicaAutoScalingSpecification struct {
// The auto scaling settings for a multi-Region table in the specified Amazon Web
// Services Region.
AutoScalingSpecification *AutoScalingSpecification
// The Amazon Web Services Region.
Region *string
noSmithyDocumentSerde
}
// The Amazon Web Services Region specific settings of a multi-Region table.
//
// For a multi-Region table, you can configure the table's read capacity
// differently per Amazon Web Services Region. You can do this by configuring the
// following parameters.
//
// - region : The Region where these settings are applied. (Required)
//
// - readCapacityUnits : The provisioned read capacity units. (Optional)
//
// - readCapacityAutoScaling : The read capacity auto scaling settings for the
// table. (Optional)
type ReplicaSpecification struct {
// The Amazon Web Services Region.
//
// This member is required.
Region *string
// The read capacity auto scaling settings for the multi-Region table in the
// specified Amazon Web Services Region.
ReadCapacityAutoScaling *AutoScalingSettings
// The provisioned read capacity units for the multi-Region table in the specified
// Amazon Web Services Region.
ReadCapacityUnits *int64
noSmithyDocumentSerde
}
// The Region-specific settings of a multi-Region table in the specified Amazon
// Web Services Region.
//
// If the multi-Region table is using provisioned capacity and has optional auto
// scaling policies configured, note that the Region specific summary returns both
// read and write capacity settings. But only Region specific read capacity
// settings can be configured for a multi-Region table. In a multi-Region table,
// your write capacity units will be synced across all Amazon Web Services Regions
// to ensure that there is enough capacity to replicate write events across
// Regions.
type ReplicaSpecificationSummary struct {
// The read/write throughput capacity mode for a table. The options are:
//
// - throughputMode:PAY_PER_REQUEST and
//
// - throughputMode:PROVISIONED .
//
// For more information, see [Read/write capacity modes] in the Amazon Keyspaces Developer Guide.
//
// [Read/write capacity modes]: https://docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
CapacitySpecification *CapacitySpecificationSummary
// The Amazon Web Services Region.
Region *string
// The status of the multi-Region table in the specified Amazon Web Services
// Region.
Status TableStatus
noSmithyDocumentSerde
}
// The replication specification of the keyspace includes:
//
// - regionList - up to six Amazon Web Services Regions where the keyspace is
// replicated in.
//
// - replicationStrategy - the required value is SINGLE_REGION or MULTI_REGION .
type ReplicationSpecification struct {
// The replicationStrategy of a keyspace, the required value is SINGLE_REGION or
// MULTI_REGION .
//
// This member is required.
ReplicationStrategy Rs
// The regionList can contain up to six Amazon Web Services Regions where the
// keyspace is replicated in.
RegionList []string
noSmithyDocumentSerde
}
// Describes the schema of the table.
type SchemaDefinition struct {
// The regular columns of the table.
//
// This member is required.
AllColumns []ColumnDefinition
// The columns that are part of the partition key of the table .
//
// This member is required.
PartitionKeys []PartitionKey
// The columns that are part of the clustering key of the table.
ClusteringKeys []ClusteringKey
// The columns that have been defined as STATIC . Static columns store values that
// are shared by all rows in the same partition.
StaticColumns []StaticColumn
noSmithyDocumentSerde
}
// The static columns of the table. Static columns store values that are shared by
// all rows in the same partition.
type StaticColumn struct {
// The name of the static column.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// Returns the name of the specified table, the keyspace it is stored in, and the
// unique identifier in the format of an Amazon Resource Name (ARN).
type TableSummary struct {
// The name of the keyspace that the table is stored in.
//
// This member is required.
KeyspaceName *string
// The unique identifier of the table in the format of an Amazon Resource Name
// (ARN).
//
// This member is required.
ResourceArn *string
// The name of the table.
//
// This member is required.
TableName *string
noSmithyDocumentSerde
}
// Describes a tag. A tag is a key-value pair. You can add up to 50 tags to a
// single Amazon Keyspaces resource.
//
// Amazon Web Services-assigned tag names and values are automatically assigned
// the aws: prefix, which the user cannot assign. Amazon Web Services-assigned tag
// names do not count towards the tag limit of 50. User-assigned tag names have the
// prefix user: in the Cost Allocation Report. You cannot backdate the application
// of a tag.
//
// For more information, see [Adding tags and labels to Amazon Keyspaces resources] in the Amazon Keyspaces Developer Guide.
//
// [Adding tags and labels to Amazon Keyspaces resources]: https://docs.aws.amazon.com/keyspaces/latest/devguide/tagging-keyspaces.html
type Tag struct {
// The key of the tag. Tag keys are case sensitive. Each Amazon Keyspaces resource
// can only have up to one tag with the same key. If you try to add an existing tag
// (same key), the existing tag value will be updated to the new value.
//
// This member is required.
Key *string
// The value of the tag. Tag values are case-sensitive and can be null.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
// The auto scaling policy that scales a table based on the ratio of consumed to
// provisioned capacity.
type TargetTrackingScalingPolicyConfiguration struct {
// Specifies the target value for the target tracking auto scaling policy.
//
// Amazon Keyspaces auto scaling scales up capacity automatically when traffic
// exceeds this target utilization rate, and then back down when it falls below the
// target. This ensures that the ratio of consumed capacity to provisioned capacity
// stays at or near this value. You define targetValue as a percentage. A double
// between 20 and 90.
//
// This member is required.
TargetValue float64
// Specifies if scale-in is enabled.
//
// When auto scaling automatically decreases capacity for a table, the table
// scales in. When scaling policies are set, they can't scale in the table lower
// than its minimum capacity.
DisableScaleIn bool
// Specifies a scale-in cool down period.
//
// A cooldown period in seconds between scaling activities that lets the table
// stabilize before another scaling activity starts.
ScaleInCooldown int32
// Specifies a scale out cool down period.
//
// A cooldown period in seconds between scaling activities that lets the table
// stabilize before another scaling activity starts.
ScaleOutCooldown int32
noSmithyDocumentSerde
}
// Enable custom Time to Live (TTL) settings for rows and columns without setting
// a TTL default for the specified table.
//
// For more information, see [Enabling TTL on tables] in the Amazon Keyspaces Developer Guide.
//
// [Enabling TTL on tables]: https://docs.aws.amazon.com/keyspaces/latest/devguide/TTL-how-it-works.html#ttl-howitworks_enabling
type TimeToLive struct {
// Shows how to enable custom Time to Live (TTL) settings for the specified table.
//
// This member is required.
Status TimeToLiveStatus
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|