11"""A Couchbase CLI subcommand"""
22
3+ import dataclasses
34import getpass
45import inspect
56import ipaddress
1516import tempfile
1617import time
1718import traceback
18- import dataclasses
1919import urllib .parse
2020from argparse import SUPPRESS , Action , ArgumentError , ArgumentParser , HelpFormatter
2121from operator import itemgetter
@@ -3691,7 +3691,7 @@ def _add_edit_parse_opts(self, opts):
36913691 if opts .kek_usage :
36923692 usages .append ("KEK-encryption" )
36933693 if opts .all_bucket_usage :
3694- usages .append ("bucket-encryption-* " )
3694+ usages .append ("bucket-encryption" )
36953695 if opts .bucket_usage :
36963696 usages += [f"bucket-encryption-{ b } " for b in opts .bucket_usage ]
36973697
@@ -3702,7 +3702,7 @@ def _add_edit_parse_opts(self, opts):
37023702 data = {}
37033703 typ = ""
37043704 if opts .key_type == "aws" :
3705- typ = "awskms-aes -key-256 "
3705+ typ = "awskms-symmetric -key"
37063706
37073707 if not opts .cloud_key_arn or not opts .cloud_region :
37083708 _exit_if_errors (["--cloud-key-arn and --cloud-region must be specified" ])
@@ -3761,7 +3761,7 @@ def _add_edit_parse_opts(self, opts):
37613761 data ["caSelection" ] = "skipServerCertVerification"
37623762
37633763 elif opts .key_type == "auto-generated" :
3764- typ = "auto-generated -aes-key-256"
3764+ typ = "cb-server-managed -aes-key-256"
37653765
37663766 if not opts .encrypt_with_master and opts .encrypt_with_key is None :
37673767 _exit_if_errors (["one of --encrypt-with-master-password, --encrypt-with-key must be specified" ])
0 commit comments