Skip to content

Commit 1171761

Browse files
authored
Fix broken links in docs (pynamodb#1135)
1 parent 671cb51 commit 1171761

17 files changed

+43
-41
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ PynamoDB
99
.. image:: https://github.com/pynamodb/PynamoDB/workflows/Tests/badge.svg
1010
:target: https://github.com/pynamodb/PynamoDB/actions
1111
.. image:: https://img.shields.io/coveralls/pynamodb/PynamoDB/master.svg
12-
:target: https://coveralls.io/r/pynamodb/PynamoDB
12+
:target: https://coveralls.io/github/pynamodb/PynamoDB
1313

14-
A Pythonic interface for Amazon's `DynamoDB <http://aws.amazon.com/dynamodb/>`_.
14+
A Pythonic interface for Amazon's `DynamoDB <https://aws.amazon.com/dynamodb/>`_.
1515

1616
DynamoDB is a great NoSQL service provided by Amazon, but the API is verbose.
1717
PynamoDB presents you with a simple, elegant API.

docs/attributes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Custom Attributes
22
==========================
33

44
Attributes in PynamoDB are classes that are serialized to and from DynamoDB attributes. PynamoDB provides attribute classes
5-
for all DynamoDB data types, as defined in the `DynamoDB documentation <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html>`_.
5+
for all DynamoDB data types, as defined in the `DynamoDB documentation <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html>`_.
66
Higher level attribute types (internally stored as a DynamoDB data types) can be defined with PynamoDB. Two such types
77
are included with PynamoDB for convenience: ``JSONAttribute`` and ``UTCDateTimeAttribute``.
88

@@ -193,7 +193,7 @@ These attributes can then be used inside of Model classes just like any other at
193193
make = UnicodeAttribute(null=False)
194194
model = UnicodeAttribute(null=True)
195195
196-
`As with a model and its top-level attributes <https://github.com/pynamodb/PynamoDB/blob/master/docs/quickstart.rst#changing-items>`_, a PynamoDB MapAttribute will ignore sub-attributes it does not know about during deserialization. As a result, if the item in DynamoDB contains sub-attributes not declared as properties of the corresponding MapAttribute, save() will cause those sub-attributes to be deleted.
196+
:ref:`As with a model and its top-level attributes <changing-items>`, a PynamoDB MapAttribute will ignore sub-attributes it does not know about during deserialization. As a result, if the item in DynamoDB contains sub-attributes not declared as properties of the corresponding MapAttribute, save() will cause those sub-attributes to be deleted.
197197

198198
``DynamicMapAttribute`` is a subclass of ``MapAttribute`` which allows you to mix and match defined attributes and undefined attributes.
199199

docs/awsaccess.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ AWS Access
44
PynamoDB uses botocore to interact with the DynamoDB API. Thus, any method of configuration supported by ``botocore`` works with PynamoDB.
55
For local development the use of environment variables such as `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
66
is probably preferable. You can of course use IAM users, as recommended by AWS. In addition
7-
`EC2 roles <http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html>`_ will work as well and
7+
`EC2 roles <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html>`_ will work as well and
88
would be recommended when running on EC2.
99

1010
As for the permissions granted via IAM, many tasks can be carried out by PynamoDB. So you should construct your
1111
policies as required, see the
12-
`DynamoDB <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/UsingIAMWithDDB.html>`_ docs for more
12+
`DynamoDB <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/authentication-and-access-control.html>`_ docs for more
1313
information.
1414

1515
If for some reason you can't use conventional AWS configuration methods, you can set the credentials in the Model Meta class:
@@ -24,5 +24,5 @@ If for some reason you can't use conventional AWS configuration methods, you can
2424
aws_secret_access_key = 'my_secret_access_key'
2525
aws_session_token = 'my_session_token' # Optional, only for temporary credentials like those received when assuming a role
2626
27-
Finally, see the `AWS CLI documentation <http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-installing-credentials>`_
27+
Finally, see the `AWS CLI documentation <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`_
2828
for more details on how to pass credentials to botocore.

docs/conditional.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Conditional Operations
44
======================
55

66
Some DynamoDB operations (UpdateItem, PutItem, DeleteItem) support the inclusion of conditions. The user can supply a condition to be
7-
evaluated by DynamoDB before the operation is performed. See the `official documentation <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.ConditionalUpdate>`_
7+
evaluated by DynamoDB before the operation is performed. See the `official documentation <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.ConditionalUpdate>`_
88
for more details.
99

1010
Suppose that you have defined a `Thread` Model for the examples below.
@@ -32,7 +32,7 @@ Condition Expressions
3232

3333
PynamoDB supports creating condition expressions from attributes using a mix of built-in operators and method calls.
3434
Any value provided will be serialized using the serializer defined for that attribute.
35-
See the `comparison operator and function reference <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html>`_
35+
See the `comparison operator and function reference <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.OperatorsAndFunctions.html>`_
3636
for more details.
3737

3838
.. csv-table::

docs/contributing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Contributing
22
============
33

44
Pull requests are welcome, forking from the ``master`` branch. If you are new to GitHub, be sure and check out
5-
GitHub's `Hello World <https://guides.github.com/activities/hello-world/>`_ tutorial.
5+
GitHub's `Hello World <https://docs.github.com/en/get-started/quickstart/hello-world>`_ tutorial.
66

77

88
Environment Setup
@@ -115,7 +115,7 @@ maintainers to populate the release notes.
115115
Documentation
116116
-------------
117117

118-
Docs are built using `sphinx <https://www.sphinx-doc.org/en/1.5.1/>`_ and
119-
available on `readthedocs <https://pynamodb.readthedocs.io/>`_. A release
118+
Docs are built using `sphinx <https://www.sphinx-doc.org/>`_ and
119+
the latest are available on `readthedocs <https://pynamodb.readthedocs.io/en/latest/>`_. A release
120120
of the `latest` tag (tracking master) happens automatically on merge via
121-
a Github webhook.
121+
a GitHub webhook.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Features
1717
* Support for Global and Local Secondary Indexes
1818
* Batch operations with automatic pagination
1919
* Iterators for working with Query and Scan operations
20-
* `Fully tested <https://coveralls.io/r/pynamodb/PynamoDB>`_
20+
* `Fully tested <https://coveralls.io/github/pynamodb/PynamoDB>`_
2121

2222
Topics
2323
======

docs/indexes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Index Queries
33

44
DynamoDB supports two types of indexes: global secondary indexes, and local secondary indexes.
55
Indexes can make accessing your data more efficient, and should be used when appropriate. See
6-
`the documentation for more information <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html>`__.
6+
`the documentation for more information <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html>`__.
77

88
Index Settings
99
^^^^^^^^^^^^^^

docs/local.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Use PynamoDB Locally
66
Several DynamoDB compatible servers have been written for testing and debugging purposes. PynamoDB can be
77
used with any server that provides the same API as DynamoDB.
88

9-
PynamoDB has been tested with two DynamoDB compatible servers, `DynamoDB Local <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html>`_
9+
PynamoDB has been tested with two DynamoDB compatible servers, `DynamoDB Local <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html>`_
1010
and `dynalite <https://github.com/mhart/dynalite>`_.
1111

1212
To use a local server, you need to set the ``host`` attribute on your ``Model``'s ``Meta`` class to the hostname and port
@@ -34,7 +34,7 @@ that your server is listening on.
3434
Running dynalite
3535
^^^^^^^^^^^^^^^^
3636

37-
Make sure you have the Node Package Manager installed (see `npm instructions <https://www.npmjs.org/doc/README.html>`_).
37+
Make sure you have the Node Package Manager installed (see `npm instructions <https://docs.npmjs.com/>`_).
3838

3939
Install dynalite::
4040

@@ -52,13 +52,13 @@ Running DynamoDB Local
5252

5353
DynamoDB local is a tool provided by Amazon that mocks the DynamoDB API, and uses a local file to
5454
store your data. You can use DynamoDB local with PynamoDB for testing, debugging, or offline development.
55-
For more information, you can read `Amazon's Announcement <http://aws.amazon.com/about-aws/whats-new/2013/09/12/amazon-dynamodb-local/>`_ and
56-
`Jeff Barr's blog post <http://aws.typepad.com/aws/2013/09/dynamodb-local-for-desktop-development.html>`_ about it.
55+
For more information, you can read `Amazon's Announcement <https://aws.amazon.com/about-aws/whats-new/2013/09/12/amazon-dynamodb-local/>`_ and
56+
`Jeff Barr's blog post <https://aws.amazon.com/blogs/aws/dynamodb-local-for-desktop-development/>`_ about it.
5757

58-
* Download the `latest version of DynamoDB local <http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest>`_.
58+
* Download the `latest version of DynamoDB Local <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html>`_.
5959
* Unpack the contents of the archive into a directory of your choice.
6060

61-
DynamoDB local requires the `Java Runtime Environment <http://java.com/en/>`_ version 7. Make sure the JRE is installed before continuing.
61+
DynamoDB local requires the `Java Runtime Environment <https://www.java.com/en/>`_ version 7. Make sure the JRE is installed before continuing.
6262

6363
From the directory where you unpacked DynamoDB local, you can launch it like this:
6464

docs/quickstart.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Ready to delete the user?
6262

6363
>>> user.delete()
6464

65+
.. _changing-items:
66+
6567
Changing items
6668
^^^^^^^^^^^^^^
6769

@@ -85,7 +87,7 @@ Use of `update()` (in its simplest form) looks like this::
8587
)
8688

8789
`save()` will entirely replace an object (it internally uses `PutItem
88-
<http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html>`_). As
90+
<https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html>`_). As
8991
a consequence, even if you modify only one attribute prior to calling
9092
`save()`, the entire object is re-written. Any modifications done to
9193
the same user by other processes will be lost, even if made to other

docs/release_notes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ will cause a warning to be logged.
510510

511511
New features in this release:
512512

513-
* Add support for current version of `DynamoDB API <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Appendix.CurrentAPI.html>`_
513+
* Add support for current version of DynamoDB API
514514
* Improved ``MapAttribute`` item assignment and access.
515515

516516
Contributors to this release:
@@ -546,7 +546,7 @@ If your project was calling those low level methods a warning will be logged.
546546

547547
New features in this release:
548548

549-
* Add support for current version of `DynamoDB API <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Appendix.CurrentAPI.html>`_
549+
* Add support for current version of DynamoDB API
550550

551551
Contributors to this release:
552552

@@ -593,7 +593,7 @@ This is a major release with breaking changes.
593593
``MapAttribute`` now allows pythonic access when recursively defined.
594594
If you were not using the ``attr_name=`` kwarg then you should have no problems upgrading.
595595
Previously defined non subclassed ``MapAttributes`` (raw ``MapAttributes``) that were members of a subclassed ``MapAttribute`` (typed ``MapAttributes``) would have to be accessed like a dictionary.
596-
Now object access is possible and recommended. See [here](https://github.com/pynamodb/PynamoDB/blob/master/pynamodb/tests/test_attributes.py#L671) for a test example.
596+
Now object access is possible and recommended.
597597
Access via the ``attr_name``, also known as the DynamoDB name, will now throw an ``AttributeError``.
598598

599599
``UnicodeSetAttributes`` do not json serialize or deserialize anymore.
@@ -1131,7 +1131,7 @@ v1.2.0
11311131

11321132
* Numerous documentation improvements
11331133
* Improved support for conditional operations
1134-
* Added support for filtering queries on non key attributes (http://aws.amazon.com/blogs/aws/improved-queries-and-updates-for-dynamodb/)
1134+
* Added support for filtering queries on non key attributes (https://aws.amazon.com/blogs/aws/improved-queries-and-updates-for-dynamodb/)
11351135
* Fixed issue with JSON loading where escaped characters caused an error (#17)
11361136
* Minor bug fixes
11371137

0 commit comments

Comments
 (0)