1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutImageRecipePolicy`](crate::operation::put_image_recipe_policy::builders::PutImageRecipePolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`PutImageRecipePolicyOutput`](crate::operation::put_image_recipe_policy::PutImageRecipePolicyOutput) with field(s):
    ///   - [`request_id(Option<String>)`](crate::operation::put_image_recipe_policy::PutImageRecipePolicyOutput::request_id): <p>The request ID that uniquely identifies this request.</p>
    ///   - [`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>
    /// - On failure, responds with [`SdkError<PutImageRecipePolicyError>`](crate::operation::put_image_recipe_policy::PutImageRecipePolicyError)
    pub fn put_image_recipe_policy(&self) -> crate::operation::put_image_recipe_policy::builders::PutImageRecipePolicyFluentBuilder {
        crate::operation::put_image_recipe_policy::builders::PutImageRecipePolicyFluentBuilder::new(self.handle.clone())
    }
}