@@ -41,7 +41,7 @@ class MissingParametersError(EmrError, ParamValidationError):
4141 """
4242
4343 fmt = (
44- 'aws: error: The following required parameters are missing for '
44+ 'The following required parameters are missing for '
4545 '{object_name}: {missing}.'
4646 )
4747
@@ -53,7 +53,7 @@ class EmptyListError(EmrError, ParamValidationError):
5353 :ivar param: The provided list parameter
5454 """
5555
56- fmt = 'aws: error: The prameter {param} cannot be an empty list.'
56+ fmt = 'The prameter {param} cannot be an empty list.'
5757
5858
5959class MissingRequiredInstanceGroupsError (EmrError , ParamValidationError ):
@@ -63,7 +63,7 @@ class MissingRequiredInstanceGroupsError(EmrError, ParamValidationError):
6363 """
6464
6565 fmt = (
66- 'aws: error: Must specify either --instance-groups or '
66+ 'Must specify either --instance-groups or '
6767 '--instance-type with --instance-count(optional) to '
6868 'configure instance groups.'
6969 )
@@ -77,7 +77,7 @@ class InstanceGroupsValidationError(EmrError, ParamValidationError):
7777 """
7878
7979 fmt = (
80- 'aws: error: You may not specify --instance-type '
80+ 'You may not specify --instance-type '
8181 'or --instance-count with --instance-groups, '
8282 'because --instance-type and --instance-count are '
8383 'shortcut options for --instance-groups.'
@@ -91,7 +91,7 @@ class InvalidAmiVersionError(EmrError, ParamValidationError):
9191 """
9292
9393 fmt = (
94- 'aws: error: The supplied AMI version "{ami_version}" is invalid.'
94+ 'The supplied AMI version "{ami_version}" is invalid.'
9595 ' Please see AMI Versions Supported in Amazon EMR in '
9696 'Amazon Elastic MapReduce Developer Guide: '
9797 'http://docs.aws.amazon.com/ElasticMapReduce/'
@@ -108,7 +108,7 @@ class MissingBooleanOptionsError(EmrError, ParamValidationError):
108108 """
109109
110110 fmt = (
111- 'aws: error: Must specify one of the following boolean options: '
111+ 'Must specify one of the following boolean options: '
112112 '{true_option}|{false_option}.'
113113 )
114114
@@ -120,7 +120,7 @@ class UnknownStepTypeError(EmrError, ParamValidationError):
120120 :ivar step_type: the step_type provided.
121121 """
122122
123- fmt = 'aws: error: The step type {step_type} is not supported.'
123+ fmt = 'The step type {step_type} is not supported.'
124124
125125
126126class UnknownIamEndpointError (EmrError ):
@@ -154,7 +154,7 @@ class LogUriError(EmrError, ParamValidationError):
154154 """
155155
156156 fmt = (
157- 'aws: error: LogUri not specified. You must specify a logUri '
157+ 'LogUri not specified. You must specify a logUri '
158158 'if you enable debugging when creating a cluster.'
159159 )
160160
@@ -212,7 +212,7 @@ class SubnetAndAzValidationError(EmrError, ParamValidationError):
212212 """
213213
214214 fmt = (
215- 'aws: error: You may not specify both a SubnetId and an Availabili'
215+ 'You may not specify both a SubnetId and an Availabili'
216216 'tyZone (placement) because ec2SubnetId implies a placement.'
217217 )
218218
@@ -222,7 +222,7 @@ class RequiredOptionsError(EmrError, ParamValidationError):
222222 Either of option1 or option2 is required.
223223 """
224224
225- fmt = 'aws: error: Either {option1} or {option2} is required.'
225+ fmt = 'Either {option1} or {option2} is required.'
226226
227227
228228class MutualExclusiveOptionError (EmrError , ParamValidationError ):
@@ -236,7 +236,7 @@ class MutualExclusiveOptionError(EmrError, ParamValidationError):
236236
237237 def __init__ (self , ** kwargs ):
238238 msg = (
239- 'aws: error: You cannot specify both '
239+ 'You cannot specify both '
240240 + kwargs .get ('option1' , '' )
241241 + ' and '
242242 + kwargs .get ('option2' , '' )
@@ -256,7 +256,7 @@ class MissingApplicationsError(EmrError, ParamValidationError):
256256
257257 def __init__ (self , ** kwargs ):
258258 msg = (
259- 'aws: error: Some of the steps require the following'
259+ 'Some of the steps require the following'
260260 ' applications to be installed: '
261261 + ', ' .join (kwargs ['applications' ])
262262 + '. Please install the'
@@ -270,7 +270,7 @@ class ClusterTerminatedError(EmrError):
270270 The cluster is terminating or has already terminated.
271271 """
272272
273- fmt = 'aws: error: Cluster terminating or already terminated.'
273+ fmt = 'Cluster terminating or already terminated.'
274274
275275
276276class ClusterStatesFilterValidationError (EmrError , ParamValidationError ):
@@ -282,7 +282,7 @@ class ClusterStatesFilterValidationError(EmrError, ParamValidationError):
282282 """
283283
284284 fmt = (
285- 'aws: error: You can specify only one of the cluster state '
285+ 'You can specify only one of the cluster state '
286286 'filters: --cluster-states, --active, --terminated, --failed.'
287287 )
288288
@@ -296,7 +296,7 @@ class MissingClusterAttributesError(EmrError, ParamValidationError):
296296 """
297297
298298 fmt = (
299- 'aws: error: Must specify one of the following boolean options: '
299+ 'Must specify one of the following boolean options: '
300300 '--visible-to-all-users|--no-visible-to-all-users, '
301301 '--termination-protected|--no-termination-protected, '
302302 '--auto-terminate|--no-auto-terminate, '
@@ -314,14 +314,14 @@ class InvalidEmrFsArgumentsError(EmrError, ParamValidationError):
314314 """
315315
316316 fmt = (
317- 'aws: error: {parent_object_name} is not specified. Thus, '
317+ '{parent_object_name} is not specified. Thus, '
318318 ' following parameters are invalid: {invalid}'
319319 )
320320
321321
322322class DuplicateEmrFsConfigurationError (EmrError , ParamValidationError ):
323323 fmt = (
324- 'aws: error: EMRFS should be configured either using '
324+ 'EMRFS should be configured either using '
325325 '--configuration or --emrfs but not both'
326326 )
327327
@@ -334,7 +334,7 @@ class UnknownCseProviderTypeError(EmrError, ParamValidationError):
334334 """
335335
336336 fmt = (
337- 'aws: error: The client side encryption type "{provider_type}" is '
337+ 'The client side encryption type "{provider_type}" is '
338338 'not supported. You must specify either KMS or Custom'
339339 )
340340
@@ -347,7 +347,7 @@ class UnknownEncryptionTypeError(EmrError, ParamValidationError):
347347 """
348348
349349 fmt = (
350- 'aws: error: The encryption type "{encryption}" is invalid. '
350+ 'The encryption type "{encryption}" is invalid. '
351351 'You must specify either ServerSide or ClientSide'
352352 )
353353
@@ -361,14 +361,14 @@ class BothSseAndEncryptionConfiguredError(EmrError, ParamValidationError):
361361 """
362362
363363 fmt = (
364- 'aws: error: Both SSE={sse} and Encryption={encryption} are '
364+ 'Both SSE={sse} and Encryption={encryption} are '
365365 'configured for --emrfs. You must specify only one of the two.'
366366 )
367367
368368
369369class InvalidBooleanConfigError (EmrError , ParamValidationError ):
370370 fmt = (
371- "aws: error: {config_value} for {config_key} in the config file is "
371+ "{config_value} for {config_key} in the config file is "
372372 "invalid. The value should be either 'True' or 'False'. Use "
373373 "'aws configure set {profile_var_name}.emr.{config_key} <value>' "
374374 "command to set a valid value."
@@ -377,13 +377,13 @@ class InvalidBooleanConfigError(EmrError, ParamValidationError):
377377
378378class UnsupportedCommandWithReleaseError (EmrError , ParamValidationError ):
379379 fmt = (
380- "aws: error: {command} is not supported with "
380+ "{command} is not supported with "
381381 "'{release_label}' release."
382382 )
383383
384384
385385class MissingAutoScalingRoleError (EmrError , ParamValidationError ):
386386 fmt = (
387- "aws: error: Must specify --auto-scaling-role when configuring an "
387+ "Must specify --auto-scaling-role when configuring an "
388388 "AutoScaling policy for an instance group."
389389 )
0 commit comments