#[non_exhaustive]pub struct UpdateComponentInput {
pub name: Option<String>,
pub deployment_type: Option<ComponentDeploymentUpdateType>,
pub description: Option<String>,
pub service_name: Option<String>,
pub service_instance_name: Option<String>,
pub service_spec: Option<String>,
pub template_file: Option<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.name: Option<String>
The name of the component to update.
deployment_type: Option<ComponentDeploymentUpdateType>
The deployment type. It defines the mode for updating a component, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
description
in this mode. -
CURRENT_VERSION
In this mode, the component is deployed and updated with the new
serviceSpec
,templateSource
, and/ortype
that you provide. Only requested parameters are updated.
description: Option<String>
An optional customer-provided description of the component.
service_name: Option<String>
The name of the service that serviceInstanceName
is associated with. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for both serviceInstanceName
and serviceName
or for neither of them.
service_instance_name: Option<String>
The name of the service instance that you want to attach this component to. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for both serviceInstanceName
and serviceName
or for neither of them.
service_spec: Option<String>
The service spec that you want the component to use to access service inputs. Set this only when the component is attached to a service instance.
template_file: Option<String>
A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.
Components support a single IaC file, even if you use Terraform as your template language.
client_token: Option<String>
The client token for the updated component.
Implementations§
source§impl UpdateComponentInput
impl UpdateComponentInput
sourcepub fn deployment_type(&self) -> Option<&ComponentDeploymentUpdateType>
pub fn deployment_type(&self) -> Option<&ComponentDeploymentUpdateType>
The deployment type. It defines the mode for updating a component, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
description
in this mode. -
CURRENT_VERSION
In this mode, the component is deployed and updated with the new
serviceSpec
,templateSource
, and/ortype
that you provide. Only requested parameters are updated.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
An optional customer-provided description of the component.
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service that serviceInstanceName
is associated with. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for both serviceInstanceName
and serviceName
or for neither of them.
sourcepub fn service_instance_name(&self) -> Option<&str>
pub fn service_instance_name(&self) -> Option<&str>
The name of the service instance that you want to attach this component to. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for both serviceInstanceName
and serviceName
or for neither of them.
sourcepub fn service_spec(&self) -> Option<&str>
pub fn service_spec(&self) -> Option<&str>
The service spec that you want the component to use to access service inputs. Set this only when the component is attached to a service instance.
sourcepub fn template_file(&self) -> Option<&str>
pub fn template_file(&self) -> Option<&str>
A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.
Components support a single IaC file, even if you use Terraform as your template language.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
The client token for the updated component.
source§impl UpdateComponentInput
impl UpdateComponentInput
sourcepub fn builder() -> UpdateComponentInputBuilder
pub fn builder() -> UpdateComponentInputBuilder
Creates a new builder-style object to manufacture UpdateComponentInput
.
Trait Implementations§
source§impl Clone for UpdateComponentInput
impl Clone for UpdateComponentInput
source§fn clone(&self) -> UpdateComponentInput
fn clone(&self) -> UpdateComponentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateComponentInput
impl Debug for UpdateComponentInput
source§impl PartialEq for UpdateComponentInput
impl PartialEq for UpdateComponentInput
source§fn eq(&self, other: &UpdateComponentInput) -> bool
fn eq(&self, other: &UpdateComponentInput) -> bool
self
and other
values to be equal, and is used
by ==
.