aws_sdk_datazone/client/
get_asset.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 [`GetAsset`](crate::operation::get_asset::builders::GetAssetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the Amazon DataZone domain to which the asset belongs.</p><br>
7    ///   - [`identifier(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_identifier):<br>required: **true**<br><p>The ID of the Amazon DataZone asset.</p> <p>This parameter supports either the value of <code>assetId</code> or <code>externalIdentifier</code> as input. If you are passing the value of <code>externalIdentifier</code>, you must prefix this value with <code>externalIdentifer%2F</code>.</p><br>
8    ///   - [`revision(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::revision) / [`set_revision(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_revision):<br>required: **false**<br><p>The revision of the Amazon DataZone asset.</p><br>
9    /// - On success, responds with [`GetAssetOutput`](crate::operation::get_asset::GetAssetOutput) with field(s):
10    ///   - [`id(String)`](crate::operation::get_asset::GetAssetOutput::id): <p>The ID of the asset.</p>
11    ///   - [`name(String)`](crate::operation::get_asset::GetAssetOutput::name): <p>The name of the asset.</p>
12    ///   - [`type_identifier(String)`](crate::operation::get_asset::GetAssetOutput::type_identifier): <p>The ID of the asset type.</p>
13    ///   - [`type_revision(String)`](crate::operation::get_asset::GetAssetOutput::type_revision): <p>The revision of the asset type.</p>
14    ///   - [`external_identifier(Option<String>)`](crate::operation::get_asset::GetAssetOutput::external_identifier): <p>The external ID of the asset.</p>
15    ///   - [`revision(String)`](crate::operation::get_asset::GetAssetOutput::revision): <p>The revision of the asset.</p>
16    ///   - [`description(Option<String>)`](crate::operation::get_asset::GetAssetOutput::description): <p>The description of the Amazon DataZone asset.</p>
17    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_asset::GetAssetOutput::created_at): <p>The timestamp of when the asset was created.</p>
18    ///   - [`created_by(Option<String>)`](crate::operation::get_asset::GetAssetOutput::created_by): <p>The Amazon DataZone user who created the asset.</p>
19    ///   - [`first_revision_created_at(Option<DateTime>)`](crate::operation::get_asset::GetAssetOutput::first_revision_created_at): <p>The timestamp of when the first revision of the asset was created.</p>
20    ///   - [`first_revision_created_by(Option<String>)`](crate::operation::get_asset::GetAssetOutput::first_revision_created_by): <p>The Amazon DataZone user who created the first revision of the asset.</p>
21    ///   - [`glossary_terms(Option<Vec::<String>>)`](crate::operation::get_asset::GetAssetOutput::glossary_terms): <p>The business glossary terms attached to the asset.</p>
22    ///   - [`owning_project_id(String)`](crate::operation::get_asset::GetAssetOutput::owning_project_id): <p>The ID of the project that owns the asset.</p>
23    ///   - [`domain_id(String)`](crate::operation::get_asset::GetAssetOutput::domain_id): <p>The ID of the Amazon DataZone domain to which the asset belongs.</p>
24    ///   - [`listing(Option<AssetListingDetails>)`](crate::operation::get_asset::GetAssetOutput::listing): <p>The listing of the asset.</p>
25    ///   - [`forms_output(Vec::<FormOutput>)`](crate::operation::get_asset::GetAssetOutput::forms_output): <p>The metadata forms attached to the asset.</p>
26    ///   - [`read_only_forms_output(Option<Vec::<FormOutput>>)`](crate::operation::get_asset::GetAssetOutput::read_only_forms_output): <p>The read-only metadata forms attached to the asset.</p>
27    ///   - [`latest_time_series_data_point_forms_output(Option<Vec::<TimeSeriesDataPointSummaryFormOutput>>)`](crate::operation::get_asset::GetAssetOutput::latest_time_series_data_point_forms_output): <p>The latest data point that was imported into the time series form for the asset.</p>
28    /// - On failure, responds with [`SdkError<GetAssetError>`](crate::operation::get_asset::GetAssetError)
29    pub fn get_asset(&self) -> crate::operation::get_asset::builders::GetAssetFluentBuilder {
30        crate::operation::get_asset::builders::GetAssetFluentBuilder::new(self.handle.clone())
31    }
32}