Skip to content

Commit 8741c5b

Browse files
author
Paul Cornell
committed
Periodic update 2019-09-26 07:48 PDT.
1 parent 4fb3ab0 commit 8741c5b

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

doc_source/examples-pinpoint-update-channel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ and pass that object to the
4242
:dedent: 2
4343
:language: java
4444

45-
See the :sdk-examples-java-pinpoint:`complete example <CreateApp.java>` on GitHub.
45+
See the :sdk-examples-java-pinpoint:`complete example <UpdateChannel.java>` on GitHub.
4646

4747

4848
More Information

doc_source/examples-s3-buckets.rst

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ exception if the bucket already exists.
4242
**Imports**
4343

4444
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/CreateBucket.java
45-
:lines: 15-19
45+
:lines: 26-32
4646
:language: java
4747

4848
**Code**
4949

5050
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/CreateBucket.java
51-
:lines: 42-54
51+
:lines: 54-66
5252
:dedent: 8
5353
:language: java
5454

@@ -66,13 +66,13 @@ Use the |s3client| client's :methodname:`listBucket` method. If successful, a li
6666
**Imports**
6767

6868
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/ListBuckets.java
69-
:lines: 15-19
69+
:lines: 26-31
7070
:language: java
7171

7272
**Code**
7373

7474
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/ListBuckets.java
75-
:lines: 30-36
75+
:lines: 41-46
7676
:dedent: 8
7777
:language: java
7878

@@ -104,13 +104,13 @@ delete each one.
104104
**Imports**
105105

106106
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/DeleteBucket.java
107-
:lines: 15-17, 19-20, 23
107+
:lines: 26-32
108108
:language: java
109109

110110
**Code**
111111

112112
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/DeleteBucket.java
113-
:lines: 51, 53-70, 94-97
113+
:lines: 61-80
114114
:dedent: 8
115115
:language: java
116116

@@ -130,19 +130,18 @@ objects, and then :methodname:`deleteVersion` to delete each one.
130130
**Imports**
131131

132132
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/DeleteBucket.java
133-
:lines: 15-23
133+
:lines: 26-32
134134
:language: java
135135

136136
**Code**
137137

138138
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/DeleteBucket.java
139-
:lines: 51, 53-90, 94-97
139+
:lines: 78-96
140140
:dedent: 8
141141
:language: java
142142

143143
See the :sdk-examples-java-s3:`complete example <DeleteBucket.java>` on GitHub.
144144

145-
146145
Delete an Empty Bucket
147146
----------------------
148147

@@ -152,13 +151,13 @@ bucket itself by using the |s3client| client's :methodname:`deleteBucket` method
152151
**Imports**
153152

154153
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/DeleteBucket.java
155-
:lines: 15-17
154+
:lines: 26-32
156155
:language: java
157156

158157
**Code**
159158

160159
.. literalinclude:: example_code/s3/src/main/java/aws/example/s3/DeleteBucket.java
161-
:lines: 51, 53, 93-97
160+
:lines: 98-104
162161
:dedent: 8
163162
:language: java
164163

doc_source/prog-services-sts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ Retrieve temporary security credentials from |STS|
6666

6767
.. code-block:: java
6868
69-
AWSSecurityTokenServiceClient sts_client = new AWSSecurityTokenServiceClientBuilder().standard().build();
69+
AWSSecurityTokenService sts_client = new AWSSecurityTokenServiceClientBuilder().standard().withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration("sts-endpoint.amazonaws.com", "signing-region")).build()
7070
71-
When creating the client with no arguments, the default credential provider chain is used to
71+
When creating the client with no arguments (:code:`AWSSecurityTokenServiceClient sts_client = new AWSSecurityTokenServiceClientBuilder().standard().build();`), the default credential provider chain is used to
7272
retrieve credentials. You can provide a specific credential provider if you want. For more
7373
information, see Providing AWS Credentials in the AWS SDK for Java.
7474

doc_source/prog-services.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

1515
This section provides tutorials and examples of using the |sdk-java| v1 to program AWS services.
1616

17+
Find the source code for these examples and others in the AWS documentation `code examples repository on GitHub <https://github.com/awsdocs/aws-doc-sdk-examples>`_.
18+
19+
To propose a new code example for the AWS documentation team to consider producing, create a new request.
20+
The team is looking to produce code examples that cover broader scenarios and use cases,
21+
versus simple code snippets that cover only individual API calls. For instructions,
22+
see the "Proposing new code examples" section in the `Readme on GitHub <https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/README.rst>`_.
23+
1724
AWS SDK for Java 2.x
1825
=====================
1926
In 2018, AWS released |sdk-java| v2. For more AWS examples, see the `AWS SDK for Java 2.x Developer Guide`_.

doc_source/welcome.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ developers:
5858

5959
+ `Gitter channel <https://gitter.im/aws/aws-sdk-java>`_
6060

61+
* The `AWS Code Sample Catalog <https://docs.aws.amazon.com/code-samples/latest/catalog>`_
62+
6163
* `@awsforjava (Twitter) <https://twitter.com/awsforjava>`_
6264

6365
* `release notes <https://github.com/aws/aws-sdk-java#release-notes>`_

0 commit comments

Comments
 (0)