#[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
source§fn eq(&self, other: &CreateDeploymentInput) -> bool
fn eq(&self, other: &CreateDeploymentInput) -> bool
self and other values to be equal, and is used
by ==.