1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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: **false**<br><p>The ARN of the Glue resource for which to retrieve the resource policy. If not supplied, the Data Catalog resource policy is returned. Use <code>GetResourcePolicies</code> to view all existing resource policies. For more information see <a href="https://docs.aws.amazon.com/glue/latest/dg/glue-specifying-resource-arns.html">Specifying Glue Resource ARNs</a>.</p><br>
    /// - On success, responds with [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput) with field(s):
    ///   - [`policy_in_json(Option<String>)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy_in_json): <p>Contains the requested policy document, in JSON format.</p>
    ///   - [`policy_hash(Option<String>)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy_hash): <p>Contains the hash value associated with this policy.</p>
    ///   - [`create_time(Option<DateTime>)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::create_time): <p>The date and time at which the policy was created.</p>
    ///   - [`update_time(Option<DateTime>)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::update_time): <p>The date and time at which the policy was last updated.</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())
    }
}