Skip to main content

aws_sdk_continuum/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    ///   - [`arn(impl Into<String>)`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::set_arn):<br>required: **true**<br>The ARN of a resource in the caller's account.<br>
7    /// - On success, responds with [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput) with field(s):
8    ///   - [`arn(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::arn): The ARN of a Continuum resource that supports a resource policy. Collectors are the only supported resource type; other well-formed Continuum ARNs are rejected with ValidationException.
9    ///   - [`policy(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy): A resource policy in displayable JSON form.
10    ///   - [`revision_id(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::revision_id): Opaque optimistic-concurrency token for a resource policy.
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}