aws_sdk_bedrockagentcorecontrol/client/get_policy_engine.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 [`GetPolicyEngine`](crate::operation::get_policy_engine::builders::GetPolicyEngineFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`policy_engine_id(impl Into<String>)`](crate::operation::get_policy_engine::builders::GetPolicyEngineFluentBuilder::policy_engine_id) / [`set_policy_engine_id(Option<String>)`](crate::operation::get_policy_engine::builders::GetPolicyEngineFluentBuilder::set_policy_engine_id):<br>required: **true**<br><p>The unique identifier of the policy engine to be retrieved. This must be a valid policy engine ID that exists within the account.</p><br>
7 /// - On success, responds with [`GetPolicyEngineOutput`](crate::operation::get_policy_engine::GetPolicyEngineOutput) with field(s):
8 /// - [`policy_engine_id(String)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::policy_engine_id): <p>The unique identifier of the retrieved policy engine. This matches the policy engine ID provided in the request and serves as the system identifier.</p>
9 /// - [`name(String)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::name): <p>The customer-assigned name of the policy engine. This is the human-readable identifier that was specified when the policy engine was created.</p>
10 /// - [`description(Option<String>)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::description): <p>The human-readable description of the policy engine's purpose and scope. This helps administrators understand the policy engine's role in governance.</p>
11 /// - [`created_at(DateTime)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::created_at): <p>The timestamp when the policy engine was originally created.</p>
12 /// - [`updated_at(DateTime)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::updated_at): <p>The timestamp when the policy engine was last modified. This tracks the most recent changes to the policy engine configuration.</p>
13 /// - [`policy_engine_arn(String)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::policy_engine_arn): <p>The Amazon Resource Name (ARN) of the policy engine. This globally unique identifier can be used for cross-service references and IAM policy statements.</p>
14 /// - [`status(PolicyEngineStatus)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::status): <p>The current status of the policy engine.</p>
15 /// - [`status_reasons(Vec::<String>)`](crate::operation::get_policy_engine::GetPolicyEngineOutput::status_reasons): <p>Additional information about the policy engine status. This provides details about any failures or the current state of the policy engine.</p>
16 /// - On failure, responds with [`SdkError<GetPolicyEngineError>`](crate::operation::get_policy_engine::GetPolicyEngineError)
17 pub fn get_policy_engine(&self) -> crate::operation::get_policy_engine::builders::GetPolicyEngineFluentBuilder {
18 crate::operation::get_policy_engine::builders::GetPolicyEngineFluentBuilder::new(self.handle.clone())
19 }
20}