aws_sdk_acmpca/client/
get_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 [`GetPolicy`](crate::operation::get_policy::builders::GetPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_arn(impl Into<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_policy::builders::GetPolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Number (ARN) of the private CA that will have its policy retrieved. You can find the CA's ARN by calling the ListCertificateAuthorities action.</p><br>
7    /// - On success, responds with [`GetPolicyOutput`](crate::operation::get_policy::GetPolicyOutput) with field(s):
8    ///   - [`policy(Option<String>)`](crate::operation::get_policy::GetPolicyOutput::policy): <p>The policy attached to the private CA as a JSON document.</p>
9    /// - On failure, responds with [`SdkError<GetPolicyError>`](crate::operation::get_policy::GetPolicyError)
10    pub fn get_policy(&self) -> crate::operation::get_policy::builders::GetPolicyFluentBuilder {
11        crate::operation::get_policy::builders::GetPolicyFluentBuilder::new(self.handle.clone())
12    }
13}