aws_sdk_directory/client/describe_ca_enrollment_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 [`DescribeCAEnrollmentPolicy`](crate::operation::describe_ca_enrollment_policy::builders::DescribeCAEnrollmentPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`directory_id(impl Into<String>)`](crate::operation::describe_ca_enrollment_policy::builders::DescribeCAEnrollmentPolicyFluentBuilder::directory_id) / [`set_directory_id(Option<String>)`](crate::operation::describe_ca_enrollment_policy::builders::DescribeCAEnrollmentPolicyFluentBuilder::set_directory_id):<br>required: **true**<br><p>The identifier of the directory for which to retrieve the CA enrollment policy information.</p><br>
7 /// - On success, responds with [`DescribeCaEnrollmentPolicyOutput`](crate::operation::describe_ca_enrollment_policy::DescribeCaEnrollmentPolicyOutput) with field(s):
8 /// - [`directory_id(Option<String>)`](crate::operation::describe_ca_enrollment_policy::DescribeCaEnrollmentPolicyOutput::directory_id): <p>The identifier of the directory associated with this CA enrollment policy.</p>
9 /// - [`pca_connector_arn(Option<String>)`](crate::operation::describe_ca_enrollment_policy::DescribeCaEnrollmentPolicyOutput::pca_connector_arn): <p>The Amazon Resource Name (ARN) of the Amazon Web Services Private Certificate Authority (PCA) connector that is configured for automatic certificate enrollment in this directory.</p>
10 /// - [`ca_enrollment_policy_status(Option<CaEnrollmentPolicyStatus>)`](crate::operation::describe_ca_enrollment_policy::DescribeCaEnrollmentPolicyOutput::ca_enrollment_policy_status): <p>The current status of the CA enrollment policy. This indicates if automatic certificate enrollment is currently active, inactive, or in a transitional state.</p> <p>Valid values:</p> <ul> <li> <p><code>IN_PROGRESS</code> - The policy is being activated T</p></li> <li> <p><code>SUCCESS</code> - The policy is active and automatic certificate enrollment is operational</p></li> <li> <p><code>FAILED</code> - The policy activation or deactivation failed</p></li> <li> <p><code>DISABLING</code> - The policy is being deactivated</p></li> <li> <p><code>DISABLED</code> - The policy is inactive and automatic certificate enrollment is not available</p></li> <li> <p><code>IMPAIRED</code> - Network connectivity is impaired.</p></li> </ul>
11 /// - [`last_updated_date_time(Option<DateTime>)`](crate::operation::describe_ca_enrollment_policy::DescribeCaEnrollmentPolicyOutput::last_updated_date_time): <p>The date and time when the CA enrollment policy was last modified or updated.</p>
12 /// - [`ca_enrollment_policy_status_reason(Option<String>)`](crate::operation::describe_ca_enrollment_policy::DescribeCaEnrollmentPolicyOutput::ca_enrollment_policy_status_reason): <p>Additional information explaining the current status of the CA enrollment policy, particularly useful when the policy is in an error or transitional state.</p>
13 /// - On failure, responds with [`SdkError<DescribeCAEnrollmentPolicyError>`](crate::operation::describe_ca_enrollment_policy::DescribeCAEnrollmentPolicyError)
14 pub fn describe_ca_enrollment_policy(
15 &self,
16 ) -> crate::operation::describe_ca_enrollment_policy::builders::DescribeCAEnrollmentPolicyFluentBuilder {
17 crate::operation::describe_ca_enrollment_policy::builders::DescribeCAEnrollmentPolicyFluentBuilder::new(self.handle.clone())
18 }
19}