@aws-sdk/client-amplify 3.670.0 → 3.675.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.
package/dist-cjs/index.js CHANGED
@@ -78,6 +78,7 @@ __export(src_exports, {
78
78
  Platform: () => Platform,
79
79
  RepositoryCloneMethod: () => RepositoryCloneMethod,
80
80
  ResourceNotFoundException: () => ResourceNotFoundException,
81
+ SourceUrlType: () => SourceUrlType,
81
82
  Stage: () => Stage,
82
83
  StartDeploymentCommand: () => StartDeploymentCommand,
83
84
  StartJobCommand: () => StartJobCommand,
@@ -419,6 +420,10 @@ var JobType = {
419
420
  RETRY: "RETRY",
420
421
  WEB_HOOK: "WEB_HOOK"
421
422
  };
423
+ var SourceUrlType = {
424
+ BUCKET_PREFIX: "BUCKET_PREFIX",
425
+ ZIP: "ZIP"
426
+ };
422
427
  var JobStatus = {
423
428
  CANCELLED: "CANCELLED",
424
429
  CANCELLING: "CANCELLING",
@@ -939,7 +944,8 @@ var se_StartDeploymentCommand = /* @__PURE__ */ __name(async (input, context) =>
939
944
  body = JSON.stringify(
940
945
  (0, import_smithy_client.take)(input, {
941
946
  jobId: [],
942
- sourceUrl: []
947
+ sourceUrl: [],
948
+ sourceUrlType: []
943
949
  })
944
950
  );
945
951
  b.m("POST").h(headers).b(body);
@@ -1870,6 +1876,8 @@ var de_JobSummary = /* @__PURE__ */ __name((output, context) => {
1870
1876
  jobArn: import_smithy_client.expectString,
1871
1877
  jobId: import_smithy_client.expectString,
1872
1878
  jobType: import_smithy_client.expectString,
1879
+ sourceUrl: import_smithy_client.expectString,
1880
+ sourceUrlType: import_smithy_client.expectString,
1873
1881
  startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1874
1882
  status: import_smithy_client.expectString
1875
1883
  });
@@ -2570,6 +2578,7 @@ var paginateListJobs = (0, import_core.createPaginator)(AmplifyClient, ListJobsC
2570
2578
  DomainStatus,
2571
2579
  UpdateStatus,
2572
2580
  JobType,
2581
+ SourceUrlType,
2573
2582
  JobStatus,
2574
2583
  ResourceNotFoundException,
2575
2584
  AutoBranchCreationConfigFilterSensitiveLog,
@@ -124,6 +124,10 @@ export const JobType = {
124
124
  RETRY: "RETRY",
125
125
  WEB_HOOK: "WEB_HOOK",
126
126
  };
127
+ export const SourceUrlType = {
128
+ BUCKET_PREFIX: "BUCKET_PREFIX",
129
+ ZIP: "ZIP",
130
+ };
127
131
  export const JobStatus = {
128
132
  CANCELLED: "CANCELLED",
129
133
  CANCELLING: "CANCELLING",
@@ -389,6 +389,7 @@ export const se_StartDeploymentCommand = async (input, context) => {
389
389
  body = JSON.stringify(take(input, {
390
390
  jobId: [],
391
391
  sourceUrl: [],
392
+ sourceUrlType: [],
392
393
  }));
393
394
  b.m("POST").h(headers).b(body);
394
395
  return b.build();
@@ -1314,6 +1315,8 @@ const de_JobSummary = (output, context) => {
1314
1315
  jobArn: __expectString,
1315
1316
  jobId: __expectString,
1316
1317
  jobType: __expectString,
1318
+ sourceUrl: __expectString,
1319
+ sourceUrlType: __expectString,
1317
1320
  startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1318
1321
  status: __expectString,
1319
1322
  });
@@ -28,7 +28,7 @@ declare const CreateDeploymentCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Creates a deployment for a manually deployed Amplify app. Manually deployed apps are
31
- * not connected to a repository. </p>
31
+ * not connected to a Git repository. </p>
32
32
  * <p>The maximum duration between the <code>CreateDeployment</code> call and the
33
33
  * <code>StartDeployment</code> call cannot exceed 8 hours. If the duration exceeds 8
34
34
  * hours, the <code>StartDeployment</code> call and the associated <code>Job</code> will
@@ -52,6 +52,8 @@ declare const DeleteJobCommand_base: {
52
52
  * // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
53
53
  * // endTime: new Date("TIMESTAMP"),
54
54
  * // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
55
+ * // sourceUrl: "STRING_VALUE",
56
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
55
57
  * // },
56
58
  * // };
57
59
  *
@@ -53,6 +53,8 @@ declare const GetJobCommand_base: {
53
53
  * // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
54
54
  * // endTime: new Date("TIMESTAMP"),
55
55
  * // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
56
+ * // sourceUrl: "STRING_VALUE",
57
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
56
58
  * // },
57
59
  * // steps: [ // Steps // required
58
60
  * // { // Step
@@ -54,6 +54,8 @@ declare const ListJobsCommand_base: {
54
54
  * // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
55
55
  * // endTime: new Date("TIMESTAMP"),
56
56
  * // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
57
+ * // sourceUrl: "STRING_VALUE",
58
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
57
59
  * // },
58
60
  * // ],
59
61
  * // nextToken: "STRING_VALUE",
@@ -28,7 +28,7 @@ declare const StartDeploymentCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Starts a deployment for a manually deployed app. Manually deployed apps are not
31
- * connected to a repository. </p>
31
+ * connected to a Git repository. </p>
32
32
  * <p>The maximum duration between the <code>CreateDeployment</code> call and the
33
33
  * <code>StartDeployment</code> call cannot exceed 8 hours. If the duration exceeds 8
34
34
  * hours, the <code>StartDeployment</code> call and the associated <code>Job</code> will
@@ -44,6 +44,7 @@ declare const StartDeploymentCommand_base: {
44
44
  * branchName: "STRING_VALUE", // required
45
45
  * jobId: "STRING_VALUE",
46
46
  * sourceUrl: "STRING_VALUE",
47
+ * sourceUrlType: "ZIP" || "BUCKET_PREFIX",
47
48
  * };
48
49
  * const command = new StartDeploymentCommand(input);
49
50
  * const response = await client.send(command);
@@ -58,6 +59,8 @@ declare const StartDeploymentCommand_base: {
58
59
  * // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
59
60
  * // endTime: new Date("TIMESTAMP"),
60
61
  * // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
62
+ * // sourceUrl: "STRING_VALUE",
63
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
61
64
  * // },
62
65
  * // };
63
66
  *
@@ -57,6 +57,8 @@ declare const StartJobCommand_base: {
57
57
  * // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
58
58
  * // endTime: new Date("TIMESTAMP"),
59
59
  * // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
60
+ * // sourceUrl: "STRING_VALUE",
61
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
60
62
  * // },
61
63
  * // };
62
64
  *
@@ -52,6 +52,8 @@ declare const StopJobCommand_base: {
52
52
  * // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
53
53
  * // endTime: new Date("TIMESTAMP"),
54
54
  * // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
55
+ * // sourceUrl: "STRING_VALUE",
56
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
55
57
  * // },
56
58
  * // };
57
59
  *
@@ -1541,6 +1541,18 @@ export declare const JobType: {
1541
1541
  * @public
1542
1542
  */
1543
1543
  export type JobType = (typeof JobType)[keyof typeof JobType];
1544
+ /**
1545
+ * @public
1546
+ * @enum
1547
+ */
1548
+ export declare const SourceUrlType: {
1549
+ readonly BUCKET_PREFIX: "BUCKET_PREFIX";
1550
+ readonly ZIP: "ZIP";
1551
+ };
1552
+ /**
1553
+ * @public
1554
+ */
1555
+ export type SourceUrlType = (typeof SourceUrlType)[keyof typeof SourceUrlType];
1544
1556
  /**
1545
1557
  * @public
1546
1558
  * @enum
@@ -1605,13 +1617,28 @@ export interface JobSummary {
1605
1617
  endTime?: Date;
1606
1618
  /**
1607
1619
  * <p> The type for the job. If the value is <code>RELEASE</code>, the job was manually
1608
- * released from its source by using the <code>StartJob</code> API. If the value is
1609
- * <code>RETRY</code>, the job was manually retried using the <code>StartJob</code>
1620
+ * released from its source by using the <code>StartJob</code> API. This value is available only for apps
1621
+ * that are connected to a repository.</p>
1622
+ * <p>If the value is <code>RETRY</code>, the job was manually retried using the <code>StartJob</code>
1610
1623
  * API. If the value is <code>WEB_HOOK</code>, the job was automatically triggered by
1611
- * webhooks. </p>
1624
+ * webhooks. If the value is <code>MANUAL</code>, the job is for a manually deployed app. Manually deployed apps are not connected to a Git repository.</p>
1612
1625
  * @public
1613
1626
  */
1614
1627
  jobType: JobType | undefined;
1628
+ /**
1629
+ * <p>The source URL for the files to deploy. The source URL can be either an HTTP GET URL that is publicly accessible and
1630
+ * downloads a single .zip file, or an Amazon S3 bucket and prefix.</p>
1631
+ * @public
1632
+ */
1633
+ sourceUrl?: string;
1634
+ /**
1635
+ * <p>The type of source specified by the <code>sourceURL</code>.
1636
+ * If the value is <code>ZIP</code>, the source is a .zip file.
1637
+ * If the value is <code>BUCKET_PREFIX</code>, the source is an Amazon S3 bucket and
1638
+ * prefix. If no value is specified, the default is <code>ZIP</code>.</p>
1639
+ * @public
1640
+ */
1641
+ sourceUrlType?: SourceUrlType;
1615
1642
  }
1616
1643
  /**
1617
1644
  * <p> The result structure for the delete job request. </p>
@@ -2303,22 +2330,29 @@ export interface StartDeploymentRequest {
2303
2330
  */
2304
2331
  appId: string | undefined;
2305
2332
  /**
2306
- * <p>The name of the branch to use for the job. </p>
2333
+ * <p>The name of the branch to use for the deployment job. </p>
2307
2334
  * @public
2308
2335
  */
2309
2336
  branchName: string | undefined;
2310
2337
  /**
2311
- * <p>The job ID for this deployment, generated by the create deployment request. </p>
2338
+ * <p>The job ID for this deployment that is generated by the <code>CreateDeployment</code> request. </p>
2312
2339
  * @public
2313
2340
  */
2314
2341
  jobId?: string;
2315
2342
  /**
2316
- * <p>The source URL for this deployment, used when calling start deployment without create
2317
- * deployment. The source URL can be any HTTP GET URL that is publicly accessible and
2318
- * downloads a single .zip file. </p>
2343
+ * <p>The source URL for the deployment that is used when calling <code>StartDeployment</code> without <code>CreateDeployment</code>. The source URL can be either an HTTP GET URL that is publicly accessible and
2344
+ * downloads a single .zip file, or an Amazon S3 bucket and prefix.</p>
2319
2345
  * @public
2320
2346
  */
2321
2347
  sourceUrl?: string;
2348
+ /**
2349
+ * <p>The type of source specified by the <code>sourceURL</code>.
2350
+ * If the value is <code>ZIP</code>, the source is a .zip file.
2351
+ * If the value is <code>BUCKET_PREFIX</code>, the source is an Amazon S3 bucket and
2352
+ * prefix. If no value is specified, the default is <code>ZIP</code>.</p>
2353
+ * @public
2354
+ */
2355
+ sourceUrlType?: SourceUrlType;
2322
2356
  }
2323
2357
  /**
2324
2358
  * <p>The result structure for the start a deployment request. </p>
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
- defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
- defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
23
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
24
24
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
25
  maxAttempts: number | import("@smithy/types").Provider<number>;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -361,6 +361,11 @@ export declare const JobType: {
361
361
  readonly WEB_HOOK: "WEB_HOOK";
362
362
  };
363
363
  export type JobType = (typeof JobType)[keyof typeof JobType];
364
+ export declare const SourceUrlType: {
365
+ readonly BUCKET_PREFIX: "BUCKET_PREFIX";
366
+ readonly ZIP: "ZIP";
367
+ };
368
+ export type SourceUrlType = (typeof SourceUrlType)[keyof typeof SourceUrlType];
364
369
  export declare const JobStatus: {
365
370
  readonly CANCELLED: "CANCELLED";
366
371
  readonly CANCELLING: "CANCELLING";
@@ -381,6 +386,8 @@ export interface JobSummary {
381
386
  status: JobStatus | undefined;
382
387
  endTime?: Date;
383
388
  jobType: JobType | undefined;
389
+ sourceUrl?: string;
390
+ sourceUrlType?: SourceUrlType;
384
391
  }
385
392
  export interface DeleteJobResult {
386
393
  jobSummary: JobSummary | undefined;
@@ -554,6 +561,7 @@ export interface StartDeploymentRequest {
554
561
  branchName: string | undefined;
555
562
  jobId?: string;
556
563
  sourceUrl?: string;
564
+ sourceUrlType?: SourceUrlType;
557
565
  }
558
566
  export interface StartDeploymentResult {
559
567
  jobSummary: JobSummary | undefined;
@@ -10,7 +10,9 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
10
10
  input: any
11
11
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
12
  defaultUserAgentProvider: (
13
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
13
+ config?:
14
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
15
+ | undefined
14
16
  ) => Promise<import("@smithy/types").UserAgent>;
15
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
16
18
  region: string | import("@smithy/types").Provider<any>;
@@ -23,7 +23,9 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
25
  defaultUserAgentProvider: (
26
- config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
26
+ config?:
27
+ | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
28
+ | undefined
27
29
  ) => Promise<import("@smithy/types").UserAgent>;
28
30
  credentialDefaultProvider: (
29
31
  input: any
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplify",
3
3
  "description": "AWS SDK for JavaScript Amplify Client for Node.js, Browser and React Native",
4
- "version": "3.670.0",
4
+ "version": "3.675.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-amplify",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.670.0",
24
- "@aws-sdk/client-sts": "3.670.0",
23
+ "@aws-sdk/client-sso-oidc": "3.675.0",
24
+ "@aws-sdk/client-sts": "3.675.0",
25
25
  "@aws-sdk/core": "3.667.0",
26
- "@aws-sdk/credential-provider-node": "3.670.0",
26
+ "@aws-sdk/credential-provider-node": "3.675.0",
27
27
  "@aws-sdk/middleware-host-header": "3.667.0",
28
28
  "@aws-sdk/middleware-logger": "3.667.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.667.0",
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/region-config-resolver": "3.667.0",
32
32
  "@aws-sdk/types": "3.667.0",
33
33
  "@aws-sdk/util-endpoints": "3.667.0",
34
- "@aws-sdk/util-user-agent-browser": "3.670.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.675.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.669.0",
36
36
  "@smithy/config-resolver": "^3.0.9",
37
37
  "@smithy/core": "^2.4.8",