pub struct CreateEnvironmentTemplate { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateEnvironmentTemplate
.
Create an environment template for Proton. For more information, see Environment Templates in the Proton User Guide.
You can create an environment template in one of the two following ways:
-
Register and publish a standard environment template that instructs Proton to deploy and manage environment infrastructure.
-
Register and publish a customer managed environment template that connects Proton to your existing provisioned infrastructure that you manage. Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the
provisioning
parameter and set the value toCUSTOMER_MANAGED
. For more information, see Register and publish an environment template in the Proton User Guide.
Implementations§
source§impl CreateEnvironmentTemplate
impl CreateEnvironmentTemplate
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateEnvironmentTemplate, AwsResponseRetryClassifier>, SdkError<CreateEnvironmentTemplateError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateEnvironmentTemplate, AwsResponseRetryClassifier>, SdkError<CreateEnvironmentTemplateError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateEnvironmentTemplateOutput, SdkError<CreateEnvironmentTemplateError>>
pub async fn send(
self
) -> Result<CreateEnvironmentTemplateOutput, SdkError<CreateEnvironmentTemplateError>>
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 display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The environment template name as displayed in the developer interface.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The environment template name as displayed in the developer interface.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the environment template.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the environment template.
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
A customer provided encryption key that Proton uses to encrypt data.
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
A customer provided encryption key that Proton uses to encrypt data.
sourcepub fn provisioning(self, input: Provisioning) -> Self
pub fn provisioning(self, input: Provisioning) -> Self
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
sourcepub fn set_provisioning(self, input: Option<Provisioning>) -> Self
pub fn set_provisioning(self, input: Option<Provisioning>) -> Self
When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
An optional list of metadata items that you can associate with the Proton environment template. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
An optional list of metadata items that you can associate with the Proton environment template. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
Trait Implementations§
source§impl Clone for CreateEnvironmentTemplate
impl Clone for CreateEnvironmentTemplate
source§fn clone(&self) -> CreateEnvironmentTemplate
fn clone(&self) -> CreateEnvironmentTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more