Skip to main content

aws_sdk_networksecuritymanager/client/
create_deployment_snapshot.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 [`CreateDeploymentSnapshot`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`deployment_identifier(impl Into<String>)`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::deployment_identifier) / [`set_deployment_identifier(Option<String>)`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::set_deployment_identifier):<br>required: **true**<br><p>The identifier of the deployment. This is the deployment's Amazon Resource Name (ARN).</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.</p><br>
8    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the snapshot when it is created.</p><br>
9    /// - On success, responds with [`CreateDeploymentSnapshotOutput`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput) with field(s):
10    ///   - [`deployment_id(String)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::deployment_id): <p>The service-generated id of the deployment.</p>
11    ///   - [`deployment_arn(String)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::deployment_arn): <p>The Amazon Resource Name (ARN) of the deployment.</p>
12    ///   - [`deployment_name(String)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::deployment_name): <p>The name of the deployment.</p>
13    ///   - [`deployment_description(Option<String>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::deployment_description): <p>A description of the deployment.</p>
14    ///   - [`status(EntityStatus)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::status): <p>The current status of the resource: <code>DRAFT</code> (unpublished, editable) or <code>ACTIVE</code> (published, in use).</p>
15    ///   - [`deployment_configuration(Option<DeploymentConfiguration>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::deployment_configuration): <p>The configuration settings for the deployment.</p>
16    ///   - [`associated_policy_list(Vec::<AssociatedPolicy>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::associated_policy_list): <p>The policies associated with the deployment.</p>
17    ///   - [`associated_scope_list(Vec::<AssociatedScope>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::associated_scope_list): <p>The scope associated with the deployment. A deployment has exactly one scope.</p>
18    ///   - [`version(String)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::version): <p>The version of the resource.</p>
19    ///   - [`update_token(Option<String>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::update_token): <p>A token used for optimistic concurrency control. Each read and write returns an <code>updateToken</code>. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.</p>
20    ///   - [`is_snapshot(Option<bool>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::is_snapshot): <p>Specifies whether the resource is a snapshot of a published version.</p>
21    ///   - [`has_published_version(Option<bool>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::has_published_version): <p>Specifies whether a published version of the resource exists.</p>
22    ///   - [`updated_at(Option<DateTime>)`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotOutput::updated_at): <p>The time when the snapshot was created.</p>
23    /// - On failure, responds with [`SdkError<CreateDeploymentSnapshotError>`](crate::operation::create_deployment_snapshot::CreateDeploymentSnapshotError)
24    pub fn create_deployment_snapshot(&self) -> crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder {
25        crate::operation::create_deployment_snapshot::builders::CreateDeploymentSnapshotFluentBuilder::new(self.handle.clone())
26    }
27}