aws_sdk_imagebuilder/client/put_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 [`PutComponentPolicy`](crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`component_arn(impl Into<String>)`](crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder::component_arn) / [`set_component_arn(Option<String>)`](crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder::set_component_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the component that this policy should be applied to.</p><br>
7 /// - [`policy(impl Into<String>)`](crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The policy to apply.</p><br>
8 /// - On success, responds with [`PutComponentPolicyOutput`](crate::operation::put_component_policy::PutComponentPolicyOutput) with field(s):
9 /// - [`request_id(Option<String>)`](crate::operation::put_component_policy::PutComponentPolicyOutput::request_id): <p>The request ID that uniquely identifies this request.</p>
10 /// - [`component_arn(Option<String>)`](crate::operation::put_component_policy::PutComponentPolicyOutput::component_arn): <p>The Amazon Resource Name (ARN) of the component that this policy was applied to.</p>
11 /// - On failure, responds with [`SdkError<PutComponentPolicyError>`](crate::operation::put_component_policy::PutComponentPolicyError)
12 pub fn put_component_policy(&self) -> crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder {
13 crate::operation::put_component_policy::builders::PutComponentPolicyFluentBuilder::new(self.handle.clone())
14 }
15}