Skip to main content

aws_sdk_context/client/
get_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 [`GetResourcePolicy`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>ARN of the agent context.</p><br>
7    /// - On success, responds with [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput) with field(s):
8    ///   - [`resource_arn(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::resource_arn): <p>ARN of the agent context.</p>
9    ///   - [`policy(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy): <p>The resource-based policy document.</p>
10    ///   - [`revision_id(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::revision_id): <p>Current revision. Pass it to PutResourcePolicy or DeleteResourcePolicy as <code>expectedRevisionId</code>.</p>
11    /// - On failure, responds with [`SdkError<GetResourcePolicyError>`](crate::operation::get_resource_policy::GetResourcePolicyError)
12    pub fn get_resource_policy(&self) -> crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder {
13        crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::new(self.handle.clone())
14    }
15}