#[non_exhaustive]pub struct CreateDeploymentInput {
pub rest_api_id: Option<String>,
pub stage_name: Option<String>,
pub stage_description: Option<String>,
pub description: Option<String>,
pub cache_cluster_enabled: Option<bool>,
pub cache_cluster_size: Option<CacheClusterSize>,
pub variables: Option<HashMap<String, String>>,
pub canary_settings: Option<DeploymentCanarySettings>,
pub tracing_enabled: Option<bool>,
}Expand description
Requests API Gateway to create a Deployment resource.
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.rest_api_id: Option<String>The string identifier of the associated RestApi.
stage_name: Option<String>The name of the Stage resource for the Deployment resource to create.
stage_description: Option<String>The description of the Stage resource for the Deployment resource to create.
description: Option<String>The description for the Deployment resource to create.
cache_cluster_enabled: Option<bool>Enables a cache cluster for the Stage resource specified in the input.
cache_cluster_size: Option<CacheClusterSize>The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
variables: Option<HashMap<String, String>>A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match \[A-Za-z0-9-._~:/?#&=,\]+.
canary_settings: Option<DeploymentCanarySettings>The input configuration for the canary deployment when the deployment is a canary release deployment.
tracing_enabled: Option<bool>Specifies whether active tracing with X-ray is enabled for the Stage.
Implementations§
source§impl CreateDeploymentInput
impl CreateDeploymentInput
sourcepub fn rest_api_id(&self) -> Option<&str>
pub fn rest_api_id(&self) -> Option<&str>
The string identifier of the associated RestApi.
sourcepub fn stage_name(&self) -> Option<&str>
pub fn stage_name(&self) -> Option<&str>
The name of the Stage resource for the Deployment resource to create.
sourcepub fn stage_description(&self) -> Option<&str>
pub fn stage_description(&self) -> Option<&str>
The description of the Stage resource for the Deployment resource to create.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description for the Deployment resource to create.
sourcepub fn cache_cluster_enabled(&self) -> Option<bool>
pub fn cache_cluster_enabled(&self) -> Option<bool>
Enables a cache cluster for the Stage resource specified in the input.
sourcepub fn cache_cluster_size(&self) -> Option<&CacheClusterSize>
pub fn cache_cluster_size(&self) -> Option<&CacheClusterSize>
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
sourcepub fn variables(&self) -> Option<&HashMap<String, String>>
pub fn variables(&self) -> Option<&HashMap<String, String>>
A map that defines the stage variables for the Stage resource that is associated with the new deployment. Variable names can have alphanumeric and underscore characters, and the values must match \[A-Za-z0-9-._~:/?#&=,\]+.
sourcepub fn canary_settings(&self) -> Option<&DeploymentCanarySettings>
pub fn canary_settings(&self) -> Option<&DeploymentCanarySettings>
The input configuration for the canary deployment when the deployment is a canary release deployment.
sourcepub fn tracing_enabled(&self) -> Option<bool>
pub fn tracing_enabled(&self) -> Option<bool>
Specifies whether active tracing with X-ray is enabled for the Stage.
source§impl CreateDeploymentInput
impl CreateDeploymentInput
sourcepub fn builder() -> CreateDeploymentInputBuilder
pub fn builder() -> CreateDeploymentInputBuilder
Creates a new builder-style object to manufacture CreateDeploymentInput.
Trait Implementations§
source§impl Clone for CreateDeploymentInput
impl Clone for CreateDeploymentInput
source§fn clone(&self) -> CreateDeploymentInput
fn clone(&self) -> CreateDeploymentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateDeploymentInput
impl Debug for CreateDeploymentInput
source§impl PartialEq for CreateDeploymentInput
impl PartialEq for CreateDeploymentInput
impl StructuralPartialEq for CreateDeploymentInput
Auto Trait Implementations§
impl Freeze for CreateDeploymentInput
impl RefUnwindSafe for CreateDeploymentInput
impl Send for CreateDeploymentInput
impl Sync for CreateDeploymentInput
impl Unpin for CreateDeploymentInput
impl UnwindSafe for CreateDeploymentInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more