Struct aws_sdk_proton::input::CreateServiceInput
source · #[non_exhaustive]pub struct CreateServiceInput { /* private fields */ }
Implementations§
source§impl CreateServiceInput
impl CreateServiceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateService, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateService, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateService
>
Examples found in repository?
2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateServiceError>,
> {
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::CreateServiceOutput,
aws_smithy_http::result::SdkError<crate::error::CreateServiceError>,
> {
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 CreateServiceInput
.
source§impl CreateServiceInput
impl CreateServiceInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the Proton service.
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name of the service template that's used to create the service.
sourcepub fn template_major_version(&self) -> Option<&str>
pub fn template_major_version(&self) -> Option<&str>
The major version of the service template that was used to create the service.
sourcepub fn template_minor_version(&self) -> Option<&str>
pub fn template_minor_version(&self) -> Option<&str>
The minor version of the service template that was used to create the service.
sourcepub fn spec(&self) -> Option<&str>
pub fn spec(&self) -> Option<&str>
A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.
sourcepub fn repository_connection_arn(&self) -> Option<&str>
pub fn repository_connection_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.
sourcepub fn repository_id(&self) -> Option<&str>
pub fn repository_id(&self) -> Option<&str>
The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.
sourcepub fn branch_name(&self) -> Option<&str>
pub fn branch_name(&self) -> Option<&str>
The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.
An optional list of metadata items that you can associate with the Proton service. 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 CreateServiceInput
impl Clone for CreateServiceInput
source§fn clone(&self) -> CreateServiceInput
fn clone(&self) -> CreateServiceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more