Interface ApplicationResourceLifecycleConfig.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ApplicationResourceLifecycleConfig.Builder,ApplicationResourceLifecycleConfig>, SdkBuilder<ApplicationResourceLifecycleConfig.Builder,ApplicationResourceLifecycleConfig>, SdkPojo
Enclosing class:
ApplicationResourceLifecycleConfig

public static interface ApplicationResourceLifecycleConfig.Builder extends SdkPojo, CopyableBuilder<ApplicationResourceLifecycleConfig.Builder,ApplicationResourceLifecycleConfig>
  • Method Details

    • 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • versionLifecycleConfig

      ApplicationResourceLifecycleConfig.Builder versionLifecycleConfig(ApplicationVersionLifecycleConfig versionLifecycleConfig)

      Defines lifecycle settings for application versions.

      Parameters:
      versionLifecycleConfig - Defines lifecycle settings for application versions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • versionLifecycleConfig

      default ApplicationResourceLifecycleConfig.Builder versionLifecycleConfig(Consumer<ApplicationVersionLifecycleConfig.Builder> versionLifecycleConfig)

      Defines lifecycle settings for application versions.

      This is a convenience method that creates an instance of the ApplicationVersionLifecycleConfig.Builder avoiding the need to create one manually via ApplicationVersionLifecycleConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to versionLifecycleConfig(ApplicationVersionLifecycleConfig).

      Parameters:
      versionLifecycleConfig - a consumer that will call methods on ApplicationVersionLifecycleConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: