// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetResourcePolicy`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the knowledge base to retrieve the resource policy for.</p><br>
/// - On success, responds with [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput) with field(s):
/// - [`resource_arn(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::resource_arn): <p>The ARN of the knowledge base that the resource policy is associated with.</p>
/// - [`policy(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy): <p>The JSON-formatted resource policy associated with the knowledge base.</p>
/// - [`revision_id(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::revision_id): <p>The revision identifier of the resource policy.</p>
/// - On failure, responds with [`SdkError<GetResourcePolicyError>`](crate::operation::get_resource_policy::GetResourcePolicyError)
pub fn get_resource_policy(&self) -> crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder {
crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::new(self.handle.clone())
}
}