Class RuleArgs


  • public final class RuleArgs
    extends com.pulumi.resources.ResourceArgs
    • Field Detail

      • Empty

        public static final RuleArgs Empty
    • Method Detail

      • description

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
        Returns:
        Retention rule description.
      • excludeResourceTags

        public java.util.Optional<com.pulumi.core.Output<java.util.List<RuleExcludeResourceTagArgs>>> excludeResourceTags()
        Returns:
        Exclusion tags to use to identify resources that are to be excluded, or ignored, by a Region-level retention rule. See `excludeResourceTags` below.
      • lockConfiguration

        public java.util.Optional<com.pulumi.core.Output<RuleLockConfigurationArgs>> lockConfiguration()
        Returns:
        Information about the retention rule lock configuration. See `lockConfiguration` below.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • resourceTags

        public java.util.Optional<com.pulumi.core.Output<java.util.List<RuleResourceTagArgs>>> resourceTags()
        Returns:
        Resource tags to use to identify resources that are to be retained by a tag-level retention rule. See `resourceTags` below.
      • resourceType

        public com.pulumi.core.Output<java.lang.String> resourceType()
        Returns:
        Resource type to be retained by the retention rule. Valid values are `EBS_SNAPSHOT` and `EC2_IMAGE`.
      • retentionPeriod

        public com.pulumi.core.Output<RuleRetentionPeriodArgs> retentionPeriod()
        Returns:
        Information about the retention period for which the retention rule is to retain resources. See `retentionPeriod` below. The following arguments are optional:
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> tags()