Skip to main content

aws_sdk_networksecuritymanager/client/
create_template_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 [`CreateTemplateSnapshot`](crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`template_identifier(impl Into<String>)`](crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::template_identifier) / [`set_template_identifier(Option<String>)`](crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::set_template_identifier):<br>required: **true**<br><p>The identifier of the template. This is the template's Amazon Resource Name (ARN).</p><br>
7    ///   - [`client_token(impl Into<String>)`](crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::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_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::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 [`CreateTemplateSnapshotOutput`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput) with field(s):
10    ///   - [`template_id(String)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::template_id): <p>The service-generated id of the template.</p>
11    ///   - [`template_arn(String)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::template_arn): <p>The Amazon Resource Name (ARN) of the template.</p>
12    ///   - [`template_name(String)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::template_name): <p>The name of the template.</p>
13    ///   - [`template_description(Option<String>)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::template_description): <p>A description of the template.</p>
14    ///   - [`status(EntityStatus)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::status): <p>The current status of the resource: <code>DRAFT</code> (unpublished, editable) or <code>ACTIVE</code> (published, in use).</p>
15    ///   - [`version(String)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::version): <p>The version of the resource.</p>
16    ///   - [`associated_rule_list(Vec::<AssociatedRule>)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::associated_rule_list): <p>The rules associated with the template.</p>
17    ///   - [`update_token(Option<String>)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::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>
18    ///   - [`is_snapshot(Option<bool>)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::is_snapshot): <p>Specifies whether the resource is a snapshot of a published version.</p>
19    ///   - [`has_published_version(Option<bool>)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::has_published_version): <p>Specifies whether a published version of the resource exists.</p>
20    ///   - [`firewall_type(TemplateFirewallType)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::firewall_type): <p>The firewall type associated with the resource.</p>
21    ///   - [`updated_at(Option<DateTime>)`](crate::operation::create_template_snapshot::CreateTemplateSnapshotOutput::updated_at): <p>The time when the snapshot was created.</p>
22    /// - On failure, responds with [`SdkError<CreateTemplateSnapshotError>`](crate::operation::create_template_snapshot::CreateTemplateSnapshotError)
23    pub fn create_template_snapshot(&self) -> crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder {
24        crate::operation::create_template_snapshot::builders::CreateTemplateSnapshotFluentBuilder::new(self.handle.clone())
25    }
26}