pub struct UpdateDocumentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateDocument
.
Updates one or more values for an SSM document.
Implementations§
source§impl UpdateDocumentFluentBuilder
impl UpdateDocumentFluentBuilder
sourcepub fn as_input(&self) -> &UpdateDocumentInputBuilder
pub fn as_input(&self) -> &UpdateDocumentInputBuilder
Access the UpdateDocument as a reference.
sourcepub async fn send(
self
) -> Result<UpdateDocumentOutput, SdkError<UpdateDocumentError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateDocumentOutput, SdkError<UpdateDocumentError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateDocumentOutput, UpdateDocumentError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateDocumentOutput, UpdateDocumentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
A valid JSON or YAML string.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
A valid JSON or YAML string.
sourcepub fn attachments(self, input: AttachmentsSource) -> Self
pub fn attachments(self, input: AttachmentsSource) -> Self
Appends an item to Attachments
.
To override the contents of this collection use set_attachments
.
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn set_attachments(self, input: Option<Vec<AttachmentsSource>>) -> Self
pub fn set_attachments(self, input: Option<Vec<AttachmentsSource>>) -> Self
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn get_attachments(&self) -> &Option<Vec<AttachmentsSource>>
pub fn get_attachments(&self) -> &Option<Vec<AttachmentsSource>>
A list of key-value pairs that describe attachments to a version of a document.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the SSM document that you want to update.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the SSM document that you want to update.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the SSM document that you want to update.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
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 set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
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 get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
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, input: impl Into<String>) -> Self
pub fn version_name(self, input: impl Into<String>) -> Self
An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
sourcepub fn set_version_name(self, input: Option<String>) -> Self
pub fn set_version_name(self, input: Option<String>) -> Self
An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
sourcepub fn get_version_name(&self) -> &Option<String>
pub fn get_version_name(&self) -> &Option<String>
An optional field specifying the version of the artifact you are updating with the document. For example, 12.6. This value is unique across all versions of a document, and can't be changed.
sourcepub fn document_version(self, input: impl Into<String>) -> Self
pub fn document_version(self, input: impl Into<String>) -> Self
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 set_document_version(self, input: Option<String>) -> Self
pub fn set_document_version(self, input: Option<String>) -> Self
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 get_document_version(&self) -> &Option<String>
pub fn get_document_version(&self) -> &Option<String>
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, input: DocumentFormat) -> Self
pub fn document_format(self, input: DocumentFormat) -> Self
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
sourcepub fn set_document_format(self, input: Option<DocumentFormat>) -> Self
pub fn set_document_format(self, input: Option<DocumentFormat>) -> Self
Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.
sourcepub fn get_document_format(&self) -> &Option<DocumentFormat>
pub fn get_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, input: impl Into<String>) -> Self
pub fn target_type(self, input: impl Into<String>) -> Self
Specify a new target type for the document.
sourcepub fn set_target_type(self, input: Option<String>) -> Self
pub fn set_target_type(self, input: Option<String>) -> Self
Specify a new target type for the document.
sourcepub fn get_target_type(&self) -> &Option<String>
pub fn get_target_type(&self) -> &Option<String>
Specify a new target type for the document.
Trait Implementations§
source§impl Clone for UpdateDocumentFluentBuilder
impl Clone for UpdateDocumentFluentBuilder
source§fn clone(&self) -> UpdateDocumentFluentBuilder
fn clone(&self) -> UpdateDocumentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more