AWS cli documentation change
Summary
Modified client-token pattern from [!-~]+ to .*[!-~]+.*
Security assessment
This appears to be a documentation formatting change rather than a security-related modification. The pattern remains similarly restrictive.
Diff
diff --git a/cli/latest/reference/vpc-lattice/create-rule.md b/cli/latest/reference/vpc-lattice/create-rule.md index f2ad56b33..c8eaac5c2 100644 --- a//cli/latest/reference/vpc-lattice/create-rule.md +++ b//cli/latest/reference/vpc-lattice/create-rule.md @@ -15 +15 @@ - * [AWS CLI 2.31.3 Command Reference](../../index.html) » + * [AWS CLI 2.31.5 Command Reference](../../index.html) » @@ -67,2 +67 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la - --action <value> - [--client-token <value>] + --service-identifier <value> @@ -70 +68,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la - --match <value> @@ -71,0 +70 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la + --match <value> @@ -73 +72,2 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la - --service-identifier <value> + --action <value> + [--client-token <value>] @@ -99 +99 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la -`--action` (tagged union structure) [required] +`--service-identifier` (string) [required] @@ -101,3 +101 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la -> The action for the default rule. -> -> ### Note +> The ID or ARN of the service. @@ -105 +103 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la -> This is a Tagged Union structure. Only one of the following top level keys can be set: `fixedResponse`, `forward`. +> Constraints: @@ -107 +105,3 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la -> fixedResponse -> (structure) +> * min: `17` +> * max: `2048` +> * pattern: `((svc-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:service/svc-[0-9a-z]{17}))` @@ -109,11 +108,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la ->> The fixed response action. The rule returns a custom HTTP response. ->> ->> statusCode -> (integer) [required] ->> ->>> The HTTP response code. ->>> ->>> Constraints: ->>> ->>> * min: `100` ->>> * max: `599` ->>> @@ -121,16 +109,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la -> -> forward -> (structure) -> ->> The forward action. Traffic that matches the rule is forwarded to the specified target groups. ->> ->> targetGroups -> (list) [required] ->> ->>> The target groups. Traffic matching the rule is forwarded to the specified target groups. With forward actions, you can assign a weight that controls the prioritization and selection of each target group. This means that requests are distributed to individual target groups based on their weights. For example, if two target groups have the same weight, each target group receives half of the traffic. ->>> ->>> The default value is 1. This means that if only one target group is provided, there is no need to set the weight; 100% of the traffic goes to that target group. ->>> ->>> Constraints: ->>> ->>> * min: `1` ->>> * max: `10` ->>> @@ -138,48 +111 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/vpc-la ->>> ->>> (structure) ->>> ->>>> Describes the weight of a target group. ->>>> ->>>> targetGroupIdentifier -> (string) [required] ->>>> ->>>>> The ID or ARN of the target group. ->>>>> ->>>>> Constraints: ->>>>> ->>>>> * min: `17` ->>>>> * max: `2048` ->>>>> * pattern: `^((tg-[0-9a-z]{17})|(arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:targetgroup/tg-[0-9a-z]{17}))$` ->>>>> - ->>>> ->>>> weight -> (integer) ->>>> ->>>>> Only required if you specify multiple target groups for a forward action. The weight determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there’s only one target group specified, then the default value is 100. ->>>>> ->>>>> Constraints: ->>>>> ->>>>> * min: `0` ->>>>> * max: `999` ->>>>> - - -JSON Syntax: - - - { - "fixedResponse": { - "statusCode": integer - }, - "forward": { - "targetGroups": [ - { - "targetGroupIdentifier": "string", - "weight": integer - } - ... - ] - } - } - - -`--client-token` (string) +`--listener-identifier` (string) [required] @@ -187 +113 @@ JSON Syntax: -> A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren’t identical, the retry fails. +> The ID or ARN of the listener. @@ -191,3 +117,3 @@ JSON Syntax: -> * min: `1` -> * max: `64` -> * pattern: `[!-~]+` +> * min: `20` +> * max: `2048` +> * pattern: `((listener-[0-9a-z]{17})|(^arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:service/svc-[0-9a-z]{17}/listener/listener-[0-9a-z]{17}$))` @@ -197 +123 @@ JSON Syntax: -`--listener-identifier` (string) [required] +`--name` (string) [required] @@ -199 +125 @@ JSON Syntax: -> The ID or ARN of the listener. +> The name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can’t use a hyphen as the first or last character, or immediately after another hyphen. @@ -203,3 +129,3 @@ JSON Syntax: -> * min: `20` -> * max: `2048` -> * pattern: `^((listener-[0-9a-z]{17})|(^arn:[a-z0-9\-]+:vpc-lattice:[a-zA-Z0-9\-]+:\d{12}:service/svc-[0-9a-z]{17}/listener/listener-[0-9a-z]{17}$))$` +> * min: `3` +> * max: `63` +> * pattern: `(?!rule-)(?![-])(?!.*[-]$)(?!.*[-]{2})[a-z0-9-]+` @@ -220,0 +147,51 @@ JSON Syntax: +>> method -> (string) +>> +>>> The HTTP method type. +>>> +>>> Constraints: +>>> +>>> * min: `0` +>>> * max: `16` +>>> + +>> +>> pathMatch -> (structure) +>> +>>> The path match. +>>> +>>> match -> (tagged union structure) [required] +>>> +>>>> The type of path match. +>>>> +>>>> ### Note +>>>> +>>>> This is a Tagged Union structure. Only one of the following top level keys can be set: `exact`, `prefix`. +>>>> +>>>> exact -> (string) +>>>> +>>>>> An exact match of the path. +>>>>> +>>>>> Constraints: +>>>>> +>>>>> * min: `1` +>>>>> * max: `200` +>>>>> * pattern: `/[a-zA-Z0-9@:%_+.~#?&/=-]*` +>>>>> + +>>>> +>>>> prefix -> (string) +>>>> +>>>>> A prefix match of the path. +>>>>> +>>>>> Constraints: +>>>>> +>>>>> * min: `1` +>>>>> * max: `200` +>>>>> * pattern: `/[a-zA-Z0-9@:%_+.~#?&/=-]*` +>>>>> + +>>> +>>> caseSensitive -> (boolean) +>>> +>>>> Indicates whether the match is case sensitive. +>> @@ -236 +213 @@ JSON Syntax: ->>>> caseSensitive -> (boolean) +>>>> name -> (string) [required] @@ -238 +215,8 @@ JSON Syntax: ->>>>> Indicates whether the match is case sensitive. +>>>>> The name of the header. +>>>>> +>>>>> Constraints: +>>>>> +>>>>> * min: `1` +>>>>> * max: `100`