Skip to main content

aws_sdk_partnercentralanalytics/client/
get_data_subscription.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetDataSubscription`](crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`catalog(impl Into<String>)`](crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder::catalog) / [`set_catalog(Option<String>)`](crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder::set_catalog):<br>required: **true**<br>The catalog the subscription belongs to.<br>
7    ///   - [`data_subscription_identifier(impl Into<String>)`](crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder::data_subscription_identifier) / [`set_data_subscription_identifier(Option<String>)`](crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder::set_data_subscription_identifier):<br>required: **true**<br>The ARN of the data subscription.<br>
8    /// - On success, responds with [`GetDataSubscriptionOutput`](crate::operation::get_data_subscription::GetDataSubscriptionOutput) with field(s):
9    ///   - [`data_subscription_identifier(String)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::data_subscription_identifier): The ARN of a data subscription.
10    ///   - [`catalog(String)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::catalog): Specifies the catalog associated with the request.
11    ///   - [`dataset_name(String)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::dataset_name): Specifies the name of a dataset. A bare dataset name (not an ARN); the resource ARN is composed by the runtime/authorizer.
12    ///   - [`delivery_method(DeliveryMethod)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivery_method): How a dataset is delivered.
13    ///   - [`s3_arn(String)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::s3_arn): The ARN of an S3 bucket.
14    ///   - [`kms_key_arn(String)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::kms_key_arn): The ARN of a KMS key.
15    ///   - [`create_timestamp(DateTime)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::create_timestamp): When the subscription was created.
16    ///   - [`delivery_completeness(Option<DateTime>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivery_completeness): The extract date through which data has been delivered. Absent until the first successful delivery.
17    ///   - [`delivery_status(DeliveryStatus)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivery_status): The lifecycle state of the subscription.
18    ///   - [`delivery_status_message(Option<String>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivery_status_message): Additional detail about the delivery status, when available.
19    ///   - [`delete_timestamp(Option<DateTime>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delete_timestamp): When the subscription was deleted. Present only on deleted subscriptions.
20    ///   - [`delivery_state(Option<DeliveryState>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivery_state): The delivery state of the subscription, summarizing whether data is arriving in your bucket as expected. See DeliveryState for what each value means. Absent when the service cannot determine it.
21    ///   - [`delivered_through(Option<DateTime>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivered_through): The extract date through which data has been delivered to your bucket. Same value as deliveryCompleteness; prefer this member. Absent until the first successful delivery.
22    ///   - [`last_delivery_time(Option<DateTime>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::last_delivery_time): When the most recent delivery cycle finished. Absent until a delivery cycle has finished.
23    ///   - [`delivery_state_message(Option<String>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::delivery_state_message): A message that explains the delivery state. Present when deliveryState is ACTION_NEEDED, where it describes why the last write to your bucket was refused so you can fix the bucket policy or KMS key.
24    ///   - [`initial_delivery_progress(Option<InitialDeliveryProgress>)`](crate::operation::get_data_subscription::GetDataSubscriptionOutput::initial_delivery_progress): How far the first fill of the dataset's history has progressed. Present only when deliveryState is INITIAL_DELIVERY.
25    /// - On failure, responds with [`SdkError<GetDataSubscriptionError>`](crate::operation::get_data_subscription::GetDataSubscriptionError)
26    pub fn get_data_subscription(&self) -> crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder {
27        crate::operation::get_data_subscription::builders::GetDataSubscriptionFluentBuilder::new(self.handle.clone())
28    }
29}