#[non_exhaustive]pub struct CreateKxClusterOutput {Show 24 fields
pub environment_id: Option<String>,
pub status: Option<KxClusterStatus>,
pub status_reason: Option<String>,
pub cluster_name: Option<String>,
pub cluster_type: Option<KxClusterType>,
pub tickerplant_log_configuration: Option<TickerplantLogConfiguration>,
pub volumes: Option<Vec<Volume>>,
pub databases: Option<Vec<KxDatabaseConfiguration>>,
pub cache_storage_configurations: Option<Vec<KxCacheStorageConfiguration>>,
pub auto_scaling_configuration: Option<AutoScalingConfiguration>,
pub cluster_description: Option<String>,
pub capacity_configuration: Option<CapacityConfiguration>,
pub release_label: Option<String>,
pub vpc_configuration: Option<VpcConfiguration>,
pub initialization_script: Option<String>,
pub command_line_arguments: Option<Vec<KxCommandLineArgument>>,
pub code: Option<CodeConfiguration>,
pub execution_role: Option<String>,
pub last_modified_timestamp: Option<DateTime>,
pub savedown_storage_configuration: Option<KxSavedownStorageConfiguration>,
pub az_mode: Option<KxAzMode>,
pub availability_zone_id: Option<String>,
pub created_timestamp: Option<DateTime>,
pub scaling_group_configuration: Option<KxScalingGroupConfiguration>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.environment_id: Option<String>
A unique identifier for the kdb environment.
status: Option<KxClusterStatus>
The status of cluster creation.
-
PENDING – The cluster is pending creation.
-
CREATING – The cluster creation process is in progress.
-
CREATE_FAILED – The cluster creation process has failed.
-
RUNNING – The cluster creation process is running.
-
UPDATING – The cluster is in the process of being updated.
-
DELETING – The cluster is in the process of being deleted.
-
DELETED – The cluster has been deleted.
-
DELETE_FAILED – The cluster failed to delete.
status_reason: Option<String>
The error message when a failed state occurs.
cluster_name: Option<String>
A unique name for the cluster.
cluster_type: Option<KxClusterType>
Specifies the type of KDB database that is being created. The following types are available:
-
HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
-
RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the
savedownStorageConfiguration
parameter. -
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
-
GP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only
SINGLE
AZ mode. -
Tickerplant – A tickerplant cluster allows you to subscribe to feed handlers based on IAM permissions. It can publish to RDBs, other Tickerplants, and real-time subscribers (RTS). Tickerplants can persist messages to log, which is readable by any RDB environment. It supports only single-node that is only one kdb process.
tickerplant_log_configuration: Option<TickerplantLogConfiguration>
A configuration to store the Tickerplant logs. It consists of a list of volumes that will be mounted to your cluster. For the cluster type Tickerplant
, the location of the TP volume on the cluster will be available by using the global variable .aws.tp_log_path
.
volumes: Option<Vec<Volume>>
A list of volumes mounted on the cluster.
databases: Option<Vec<KxDatabaseConfiguration>>
A list of databases that will be available for querying.
cache_storage_configurations: Option<Vec<KxCacheStorageConfiguration>>
The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx Lustre that reads from the S3 store.
auto_scaling_configuration: Option<AutoScalingConfiguration>
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
cluster_description: Option<String>
A description of the cluster.
capacity_configuration: Option<CapacityConfiguration>
A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, and number of instances.
release_label: Option<String>
A version of the FinSpace managed kdb to run.
vpc_configuration: Option<VpcConfiguration>
Configuration details about the network where the Privatelink endpoint of the cluster resides.
initialization_script: Option<String>
Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q
.
command_line_arguments: Option<Vec<KxCommandLineArgument>>
Defines the key-value pairs to make them available inside the cluster.
code: Option<CodeConfiguration>
The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the cluster.
execution_role: Option<String>
An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a cluster attempts to access another cluster.
last_modified_timestamp: Option<DateTime>
The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
savedown_storage_configuration: Option<KxSavedownStorageConfiguration>
The size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose clusterType
as RDB. All the data written to this storage space is lost when the cluster node is restarted.
az_mode: Option<KxAzMode>
The number of availability zones you want to assign per cluster. This can be one of the following
-
SINGLE
– Assigns one availability zone per cluster. -
MULTI
– Assigns all the availability zones per cluster.
availability_zone_id: Option<String>
The availability zone identifiers for the requested regions.
created_timestamp: Option<DateTime>
The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
scaling_group_configuration: Option<KxScalingGroupConfiguration>
The structure that stores the configuration details of a scaling group.
Implementations§
Source§impl CreateKxClusterOutput
impl CreateKxClusterOutput
Sourcepub fn environment_id(&self) -> Option<&str>
pub fn environment_id(&self) -> Option<&str>
A unique identifier for the kdb environment.
Sourcepub fn status(&self) -> Option<&KxClusterStatus>
pub fn status(&self) -> Option<&KxClusterStatus>
The status of cluster creation.
-
PENDING – The cluster is pending creation.
-
CREATING – The cluster creation process is in progress.
-
CREATE_FAILED – The cluster creation process has failed.
-
RUNNING – The cluster creation process is running.
-
UPDATING – The cluster is in the process of being updated.
-
DELETING – The cluster is in the process of being deleted.
-
DELETED – The cluster has been deleted.
-
DELETE_FAILED – The cluster failed to delete.
Sourcepub fn status_reason(&self) -> Option<&str>
pub fn status_reason(&self) -> Option<&str>
The error message when a failed state occurs.
Sourcepub fn cluster_name(&self) -> Option<&str>
pub fn cluster_name(&self) -> Option<&str>
A unique name for the cluster.
Sourcepub fn cluster_type(&self) -> Option<&KxClusterType>
pub fn cluster_type(&self) -> Option<&KxClusterType>
Specifies the type of KDB database that is being created. The following types are available:
-
HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
-
RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the
savedownStorageConfiguration
parameter. -
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
-
GP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only
SINGLE
AZ mode. -
Tickerplant – A tickerplant cluster allows you to subscribe to feed handlers based on IAM permissions. It can publish to RDBs, other Tickerplants, and real-time subscribers (RTS). Tickerplants can persist messages to log, which is readable by any RDB environment. It supports only single-node that is only one kdb process.
Sourcepub fn tickerplant_log_configuration(
&self,
) -> Option<&TickerplantLogConfiguration>
pub fn tickerplant_log_configuration( &self, ) -> Option<&TickerplantLogConfiguration>
A configuration to store the Tickerplant logs. It consists of a list of volumes that will be mounted to your cluster. For the cluster type Tickerplant
, the location of the TP volume on the cluster will be available by using the global variable .aws.tp_log_path
.
Sourcepub fn volumes(&self) -> &[Volume]
pub fn volumes(&self) -> &[Volume]
A list of volumes mounted on the cluster.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .volumes.is_none()
.
Sourcepub fn databases(&self) -> &[KxDatabaseConfiguration]
pub fn databases(&self) -> &[KxDatabaseConfiguration]
A list of databases that will be available for querying.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .databases.is_none()
.
Sourcepub fn cache_storage_configurations(&self) -> &[KxCacheStorageConfiguration]
pub fn cache_storage_configurations(&self) -> &[KxCacheStorageConfiguration]
The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx Lustre that reads from the S3 store.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .cache_storage_configurations.is_none()
.
Sourcepub fn auto_scaling_configuration(&self) -> Option<&AutoScalingConfiguration>
pub fn auto_scaling_configuration(&self) -> Option<&AutoScalingConfiguration>
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
Sourcepub fn cluster_description(&self) -> Option<&str>
pub fn cluster_description(&self) -> Option<&str>
A description of the cluster.
Sourcepub fn capacity_configuration(&self) -> Option<&CapacityConfiguration>
pub fn capacity_configuration(&self) -> Option<&CapacityConfiguration>
A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, and number of instances.
Sourcepub fn release_label(&self) -> Option<&str>
pub fn release_label(&self) -> Option<&str>
A version of the FinSpace managed kdb to run.
Sourcepub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
pub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
Configuration details about the network where the Privatelink endpoint of the cluster resides.
Sourcepub fn initialization_script(&self) -> Option<&str>
pub fn initialization_script(&self) -> Option<&str>
Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q
.
Sourcepub fn command_line_arguments(&self) -> &[KxCommandLineArgument]
pub fn command_line_arguments(&self) -> &[KxCommandLineArgument]
Defines the key-value pairs to make them available inside the cluster.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .command_line_arguments.is_none()
.
Sourcepub fn code(&self) -> Option<&CodeConfiguration>
pub fn code(&self) -> Option<&CodeConfiguration>
The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the cluster.
Sourcepub fn execution_role(&self) -> Option<&str>
pub fn execution_role(&self) -> Option<&str>
An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a cluster attempts to access another cluster.
Sourcepub fn last_modified_timestamp(&self) -> Option<&DateTime>
pub fn last_modified_timestamp(&self) -> Option<&DateTime>
The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn savedown_storage_configuration(
&self,
) -> Option<&KxSavedownStorageConfiguration>
pub fn savedown_storage_configuration( &self, ) -> Option<&KxSavedownStorageConfiguration>
The size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose clusterType
as RDB. All the data written to this storage space is lost when the cluster node is restarted.
Sourcepub fn az_mode(&self) -> Option<&KxAzMode>
pub fn az_mode(&self) -> Option<&KxAzMode>
The number of availability zones you want to assign per cluster. This can be one of the following
-
SINGLE
– Assigns one availability zone per cluster. -
MULTI
– Assigns all the availability zones per cluster.
Sourcepub fn availability_zone_id(&self) -> Option<&str>
pub fn availability_zone_id(&self) -> Option<&str>
The availability zone identifiers for the requested regions.
Sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn scaling_group_configuration(
&self,
) -> Option<&KxScalingGroupConfiguration>
pub fn scaling_group_configuration( &self, ) -> Option<&KxScalingGroupConfiguration>
The structure that stores the configuration details of a scaling group.
Source§impl CreateKxClusterOutput
impl CreateKxClusterOutput
Sourcepub fn builder() -> CreateKxClusterOutputBuilder
pub fn builder() -> CreateKxClusterOutputBuilder
Creates a new builder-style object to manufacture CreateKxClusterOutput
.
Trait Implementations§
Source§impl Clone for CreateKxClusterOutput
impl Clone for CreateKxClusterOutput
Source§fn clone(&self) -> CreateKxClusterOutput
fn clone(&self) -> CreateKxClusterOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateKxClusterOutput
impl Debug for CreateKxClusterOutput
Source§impl PartialEq for CreateKxClusterOutput
impl PartialEq for CreateKxClusterOutput
Source§impl RequestId for CreateKxClusterOutput
impl RequestId for CreateKxClusterOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateKxClusterOutput
Auto Trait Implementations§
impl Freeze for CreateKxClusterOutput
impl RefUnwindSafe for CreateKxClusterOutput
impl Send for CreateKxClusterOutput
impl Sync for CreateKxClusterOutput
impl Unpin for CreateKxClusterOutput
impl UnwindSafe for CreateKxClusterOutput
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§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();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§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();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§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();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§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();
Source§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.Source§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);