aws_sdk_entityresolution/client/
get_policy.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 [`GetPolicy`](crate::operation::get_policy::builders::GetPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the resource for which the policy need to be returned.</p><br>
7    /// - On success, responds with [`GetPolicyOutput`](crate::operation::get_policy::GetPolicyOutput) with field(s):
8    ///   - [`arn(String)`](crate::operation::get_policy::GetPolicyOutput::arn): <p>The Entity Resolution resource ARN.</p>
9    ///   - [`token(String)`](crate::operation::get_policy::GetPolicyOutput::token): <p>A unique identifier for the current revision of the policy.</p>
10    ///   - [`policy(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::policy): <p>The resource-based policy.</p>
11    /// - On failure, responds with [`SdkError<GetPolicyError>`](crate::operation::get_policy::GetPolicyError)
12    pub fn get_policy(&self) -> crate::operation::get_policy::builders::GetPolicyFluentBuilder {
13        crate::operation::get_policy::builders::GetPolicyFluentBuilder::new(self.handle.clone())
14    }
15}