pub struct CreateContainerServiceRequest {
pub deployment: Option<ContainerServiceDeploymentRequest>,
pub power: String,
pub public_domain_names: Option<HashMap<String, Vec<String>>>,
pub scale: i64,
pub service_name: String,
pub tags: Option<Vec<Tag>>,
}
Fields
deployment: Option<ContainerServiceDeploymentRequest>
An object that describes a deployment for the container service.
A deployment specifies the containers that will be launched on the container service and their settings, such as the ports to open, the environment variables to apply, and the launch command to run. It also specifies the container that will serve as the public endpoint of the deployment and its settings, such as the HTTP or HTTPS port to use, and the health check configuration.
power: String
The power specification for the container service.
The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
Use the GetContainerServicePowers
action to get a list of power options that you can specify using this parameter, and their base monthly cost.
public_domain_names: Option<HashMap<String, Vec<String>>>
The public domain names to use with the container service, such as example.com
and www.example.com
.
You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate
action to create a certificate for the public domain names you want to use with your container service.
You can specify public domain names using a string to array map as shown in the example later on this page.
scale: i64
The scale specification for the container service.
The scale specifies the allocated compute nodes of the container service. The power
and scale
of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power
with the scale
(the number of nodes) of the service.
service_name: String
The name for the container service.
The name that you specify for your container service will make up part of its default domain. The default domain of a container service is typically https://<ServiceName>.<RandomGUID>.<AWSRegion>.cs.amazonlightsail.com
. If the name of your container service is container-service-1
, and it's located in the US East (Ohio) AWS region (us-east-2
), then the domain for your container service will be like the following example: https://container-service-1.ur4EXAMPLE2uq.us-east-2.cs.amazonlightsail.com
The following are the requirements for container service names:
-
Must be unique within each AWS Region in your Lightsail account.
-
Must contain 1 to 63 characters.
-
Must contain only alphanumeric characters and hyphens.
-
A hyphen (-) can separate words but cannot be at the start or end of the name.
The tag keys and optional values for the container service.
For more information about tags in Lightsail, see the Lightsail Dev Guide.
Trait Implementations
sourceimpl Clone for CreateContainerServiceRequest
impl Clone for CreateContainerServiceRequest
sourcefn clone(&self) -> CreateContainerServiceRequest
fn clone(&self) -> CreateContainerServiceRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateContainerServiceRequest
impl Debug for CreateContainerServiceRequest
sourceimpl Default for CreateContainerServiceRequest
impl Default for CreateContainerServiceRequest
sourcefn default() -> CreateContainerServiceRequest
fn default() -> CreateContainerServiceRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateContainerServiceRequest> for CreateContainerServiceRequest
impl PartialEq<CreateContainerServiceRequest> for CreateContainerServiceRequest
sourcefn eq(&self, other: &CreateContainerServiceRequest) -> bool
fn eq(&self, other: &CreateContainerServiceRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateContainerServiceRequest) -> bool
fn ne(&self, other: &CreateContainerServiceRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateContainerServiceRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateContainerServiceRequest
impl Send for CreateContainerServiceRequest
impl Sync for CreateContainerServiceRequest
impl Unpin for CreateContainerServiceRequest
impl UnwindSafe for CreateContainerServiceRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more