aws-sdk-ec2 1.232.1

AWS SDK for Amazon Elastic Compute Cloud
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 [`AttachImageWatermark`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`image_id(impl Into<String>)`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::image_id) / [`set_image_id(Option<String>)`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::set_image_id):<br>required: **true**<br><p>The ID of the AMI.</p><br>
    ///   - [`watermark_name(impl Into<String>)`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::watermark_name) / [`set_watermark_name(Option<String>)`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::set_watermark_name):<br>required: **true**<br><p>The name for the watermark. Combined with the caller's account ID to form the <code>WatermarkKey</code> (<code>accountId:watermarkName</code>).</p> <p>Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets (\[\]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('), at-signs (@), or underscores(_)</p><br>
    ///   - [`dry_run(bool)`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
    /// - On success, responds with [`AttachImageWatermarkOutput`](crate::operation::attach_image_watermark::AttachImageWatermarkOutput) with field(s):
    ///   - [`watermark_key(Option<String>)`](crate::operation::attach_image_watermark::AttachImageWatermarkOutput::watermark_key): <p>The watermark identifier, in <code>accountId:watermarkName</code> format (for example, <code>123456789012:approvedAmi</code>).</p>
    /// - On failure, responds with [`SdkError<AttachImageWatermarkError>`](crate::operation::attach_image_watermark::AttachImageWatermarkError)
    pub fn attach_image_watermark(&self) -> crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder {
        crate::operation::attach_image_watermark::builders::AttachImageWatermarkFluentBuilder::new(self.handle.clone())
    }
}