Skip to main content

aws_sdk_devopsagent/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    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier for the agent space containing the asset</p><br>
7    ///   - [`asset_id(impl Into<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::asset_id) / [`set_asset_id(Option<String>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_asset_id):<br>required: **true**<br><p>The unique identifier of the asset to retrieve</p><br>
8    ///   - [`asset_version(i32)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::asset_version) / [`set_asset_version(Option<i32>)`](crate::operation::get_asset::builders::GetAssetFluentBuilder::set_asset_version):<br>required: **false**<br><p>The specific version of the asset to retrieve. If omitted, the latest version is returned.</p><br>
9    /// - On success, responds with [`GetAssetOutput`](crate::operation::get_asset::GetAssetOutput) with field(s):
10    ///   - [`asset(Option<Asset>)`](crate::operation::get_asset::GetAssetOutput::asset): <p>The asset object</p>
11    /// - On failure, responds with [`SdkError<GetAssetError>`](crate::operation::get_asset::GetAssetError)
12    pub fn get_asset(&self) -> crate::operation::get_asset::builders::GetAssetFluentBuilder {
13        crate::operation::get_asset::builders::GetAssetFluentBuilder::new(self.handle.clone())
14    }
15}