#[non_exhaustive]pub struct S3DestinationConfiguration {
pub bucket: String,
pub key: String,
pub glue_configuration: Option<GlueConfiguration>,
pub role_arn: String,
}
Expand description
Configuration information for delivery of dataset contents to Amazon Simple Storage Service (Amazon S3).
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.bucket: String
The name of the S3 bucket to which dataset contents are delivered.
key: String
The key of the dataset contents object in an S3 bucket. Each object has a key that is a unique identifier. Each object has exactly one key.
You can create a unique key with the following options:
-
Use
!{iotanalytics:scheduleTime}
to insert the time of a scheduled SQL query run. -
Use
!{iotanalytics:versionId}
to insert a unique hash that identifies a dataset content. -
Use
!{iotanalytics:creationTime}
to insert the creation time of a dataset content.
The following example creates a unique key for a CSV file: dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv
If you don't use !{iotanalytics:versionId}
to specify the key, you might get duplicate keys. For example, you might have two dataset contents with the same scheduleTime
but different versionId
s. This means that one dataset content overwrites the other.
glue_configuration: Option<GlueConfiguration>
Configuration information for coordination with Glue, a fully managed extract, transform and load (ETL) service.
role_arn: String
The ARN of the role that grants IoT Analytics permission to interact with your Amazon S3 and Glue resources.
Implementations§
source§impl S3DestinationConfiguration
impl S3DestinationConfiguration
sourcepub fn bucket(&self) -> &str
pub fn bucket(&self) -> &str
The name of the S3 bucket to which dataset contents are delivered.
sourcepub fn key(&self) -> &str
pub fn key(&self) -> &str
The key of the dataset contents object in an S3 bucket. Each object has a key that is a unique identifier. Each object has exactly one key.
You can create a unique key with the following options:
-
Use
!{iotanalytics:scheduleTime}
to insert the time of a scheduled SQL query run. -
Use
!{iotanalytics:versionId}
to insert a unique hash that identifies a dataset content. -
Use
!{iotanalytics:creationTime}
to insert the creation time of a dataset content.
The following example creates a unique key for a CSV file: dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv
If you don't use !{iotanalytics:versionId}
to specify the key, you might get duplicate keys. For example, you might have two dataset contents with the same scheduleTime
but different versionId
s. This means that one dataset content overwrites the other.
sourcepub fn glue_configuration(&self) -> Option<&GlueConfiguration>
pub fn glue_configuration(&self) -> Option<&GlueConfiguration>
Configuration information for coordination with Glue, a fully managed extract, transform and load (ETL) service.
source§impl S3DestinationConfiguration
impl S3DestinationConfiguration
sourcepub fn builder() -> S3DestinationConfigurationBuilder
pub fn builder() -> S3DestinationConfigurationBuilder
Creates a new builder-style object to manufacture S3DestinationConfiguration
.
Trait Implementations§
source§impl Clone for S3DestinationConfiguration
impl Clone for S3DestinationConfiguration
source§fn clone(&self) -> S3DestinationConfiguration
fn clone(&self) -> S3DestinationConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for S3DestinationConfiguration
impl Debug for S3DestinationConfiguration
source§impl PartialEq for S3DestinationConfiguration
impl PartialEq for S3DestinationConfiguration
source§fn eq(&self, other: &S3DestinationConfiguration) -> bool
fn eq(&self, other: &S3DestinationConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.