aws_sdk_codegurusecurity/client/create_upload_url.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 [`CreateUploadUrl`](crate::operation::create_upload_url::builders::CreateUploadUrlFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`scan_name(impl Into<String>)`](crate::operation::create_upload_url::builders::CreateUploadUrlFluentBuilder::scan_name) / [`set_scan_name(Option<String>)`](crate::operation::create_upload_url::builders::CreateUploadUrlFluentBuilder::set_scan_name):<br>required: **true**<br><p>The name of the scan that will use the uploaded resource. CodeGuru Security uses the unique scan name to track revisions across multiple scans of the same resource. Use this <code>scanName</code> when you call <code>CreateScan</code> on the code resource you upload to this URL.</p><br>
7 /// - On success, responds with [`CreateUploadUrlOutput`](crate::operation::create_upload_url::CreateUploadUrlOutput) with field(s):
8 /// - [`s3_url(String)`](crate::operation::create_upload_url::CreateUploadUrlOutput::s3_url): <p>A pre-signed S3 URL. You can upload the code file you want to scan with the required <code>requestHeaders</code> using any HTTP client.</p>
9 /// - [`request_headers(HashMap::<String, String>)`](crate::operation::create_upload_url::CreateUploadUrlOutput::request_headers): <p>A set of key-value pairs that contain the required headers when uploading your resource.</p>
10 /// - [`code_artifact_id(String)`](crate::operation::create_upload_url::CreateUploadUrlOutput::code_artifact_id): <p>The identifier for the uploaded code resource. Pass this to <code>CreateScan</code> to use the uploaded resources.</p>
11 /// - On failure, responds with [`SdkError<CreateUploadUrlError>`](crate::operation::create_upload_url::CreateUploadUrlError)
12 pub fn create_upload_url(&self) -> crate::operation::create_upload_url::builders::CreateUploadUrlFluentBuilder {
13 crate::operation::create_upload_url::builders::CreateUploadUrlFluentBuilder::new(self.handle.clone())
14 }
15}