Interface LifecyclePolicyDetailAction.Builder

  • Method Details

    • type

      Specifies the lifecycle action to take. DELETE deletes the image resource and, with includeResources, also removes distributed AMIs, snapshots, or container images. DEPRECATE and DISABLE set the corresponding status on the image resource and, if includeResources.amis is set, on its distributed AMIs.

      Parameters:
      type - Specifies the lifecycle action to take. DELETE deletes the image resource and, with includeResources, also removes distributed AMIs, snapshots, or container images. DEPRECATE and DISABLE set the corresponding status on the image resource and, if includeResources.amis is set, on its distributed AMIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Specifies the lifecycle action to take. DELETE deletes the image resource and, with includeResources, also removes distributed AMIs, snapshots, or container images. DEPRECATE and DISABLE set the corresponding status on the image resource and, if includeResources.amis is set, on its distributed AMIs.

      Parameters:
      type - Specifies the lifecycle action to take. DELETE deletes the image resource and, with includeResources, also removes distributed AMIs, snapshots, or container images. DEPRECATE and DISABLE set the corresponding status on the image resource and, if includeResources.amis is set, on its distributed AMIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • includeResources

      Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images. DELETE rules can include all three, DEPRECATE and DISABLE rules can include AMIs only, and you can only include snapshots together with AMIs.

      Parameters:
      includeResources - Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images. DELETE rules can include all three, DEPRECATE and DISABLE rules can include AMIs only, and you can only include snapshots together with AMIs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includeResources

      Specifies which underlying resources the action extends to beyond the Image Builder image resource itself: distributed AMIs, their snapshots, or distributed container images. DELETE rules can include all three, DEPRECATE and DISABLE rules can include AMIs only, and you can only include snapshots together with AMIs.

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

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

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