#[non_exhaustive]pub struct CreateServiceTemplateVersionInput { /* private fields */ }
Implementations§
source§impl CreateServiceTemplateVersionInput
impl CreateServiceTemplateVersionInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateServiceTemplateVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateServiceTemplateVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateServiceTemplateVersion
>
Examples found in repository?
2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateServiceTemplateVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateServiceTemplateVersionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateServiceTemplateVersionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateServiceTemplateVersionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateServiceTemplateVersionInput
.
source§impl CreateServiceTemplateVersionInput
impl CreateServiceTemplateVersionInput
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name of the service template.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the new version of a service template.
sourcepub fn major_version(&self) -> Option<&str>
pub fn major_version(&self) -> Option<&str>
To create a new minor version of the service template, include a major Version
.
To create a new major and minor version of the service template, exclude major Version
.
sourcepub fn source(&self) -> Option<&TemplateVersionSourceInput>
pub fn source(&self) -> Option<&TemplateVersionSourceInput>
An object that includes the template bundle S3 bucket path and name for the new version of a service template.
sourcepub fn compatible_environment_templates(
&self
) -> Option<&[CompatibleEnvironmentTemplateInput]>
pub fn compatible_environment_templates(
&self
) -> Option<&[CompatibleEnvironmentTemplateInput]>
An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.
An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
sourcepub fn supported_component_sources(
&self
) -> Option<&[ServiceTemplateSupportedComponentSourceType]>
pub fn supported_component_sources(
&self
) -> Option<&[ServiceTemplateSupportedComponentSourceType]>
An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
Trait Implementations§
source§impl Clone for CreateServiceTemplateVersionInput
impl Clone for CreateServiceTemplateVersionInput
source§fn clone(&self) -> CreateServiceTemplateVersionInput
fn clone(&self) -> CreateServiceTemplateVersionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more