Class BucketObjectLockConfigurationV2State


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

      • bucket

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> bucket()
        Returns:
        Name of the bucket.
      • expectedBucketOwner

        @Deprecated
        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> expectedBucketOwner()
        Deprecated.
        expected_bucket_owner is deprecated. It will be removed in a future verion of the provider.
        Returns:
        Account ID of the expected bucket owner.
      • objectLockEnabled

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> objectLockEnabled()
        Returns:
        Whether this bucket has an Object Lock configuration enabled. Defaults to `Enabled`. Valid values: `Enabled`.
      • 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.
      • rule

        public java.util.Optional<com.pulumi.core.Output<BucketObjectLockConfigurationV2RuleArgs>> rule()
        Returns:
        Configuration block for specifying the Object Lock rule for the specified object. See below.
      • token

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> token()
        Returns:
        Token to allow Object Lock to be enabled for an existing bucket. To enable Object Lock for an existing bucket, you must first enable versioning on the bucket and then enable Object Lock. For more details on versioning, see the `aws.s3.BucketVersioning` resource.