aws_sdk_devicefarm/client/
update_upload.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateUpload`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`arn(impl Into<String>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the uploaded test spec.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::set_name):<br>required: **false**<br><p>The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the <code>.yaml</code> or <code>.yml</code> file extension.</p><br>
    ///   - [`content_type(impl Into<String>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::set_content_type):<br>required: **false**<br><p>The upload's content type (for example, <code>application/x-yaml</code>).</p><br>
    ///   - [`edit_content(bool)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::edit_content) / [`set_edit_content(Option<bool>)`](crate::operation::update_upload::builders::UpdateUploadFluentBuilder::set_edit_content):<br>required: **false**<br><p>Set to true if the YAML file has changed and must be updated. Otherwise, set to false.</p><br>
    /// - On success, responds with [`UpdateUploadOutput`](crate::operation::update_upload::UpdateUploadOutput) with field(s):
    ///   - [`upload(Option<Upload>)`](crate::operation::update_upload::UpdateUploadOutput::upload): <p>A test spec uploaded to Device Farm.</p>
    /// - On failure, responds with [`SdkError<UpdateUploadError>`](crate::operation::update_upload::UpdateUploadError)
    pub fn update_upload(&self) -> crate::operation::update_upload::builders::UpdateUploadFluentBuilder {
        crate::operation::update_upload::builders::UpdateUploadFluentBuilder::new(self.handle.clone())
    }
}