Struct aws_sdk_ssm::input::UpdateDocumentInput
source · #[non_exhaustive]pub struct UpdateDocumentInput { /* private fields */ }
Implementations§
source§impl UpdateDocumentInput
impl UpdateDocumentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDocument, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateDocument, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateDocument
>
Examples found in repository?
17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateDocument,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateDocumentError>,
> {
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::UpdateDocumentOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDocumentError>,
> {
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 UpdateDocumentInput
.
source§impl UpdateDocumentInput
impl UpdateDocumentInput
sourcepub fn attachments(&self) -> Option<&[AttachmentsSource]>
pub fn attachments(&self) -> Option<&[AttachmentsSource]>
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The friendly name of the SSM document that you want to update. This value can differ for each version of the document. If you don't specify a value for this parameter in your request, the existing value is applied to the new document version.
sourcepub fn version_name(&self) -> Option<&str>
pub fn version_name(&self) -> Option<&str>
An optional field specifying the version of the artifact you are updating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and can't be changed.
sourcepub fn document_version(&self) -> Option<&str>
pub fn document_version(&self) -> Option<&str>
The version of the document that you want to update. Currently, Systems Manager supports updating only the latest version of the document. You can specify the version number of the latest version or use the $LATEST
variable.
If you change a document version for a State Manager association, Systems Manager immediately runs the association unless you previously specifed the apply-only-at-cron-interval
parameter.
sourcepub fn document_format(&self) -> Option<&DocumentFormat>
pub fn document_format(&self) -> Option<&DocumentFormat>
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
sourcepub fn target_type(&self) -> Option<&str>
pub fn target_type(&self) -> Option<&str>
Specify a new target type for the document.
Trait Implementations§
source§impl Clone for UpdateDocumentInput
impl Clone for UpdateDocumentInput
source§fn clone(&self) -> UpdateDocumentInput
fn clone(&self) -> UpdateDocumentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more