aws_sdk_comprehend/client/
describe_resource_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 [`DescribeResourcePolicy`](crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    /// - On success, responds with [`DescribeResourcePolicyOutput`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput) with field(s):
8    ///   - [`resource_policy(Option<String>)`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput::resource_policy): <p>The JSON body of the resource-based policy.</p>
9    ///   - [`creation_time(Option<DateTime>)`](crate::operation::describe_resource_policy::DescribeResourcePolicyOutput::creation_time): <p>The time at which the policy was created.</p>
10    ///   - [`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>
11    ///   - [`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>
12    /// - On failure, responds with [`SdkError<DescribeResourcePolicyError>`](crate::operation::describe_resource_policy::DescribeResourcePolicyError)
13    pub fn describe_resource_policy(&self) -> crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder {
14        crate::operation::describe_resource_policy::builders::DescribeResourcePolicyFluentBuilder::new(self.handle.clone())
15    }
16}