#[non_exhaustive]pub struct CreateServiceInput {
pub name: Option<String>,
pub description: Option<String>,
pub template_name: Option<String>,
pub template_major_version: Option<String>,
pub template_minor_version: Option<String>,
pub spec: Option<String>,
pub repository_connection_arn: Option<String>,
pub repository_id: Option<String>,
pub branch_name: Option<String>,
pub tags: Option<Vec<Tag>>,
}
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 service name.
description: Option<String>
A description of the Proton service.
template_name: Option<String>
The name of the service template that's used to create the service.
template_major_version: Option<String>
The major version of the service template that was used to create the service.
template_minor_version: Option<String>
The minor version of the service template that was used to create the service.
spec: Option<String>
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.
repository_connection_arn: Option<String>
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.
repository_id: Option<String>
The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.
branch_name: Option<String>
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.
Implementations§
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateServiceInput
impl CreateServiceInput
sourcepub fn builder() -> CreateServiceInputBuilder
pub fn builder() -> CreateServiceInputBuilder
Creates a new builder-style object to manufacture CreateServiceInput
.
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 moresource§impl Debug for CreateServiceInput
impl Debug for CreateServiceInput
source§impl PartialEq for CreateServiceInput
impl PartialEq for CreateServiceInput
source§fn eq(&self, other: &CreateServiceInput) -> bool
fn eq(&self, other: &CreateServiceInput) -> bool
self
and other
values to be equal, and is used
by ==
.