Skip to content

Commit c31bbf6

Browse files
committed
Adds AWS.CodePipeline as a default service in browser SDK since it now supports CORS
1 parent aa4d15e commit c31bbf6

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

dist-tools/service-collector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var path = require('path');
55
var AWS = require('../');
66
var apis = require('../lib/api_loader');
77

8-
var defaultServices = 'cloudwatch,cloudwatchlogs,cognitoidentity,cognitosync,devicefarm,dynamodb,dynamodbstreams,ec2,elastictranscoder,firehose,kinesis,lambda,marketplacecommerceanalytics,mobileanalytics,machinelearning,opsworks,s3,sqs,sns,ssm,sts,waf';
8+
var defaultServices = 'cloudwatch,cloudwatchlogs,codepipeline,cognitoidentity,cognitosync,devicefarm,dynamodb,dynamodbstreams,ec2,elastictranscoder,firehose,kinesis,lambda,marketplacecommerceanalytics,mobileanalytics,machinelearning,opsworks,s3,sqs,sns,ssm,sts,waf';
99
var sanitizeRegex = /[^a-zA-Z0-9,-]/;
1010

1111
var serviceClasses = {};

doc-src/guide/browser-services.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44

55
## Supported Services
66

7-
By default, the SDK ships with support for 22 AWS services. Each service object
7+
By default, the SDK ships with support for 23 AWS services. Each service object
88
in the SDK currently provides low-level access to every API call in the
99
respective AWS service. The full list of methods and their parameters are
1010
documented in the complete API reference documentation (linked from each
1111
service name in the list below).
1212

13-
The 22 services that come with the default hosted package of the SDK are:
13+
The 23 services that come with the default hosted package of the SDK are:
1414

1515
* [AWS.CloudWatch](/AWSJavaScriptSDK/latest/AWS/CloudWatch.html)
1616
* [AWS.CloudWatchLogs](/AWSJavaScriptSDK/latest/AWS/CloudWatchLogs.html)
17+
* [AWS.CodePipeline](/AWSJavaScriptSDK/latest/AWS/CodePipeline.html)
1718
* [AWS.CognitoIdentity](/AWSJavaScriptSDK/latest/AWS/CognitoIdentity.html)
1819
* [AWS.CognitoSync](/AWSJavaScriptSDK/latest/AWS/CognitoSync.html)
1920
* [AWS.DeviceFarm](/AWSJavaScriptSDK/latest/AWS/DeviceFarm.html)

test/browser.spec.coffee

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ try
77
cloudwatch = new AWS.CloudWatch(AWS.util.merge(config, config.cloudwatch))
88
cloudwatchlogs = new AWS.CloudWatchLogs(AWS.util.merge(config, config.cloudwatchlogs))
99
cognitoidentity = new AWS.CognitoIdentity(AWS.util.merge(config, config.cognitoidentity))
10+
codepipeline = new AWS.CodePipeline(AWS.util.merge(config, config.codepipeline))
1011
cognitosync = new AWS.CognitoSync(AWS.util.merge(config, config.cognitosync))
1112
devicefarm = new AWS.DeviceFarm(AWS.util.merge(config, config.devicefarm))
1213
dynamodb = new AWS.DynamoDB(AWS.util.merge(config, config.dynamodb))
@@ -145,6 +146,21 @@ integrationTests ->
145146
noData(data)
146147
done()
147148

149+
describe 'AWS.CodePipeline', ->
150+
it 'makes a request', (done) ->
151+
codepipeline.listPipelines {}, (err, data) ->
152+
noError(err)
153+
expect(Array.isArray(data.pipelines)).to.equal(true)
154+
done()
155+
156+
it 'handles errors', (done) ->
157+
params =
158+
name: 'fake-pipeline'
159+
codepipeline.getPipeline params, (err, data) ->
160+
assertError(err, 'PipelineNotFoundException')
161+
noData(data)
162+
done()
163+
148164
describe 'AWS.CognitoIdentity', ->
149165
it 'makes a request', (done) ->
150166
cognitoidentity.listIdentityPools MaxResults: 10, (err, data) ->

0 commit comments

Comments
 (0)