Class BucketLifecycleRuleConditionArgs


  • public final class BucketLifecycleRuleConditionArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • age

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> age()
        Returns:
        Minimum age of an object in days to satisfy this condition.
      • createdBefore

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> createdBefore()
        Returns:
        A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when an object is created before midnight of the specified date in UTC.
      • customTimeBefore

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> customTimeBefore()
        Returns:
        A date in the RFC 3339 format YYYY-MM-DD. This condition is satisfied when the customTime metadata for the object is set to an earlier date than the date used in this lifecycle condition.
      • daysSinceCustomTime

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> daysSinceCustomTime()
        Returns:
        Days since the date set in the `customTime` metadata for the object. This condition is satisfied when the current date and time is at least the specified number of days after the `customTime`.
      • daysSinceNoncurrentTime

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> daysSinceNoncurrentTime()
        Returns:
        Relevant only for versioned objects. Number of days elapsed since the noncurrent timestamp of an object.
      • matchesStorageClasses

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> matchesStorageClasses()
        Returns:
        [Storage Class](https://cloud.google.com/storage/docs/storage-classes) of objects to satisfy this condition. Supported values include: `STANDARD`, `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`, `ARCHIVE`, `DURABLE_REDUCED_AVAILABILITY`.
      • noncurrentTimeBefore

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> noncurrentTimeBefore()
        Returns:
        Relevant only for versioned objects. The date in RFC 3339 (e.g. `2017-06-13`) when the object became nonconcurrent.
      • numNewerVersions

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> numNewerVersions()
        Returns:
        Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
      • withState

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> withState()
        Returns:
        Match to live and/or archived objects. Unversioned buckets have only live objects. Supported values include: `"LIVE"`, `"ARCHIVED"`, `"ANY"`.