Skip to main content

aws_sdk_securityagent/client/
get_artifact.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 [`GetArtifact`](crate::operation::get_artifact::builders::GetArtifactFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::get_artifact::builders::GetArtifactFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::get_artifact::builders::GetArtifactFluentBuilder::set_agent_space_id):<br>required: **true**<br><p>The unique identifier of the agent space that contains the artifact.</p><br>
7    ///   - [`artifact_id(impl Into<String>)`](crate::operation::get_artifact::builders::GetArtifactFluentBuilder::artifact_id) / [`set_artifact_id(Option<String>)`](crate::operation::get_artifact::builders::GetArtifactFluentBuilder::set_artifact_id):<br>required: **true**<br><p>The unique identifier of the artifact to retrieve.</p><br>
8    /// - On success, responds with [`GetArtifactOutput`](crate::operation::get_artifact::GetArtifactOutput) with field(s):
9    ///   - [`agent_space_id(String)`](crate::operation::get_artifact::GetArtifactOutput::agent_space_id): <p>The unique identifier of the agent space that contains the artifact.</p>
10    ///   - [`artifact_id(String)`](crate::operation::get_artifact::GetArtifactOutput::artifact_id): <p>The unique identifier of the artifact.</p>
11    ///   - [`artifact(Option<Artifact>)`](crate::operation::get_artifact::GetArtifactOutput::artifact): <p>The artifact content and type.</p>
12    ///   - [`file_name(String)`](crate::operation::get_artifact::GetArtifactOutput::file_name): <p>The file name of the artifact.</p>
13    ///   - [`updated_at(DateTime)`](crate::operation::get_artifact::GetArtifactOutput::updated_at): <p>The date and time the artifact was last updated, in UTC format.</p>
14    /// - On failure, responds with [`SdkError<GetArtifactError>`](crate::operation::get_artifact::GetArtifactError)
15    pub fn get_artifact(&self) -> crate::operation::get_artifact::builders::GetArtifactFluentBuilder {
16        crate::operation::get_artifact::builders::GetArtifactFluentBuilder::new(self.handle.clone())
17    }
18}