@aws-sdk/client-codestar-connections 3.300.0 → 3.303.0

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.
@@ -2,12 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnsupportedOperationException = exports.ConflictException = exports.ConnectionStatus = exports.ResourceUnavailableException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.ProviderType = void 0;
4
4
  const CodeStarConnectionsServiceException_1 = require("./CodeStarConnectionsServiceException");
5
- var ProviderType;
6
- (function (ProviderType) {
7
- ProviderType["BITBUCKET"] = "Bitbucket";
8
- ProviderType["GITHUB"] = "GitHub";
9
- ProviderType["GITHUB_ENTERPRISE_SERVER"] = "GitHubEnterpriseServer";
10
- })(ProviderType = exports.ProviderType || (exports.ProviderType = {}));
5
+ exports.ProviderType = {
6
+ BITBUCKET: "Bitbucket",
7
+ GITHUB: "GitHub",
8
+ GITHUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
9
+ };
11
10
  class LimitExceededException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
12
11
  constructor(opts) {
13
12
  super({
@@ -50,12 +49,11 @@ class ResourceUnavailableException extends CodeStarConnectionsServiceException_1
50
49
  }
51
50
  }
52
51
  exports.ResourceUnavailableException = ResourceUnavailableException;
53
- var ConnectionStatus;
54
- (function (ConnectionStatus) {
55
- ConnectionStatus["AVAILABLE"] = "AVAILABLE";
56
- ConnectionStatus["ERROR"] = "ERROR";
57
- ConnectionStatus["PENDING"] = "PENDING";
58
- })(ConnectionStatus = exports.ConnectionStatus || (exports.ConnectionStatus = {}));
52
+ exports.ConnectionStatus = {
53
+ AVAILABLE: "AVAILABLE",
54
+ ERROR: "ERROR",
55
+ PENDING: "PENDING",
56
+ };
59
57
  class ConflictException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
60
58
  constructor(opts) {
61
59
  super({
@@ -1,10 +1,9 @@
1
1
  import { CodeStarConnectionsServiceException as __BaseException } from "./CodeStarConnectionsServiceException";
2
- export var ProviderType;
3
- (function (ProviderType) {
4
- ProviderType["BITBUCKET"] = "Bitbucket";
5
- ProviderType["GITHUB"] = "GitHub";
6
- ProviderType["GITHUB_ENTERPRISE_SERVER"] = "GitHubEnterpriseServer";
7
- })(ProviderType || (ProviderType = {}));
2
+ export const ProviderType = {
3
+ BITBUCKET: "Bitbucket",
4
+ GITHUB: "GitHub",
5
+ GITHUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer",
6
+ };
8
7
  export class LimitExceededException extends __BaseException {
9
8
  constructor(opts) {
10
9
  super({
@@ -44,12 +43,11 @@ export class ResourceUnavailableException extends __BaseException {
44
43
  this.Message = opts.Message;
45
44
  }
46
45
  }
47
- export var ConnectionStatus;
48
- (function (ConnectionStatus) {
49
- ConnectionStatus["AVAILABLE"] = "AVAILABLE";
50
- ConnectionStatus["ERROR"] = "ERROR";
51
- ConnectionStatus["PENDING"] = "PENDING";
52
- })(ConnectionStatus || (ConnectionStatus = {}));
46
+ export const ConnectionStatus = {
47
+ AVAILABLE: "AVAILABLE",
48
+ ERROR: "ERROR",
49
+ PENDING: "PENDING",
50
+ };
53
51
  export class ConflictException extends __BaseException {
54
52
  constructor(opts) {
55
53
  super({
@@ -28,11 +28,11 @@ export interface CreateConnectionCommandOutput extends CreateConnectionOutput, _
28
28
  * import { CodeStarConnectionsClient, CreateConnectionCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
29
29
  * // const { CodeStarConnectionsClient, CreateConnectionCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
30
30
  * const client = new CodeStarConnectionsClient(config);
31
- * const input = {
31
+ * const input = { // CreateConnectionInput
32
32
  * ProviderType: "STRING_VALUE",
33
33
  * ConnectionName: "STRING_VALUE", // required
34
- * Tags: [
35
- * {
34
+ * Tags: [ // TagList
35
+ * { // Tag
36
36
  * Key: "STRING_VALUE", // required
37
37
  * Value: "STRING_VALUE", // required
38
38
  * },
@@ -33,22 +33,22 @@ export interface CreateHostCommandOutput extends CreateHostOutput, __MetadataBea
33
33
  * import { CodeStarConnectionsClient, CreateHostCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
34
34
  * // const { CodeStarConnectionsClient, CreateHostCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
35
35
  * const client = new CodeStarConnectionsClient(config);
36
- * const input = {
36
+ * const input = { // CreateHostInput
37
37
  * Name: "STRING_VALUE", // required
38
38
  * ProviderType: "STRING_VALUE", // required
39
39
  * ProviderEndpoint: "STRING_VALUE", // required
40
- * VpcConfiguration: {
40
+ * VpcConfiguration: { // VpcConfiguration
41
41
  * VpcId: "STRING_VALUE", // required
42
- * SubnetIds: [ // required
42
+ * SubnetIds: [ // SubnetIds // required
43
43
  * "STRING_VALUE",
44
44
  * ],
45
- * SecurityGroupIds: [ // required
45
+ * SecurityGroupIds: [ // SecurityGroupIds // required
46
46
  * "STRING_VALUE",
47
47
  * ],
48
48
  * TlsCertificate: "STRING_VALUE",
49
49
  * },
50
- * Tags: [
51
- * {
50
+ * Tags: [ // TagList
51
+ * { // Tag
52
52
  * Key: "STRING_VALUE", // required
53
53
  * Value: "STRING_VALUE", // required
54
54
  * },
@@ -26,7 +26,7 @@ export interface DeleteConnectionCommandOutput extends DeleteConnectionOutput, _
26
26
  * import { CodeStarConnectionsClient, DeleteConnectionCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, DeleteConnectionCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // DeleteConnectionInput
30
30
  * ConnectionArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new DeleteConnectionCommand(input);
@@ -29,7 +29,7 @@ export interface DeleteHostCommandOutput extends DeleteHostOutput, __MetadataBea
29
29
  * import { CodeStarConnectionsClient, DeleteHostCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
30
30
  * // const { CodeStarConnectionsClient, DeleteHostCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
31
31
  * const client = new CodeStarConnectionsClient(config);
32
- * const input = {
32
+ * const input = { // DeleteHostInput
33
33
  * HostArn: "STRING_VALUE", // required
34
34
  * };
35
35
  * const command = new DeleteHostCommand(input);
@@ -26,7 +26,7 @@ export interface GetConnectionCommandOutput extends GetConnectionOutput, __Metad
26
26
  * import { CodeStarConnectionsClient, GetConnectionCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, GetConnectionCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // GetConnectionInput
30
30
  * ConnectionArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new GetConnectionCommand(input);
@@ -27,7 +27,7 @@ export interface GetHostCommandOutput extends GetHostOutput, __MetadataBearer {
27
27
  * import { CodeStarConnectionsClient, GetHostCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
28
28
  * // const { CodeStarConnectionsClient, GetHostCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
29
29
  * const client = new CodeStarConnectionsClient(config);
30
- * const input = {
30
+ * const input = { // GetHostInput
31
31
  * HostArn: "STRING_VALUE", // required
32
32
  * };
33
33
  * const command = new GetHostCommand(input);
@@ -26,7 +26,7 @@ export interface ListConnectionsCommandOutput extends ListConnectionsOutput, __M
26
26
  * import { CodeStarConnectionsClient, ListConnectionsCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, ListConnectionsCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // ListConnectionsInput
30
30
  * ProviderTypeFilter: "STRING_VALUE",
31
31
  * HostArnFilter: "STRING_VALUE",
32
32
  * MaxResults: Number("int"),
@@ -26,7 +26,7 @@ export interface ListHostsCommandOutput extends ListHostsOutput, __MetadataBeare
26
26
  * import { CodeStarConnectionsClient, ListHostsCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, ListHostsCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // ListHostsInput
30
30
  * MaxResults: Number("int"),
31
31
  * NextToken: "STRING_VALUE",
32
32
  * };
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
26
26
  * import { CodeStarConnectionsClient, ListTagsForResourceCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceInput
30
30
  * ResourceArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -27,10 +27,10 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
27
27
  * import { CodeStarConnectionsClient, TagResourceCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
28
28
  * // const { CodeStarConnectionsClient, TagResourceCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
29
29
  * const client = new CodeStarConnectionsClient(config);
30
- * const input = {
30
+ * const input = { // TagResourceInput
31
31
  * ResourceArn: "STRING_VALUE", // required
32
- * Tags: [ // required
33
- * {
32
+ * Tags: [ // TagList // required
33
+ * { // Tag
34
34
  * Key: "STRING_VALUE", // required
35
35
  * Value: "STRING_VALUE", // required
36
36
  * },
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
26
26
  * import { CodeStarConnectionsClient, UntagResourceCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, UntagResourceCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceInput
30
30
  * ResourceArn: "STRING_VALUE", // required
31
- * TagKeys: [ // required
31
+ * TagKeys: [ // TagKeyList // required
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * };
@@ -26,15 +26,15 @@ export interface UpdateHostCommandOutput extends UpdateHostOutput, __MetadataBea
26
26
  * import { CodeStarConnectionsClient, UpdateHostCommand } from "@aws-sdk/client-codestar-connections"; // ES Modules import
27
27
  * // const { CodeStarConnectionsClient, UpdateHostCommand } = require("@aws-sdk/client-codestar-connections"); // CommonJS import
28
28
  * const client = new CodeStarConnectionsClient(config);
29
- * const input = {
29
+ * const input = { // UpdateHostInput
30
30
  * HostArn: "STRING_VALUE", // required
31
31
  * ProviderEndpoint: "STRING_VALUE",
32
- * VpcConfiguration: {
32
+ * VpcConfiguration: { // VpcConfiguration
33
33
  * VpcId: "STRING_VALUE", // required
34
- * SubnetIds: [ // required
34
+ * SubnetIds: [ // SubnetIds // required
35
35
  * "STRING_VALUE",
36
36
  * ],
37
- * SecurityGroupIds: [ // required
37
+ * SecurityGroupIds: [ // SecurityGroupIds // required
38
38
  * "STRING_VALUE",
39
39
  * ],
40
40
  * TlsCertificate: "STRING_VALUE",
@@ -2,12 +2,17 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { CodeStarConnectionsServiceException as __BaseException } from "./CodeStarConnectionsServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum ProviderType {
7
- BITBUCKET = "Bitbucket",
8
- GITHUB = "GitHub",
9
- GITHUB_ENTERPRISE_SERVER = "GitHubEnterpriseServer"
10
- }
7
+ export declare const ProviderType: {
8
+ readonly BITBUCKET: "Bitbucket";
9
+ readonly GITHUB: "GitHub";
10
+ readonly GITHUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
11
16
  /**
12
17
  * @public
13
18
  * <p>A tag is a key-value pair that is used to manage the resource.</p>
@@ -206,12 +211,17 @@ export interface GetConnectionInput {
206
211
  }
207
212
  /**
208
213
  * @public
214
+ * @enum
209
215
  */
210
- export declare enum ConnectionStatus {
211
- AVAILABLE = "AVAILABLE",
212
- ERROR = "ERROR",
213
- PENDING = "PENDING"
214
- }
216
+ export declare const ConnectionStatus: {
217
+ readonly AVAILABLE: "AVAILABLE";
218
+ readonly ERROR: "ERROR";
219
+ readonly PENDING: "PENDING";
220
+ };
221
+ /**
222
+ * @public
223
+ */
224
+ export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
215
225
  /**
216
226
  * @public
217
227
  * <p>A resource that is used to connect third-party source providers with services like AWS CodePipeline.</p>
@@ -1,10 +1,11 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { CodeStarConnectionsServiceException as __BaseException } from "./CodeStarConnectionsServiceException";
3
- export declare enum ProviderType {
4
- BITBUCKET = "Bitbucket",
5
- GITHUB = "GitHub",
6
- GITHUB_ENTERPRISE_SERVER = "GitHubEnterpriseServer",
7
- }
3
+ export declare const ProviderType: {
4
+ readonly BITBUCKET: "Bitbucket";
5
+ readonly GITHUB: "GitHub";
6
+ readonly GITHUB_ENTERPRISE_SERVER: "GitHubEnterpriseServer";
7
+ };
8
+ export type ProviderType = (typeof ProviderType)[keyof typeof ProviderType];
8
9
  export interface Tag {
9
10
  Key: string | undefined;
10
11
  Value: string | undefined;
@@ -71,11 +72,13 @@ export interface DeleteHostOutput {}
71
72
  export interface GetConnectionInput {
72
73
  ConnectionArn: string | undefined;
73
74
  }
74
- export declare enum ConnectionStatus {
75
- AVAILABLE = "AVAILABLE",
76
- ERROR = "ERROR",
77
- PENDING = "PENDING",
78
- }
75
+ export declare const ConnectionStatus: {
76
+ readonly AVAILABLE: "AVAILABLE";
77
+ readonly ERROR: "ERROR";
78
+ readonly PENDING: "PENDING";
79
+ };
80
+ export type ConnectionStatus =
81
+ (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
79
82
  export interface Connection {
80
83
  ConnectionName?: string;
81
84
  ConnectionArn?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codestar-connections",
3
3
  "description": "AWS SDK for JavaScript Codestar Connections Client for Node.js, Browser and React Native",
4
- "version": "3.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",