aws_sdk_datazone/client/create_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 [`CreateAsset`](crate::operation::create_asset::builders::CreateAssetFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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> <p>If the value for the <code>externalIdentifier</code> parameter is specified, it must be a unique value.</p><br>
9 /// - [`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>
10 /// - [`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>
11 /// - [`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>
12 /// - [`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>
13 /// - [`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>
14 /// - [`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>
15 /// - [`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>
16 /// - [`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>
17 /// - On success, responds with [`CreateAssetOutput`](crate::operation::create_asset::CreateAssetOutput) with field(s):
18 /// - [`id(String)`](crate::operation::create_asset::CreateAssetOutput::id): <p>The unique identifier of the created asset.</p>
19 /// - [`name(String)`](crate::operation::create_asset::CreateAssetOutput::name): <p>The name of the created asset.</p>
20 /// - [`type_identifier(String)`](crate::operation::create_asset::CreateAssetOutput::type_identifier): <p>The identifier of the created asset type.</p>
21 /// - [`type_revision(String)`](crate::operation::create_asset::CreateAssetOutput::type_revision): <p>The revision type of the asset.</p>
22 /// - [`external_identifier(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::external_identifier): <p>The external identifier of the asset.</p>
23 /// - [`revision(String)`](crate::operation::create_asset::CreateAssetOutput::revision): <p>The revision of the asset.</p>
24 /// - [`description(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::description): <p>The description of the created asset.</p>
25 /// - [`created_at(Option<DateTime>)`](crate::operation::create_asset::CreateAssetOutput::created_at): <p>The timestamp of when the asset was created.</p>
26 /// - [`created_by(Option<String>)`](crate::operation::create_asset::CreateAssetOutput::created_by): <p>The Amazon DataZone user that created this asset in the catalog.</p>
27 /// - [`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>
28 /// - [`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>
29 /// - [`glossary_terms(Option<Vec::<String>>)`](crate::operation::create_asset::CreateAssetOutput::glossary_terms): <p>The glossary terms that are attached to the created asset.</p>
30 /// - [`governed_glossary_terms(Option<Vec::<String>>)`](crate::operation::create_asset::CreateAssetOutput::governed_glossary_terms): <p>The glossary terms in a restricted glossary.</p>
31 /// - [`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>
32 /// - [`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>
33 /// - [`listing(Option<AssetListingDetails>)`](crate::operation::create_asset::CreateAssetOutput::listing): <p>The details of an asset published in an Amazon DataZone catalog.</p>
34 /// - [`forms_output(Vec::<FormOutput>)`](crate::operation::create_asset::CreateAssetOutput::forms_output): <p>The metadata forms that are attached to the created asset.</p>
35 /// - [`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>
36 /// - [`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>
37 /// - [`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>
38 /// - On failure, responds with [`SdkError<CreateAssetError>`](crate::operation::create_asset::CreateAssetError)
39 pub fn create_asset(&self) -> crate::operation::create_asset::builders::CreateAssetFluentBuilder {
40 crate::operation::create_asset::builders::CreateAssetFluentBuilder::new(self.handle.clone())
41 }
42}