Class CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticbeanstalk.CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.ApplicationResourceLifecycleConfigProperty>
- Enclosing interface:
CfnApplication.ApplicationResourceLifecycleConfigProperty
@Stability(Stable)
public static final class CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.ApplicationResourceLifecycleConfigProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.serviceRole
(String serviceRole) versionLifecycleConfig
(IResolvable versionLifecycleConfig) versionLifecycleConfig
(CfnApplication.ApplicationVersionLifecycleConfigProperty versionLifecycleConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serviceRole
@Stability(Stable) public CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder serviceRole(String serviceRole) - Parameters:
serviceRole
- The ARN of an IAM service role that Elastic Beanstalk has permission to assume. TheServiceRole
property is required the first time that you provide aResourceLifecycleConfig
for the application. After you provide it once, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again. You can, however, specify it in subsequent updates to change the Service Role to another value.- Returns:
this
-
versionLifecycleConfig
@Stability(Stable) public CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder versionLifecycleConfig(IResolvable versionLifecycleConfig) Sets the value ofCfnApplication.ApplicationResourceLifecycleConfigProperty.getVersionLifecycleConfig()
- Parameters:
versionLifecycleConfig
- Defines lifecycle settings for application versions.- Returns:
this
-
versionLifecycleConfig
@Stability(Stable) public CfnApplication.ApplicationResourceLifecycleConfigProperty.Builder versionLifecycleConfig(CfnApplication.ApplicationVersionLifecycleConfigProperty versionLifecycleConfig) Sets the value ofCfnApplication.ApplicationResourceLifecycleConfigProperty.getVersionLifecycleConfig()
- Parameters:
versionLifecycleConfig
- Defines lifecycle settings for application versions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.ApplicationResourceLifecycleConfigProperty>
- Returns:
- a new instance of
CfnApplication.ApplicationResourceLifecycleConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-