#[non_exhaustive]pub struct CreateComponentVersionInput {
pub inline_recipe: Option<Blob>,
pub lambda_function: Option<LambdaFunctionRecipeSource>,
pub tags: Option<HashMap<String, String>>,
pub client_token: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.inline_recipe: Option<Blob>
The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either inlineRecipe
or lambdaFunction
.
lambda_function: Option<LambdaFunctionRecipeSource>
The parameters to create a component from a Lambda function.
You must specify either inlineRecipe
or lambdaFunction
.
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
client_token: Option<String>
A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. Idempotency means that the request is successfully processed only once, even if you send the request multiple times. When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for idempotent requests for up to 8 hours.
Implementations
sourceimpl CreateComponentVersionInput
impl CreateComponentVersionInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateComponentVersion, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateComponentVersion, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateComponentVersion
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateComponentVersionInput
sourceimpl CreateComponentVersionInput
impl CreateComponentVersionInput
sourcepub fn inline_recipe(&self) -> Option<&Blob>
pub fn inline_recipe(&self) -> Option<&Blob>
The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.
You must specify either inlineRecipe
or lambdaFunction
.
sourcepub fn lambda_function(&self) -> Option<&LambdaFunctionRecipeSource>
pub fn lambda_function(&self) -> Option<&LambdaFunctionRecipeSource>
The parameters to create a component from a Lambda function.
You must specify either inlineRecipe
or lambdaFunction
.
A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. Idempotency means that the request is successfully processed only once, even if you send the request multiple times. When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for idempotent requests for up to 8 hours.
Trait Implementations
sourceimpl Clone for CreateComponentVersionInput
impl Clone for CreateComponentVersionInput
sourcefn clone(&self) -> CreateComponentVersionInput
fn clone(&self) -> CreateComponentVersionInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateComponentVersionInput
impl Debug for CreateComponentVersionInput
sourceimpl PartialEq<CreateComponentVersionInput> for CreateComponentVersionInput
impl PartialEq<CreateComponentVersionInput> for CreateComponentVersionInput
sourcefn eq(&self, other: &CreateComponentVersionInput) -> bool
fn eq(&self, other: &CreateComponentVersionInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateComponentVersionInput) -> bool
fn ne(&self, other: &CreateComponentVersionInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateComponentVersionInput
Auto Trait Implementations
impl RefUnwindSafe for CreateComponentVersionInput
impl Send for CreateComponentVersionInput
impl Sync for CreateComponentVersionInput
impl Unpin for CreateComponentVersionInput
impl UnwindSafe for CreateComponentVersionInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more