@@ -65,6 +65,7 @@ class CatalogsCommand(Command):
65
65
hadoop_warehouse : str
66
66
iceberg_remote_catalog_name : str
67
67
endpoint : str
68
+ endpoint_internal : str
68
69
sts_endpoint : str
69
70
path_style_access : bool
70
71
catalog_connection_type : str
@@ -121,18 +122,17 @@ def validate(self):
121
122
f" { Argument .to_flag_name (Arguments .CATALOG_SERVICE_IDENTITY_IAM_ARN )} " )
122
123
123
124
if self .storage_type == StorageType .S3 .value :
124
- if not self .role_arn :
125
- raise Exception (
126
- f"Missing required argument for storage type 's3':"
127
- f" { Argument .to_flag_name (Arguments .ROLE_ARN )} "
128
- )
129
125
if self ._has_azure_storage_info () or self ._has_gcs_storage_info ():
130
126
raise Exception (
131
- f"Storage type 's3' supports the storage credentials "
127
+ f"Storage type 's3' supports the options "
132
128
f" { Argument .to_flag_name (Arguments .ROLE_ARN )} ,"
133
129
f" { Argument .to_flag_name (Arguments .REGION )} ,"
134
- f" { Argument .to_flag_name (Arguments .EXTERNAL_ID )} , and"
135
- f" { Argument .to_flag_name (Arguments .USER_ARN )} "
130
+ f" { Argument .to_flag_name (Arguments .EXTERNAL_ID )} ,"
131
+ f" { Argument .to_flag_name (Arguments .USER_ARN )} ,"
132
+ f" { Argument .to_flag_name (Arguments .ENDPOINT )} ,"
133
+ f" { Argument .to_flag_name (Arguments .ENDPOINT_INTERNAL )} ,"
134
+ f" { Argument .to_flag_name (Arguments .STS_ENDPOINT )} , and"
135
+ f" { Argument .to_flag_name (Arguments .PATH_STYLE_ACCESS )} "
136
136
)
137
137
elif self .storage_type == StorageType .AZURE .value :
138
138
if not self .tenant_id :
@@ -142,7 +142,7 @@ def validate(self):
142
142
)
143
143
if self ._has_aws_storage_info () or self ._has_gcs_storage_info ():
144
144
raise Exception (
145
- "Storage type 'azure' supports the storage credentials "
145
+ "Storage type 'azure' supports the options "
146
146
f" { Argument .to_flag_name (Arguments .TENANT_ID )} ,"
147
147
f" { Argument .to_flag_name (Arguments .MULTI_TENANT_APP_NAME )} , and"
148
148
f" { Argument .to_flag_name (Arguments .CONSENT_URL )} "
@@ -160,11 +160,11 @@ def validate(self):
160
160
or self ._has_gcs_storage_info ()
161
161
):
162
162
raise Exception (
163
- "Storage type 'file' does not support any storage credentials "
163
+ "Storage type 'file' does not support any additional options "
164
164
)
165
165
166
166
def _has_aws_storage_info (self ):
167
- return self .role_arn or self .external_id or self .user_arn or self .region or self .endpoint or self .sts_endpoint or self .path_style_access
167
+ return self .role_arn or self .external_id or self .user_arn or self .region or self .endpoint or self .endpoint_internal or self . sts_endpoint or self .path_style_access
168
168
169
169
def _has_azure_storage_info (self ):
170
170
return self .tenant_id or self .multi_tenant_app_name or self .consent_url
@@ -183,6 +183,7 @@ def _build_storage_config_info(self):
183
183
user_arn = self .user_arn ,
184
184
region = self .region ,
185
185
endpoint = self .endpoint ,
186
+ endpoint_internal = self .endpoint_internal ,
186
187
sts_endpoint = self .sts_endpoint ,
187
188
path_style_access = self .path_style_access ,
188
189
)
0 commit comments