pub struct CreateDeployment { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDeployment
.
Creates a continuous deployment for a target, which is a Greengrass core device or group of core devices. When you add a new core device to a group of core devices that has a deployment, IoT Greengrass deploys that group's deployment to the new device.
You can define one deployment for each target. When you create a new deployment for a target that has an existing deployment, you replace the previous deployment. IoT Greengrass applies the new deployment to the target devices.
Every deployment has a revision number that indicates how many deployment revisions you define for a target. Use this operation to create a new revision of an existing deployment.
For more information, see the Create deployments in the IoT Greengrass V2 Developer Guide.
Implementations
sourceimpl CreateDeployment
impl CreateDeployment
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 target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The ARN of the target IoT thing or thing group.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The ARN of the target IoT thing or thing group.
sourcepub fn deployment_name(self, input: impl Into<String>) -> Self
pub fn deployment_name(self, input: impl Into<String>) -> Self
The name of the deployment.
sourcepub fn set_deployment_name(self, input: Option<String>) -> Self
pub fn set_deployment_name(self, input: Option<String>) -> Self
The name of the deployment.
sourcepub fn components(
self,
k: impl Into<String>,
v: ComponentDeploymentSpecification
) -> Self
pub fn components(
self,
k: impl Into<String>,
v: ComponentDeploymentSpecification
) -> Self
Adds a key-value pair to components
.
To override the contents of this collection use set_components
.
The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
sourcepub fn set_components(
self,
input: Option<HashMap<String, ComponentDeploymentSpecification>>
) -> Self
pub fn set_components(
self,
input: Option<HashMap<String, ComponentDeploymentSpecification>>
) -> Self
The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
sourcepub fn iot_job_configuration(self, input: DeploymentIoTJobConfiguration) -> Self
pub fn iot_job_configuration(self, input: DeploymentIoTJobConfiguration) -> Self
The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
sourcepub fn set_iot_job_configuration(
self,
input: Option<DeploymentIoTJobConfiguration>
) -> Self
pub fn set_iot_job_configuration(
self,
input: Option<DeploymentIoTJobConfiguration>
) -> Self
The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
sourcepub fn deployment_policies(self, input: DeploymentPolicies) -> Self
pub fn deployment_policies(self, input: DeploymentPolicies) -> Self
The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
sourcepub fn set_deployment_policies(self, input: Option<DeploymentPolicies>) -> Self
pub fn set_deployment_policies(self, input: Option<DeploymentPolicies>) -> Self
The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
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.
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, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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 CreateDeployment
impl Clone for CreateDeployment
sourcefn clone(&self) -> CreateDeployment
fn clone(&self) -> CreateDeployment
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
Auto Trait Implementations
impl !RefUnwindSafe for CreateDeployment
impl Send for CreateDeployment
impl Sync for CreateDeployment
impl Unpin for CreateDeployment
impl !UnwindSafe for CreateDeployment
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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