aws_sdk_datazone/client/
create_asset_revision.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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAssetRevision`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_name):<br>required: **true**<br><p>Te revised name of the asset.</p><br>
    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The unique identifier of the domain where the asset is being revised.</p><br>
    ///   - [`identifier(impl Into<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_identifier):<br>required: **true**<br><p>The identifier of the asset.</p><br>
    ///   - [`type_revision(impl Into<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::type_revision) / [`set_type_revision(Option<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_type_revision):<br>required: **false**<br><p>The revision type of the asset.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_description):<br>required: **false**<br><p>The revised description of the asset.</p><br>
    ///   - [`glossary_terms(impl Into<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::glossary_terms) / [`set_glossary_terms(Option<Vec::<String>>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_glossary_terms):<br>required: **false**<br><p>The glossary terms to be attached to the asset as part of asset revision.</p><br>
    ///   - [`forms_input(FormInput)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::forms_input) / [`set_forms_input(Option<Vec::<FormInput>>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::set_forms_input):<br>required: **false**<br><p>The metadata forms to be attached to the asset as part of asset revision.</p><br>
    ///   - [`prediction_configuration(PredictionConfiguration)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::prediction_configuration) / [`set_prediction_configuration(Option<PredictionConfiguration>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::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_revision::builders::CreateAssetRevisionFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::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 [`CreateAssetRevisionOutput`](crate::operation::create_asset_revision::CreateAssetRevisionOutput) with field(s):
    ///   - [`id(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::id): <p>The unique identifier of the asset revision.</p>
    ///   - [`name(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::name): <p>The revised name of the asset.</p>
    ///   - [`type_identifier(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::type_identifier): <p>The identifier of the revision type.</p>
    ///   - [`type_revision(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::type_revision): <p>The revision type of the asset.</p>
    ///   - [`external_identifier(Option<String>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::external_identifier): <p>The external identifier of the asset.</p>
    ///   - [`revision(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::revision): <p>The revision of the asset.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::description): <p>The revised asset description.</p>
    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::created_at): <p>The timestamp of when the asset revision occured.</p>
    ///   - [`created_by(Option<String>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::created_by): <p>The Amazon DataZone user who performed the asset revision.</p>
    ///   - [`first_revision_created_at(Option<DateTime>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::first_revision_created_at): <p>The timestamp of when the first asset revision occured.</p>
    ///   - [`first_revision_created_by(Option<String>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::first_revision_created_by): <p>The Amazon DataZone user who performed the first asset revision.</p>
    ///   - [`glossary_terms(Option<Vec::<String>>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::glossary_terms): <p>The glossary terms that were attached to the asset as part of asset revision.</p>
    ///   - [`owning_project_id(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::owning_project_id): <p>The unique identifier of the revised project that owns the asset.</p>
    ///   - [`domain_id(String)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::domain_id): <p>The unique identifier of the Amazon DataZone domain where the asset was revised.</p>
    ///   - [`listing(Option<AssetListingDetails>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::listing): <p>The details of an asset published in an Amazon DataZone catalog.</p>
    ///   - [`forms_output(Vec::<FormOutput>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::forms_output): <p>The metadata forms that were attached to the asset as part of the asset revision.</p>
    ///   - [`read_only_forms_output(Option<Vec::<FormOutput>>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::read_only_forms_output): <p>The read-only metadata forms that were attached to the asset as part of the asset revision.</p>
    ///   - [`latest_time_series_data_point_forms_output(Option<Vec::<TimeSeriesDataPointSummaryFormOutput>>)`](crate::operation::create_asset_revision::CreateAssetRevisionOutput::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_revision::CreateAssetRevisionOutput::prediction_configuration): <p>The configuration of the automatically generated business-friendly metadata for the asset.</p>
    /// - On failure, responds with [`SdkError<CreateAssetRevisionError>`](crate::operation::create_asset_revision::CreateAssetRevisionError)
    pub fn create_asset_revision(&self) -> crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder {
        crate::operation::create_asset_revision::builders::CreateAssetRevisionFluentBuilder::new(self.handle.clone())
    }
}