Skip to main content

aws_sdk_glue/client/
put_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 [`PutAsset`](crate::operation::put_asset::builders::PutAssetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`asset_type_id(impl Into<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::asset_type_id) / [`set_asset_type_id(Option<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::set_asset_type_id):<br>required: **true**<br><p>The identifier of the asset type for the asset.</p><br>
7    ///   - [`identifier(impl Into<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::set_identifier):<br>required: **true**<br><p>The unique identifier of the asset. If an asset with this identifier already exists, it is updated.</p><br>
8    ///   - [`name(impl Into<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the asset.</p><br>
9    ///   - [`description(impl Into<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::set_description):<br>required: **false**<br><p>The description of the asset.</p><br>
10    ///   - [`forms(impl Into<String>, AssetFormEntry)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::forms) / [`set_forms(Option<HashMap::<String, AssetFormEntry>>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::set_forms):<br>required: **true**<br><p>The forms to set on the asset, keyed by form name. Each entry specifies the form type and its JSON content.</p><br>
11    ///   - [`client_token(impl Into<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::put_asset::builders::PutAssetFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
12    /// - On success, responds with [`PutAssetOutput`](crate::operation::put_asset::PutAssetOutput) with field(s):
13    ///   - [`id(String)`](crate::operation::put_asset::PutAssetOutput::id): <p>The unique identifier of the asset.</p>
14    ///   - [`name(String)`](crate::operation::put_asset::PutAssetOutput::name): <p>The name of the asset.</p>
15    ///   - [`description(Option<String>)`](crate::operation::put_asset::PutAssetOutput::description): <p>The description of the asset.</p>
16    ///   - [`created_at(Option<DateTime>)`](crate::operation::put_asset::PutAssetOutput::created_at): <p>The timestamp at which the asset was created.</p>
17    ///   - [`forms(Option<HashMap::<String, AssetFormEntry>>)`](crate::operation::put_asset::PutAssetOutput::forms): <p>The forms attached to the asset, keyed by form name.</p>
18    /// - On failure, responds with [`SdkError<PutAssetError>`](crate::operation::put_asset::PutAssetError)
19    pub fn put_asset(&self) -> crate::operation::put_asset::builders::PutAssetFluentBuilder {
20        crate::operation::put_asset::builders::PutAssetFluentBuilder::new(self.handle.clone())
21    }
22}