Struct aws_sdk_apprunner::model::image_configuration::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ImageConfiguration
Implementations
sourceimpl Builder
impl Builder
sourcepub fn runtime_environment_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn runtime_environment_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
Adds a key-value pair to runtime_environment_variables
.
To override the contents of this collection use set_runtime_environment_variables
.
Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.
sourcepub fn set_runtime_environment_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_runtime_environment_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
Environment variables that are available to your running App Runner service. An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER
are reserved for system use and aren't valid.
sourcepub fn start_command(self, input: impl Into<String>) -> Self
pub fn start_command(self, input: impl Into<String>) -> Self
An optional command that App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
sourcepub fn set_start_command(self, input: Option<String>) -> Self
pub fn set_start_command(self, input: Option<String>) -> Self
An optional command that App Runner runs to start the application in the source image. If specified, this command overrides the Docker image’s default start command.
sourcepub fn port(self, input: impl Into<String>) -> Self
pub fn port(self, input: impl Into<String>) -> Self
The port that your application listens to in the container.
Default: 8080
sourcepub fn set_port(self, input: Option<String>) -> Self
pub fn set_port(self, input: Option<String>) -> Self
The port that your application listens to in the container.
Default: 8080
sourcepub fn build(self) -> ImageConfiguration
pub fn build(self) -> ImageConfiguration
Consumes the builder and constructs a ImageConfiguration
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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> 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