aws_sdk_bcmdashboards/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>The ARN of the dashboard whose resource-based policy you want to retrieve.</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>The ARN of the dashboard for which the resource-based policy was retrieved.</p>
9 /// - [`policy_document(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy_document): <p>The JSON policy document that represents the dashboard's resource-based policy.</p>
10 /// - On failure, responds with [`SdkError<GetResourcePolicyError>`](crate::operation::get_resource_policy::GetResourcePolicyError)
11 pub fn get_resource_policy(&self) -> crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder {
12 crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::new(self.handle.clone())
13 }
14}