#[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<ApplicationResourceLifecycleConfigBuilder> for ApplicationResourceLifecycleConfigBuilder
impl PartialEq<ApplicationResourceLifecycleConfigBuilder> 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 ==
.