#[non_exhaustive]pub struct ApplicationResourceLifecycleConfigBuilder { /* private fields */ }
Expand description
A builder for ApplicationResourceLifecycleConfig
.
Implementations§
source§impl ApplicationResourceLifecycleConfigBuilder
impl ApplicationResourceLifecycleConfigBuilder
sourcepub fn service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole
property is required the first time that you provide a VersionLifecycleConfig
for the application in one of the supporting calls (CreateApplication
or UpdateApplicationResourceLifecycle
). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle
calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole
property is required the first time that you provide a VersionLifecycleConfig
for the application in one of the supporting calls (CreateApplication
or UpdateApplicationResourceLifecycle
). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle
calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
sourcepub fn get_service_role(&self) -> &Option<String>
pub fn get_service_role(&self) -> &Option<String>
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole
property is required the first time that you provide a VersionLifecycleConfig
for the application in one of the supporting calls (CreateApplication
or UpdateApplicationResourceLifecycle
). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle
calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
sourcepub fn version_lifecycle_config(
self,
input: ApplicationVersionLifecycleConfig
) -> Self
pub fn version_lifecycle_config( self, input: ApplicationVersionLifecycleConfig ) -> Self
Defines lifecycle settings for application versions.
sourcepub fn set_version_lifecycle_config(
self,
input: Option<ApplicationVersionLifecycleConfig>
) -> Self
pub fn set_version_lifecycle_config( self, input: Option<ApplicationVersionLifecycleConfig> ) -> Self
Defines lifecycle settings for application versions.
sourcepub fn get_version_lifecycle_config(
&self
) -> &Option<ApplicationVersionLifecycleConfig>
pub fn get_version_lifecycle_config( &self ) -> &Option<ApplicationVersionLifecycleConfig>
Defines lifecycle settings for application versions.
sourcepub fn build(self) -> ApplicationResourceLifecycleConfig
pub fn build(self) -> ApplicationResourceLifecycleConfig
Consumes the builder and constructs a ApplicationResourceLifecycleConfig
.
Trait Implementations§
source§impl Clone for ApplicationResourceLifecycleConfigBuilder
impl Clone for ApplicationResourceLifecycleConfigBuilder
source§fn clone(&self) -> ApplicationResourceLifecycleConfigBuilder
fn clone(&self) -> ApplicationResourceLifecycleConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ApplicationResourceLifecycleConfigBuilder
impl Default for ApplicationResourceLifecycleConfigBuilder
source§fn default() -> ApplicationResourceLifecycleConfigBuilder
fn default() -> ApplicationResourceLifecycleConfigBuilder
source§impl PartialEq for ApplicationResourceLifecycleConfigBuilder
impl PartialEq for ApplicationResourceLifecycleConfigBuilder
source§fn eq(&self, other: &ApplicationResourceLifecycleConfigBuilder) -> bool
fn eq(&self, other: &ApplicationResourceLifecycleConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApplicationResourceLifecycleConfigBuilder
Auto Trait Implementations§
impl Freeze for ApplicationResourceLifecycleConfigBuilder
impl RefUnwindSafe for ApplicationResourceLifecycleConfigBuilder
impl Send for ApplicationResourceLifecycleConfigBuilder
impl Sync for ApplicationResourceLifecycleConfigBuilder
impl Unpin for ApplicationResourceLifecycleConfigBuilder
impl UnwindSafe for ApplicationResourceLifecycleConfigBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more