aws_sdk_mpa/client/
get_policy_version.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 [`GetPolicyVersion`](crate::operation::get_policy_version::builders::GetPolicyVersionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_version_arn(impl Into<String>)`](crate::operation::get_policy_version::builders::GetPolicyVersionFluentBuilder::policy_version_arn) / [`set_policy_version_arn(Option<String>)`](crate::operation::get_policy_version::builders::GetPolicyVersionFluentBuilder::set_policy_version_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) for the policy.</p><br>
7    /// - On success, responds with [`GetPolicyVersionOutput`](crate::operation::get_policy_version::GetPolicyVersionOutput) with field(s):
8    ///   - [`policy_version(Option<PolicyVersion>)`](crate::operation::get_policy_version::GetPolicyVersionOutput::policy_version): <p>A <code>PolicyVersion</code> object. Contains details for the version of the policy. Policies define the permissions for team resources.</p> <p>The protected operation for a service integration might require specific permissions. For more information, see <a href="https://docs.aws.amazon.com/mpa/latest/userguide/mpa-integrations.html">How other services work with Multi-party approval</a> in the <i>Multi-party approval User Guide</i>.</p>
9    /// - On failure, responds with [`SdkError<GetPolicyVersionError>`](crate::operation::get_policy_version::GetPolicyVersionError)
10    pub fn get_policy_version(&self) -> crate::operation::get_policy_version::builders::GetPolicyVersionFluentBuilder {
11        crate::operation::get_policy_version::builders::GetPolicyVersionFluentBuilder::new(self.handle.clone())
12    }
13}