Struct aws_sdk_amplify::client::fluent_builders::CreateDeployment
source · [−]pub struct CreateDeployment { /* private fields */ }Expand description
Fluent builder constructing a request to CreateDeployment.
Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository.
Implementations
sourceimpl CreateDeployment
impl CreateDeployment
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDeployment, AwsResponseRetryClassifier>, SdkError<CreateDeploymentError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateDeployment, AwsResponseRetryClassifier>, SdkError<CreateDeploymentError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateDeploymentOutput, SdkError<CreateDeploymentError>>
pub async fn send(
self
) -> Result<CreateDeploymentOutput, SdkError<CreateDeploymentError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn set_app_id(self, input: Option<String>) -> Self
pub fn set_app_id(self, input: Option<String>) -> Self
The unique ID for an Amplify app.
sourcepub fn branch_name(self, input: impl Into<String>) -> Self
pub fn branch_name(self, input: impl Into<String>) -> Self
The name for the branch, for the job.
sourcepub fn set_branch_name(self, input: Option<String>) -> Self
pub fn set_branch_name(self, input: Option<String>) -> Self
The name for the branch, for the job.
sourcepub fn file_map(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn file_map(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to fileMap.
To override the contents of this collection use set_file_map.
An optional file map that contains the file name as the key and the file content md5 hash as the value. If this argument is provided, the service will generate a unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files.
sourcepub fn set_file_map(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_file_map(self, input: Option<HashMap<String, String>>) -> Self
An optional file map that contains the file name as the key and the file content md5 hash as the value. If this argument is provided, the service will generate a unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files.
Trait Implementations
sourceimpl Clone for CreateDeployment
impl Clone for CreateDeployment
sourcefn clone(&self) -> CreateDeployment
fn clone(&self) -> CreateDeployment
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more