Interface LifecyclePolicy.Builder

    • Method Detail

      • arn

        LifecyclePolicy.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the lifecycle policy resource.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the lifecycle policy resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        LifecyclePolicy.Builder name​(String name)

        The name of the lifecycle policy.

        Parameters:
        name - The name of the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        LifecyclePolicy.Builder description​(String description)

        Optional description for the lifecycle policy.

        Parameters:
        description - Optional description for the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • executionRole

        LifecyclePolicy.Builder executionRole​(String executionRole)

        The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.

        Parameters:
        executionRole - The name or Amazon Resource Name (ARN) of the IAM role that Image Builder uses to run the lifecycle policy. This is a custom role that you create.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyDetails

        LifecyclePolicy.Builder policyDetails​(Collection<LifecyclePolicyDetail> policyDetails)

        The configuration details for a lifecycle policy resource.

        Parameters:
        policyDetails - The configuration details for a lifecycle policy resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyDetails

        LifecyclePolicy.Builder policyDetails​(LifecyclePolicyDetail... policyDetails)

        The configuration details for a lifecycle policy resource.

        Parameters:
        policyDetails - The configuration details for a lifecycle policy resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceSelection

        LifecyclePolicy.Builder resourceSelection​(LifecyclePolicyResourceSelection resourceSelection)

        Resource selection criteria used to run the lifecycle policy.

        Parameters:
        resourceSelection - Resource selection criteria used to run the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateCreated

        LifecyclePolicy.Builder dateCreated​(Instant dateCreated)

        The timestamp when Image Builder created the lifecycle policy resource.

        Parameters:
        dateCreated - The timestamp when Image Builder created the lifecycle policy resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateUpdated

        LifecyclePolicy.Builder dateUpdated​(Instant dateUpdated)

        The timestamp when Image Builder updated the lifecycle policy resource.

        Parameters:
        dateUpdated - The timestamp when Image Builder updated the lifecycle policy resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dateLastRun

        LifecyclePolicy.Builder dateLastRun​(Instant dateLastRun)

        The timestamp for the last time Image Builder ran the lifecycle policy.

        Parameters:
        dateLastRun - The timestamp for the last time Image Builder ran the lifecycle policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        LifecyclePolicy.Builder tags​(Map<String,​String> tags)

        To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.

        Parameters:
        tags - To help manage your lifecycle policy resources, you can assign your own metadata to each resource in the form of tags. Each tag consists of a key and an optional value, both of which you define.
        Returns:
        Returns a reference to this object so that method calls can be chained together.