aws_sdk_bedrockagentcorecontrol/client/
get_policy_generation.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 [`GetPolicyGeneration`](crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_generation_id(impl Into<String>)`](crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder::policy_generation_id) / [`set_policy_generation_id(Option<String>)`](crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder::set_policy_generation_id):<br>required: **true**<br><p>The unique identifier of the policy generation request to be retrieved. This must be a valid generation ID from a previous <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/API_StartPolicyGeneration.html">StartPolicyGeneration</a> call.</p><br>
7    ///   - [`policy_engine_id(impl Into<String>)`](crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder::policy_engine_id) / [`set_policy_engine_id(Option<String>)`](crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder::set_policy_engine_id):<br>required: **true**<br><p>The identifier of the policy engine associated with the policy generation request. This provides the context for the generation operation and schema validation.</p><br>
8    /// - On success, responds with [`GetPolicyGenerationOutput`](crate::operation::get_policy_generation::GetPolicyGenerationOutput) with field(s):
9    ///   - [`policy_engine_id(String)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::policy_engine_id): <p>The identifier of the policy engine associated with this policy generation. This confirms the policy engine context for the generation operation.</p>
10    ///   - [`policy_generation_id(String)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::policy_generation_id): <p>The unique identifier of the policy generation request. This matches the generation ID provided in the request and serves as the tracking identifier.</p>
11    ///   - [`name(String)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::name): <p>The customer-assigned name for the policy generation request. This helps identify and track generation operations across multiple requests.</p>
12    ///   - [`policy_generation_arn(String)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::policy_generation_arn): <p>The Amazon Resource Name (ARN) of the policy generation. This globally unique identifier can be used for tracking, auditing, and cross-service references.</p>
13    ///   - [`resource(Option<Resource>)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::resource): <p>The resource information associated with the policy generation. This provides context about the target resources for which the policies are being generated.</p>
14    ///   - [`created_at(DateTime)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::created_at): <p>The timestamp when the policy generation request was created. This is used for tracking and auditing generation operations and their lifecycle.</p>
15    ///   - [`updated_at(DateTime)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::updated_at): <p>The timestamp when the policy generation was last updated. This tracks the progress of the generation process and any status changes.</p>
16    ///   - [`status(PolicyGenerationStatus)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::status): <p>The current status of the policy generation. This indicates whether the generation is in progress, completed successfully, or failed during processing.</p>
17    ///   - [`status_reasons(Vec::<String>)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::status_reasons): <p>Additional information about the generation status. This provides details about any failures, warnings, or the current state of the generation process.</p>
18    ///   - [`findings(Option<String>)`](crate::operation::get_policy_generation::GetPolicyGenerationOutput::findings): <p>The findings and results from the policy generation process. This includes any issues, recommendations, validation results, or insights from the generated policies.</p>
19    /// - On failure, responds with [`SdkError<GetPolicyGenerationError>`](crate::operation::get_policy_generation::GetPolicyGenerationError)
20    pub fn get_policy_generation(&self) -> crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder {
21        crate::operation::get_policy_generation::builders::GetPolicyGenerationFluentBuilder::new(self.handle.clone())
22    }
23}