pub struct DeleteDocumentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DeleteDocument
.
Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the document.
Before you delete the document, we recommend that you use DeleteAssociation
to disassociate all managed nodes that are associated with the document.
Implementations§
source§impl DeleteDocumentFluentBuilder
impl DeleteDocumentFluentBuilder
sourcepub fn as_input(&self) -> &DeleteDocumentInputBuilder
pub fn as_input(&self) -> &DeleteDocumentInputBuilder
Access the DeleteDocument as a reference.
sourcepub async fn send(
self
) -> Result<DeleteDocumentOutput, SdkError<DeleteDocumentError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteDocumentOutput, SdkError<DeleteDocumentError, 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<DeleteDocumentOutput, DeleteDocumentError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteDocumentOutput, DeleteDocumentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 delete. If not provided, all versions of the document are deleted.
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 delete. If not provided, all versions of the document are deleted.
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 delete. If not provided, all versions of the document are deleted.
sourcepub fn version_name(self, input: impl Into<String>) -> Self
pub fn version_name(self, input: impl Into<String>) -> Self
The version name of the document that you want to delete. If not provided, all versions of the document are deleted.
sourcepub fn set_version_name(self, input: Option<String>) -> Self
pub fn set_version_name(self, input: Option<String>) -> Self
The version name of the document that you want to delete. If not provided, all versions of the document are deleted.
sourcepub fn get_version_name(&self) -> &Option<String>
pub fn get_version_name(&self) -> &Option<String>
The version name of the document that you want to delete. If not provided, all versions of the document are deleted.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
Some SSM document types require that you specify a Force
flag before you can delete the document. For example, you must specify a Force
flag to delete a document of type ApplicationConfigurationSchema
. You can restrict access to the Force
flag in an Identity and Access Management (IAM) policy.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
Some SSM document types require that you specify a Force
flag before you can delete the document. For example, you must specify a Force
flag to delete a document of type ApplicationConfigurationSchema
. You can restrict access to the Force
flag in an Identity and Access Management (IAM) policy.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
Some SSM document types require that you specify a Force
flag before you can delete the document. For example, you must specify a Force
flag to delete a document of type ApplicationConfigurationSchema
. You can restrict access to the Force
flag in an Identity and Access Management (IAM) policy.
Trait Implementations§
source§impl Clone for DeleteDocumentFluentBuilder
impl Clone for DeleteDocumentFluentBuilder
source§fn clone(&self) -> DeleteDocumentFluentBuilder
fn clone(&self) -> DeleteDocumentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more