AWS cli medium security documentation change
Summary
Updated AWS CLI version, reordered parameters, modified host/ARN regex patterns, adjusted username/password documentation, added --cli-error-format
Security assessment
Host validation regex changed from ^.+$ to .+ (removing anchors), potentially allowing invalid hosts. Password regex pattern anchors removed, similar to test-hypervisor-configuration.md changes. Parameter documentation corrections could impact authentication logic.
Diff
diff --git a/cli/latest/reference/backup-gateway/update-hypervisor.md b/cli/latest/reference/backup-gateway/update-hypervisor.md index 5079e278a..dc44fb73a 100644 --- a//cli/latest/reference/backup-gateway/update-hypervisor.md +++ b//cli/latest/reference/backup-gateway/update-hypervisor.md @@ -15 +15 @@ - * [AWS CLI 2.33.29 Command Reference](../../index.html) » + * [AWS CLI 2.34.0 Command Reference](../../index.html) » @@ -67 +66,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup - [--host <value>] @@ -69,3 +68 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup - [--log-group-arn <value>] - [--name <value>] - [--password <value>] + [--host <value>] @@ -72,0 +70,3 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup + [--password <value>] + [--name <value>] + [--log-group-arn <value>] @@ -92,0 +93 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup + [--cli-error-format <value>] @@ -97,12 +97,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -`--host` (string) - -> The updated host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN). -> -> Constraints: -> -> * min: `3` -> * max: `128` -> * pattern: `^.+$` -> - - @@ -117 +106 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> * pattern: `^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\/[a-zA-Z-0-9]+$` +> * pattern: `arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\/[a-zA-Z-0-9]+` @@ -121 +110 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -`--log-group-arn` (string) +`--host` (string) @@ -123 +112 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> The Amazon Resource Name (ARN) of the group of gateways within the requested log. +> The updated host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN). @@ -127,3 +116,3 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> * min: `0` -> * max: `2048` -> * pattern: `^$|^arn:(aws|aws-cn|aws-us-gov):logs:([a-zA-Z0-9-]+):([0-9]+):log-group:[a-zA-Z0-9_\-\/\.]+:\*$` +> * min: `3` +> * max: `128` +> * pattern: `.+` @@ -133 +122 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -`--name` (string) +`--username` (string) @@ -135 +124 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> The updated name for the hypervisor +> The updated username for the hypervisor. @@ -141 +130 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> * pattern: `^[a-zA-Z0-9-]*$` +> * pattern: `[ -\.0-\[\]-~]*[!-\.0-\[\]-~][ -\.0-\[\]-~]*` @@ -153 +142 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> * pattern: `^[ -~]+$` +> * pattern: `[ -~]+` @@ -157 +146 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -`--username` (string) +`--name` (string) @@ -159 +148 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> The updated username for the hypervisor. +> The updated name for the hypervisor @@ -165 +154,13 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/backup -> * pattern: `^[ -\.0-\[\]-~]*[!-\.0-\[\]-~][ -\.0-\[\]-~]*$` +> * pattern: `[a-zA-Z0-9-]*` +> + + +`--log-group-arn` (string) + +> The Amazon Resource Name (ARN) of the group of gateways within the requested log. +> +> Constraints: +> +> * min: `0` +> * max: `2048` +> * pattern: `$|^arn:(aws|aws-cn|aws-us-gov):logs:([a-zA-Z0-9-]+):([0-9]+):log-group:[a-zA-Z0-9_\-\/\.]+:\*` @@ -199,0 +201 @@ The formatting style for command output. + * off @@ -265,0 +268,13 @@ Disable automatically prompt for CLI input parameters. +`--cli-error-format` (string) + +The formatting style for error output. By default, errors are displayed in enhanced format. + + * legacy + * json + * yaml + * text + * table + * enhanced + + + @@ -276 +291 @@ HypervisorArn -> (string) -> * pattern: `^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\/[a-zA-Z-0-9]+$` +> * pattern: `arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\/[a-zA-Z-0-9]+` @@ -290 +305 @@ HypervisorArn -> (string) - * [AWS CLI 2.33.29 Command Reference](../../index.html) » + * [AWS CLI 2.34.0 Command Reference](../../index.html) »