aws_sdk_verifiedpermissions/client/
get_policy_template.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetPolicyTemplate`](crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`GetPolicyTemplateOutput`](crate::operation::get_policy_template::GetPolicyTemplateOutput) with field(s):
    ///   - [`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>
    ///   - [`policy_template_id(String)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::policy_template_id): <p>The ID of the policy template.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::description): <p>The description of the policy template.</p>
    ///   - [`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>
    ///   - [`created_date(DateTime)`](crate::operation::get_policy_template::GetPolicyTemplateOutput::created_date): <p>The date and time that the policy template was originally created.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<GetPolicyTemplateError>`](crate::operation::get_policy_template::GetPolicyTemplateError)
    pub fn get_policy_template(&self) -> crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder {
        crate::operation::get_policy_template::builders::GetPolicyTemplateFluentBuilder::new(self.handle.clone())
    }
}