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