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 [`DescribeResourcePolicy`](crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the custom model version that has the resource policy.</p><br>
    /// - On success, responds with [`DescribeResourcePolicyOutput`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput) with field(s):
    ///   - [`resource_policy(Option<String>)`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput::resource_policy): <p>The JSON body of the resource-based policy.</p>
    ///   - [`creation_time(Option<DateTime>)`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput::creation_time): <p>The time at which the policy was created.</p>
    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput::last_modified_time): <p>The time at which the policy was last modified.</p>
    ///   - [`policy_revision_id(Option<String>)`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput::policy_revision_id): <p>The revision ID of the policy. Each time you modify a policy, Amazon Comprehend assigns a new revision ID, and it deletes the prior version of the policy.</p>
    /// - On failure, responds with [`SdkError<DescribeResourcePolicyError>`](crate::operation::describe_resource_policy::DescribeResourcePolicyError)
    pub fn describe_resource_policy(&self) -> crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder {
        crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder::new(self.handle.clone())
    }
}