Struct aws_sdk_ssm::input::UpdateDocumentMetadataInput
source · #[non_exhaustive]pub struct UpdateDocumentMetadataInput { /* private fields */ }
Implementations§
source§impl UpdateDocumentMetadataInput
impl UpdateDocumentMetadataInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDocumentMetadata, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDocumentMetadata, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateDocumentMetadata
>
Examples found in repository?
src/client.rs (line 17975)
17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateDocumentMetadata,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateDocumentMetadataError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateDocumentMetadataOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDocumentMetadataError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateDocumentMetadataInput
.
source§impl UpdateDocumentMetadataInput
impl UpdateDocumentMetadataInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the change template for which a version's metadata is to be updated.
sourcepub fn document_version(&self) -> Option<&str>
pub fn document_version(&self) -> Option<&str>
The version of a change template in which to update approval metadata.
sourcepub fn document_reviews(&self) -> Option<&DocumentReviews>
pub fn document_reviews(&self) -> Option<&DocumentReviews>
The change template review details to update.
Trait Implementations§
source§impl Clone for UpdateDocumentMetadataInput
impl Clone for UpdateDocumentMetadataInput
source§fn clone(&self) -> UpdateDocumentMetadataInput
fn clone(&self) -> UpdateDocumentMetadataInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more