aws_sdk_datazone/client/
create_asset.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAsset`](crate::operation::create_asset::builders::CreateAssetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_name):<br>required: **true**<br><p>Asset name.</p><br>
    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>Amazon DataZone domain where the asset is created.</p><br>
    ///   - [`external_identifier(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::external_identifier) / [`set_external_identifier(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_external_identifier):<br>required: **false**<br><p>The external identifier of the asset.</p><br>
    ///   - [`type_identifier(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::type_identifier) / [`set_type_identifier(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_type_identifier):<br>required: **true**<br><p>The unique identifier of this asset's type.</p><br>
    ///   - [`type_revision(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::type_revision) / [`set_type_revision(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_type_revision):<br>required: **false**<br><p>The revision of this asset's type.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_description):<br>required: **false**<br><p>Asset description.</p><br>
    ///   - [`glossary_terms(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::glossary_terms) / [`set_glossary_terms(Option<Vec::<String>>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_glossary_terms):<br>required: **false**<br><p>Glossary terms attached to the asset.</p><br>
    ///   - [`forms_input(FormInput)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::forms_input) / [`set_forms_input(Option<Vec::<FormInput>>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_forms_input):<br>required: **false**<br><p>Metadata forms attached to the asset.</p><br>
    ///   - [`owning_project_identifier(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::owning_project_identifier) / [`set_owning_project_identifier(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_owning_project_identifier):<br>required: **true**<br><p>The unique identifier of the project that owns this asset.</p><br>
    ///   - [`prediction_configuration(PredictionConfiguration)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::prediction_configuration) / [`set_prediction_configuration(Option<PredictionConfiguration>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_prediction_configuration):<br>required: **false**<br><p>The configuration of the automatically generated business-friendly metadata for the asset.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_asset::builders::CreateAssetFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p><br>
    /// - On success, responds with [`CreateAssetOutput`](crate::operation::create_asset::CreateAssetOutput) with field(s):
    ///   - [`id(String)`](crate::operation::create_asset::CreateAssetOutput::id): <p>The unique identifier of the created asset.</p>
    ///   - [`name(String)`](crate::operation::create_asset::CreateAssetOutput::name): <p>The name of the created asset.</p>
    ///   - [`type_identifier(String)`](crate::operation::create_asset::CreateAssetOutput::type_identifier): <p>The identifier of the created asset type.</p>
    ///   - [`type_revision(String)`](crate::operation::create_asset::CreateAssetOutput::type_revision): <p>The revision type of the asset.</p>
    ///   - [`external_identifier(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::external_identifier): <p>The external identifier of the asset.</p>
    ///   - [`revision(String)`](crate::operation::create_asset::CreateAssetOutput::revision): <p>The revision of the asset.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::description): <p>The description of the created asset.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_asset::CreateAssetOutput::created_at): <p>The timestamp of when the asset was created.</p>
    ///   - [`created_by(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::created_by): <p>The Amazon DataZone user that created this asset in the catalog.</p>
    ///   - [`first_revision_created_at(Option<DateTime>)`](crate::operation::create_asset::CreateAssetOutput::first_revision_created_at): <p>The timestamp of when the first revision of the asset took place.</p>
    ///   - [`first_revision_created_by(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::first_revision_created_by): <p>The Amazon DataZone user that made the first revision of the asset.</p>
    ///   - [`glossary_terms(Option<Vec::<String>>)`](crate::operation::create_asset::CreateAssetOutput::glossary_terms): <p>The glossary terms that are attached to the created asset.</p>
    ///   - [`owning_project_id(String)`](crate::operation::create_asset::CreateAssetOutput::owning_project_id): <p>The ID of the Amazon DataZone project that owns the created asset.</p>
    ///   - [`domain_id(String)`](crate::operation::create_asset::CreateAssetOutput::domain_id): <p>The ID of the Amazon DataZone domain in which the asset was created.</p>
    ///   - [`listing(Option<AssetListingDetails>)`](crate::operation::create_asset::CreateAssetOutput::listing): <p>The details of an asset published in an Amazon DataZone catalog.</p>
    ///   - [`forms_output(Vec::<FormOutput>)`](crate::operation::create_asset::CreateAssetOutput::forms_output): <p>The metadata forms that are attached to the created asset.</p>
    ///   - [`read_only_forms_output(Option<Vec::<FormOutput>>)`](crate::operation::create_asset::CreateAssetOutput::read_only_forms_output): <p>The read-only metadata forms that are attached to the created asset.</p>
    ///   - [`latest_time_series_data_point_forms_output(Option<Vec::<TimeSeriesDataPointSummaryFormOutput>>)`](crate::operation::create_asset::CreateAssetOutput::latest_time_series_data_point_forms_output): <p>The latest data point that was imported into the time series form for the asset.</p>
    ///   - [`prediction_configuration(Option<PredictionConfiguration>)`](crate::operation::create_asset::CreateAssetOutput::prediction_configuration): <p>The configuration of the automatically generated business-friendly metadata for the asset.</p>
    /// - On failure, responds with [`SdkError<CreateAssetError>`](crate::operation::create_asset::CreateAssetError)
    pub fn create_asset(&self) -> crate::operation::create_asset::builders::CreateAssetFluentBuilder {
        crate::operation::create_asset::builders::CreateAssetFluentBuilder::new(self.handle.clone())
    }
}