Skip to content

Commit

Permalink
S3 samples cross-referenced to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddeyo committed Mar 16, 2018
1 parent 0b2793d commit 96dd8bf
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 0 deletions.
4 changes: 4 additions & 0 deletions javascript/example_code/s3/s3_createbucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-creating-buckets.html
*/


// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region
Expand Down
4 changes: 4 additions & 0 deletions javascript/example_code/s3/s3_deletebucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-creating-buckets.html
*/


// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_deletebucketpolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-bucket-policies.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_deletebucketwebsite.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-static-web-host.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_getbucketacl.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-access-permissions.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_getbucketpolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-bucket-policies.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_getbucketwebsite.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-static-web-host.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_getcors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-configuring-buckets.html
*/

// Load the AWS SDK for Node.js
Expand Down
4 changes: 4 additions & 0 deletions javascript/example_code/s3/s3_listbuckets.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-creating-buckets.html
*/


// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region
Expand Down
4 changes: 4 additions & 0 deletions javascript/example_code/s3/s3_listobjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-creating-buckets.html
*/


// Load the AWS SDK for Node.js
var AWS = require('aws-sdk');
// Set the region
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_setbucketpolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-bucket-policies.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_setbucketwebsite.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-static-web-host.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_setcors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-configuring-buckets.html
*/

// Load the AWS SDK for Node.js
Expand Down
3 changes: 3 additions & 0 deletions javascript/example_code/s3/s3_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
ABOUT THIS NODE.JS SAMPLE: This sample is part of the SDK for JavaScript Developer Guide topic at
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/s3-example-creating-buckets.html
*/

// Load the AWS SDK for Node.js
Expand Down

0 comments on commit 96dd8bf

Please sign in to comment.