AWS Security ChangesHomeSearch

AWS cli documentation change

Service: cli · 2026-05-01 · Documentation low

File: cli/latest/reference/account/put-alternate-contact.md

Summary

Reordered parameters in command synopsis and documentation. Updated constraints: removed regex anchors for email/phone patterns, changed account ID pattern to be anchorless, and adjusted min/max for name/title parameters.

Security assessment

Changes involve parameter reorganization and constraint adjustments without evidence of security vulnerability fixes. The 'SECURITY' contact type remains unchanged. Pattern relaxations (removed ^/$ anchors) might increase input flexibility but don't indicate security fixes.

Diff

diff --git a/cli/latest/reference/account/put-alternate-contact.md b/cli/latest/reference/account/put-alternate-contact.md
index feced0659..435224d09 100644
--- a//cli/latest/reference/account/put-alternate-contact.md
+++ b//cli/latest/reference/account/put-alternate-contact.md
@@ -15 +15 @@
-  * [AWS CLI 2.34.38 Command Reference](../../index.html) »
+  * [AWS CLI 2.34.40 Command Reference](../../index.html) »
@@ -73,3 +72,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-    [--account-id <value>]
-    --alternate-contact-type <value>
-    --email-address <value>
@@ -77 +73,0 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-    --phone-number <value>
@@ -78,0 +75,4 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
+    --email-address <value>
+    --phone-number <value>
+    --alternate-contact-type <value>
+    [--account-id <value>]
@@ -104 +104 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-`--account-id` (string)
+`--name` (string) [required]
@@ -106,11 +106 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.
-> 
-> If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.
-> 
-> To use this parameter, the caller must be an identity in the [organization’s management account](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account) or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have [all features enabled](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) , and the organization must have [trusted access](https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html) enabled for the Account Management service, and optionally a [delegated administrator](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin) account assigned.
-> 
-> ### Note
-> 
-> The management account can’t specify its own `AccountId` ; it must call the operation in standalone context by not including the `AccountId` parameter.
-> 
-> To call this operation on an account that is not a member of an organization, then don’t specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.
+> Specifies a name for the alternate contact.
@@ -120 +110,2 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
->   * pattern: `^\d{12}$`
+>   * min: `1`
+>   * max: `64`
@@ -124 +115 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-`--alternate-contact-type` (string) [required]
+`--title` (string) [required]
@@ -126 +117 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Specifies which alternate contact you want to create or update.
+> Specifies a title for the alternate contact.
@@ -128 +119 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Possible values:
+> Constraints:
@@ -130,3 +121,2 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
->   * `BILLING`
->   * `OPERATIONS`
->   * `SECURITY`
+>   * min: `1`
+>   * max: `50`
@@ -144 +134 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
->   * pattern: `^[\s]*[\w+=.#|!&-]+@[\w.-]+\.[\w]+[\s]*$`
+>   * pattern: `[\s]*[\w+=.#|!&-]+@[\w.-]+\.[\w]+[\s]*`
@@ -148 +138 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-`--name` (string) [required]
+`--phone-number` (string) [required]
@@ -150 +140 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Specifies a name for the alternate contact.
+> Specifies a phone number for the alternate contact.
@@ -155 +145,2 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
->   * max: `64`
+>   * max: `25`
+>   * pattern: `[\s0-9()+-]+`
@@ -159 +150 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-`--phone-number` (string) [required]
+`--alternate-contact-type` (string) [required]
@@ -161 +152 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Specifies a phone number for the alternate contact.
+> Specifies which alternate contact you want to create or update.
@@ -163 +154 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Constraints:
+> Possible values:
@@ -165,3 +156,3 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
->   * min: `1`
->   * max: `25`
->   * pattern: `^[\s0-9()+-]+$`
+>   * `BILLING`
+>   * `OPERATIONS`
+>   * `SECURITY`
@@ -171 +162 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-`--title` (string) [required]
+`--account-id` (string)
@@ -173 +164,11 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
-> Specifies a title for the alternate contact.
+> Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.
+> 
+> If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.
+> 
+> To use this parameter, the caller must be an identity in the [organization’s management account](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#account) or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have [all features enabled](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) , and the organization must have [trusted access](https://docs.aws.amazon.com/organizations/latest/userguide/services-that-can-integrate-account.html) enabled for the Account Management service, and optionally a [delegated administrator](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html#delegated-admin) account assigned.
+> 
+> ### Note
+> 
+> The management account can’t specify its own `AccountId` ; it must call the operation in standalone context by not including the `AccountId` parameter.
+> 
+> To call this operation on an account that is not a member of an organization, then don’t specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.
@@ -177,2 +178 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/accoun
->   * min: `1`
->   * max: `50`
+>   * pattern: `\d{12}`
@@ -307 +307 @@ None
-  * [AWS CLI 2.34.38 Command Reference](../../index.html) »
+  * [AWS CLI 2.34.40 Command Reference](../../index.html) »