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