aws_sdk_networksecuritymanager/client/get_template.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 [`GetTemplate`](crate::operation::get_template::builders::GetTemplateFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`template_identifier(impl Into<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::template_identifier) / [`set_template_identifier(Option<String>)`](crate::operation::get_template::builders::GetTemplateFluentBuilder::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 /// - On success, responds with [`GetTemplateOutput`](crate::operation::get_template::GetTemplateOutput) with field(s):
8 /// - [`template_id(String)`](crate::operation::get_template::GetTemplateOutput::template_id): <p>The service-generated id of the template.</p>
9 /// - [`template_arn(String)`](crate::operation::get_template::GetTemplateOutput::template_arn): <p>The Amazon Resource Name (ARN) of the template.</p>
10 /// - [`template_name(String)`](crate::operation::get_template::GetTemplateOutput::template_name): <p>The name of the template.</p>
11 /// - [`template_description(Option<String>)`](crate::operation::get_template::GetTemplateOutput::template_description): <p>A description of the template.</p>
12 /// - [`status(EntityStatus)`](crate::operation::get_template::GetTemplateOutput::status): <p>The current status of the resource: <code>DRAFT</code> (unpublished, editable) or <code>ACTIVE</code> (published, in use).</p>
13 /// - [`version(String)`](crate::operation::get_template::GetTemplateOutput::version): <p>The version of the resource.</p>
14 /// - [`associated_rule_list(Vec::<AssociatedRule>)`](crate::operation::get_template::GetTemplateOutput::associated_rule_list): <p>The rules associated with the template.</p>
15 /// - [`update_token(Option<String>)`](crate::operation::get_template::GetTemplateOutput::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>
16 /// - [`is_snapshot(Option<bool>)`](crate::operation::get_template::GetTemplateOutput::is_snapshot): <p>Specifies whether the resource is a snapshot of a published version.</p>
17 /// - [`has_published_version(Option<bool>)`](crate::operation::get_template::GetTemplateOutput::has_published_version): <p>Specifies whether a published version of the resource exists.</p>
18 /// - [`firewall_type(TemplateFirewallType)`](crate::operation::get_template::GetTemplateOutput::firewall_type): <p>The firewall type associated with the resource.</p>
19 /// - [`updated_at(Option<DateTime>)`](crate::operation::get_template::GetTemplateOutput::updated_at): <p>The time when the resource was last updated.</p>
20 /// - On failure, responds with [`SdkError<GetTemplateError>`](crate::operation::get_template::GetTemplateError)
21 pub fn get_template(&self) -> crate::operation::get_template::builders::GetTemplateFluentBuilder {
22 crate::operation::get_template::builders::GetTemplateFluentBuilder::new(self.handle.clone())
23 }
24}