awscli 1.35.0__py3-none-any.whl → 1.35.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of awscli might be problematic. Click here for more details.

awscli/__init__.py CHANGED
@@ -18,7 +18,7 @@ A Universal Command Line Environment for Amazon Web Services.
18
18
 
19
19
  import os
20
20
 
21
- __version__ = '1.35.0'
21
+ __version__ = '1.35.2'
22
22
 
23
23
  #
24
24
  # Get our data path to be added to botocore's search path
awscli/bcdoc/restdoc.py CHANGED
@@ -67,6 +67,23 @@ class ReSTDocument(object):
67
67
  """
68
68
  self._writes.append(s)
69
69
 
70
+ def find_last_write(self, content):
71
+ """
72
+ Returns the index of the last occurrence of the content argument
73
+ in the stack, or returns None if content is not on the stack.
74
+ """
75
+ try:
76
+ return len(self._writes) - self._writes[::-1].index(content) - 1
77
+ except ValueError:
78
+ return None
79
+
80
+ def insert_write(self, index, content):
81
+ """
82
+ Inserts the content argument to the stack directly before the
83
+ supplied index.
84
+ """
85
+ self._writes.insert(index, content)
86
+
70
87
  def getvalue(self):
71
88
  """
72
89
  Returns the current content of the document as a string.
@@ -31,6 +31,12 @@ def register_event_stream_arg(event_handlers):
31
31
  )
32
32
 
33
33
 
34
+ def register_document_expires_string(event_handlers):
35
+ event_handlers.register_last(
36
+ 'doc-output.s3api',
37
+ document_expires_string
38
+ )
39
+
34
40
  def add_event_stream_output_arg(argument_table, operation_model,
35
41
  session, **kwargs):
36
42
  argument_table['outfile'] = S3SelectStreamOutputArgument(
@@ -56,6 +62,30 @@ def replace_event_stream_docs(help_command, **kwargs):
56
62
  doc.write("This command generates no output. The selected "
57
63
  "object content is written to the specified outfile.\n")
58
64
 
65
+ def document_expires_string(help_command, **kwargs):
66
+ doc = help_command.doc
67
+ expires_field_idx = doc.find_last_write('Expires -> (timestamp)')
68
+
69
+ if expires_field_idx is None:
70
+ return
71
+
72
+ deprecation_note_and_expires_string = [
73
+ f'\n\n\n{" " * doc.style.indentation * doc.style.indent_width}',
74
+ '.. note::',
75
+ f'\n\n\n{" " * (doc.style.indentation + 1) * doc.style.indent_width}',
76
+ 'This member has been deprecated. Please use `ExpiresString` instead.\n',
77
+ f'\n\n{" " * doc.style.indentation * doc.style.indent_width}',
78
+ f'\n\n{" " * doc.style.indentation * doc.style.indent_width}',
79
+ 'ExpiresString -> (string)\n\n',
80
+ '\tThe raw, unparsed value of the ``Expires`` field.',
81
+ f'\n\n{" " * doc.style.indentation * doc.style.indent_width}'
82
+ ]
83
+
84
+ for idx, write in enumerate(deprecation_note_and_expires_string):
85
+ # We add 4 to the index of the expires field name because each
86
+ # field in the output section consists of exactly 4 elements.
87
+ doc.insert_write(expires_field_idx + idx + 4, write)
88
+
59
89
 
60
90
  class S3SelectStreamOutputArgument(CustomArgument):
61
91
  _DOCUMENT_AS_REQUIRED = True
awscli/handlers.py CHANGED
@@ -105,7 +105,7 @@ from awscli.customizations.removals import register_removals
105
105
  from awscli.customizations.route53 import register_create_hosted_zone_doc_fix
106
106
  from awscli.customizations.s3.s3 import s3_plugin_initialize
107
107
  from awscli.customizations.s3errormsg import register_s3_error_msg
108
- from awscli.customizations.s3events import register_event_stream_arg
108
+ from awscli.customizations.s3events import register_event_stream_arg, register_document_expires_string
109
109
  from awscli.customizations.sagemaker import (
110
110
  register_alias_sagemaker_runtime_command,
111
111
  )
@@ -215,6 +215,7 @@ def awscli_initialize(event_handlers):
215
215
  register_history_mode(event_handlers)
216
216
  register_history_commands(event_handlers)
217
217
  register_event_stream_arg(event_handlers)
218
+ register_document_expires_string(event_handlers)
218
219
  dlm_initialize(event_handlers)
219
220
  register_ssm_session(event_handlers)
220
221
  register_sms_voice_hide(event_handlers)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: awscli
3
- Version: 1.35.0
3
+ Version: 1.35.2
4
4
  Summary: Universal Command Line Environment for AWS.
5
5
  Home-page: http://aws.amazon.com/cli/
6
6
  Author: Amazon Web Services
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Requires-Python: >= 3.8
25
25
  License-File: LICENSE.txt
26
- Requires-Dist: botocore (==1.35.34)
26
+ Requires-Dist: botocore (==1.35.36)
27
27
  Requires-Dist: docutils (<0.17,>=0.10)
28
28
  Requires-Dist: s3transfer (<0.11.0,>=0.10.0)
29
29
  Requires-Dist: PyYAML (<6.1,>=3.10)
@@ -1,4 +1,4 @@
1
- awscli/__init__.py,sha256=09oDL3b1wjy0Ojep-G6ZYhH2DAubPa8VQyU2bqVf8dE,1533
1
+ awscli/__init__.py,sha256=0KRYxly_BYuq8m0jxu2Is5CGpHYne0oq9JnZgbjhHtE,1533
2
2
  awscli/__main__.py,sha256=iBjOg0tBxNlhzTi_tyc1G0SMGBvHMVvBJzX3JqYaooY,662
3
3
  awscli/alias.py,sha256=Us9pvP8Zplbr1W4N3rE5gxicWLqlRG3l_9VPskxafgs,11313
4
4
  awscli/argparser.py,sha256=3Pxx-vWytdV985Y6MIl9DeutUXyehIvACIs_PDby8GI,7650
@@ -11,7 +11,7 @@ awscli/compat.py,sha256=rdygqFsDwb2W_0ehi7PLEA6u49yh-8UoUMIPi0LKIoU,16451
11
11
  awscli/completer.py,sha256=vNCS1kr1Q_JO8fLh5YGwfUK3sSaDp3k8rrpa_cCIgY4,5986
12
12
  awscli/errorhandler.py,sha256=2bIBZrKvFICKAhoD180Cx7rRX608pG9RHsmlAcRb0wc,3139
13
13
  awscli/formatter.py,sha256=EI_dUo5uGf2YxWg5js4un_cksF5h58KuvOkkmptuu4o,10951
14
- awscli/handlers.py,sha256=ku3MgkFQTO4VizAZYd0yKS8MpY0odTHIgbsSCnprLvI,10699
14
+ awscli/handlers.py,sha256=1EohF1cebRLI0OhVgggFgV65tz4iWIyie_eyufLpkBU,10786
15
15
  awscli/help.py,sha256=-u2OtAdW9X8891FBA70xUC5Ky9lhjiWgtbh4hm-DoW8,14205
16
16
  awscli/paramfile.py,sha256=vmNWmjer3kw97Xdqv-tojFlNLmpl2EBQnzqAP85ceG0,10885
17
17
  awscli/plugin.py,sha256=B3wgRerhgFK1v-QQeASYv2VNLSa9oMuD4X_hcLSescI,2265
@@ -25,7 +25,7 @@ awscli/utils.py,sha256=Blo6Z3b0m-WaOTF3NOlCXGOfxK_cRMR2ZeLRhhOOpj0,9501
25
25
  awscli/bcdoc/__init__.py,sha256=V2g87AefB2DOD9_3xIF5k9Nv5ttb4_gNJOVvSF0Mp3s,588
26
26
  awscli/bcdoc/docevents.py,sha256=h99ATaPm-Yb0KsrOTO6eaItjMMQzdA6W63R927etjWQ,4877
27
27
  awscli/bcdoc/docstringparser.py,sha256=-QMoUsJrmnI-G46YbDm2UACU4jpHXonwouG9CFAlzNg,5679
28
- awscli/bcdoc/restdoc.py,sha256=ZNz0TcFRhhTwWQonmFYJ3tAavnynVj9i4QUsZQPyMks,7375
28
+ awscli/bcdoc/restdoc.py,sha256=NXdEjs4gqPOno2dVklr5XnMEes8CIG1pB0Gqet1WhHE,7931
29
29
  awscli/bcdoc/style.py,sha256=Zf7DB_WSQgfseH3mnXMqKkE0Q8eC_iNYw3w_Pkx63os,11833
30
30
  awscli/bcdoc/textwriter.py,sha256=z6WyK2qm-f4xWFZhcAc_Dori_XrrSsIdkkITQ61De_w,20611
31
31
  awscli/customizations/__init__.py,sha256=enP4McjXiSlxQrYPyUcOvpUtzy5Q2p6o9M6ydJPkbD0,1484
@@ -65,7 +65,7 @@ awscli/customizations/rekognition.py,sha256=NHajCaaLkSC5YDmtJe-EdLdgmObrQetj6as0
65
65
  awscli/customizations/removals.py,sha256=dOILjuIJex1l1rzBp8TqmZxATHkEeiPvl8FQ_x33a00,3874
66
66
  awscli/customizations/route53.py,sha256=TyEnjZz7bPegLQ23X5r1tNUJ1gSAmGeQBaF98t5PLmU,1187
67
67
  awscli/customizations/s3errormsg.py,sha256=STKQ3714dnXOzPSPszCikhv5hoRBUJnk-u0kFp7FaEU,2480
68
- awscli/customizations/s3events.py,sha256=vhvOzXNZVgZh9jF2nSAni_wnX6knrUDSusnAIyXt8Sc,3544
68
+ awscli/customizations/s3events.py,sha256=ZcNmDN26dXxLrLawawl9jRFWqK1lMEQpty0YRNjBQws,4795
69
69
  awscli/customizations/s3uploader.py,sha256=apRT1dtSsTlV3rjYuNAlHFw5qfyTCYfD3Q6X06p6kvw,7786
70
70
  awscli/customizations/sagemaker.py,sha256=mlYPscN-aQgV6L8dRK62QolmY7_iDmtHLe6DyGjayD8,1014
71
71
  awscli/customizations/scalarparse.py,sha256=LIcIwHLHzFR1vQboh58N3spPEcR9IF2Wk9f-wA-IXoA,3041
@@ -5953,13 +5953,13 @@ awscli/topics/return-codes.rst,sha256=d9lpNFZwD75IiYcDEADQzu-4QiR8P28UPHkrNwPV5J
5953
5953
  awscli/topics/s3-config.rst,sha256=FwwCczTylrSLwELuDQ-VA8sCI7ruwV9PEJJrqxjUeG0,11502
5954
5954
  awscli/topics/s3-faq.rst,sha256=sS5jKHF_7X5eiGwpUg7aTqQt2zCRN-m_xXOcE0Bme0Q,1899
5955
5955
  awscli/topics/topic-tags.json,sha256=6lUSrs3FKCZNRSQMnjcXNgWyRNGjZIeur1988a4IO5o,1577
5956
- awscli-1.35.0.data/scripts/aws,sha256=r24FExgs0-JjILTQ3XZAqXBYE4SV6UMTtALkLGAj86g,805
5957
- awscli-1.35.0.data/scripts/aws.cmd,sha256=s46DkC6LNgX63CIkzxxbPnFMJ6DRDBkvc88GnWa8Pvg,1432
5958
- awscli-1.35.0.data/scripts/aws_bash_completer,sha256=RRpoEGJRagRzyHZKZZOwpltuVYv2EoiZsdXhmyWPZ54,204
5959
- awscli-1.35.0.data/scripts/aws_completer,sha256=oC9kuMDlWE47dWk_4xjPde2PQvN-M0vND0J4YSLabVQ,1126
5960
- awscli-1.35.0.data/scripts/aws_zsh_completer.sh,sha256=Qm6Z8ejNAMzpJjaT0pzqxbSDT2zxdmzVe5haRA7qLoc,1808
5961
- awscli-1.35.0.dist-info/LICENSE.txt,sha256=o5XhFlwu0OK_BBrijlKCRa7dQAm36UrUB3gCV_cEr8E,549
5962
- awscli-1.35.0.dist-info/METADATA,sha256=Q7yUG1Kkbn_6AJmn60CHCXTtVlOeoE2pU-1NU99C2tU,11330
5963
- awscli-1.35.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
5964
- awscli-1.35.0.dist-info/top_level.txt,sha256=vt9wXFr1_nGYK6abhJgt6zY3fULe4JSZedm_5XOM9S0,7
5965
- awscli-1.35.0.dist-info/RECORD,,
5956
+ awscli-1.35.2.data/scripts/aws,sha256=r24FExgs0-JjILTQ3XZAqXBYE4SV6UMTtALkLGAj86g,805
5957
+ awscli-1.35.2.data/scripts/aws.cmd,sha256=s46DkC6LNgX63CIkzxxbPnFMJ6DRDBkvc88GnWa8Pvg,1432
5958
+ awscli-1.35.2.data/scripts/aws_bash_completer,sha256=RRpoEGJRagRzyHZKZZOwpltuVYv2EoiZsdXhmyWPZ54,204
5959
+ awscli-1.35.2.data/scripts/aws_completer,sha256=oC9kuMDlWE47dWk_4xjPde2PQvN-M0vND0J4YSLabVQ,1126
5960
+ awscli-1.35.2.data/scripts/aws_zsh_completer.sh,sha256=Qm6Z8ejNAMzpJjaT0pzqxbSDT2zxdmzVe5haRA7qLoc,1808
5961
+ awscli-1.35.2.dist-info/LICENSE.txt,sha256=o5XhFlwu0OK_BBrijlKCRa7dQAm36UrUB3gCV_cEr8E,549
5962
+ awscli-1.35.2.dist-info/METADATA,sha256=QY4PWk5wt5PWsnpSzO9rfPJYVow5U24OZBGn89mwS_E,11330
5963
+ awscli-1.35.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
5964
+ awscli-1.35.2.dist-info/top_level.txt,sha256=vt9wXFr1_nGYK6abhJgt6zY3fULe4JSZedm_5XOM9S0,7
5965
+ awscli-1.35.2.dist-info/RECORD,,
File without changes