Struct aws_sdk_ec2::input::CreateFpgaImageInput
source · #[non_exhaustive]pub struct CreateFpgaImageInput { /* private fields */ }
Implementations§
source§impl CreateFpgaImageInput
impl CreateFpgaImageInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFpgaImage, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFpgaImage, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateFpgaImage
>
Examples found in repository?
src/client.rs (line 16481)
16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateFpgaImage,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateFpgaImageError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateFpgaImageOutput,
aws_smithy_http::result::SdkError<crate::error::CreateFpgaImageError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateFpgaImageInput
.
source§impl CreateFpgaImageInput
impl CreateFpgaImageInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn input_storage_location(&self) -> Option<&StorageLocation>
pub fn input_storage_location(&self) -> Option<&StorageLocation>
The location of the encrypted design checkpoint in Amazon S3. The input must be a tarball.
sourcepub fn logs_storage_location(&self) -> Option<&StorageLocation>
pub fn logs_storage_location(&self) -> Option<&StorageLocation>
The location in Amazon S3 for the output logs.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the AFI.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the FPGA image during creation.
Trait Implementations§
source§impl Clone for CreateFpgaImageInput
impl Clone for CreateFpgaImageInput
source§fn clone(&self) -> CreateFpgaImageInput
fn clone(&self) -> CreateFpgaImageInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more