nebius/SWE-bench-extra huggingface dataset:
Repository: aws/aws-cli

Issue:
Unknown interpreted text role "abc" while calling aws help config-vars
### Describe the bug

Error is shown instead of information how to configure variables.

### Expected Behavior

Display help how to configure variables.

### Current Behavior

```
<string>:450: (ERROR/3) Unknown interpreted text role "doc".
<string>:567: (SEVERE/4) Title level inconsistent:

==============
Global Options
==============

<string>:567: (SEVERE/4) Title level inconsistent:

==============
Global Options
==============
```

### Reproduction Steps

aws help config-vars

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CLI version used

aws-cli/2.8.2 Python/3.9.11 Windows/10 exe/AMD64 prompt/off

### Environment details (OS name and version, etc.)

Windows 11 Home 22H2 (compilation 22621.608)

Comments:

Patch:
diff --git a/.changes/next-release/bugfix-docs-61070.json b/.changes/next-release/bugfix-docs-61070.json
new file mode 100644
index 000000000..b8005c2aa
--- /dev/null
+++ b/.changes/next-release/bugfix-docs-61070.json
@@ -0,0 +1,5 @@
+{
+  "type": "bugfix",
+  "category": "docs",
+  "description": "Fixes `#7338 <https://github.com/aws/aws-cli/issues/7338>`__. Remove global options from topic tags."
+}
diff --git a/awscli/clidocs.py b/awscli/clidocs.py
index 3f65041be..9d8fb9d59 100644
--- a/awscli/clidocs.py
+++ b/awscli/clidocs.py
@@ -655,6 +655,9 @@ class TopicListerDocumentEventHandler(CLIDocumentEventHandler):
     def doc_options_end(self, help_command, **kwargs):
         pass
 
+    def doc_global_option(self, help_command, **kwargs):
+        pass
+
     def doc_subitems_start(self, help_command, **kwargs):
         doc = help_command.doc
         doc.style.h2('Available Topics')


Test patch:
diff --git a/tests/unit/test_clidocs.py b/tests/unit/test_clidocs.py
index 600657310..be6a3ec7a 100644
--- a/tests/unit/test_clidocs.py
+++ b/tests/unit/test_clidocs.py
@@ -652,6 +652,11 @@ class TestTopicDocumentEventHandler(TestTopicDocumentEventHandlerBase):
         contents = self.cmd.doc.getvalue().decode('utf-8')
         self.assertIn(ref_body, contents)
 
+    def test_excludes_global_options(self):
+        self.doc_handler.doc_global_option(self.cmd)
+        global_options = self.cmd.doc.getvalue().decode('utf-8')
+        self.assertNotIn('Global Options', global_options)
+
 
 class TestGlobalOptionsDocumenter(unittest.TestCase):
     def create_help_command(self):
Repository: aws/aws-xray-sdk-python

Issue:
Add SNS Service "Publish" operation to the aws_para_whitelist
Currently the SNS publish operation shows up with a minimum set of metadata:
```
"aws": {
    "operation": "Publish",
    "region": "us-east-1",
    "request_id": "a939cee1-7c48-5675-b385-9ae2206dc121"
}
```

This should include at least the known internal AWS resources like `TopicArn` or `TargetArn` and maybe even the `PhoneNumber`.

Comments:

Patch:
diff --git a/aws_xray_sdk/ext/resources/aws_para_whitelist.json b/aws_xray_sdk/ext/resources/aws_para_whitelist.json
index bc6642a..3a89b2e 100644
--- a/aws_xray_sdk/ext/resources/aws_para_whitelist.json
+++ b/aws_xray_sdk/ext/resources/aws_para_whitelist.json
@@ -1,5 +1,14 @@
 {
   "services": {
+    "sns": {
+      "operations": {
+        "Publish": {
+          "request_parameters": [
+            "TopicArn"
+          ]
+        }
+      }
+    },
     "dynamodb": {
       "operations": {
         "BatchGetItem": {


Test patch:
diff --git a/tests/ext/botocore/test_botocore.py b/tests/ext/botocore/test_botocore.py
index 8d48785..f006de2 100644
--- a/tests/ext/botocore/test_botocore.py
+++ b/tests/ext/botocore/test_botocore.py
@@ -150,3 +150,26 @@ def test_pass_through_on_context_missing():
     assert result is not None
 
     xray_recorder.configure(context_missing='RUNTIME_ERROR')
+
+
+def test_sns_publish_parameters():
+    sns = session.create_client('sns', region_name='us-west-2')
+    response = {
+        'ResponseMetadata': {
+            'RequestId': REQUEST_ID,
+            'HTTPStatusCode': 200,
+        }
+    }
+
+    with Stubber(sns) as stubber:
+        stubber.add_response('publish', response, {'TopicArn': 'myAmazingTopic', 'Message': 'myBodaciousMessage'})
+        sns.publish(TopicArn='myAmazingTopic', Message='myBodaciousMessage')
+
+    subsegment = xray_recorder.current_segment().subsegments[0]
+    assert subsegment.http['response']['status'] == 200
+
+    aws_meta = subsegment.aws
+    assert aws_meta['topic_arn'] == 'myAmazingTopic'
+    assert aws_meta['request_id'] == REQUEST_ID
+    assert aws_meta['region'] == 'us-west-2'
+    assert aws_meta['operation'] == 'Publish'