aws-sdk-continuum 1.0.0

AWS SDK for AWS Continuum
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetResourcePolicy`](crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    /// - On success, responds with [`GetResourcePolicyOutput`](crate::operation::get_resource_policy::GetResourcePolicyOutput) with field(s):
    ///   - [`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.
    ///   - [`policy(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::policy): A resource policy in displayable JSON form.
    ///   - [`revision_id(String)`](crate::operation::get_resource_policy::GetResourcePolicyOutput::revision_id): Opaque optimistic-concurrency token for a resource policy.
    /// - On failure, responds with [`SdkError<GetResourcePolicyError>`](crate::operation::get_resource_policy::GetResourcePolicyError)
    pub fn get_resource_policy(&self) -> crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder {
        crate::operation::get_resource_policy::builders::GetResourcePolicyFluentBuilder::new(self.handle.clone())
    }
}