Skip to main content

aws_sdk_devopsagent/client/
get_asset_content.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 [`GetAssetContent`](crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder::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_content::builders::GetAssetContentFluentBuilder::asset_id) / [`set_asset_id(Option<String>)`](crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder::set_asset_id):<br>required: **true**<br><p>The unique identifier of the asset</p><br>
8    ///   - [`asset_version(i32)`](crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder::asset_version) / [`set_asset_version(Option<i32>)`](crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder::set_asset_version):<br>required: **false**<br><p>The specific asset version to export. If omitted, the latest version is returned.</p><br>
9    /// - On success, responds with [`GetAssetContentOutput`](crate::operation::get_asset_content::GetAssetContentOutput) with field(s):
10    ///   - [`content(Option<AssetZipContent>)`](crate::operation::get_asset_content::GetAssetContentOutput::content): <p>The asset content as a zip file</p>
11    ///   - [`version(i32)`](crate::operation::get_asset_content::GetAssetContentOutput::version): <p>The asset version this content belongs to</p>
12    /// - On failure, responds with [`SdkError<GetAssetContentError>`](crate::operation::get_asset_content::GetAssetContentError)
13    pub fn get_asset_content(&self) -> crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder {
14        crate::operation::get_asset_content::builders::GetAssetContentFluentBuilder::new(self.handle.clone())
15    }
16}