@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ApplicationResourceLifecycleConfig extends Object implements Serializable, Cloneable
The resource lifecycle configuration for an application. Defines lifecycle settings for resources that belong to the application, and the service role that AWS Elastic Beanstalk assumes in order to apply lifecycle settings. The version lifecycle configuration defines lifecycle settings for application versions.
Constructor and Description |
---|
ApplicationResourceLifecycleConfig() |
Modifier and Type | Method and Description |
---|---|
ApplicationResourceLifecycleConfig |
clone() |
boolean |
equals(Object obj) |
String |
getServiceRole()
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
|
ApplicationVersionLifecycleConfig |
getVersionLifecycleConfig()
Defines lifecycle settings for application versions.
|
int |
hashCode() |
void |
setServiceRole(String serviceRole)
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
|
void |
setVersionLifecycleConfig(ApplicationVersionLifecycleConfig versionLifecycleConfig)
Defines lifecycle settings for application versions.
|
String |
toString()
Returns a string representation of this object.
|
ApplicationResourceLifecycleConfig |
withServiceRole(String serviceRole)
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
|
ApplicationResourceLifecycleConfig |
withVersionLifecycleConfig(ApplicationVersionLifecycleConfig versionLifecycleConfig)
Defines lifecycle settings for application versions.
|
public void setServiceRole(String serviceRole)
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.
serviceRole
- 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.
public String getServiceRole()
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.
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.
public ApplicationResourceLifecycleConfig withServiceRole(String serviceRole)
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.
serviceRole
- 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.
public void setVersionLifecycleConfig(ApplicationVersionLifecycleConfig versionLifecycleConfig)
Defines lifecycle settings for application versions.
versionLifecycleConfig
- Defines lifecycle settings for application versions.public ApplicationVersionLifecycleConfig getVersionLifecycleConfig()
Defines lifecycle settings for application versions.
public ApplicationResourceLifecycleConfig withVersionLifecycleConfig(ApplicationVersionLifecycleConfig versionLifecycleConfig)
Defines lifecycle settings for application versions.
versionLifecycleConfig
- Defines lifecycle settings for application versions.public String toString()
toString
in class Object
Object.toString()
public ApplicationResourceLifecycleConfig clone()