Class BucketOwnershipControlsRuleArgs.Builder

    • Method Detail

      • objectOwnership

        public BucketOwnershipControlsRuleArgs.Builder objectOwnership​(com.pulumi.core.Output<java.lang.String> objectOwnership)
        Parameters:
        objectOwnership - Object ownership. Valid values: `BucketOwnerPreferred`, `ObjectWriter` or `BucketOwnerEnforced`. `BucketOwnerPreferred` means objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the `bucket-owner-full-control` canned ACL. `ObjectWriter` means the uploading account will own the object if the object is uploaded with the `bucket-owner-full-control` canned ACL. `BucketOwnerEnforced` means the bucket owner automatically owns and has full control over every object in the bucket, and ACLs no longer affect permissions to data in the S3 bucket.
        Returns:
        builder
      • objectOwnership

        public BucketOwnershipControlsRuleArgs.Builder objectOwnership​(java.lang.String objectOwnership)
        Parameters:
        objectOwnership - Object ownership. Valid values: `BucketOwnerPreferred`, `ObjectWriter` or `BucketOwnerEnforced`. `BucketOwnerPreferred` means objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the `bucket-owner-full-control` canned ACL. `ObjectWriter` means the uploading account will own the object if the object is uploaded with the `bucket-owner-full-control` canned ACL. `BucketOwnerEnforced` means the bucket owner automatically owns and has full control over every object in the bucket, and ACLs no longer affect permissions to data in the S3 bucket.
        Returns:
        builder