pub struct MonitoringGetSinkResponseSinkDestinationConfig {
pub cluster_name: Option<String>,
pub cluster_uuid: Option<String>,
pub credentials: Option<MonitoringGetSinkResponseSinkDestinationConfigCredentials>,
pub endpoint: String,
pub id: Option<String>,
pub index_name: Option<String>,
pub retention_days: Option<i64>,
}Expand description
MonitoringGetSinkResponseSinkDestinationConfig
JSON schema
{
"type": "object",
"required": [
"endpoint"
],
"properties": {
"cluster_name": {
"description": "Name of a managed OpenSearch cluster.",
"examples": [
"managed_dbaas_cluster"
],
"type": "string"
},
"cluster_uuid": {
"description": "A unique identifier for a managed OpenSearch cluster.",
"examples": [
"85148069-7e35-4999-80bd-6fa1637ca385"
],
"type": "string"
},
"credentials": {
"description": "Credentials for an OpenSearch cluster user. Optional if `cluster_uuid` is passed.",
"type": "object",
"properties": {
"password": {
"examples": [
"password"
],
"type": "string"
},
"username": {
"examples": [
"username"
],
"type": "string"
}
}
},
"endpoint": {
"description": "host of the OpenSearch cluster",
"examples": [
"example.com"
],
"type": "string"
},
"id": {
"description": "A unique identifier for a configuration.",
"examples": [
"41078d41-165c-4cff-9f0a-19536e3e3d49"
],
"type": "string"
},
"index_name": {
"description": "OpenSearch index to send logs to.",
"examples": [
"logs"
],
"type": "string"
},
"retention_days": {
"description": "Number of days to retain logs in OpenSearch (default: 14)",
"examples": [
14
],
"type": "integer"
}
}
}Fields§
§cluster_name: Option<String>Name of a managed OpenSearch cluster.
cluster_uuid: Option<String>A unique identifier for a managed OpenSearch cluster.
credentials: Option<MonitoringGetSinkResponseSinkDestinationConfigCredentials>§endpoint: Stringhost of the OpenSearch cluster
id: Option<String>A unique identifier for a configuration.
index_name: Option<String>OpenSearch index to send logs to.
retention_days: Option<i64>Number of days to retain logs in OpenSearch (default: 14)
Trait Implementations§
Source§impl Clone for MonitoringGetSinkResponseSinkDestinationConfig
impl Clone for MonitoringGetSinkResponseSinkDestinationConfig
Source§fn clone(&self) -> MonitoringGetSinkResponseSinkDestinationConfig
fn clone(&self) -> MonitoringGetSinkResponseSinkDestinationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for MonitoringGetSinkResponseSinkDestinationConfig
impl<'de> Deserialize<'de> for MonitoringGetSinkResponseSinkDestinationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&MonitoringGetSinkResponseSinkDestinationConfig> for MonitoringGetSinkResponseSinkDestinationConfig
impl From<&MonitoringGetSinkResponseSinkDestinationConfig> for MonitoringGetSinkResponseSinkDestinationConfig
Source§fn from(value: &MonitoringGetSinkResponseSinkDestinationConfig) -> Self
fn from(value: &MonitoringGetSinkResponseSinkDestinationConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MonitoringGetSinkResponseSinkDestinationConfig
impl RefUnwindSafe for MonitoringGetSinkResponseSinkDestinationConfig
impl Send for MonitoringGetSinkResponseSinkDestinationConfig
impl Sync for MonitoringGetSinkResponseSinkDestinationConfig
impl Unpin for MonitoringGetSinkResponseSinkDestinationConfig
impl UnsafeUnpin for MonitoringGetSinkResponseSinkDestinationConfig
impl UnwindSafe for MonitoringGetSinkResponseSinkDestinationConfig
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
Mutably borrows from an owned value. Read more