aws_sdk_verifiedpermissions/client/
get_policy_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 [`GetPolicyTemplate`](crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_store_id(impl Into<String>)`](crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder::policy_store_id) / [`set_policy_store_id(Option<String>)`](crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder::set_policy_store_id):<br>required: **true**<br><p>Specifies the ID of the policy store that contains the policy template that you want information about.</p><br>
7    ///   - [`policy_template_id(impl Into<String>)`](crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder::policy_template_id) / [`set_policy_template_id(Option<String>)`](crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder::set_policy_template_id):<br>required: **true**<br><p>Specifies the ID of the policy template that you want information about.</p><br>
8    /// - On success, responds with [`GetPolicyTemplateOutput`](crate::operation::get_policy_template::GetPolicyTemplateOutput) with field(s):
9    ///   - [`policy_store_id(String)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::policy_store_id): <p>The ID of the policy store that contains the policy template.</p>
10    ///   - [`policy_template_id(String)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::policy_template_id): <p>The ID of the policy template.</p>
11    ///   - [`description(Option<String>)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::description): <p>The description of the policy template.</p>
12    ///   - [`statement(String)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::statement): <p>The content of the body of the policy template written in the Cedar policy language.</p>
13    ///   - [`created_date(DateTime)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::created_date): <p>The date and time that the policy template was originally created.</p>
14    ///   - [`last_updated_date(DateTime)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::last_updated_date): <p>The date and time that the policy template was most recently updated.</p>
15    /// - On failure, responds with [`SdkError<GetPolicyTemplateError>`](crate::operation::get_policy_template::GetPolicyTemplateError)
16    pub fn get_policy_template(&self) -> crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder {
17        crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder::new(self.handle.clone())
18    }
19}