aws_sdk_imagebuilder/client/get_component_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 [`GetComponentPolicy`](crate::operation::get_component_policy::builders::GetComponentPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`component_arn(impl Into<String>)`](crate::operation::get_component_policy::builders::GetComponentPolicyFluentBuilder::component_arn) / [`set_component_arn(Option<String>)`](crate::operation::get_component_policy::builders::GetComponentPolicyFluentBuilder::set_component_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the component whose policy you want to retrieve.</p><br>
7 /// - On success, responds with [`GetComponentPolicyOutput`](crate::operation::get_component_policy::GetComponentPolicyOutput) with field(s):
8 /// - [`request_id(Option<String>)`](crate::operation::get_component_policy::GetComponentPolicyOutput::request_id): <p>The request ID that uniquely identifies this request.</p>
9 /// - [`policy(Option<String>)`](crate::operation::get_component_policy::GetComponentPolicyOutput::policy): <p>The component policy.</p>
10 /// - On failure, responds with [`SdkError<GetComponentPolicyError>`](crate::operation::get_component_policy::GetComponentPolicyError)
11 pub fn get_component_policy(&self) -> crate::operation::get_component_policy::builders::GetComponentPolicyFluentBuilder {
12 crate::operation::get_component_policy::builders::GetComponentPolicyFluentBuilder::new(self.handle.clone())
13 }
14}