@aws-sdk/client-lightsail 3.908.0 → 3.911.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,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
6
  const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -4166,6 +4166,7 @@ const de_Bucket = (output, context) => {
4166
4166
  accessRules: smithyClient._json,
4167
4167
  arn: smithyClient.expectString,
4168
4168
  bundleId: smithyClient.expectString,
4169
+ cors: smithyClient._json,
4169
4170
  createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
4170
4171
  location: smithyClient._json,
4171
4172
  name: smithyClient.expectString,
@@ -1,4 +1,4 @@
1
1
  const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
3
  const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -3411,6 +3411,7 @@ const de_Bucket = (output, context) => {
3411
3411
  accessRules: _json,
3412
3412
  arn: __expectString,
3413
3413
  bundleId: __expectString,
3414
+ cors: _json,
3414
3415
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3415
3416
  location: _json,
3416
3417
  name: __expectString,
@@ -96,6 +96,26 @@ declare const CreateBucketCommand_base: {
96
96
  * // destination: "STRING_VALUE",
97
97
  * // prefix: "STRING_VALUE",
98
98
  * // },
99
+ * // cors: { // BucketCorsConfig
100
+ * // rules: [ // BucketCorsRules
101
+ * // { // BucketCorsRule
102
+ * // id: "STRING_VALUE",
103
+ * // allowedMethods: [ // BucketCorsAllowedMethods // required
104
+ * // "STRING_VALUE",
105
+ * // ],
106
+ * // allowedOrigins: [ // BucketCorsAllowedOrigins // required
107
+ * // "STRING_VALUE",
108
+ * // ],
109
+ * // allowedHeaders: [ // BucketCorsAllowedHeaders
110
+ * // "STRING_VALUE",
111
+ * // ],
112
+ * // exposeHeaders: [ // BucketCorsExposeHeaders
113
+ * // "STRING_VALUE",
114
+ * // ],
115
+ * // maxAgeSeconds: Number("int"),
116
+ * // },
117
+ * // ],
118
+ * // },
99
119
  * // },
100
120
  * // operations: [ // OperationList
101
121
  * // { // Operation
@@ -28,7 +28,7 @@ declare const CreateLoadBalancerCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Creates a Lightsail load balancer. To learn more about deciding whether to load balance
31
- * your application, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-lightsail-instances-for-load-balancing">Configure your Lightsail instances for load balancing</a>. You can create up to 5
31
+ * your application, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-lightsail-instances-for-load-balancing">Configure your Lightsail instances for load balancing</a>. You can create up to 10
32
32
  * load balancers per AWS Region in your account.</p>
33
33
  * <p>When you create a load balancer, you can specify a unique name and port settings. To
34
34
  * change additional load balancer settings, use the <code>UpdateLoadBalancerAttribute</code>
@@ -44,6 +44,7 @@ declare const GetBucketsCommand_base: {
44
44
  * bucketName: "STRING_VALUE",
45
45
  * pageToken: "STRING_VALUE",
46
46
  * includeConnectedResources: true || false,
47
+ * includeCors: true || false,
47
48
  * };
48
49
  * const command = new GetBucketsCommand(input);
49
50
  * const response = await client.send(command);
@@ -91,6 +92,26 @@ declare const GetBucketsCommand_base: {
91
92
  * // destination: "STRING_VALUE",
92
93
  * // prefix: "STRING_VALUE",
93
94
  * // },
95
+ * // cors: { // BucketCorsConfig
96
+ * // rules: [ // BucketCorsRules
97
+ * // { // BucketCorsRule
98
+ * // id: "STRING_VALUE",
99
+ * // allowedMethods: [ // BucketCorsAllowedMethods // required
100
+ * // "STRING_VALUE",
101
+ * // ],
102
+ * // allowedOrigins: [ // BucketCorsAllowedOrigins // required
103
+ * // "STRING_VALUE",
104
+ * // ],
105
+ * // allowedHeaders: [ // BucketCorsAllowedHeaders
106
+ * // "STRING_VALUE",
107
+ * // ],
108
+ * // exposeHeaders: [ // BucketCorsExposeHeaders
109
+ * // "STRING_VALUE",
110
+ * // ],
111
+ * // maxAgeSeconds: Number("int"),
112
+ * // },
113
+ * // ],
114
+ * // },
94
115
  * // },
95
116
  * // ],
96
117
  * // nextPageToken: "STRING_VALUE",
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { LightsailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LightsailClient";
4
- import { GetContainerServiceMetricDataRequest, GetContainerServiceMetricDataResult } from "../models/models_0";
4
+ import { GetContainerServiceMetricDataRequest, GetContainerServiceMetricDataResult } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -53,6 +53,26 @@ declare const UpdateBucketCommand_base: {
53
53
  * destination: "STRING_VALUE",
54
54
  * prefix: "STRING_VALUE",
55
55
  * },
56
+ * cors: { // BucketCorsConfig
57
+ * rules: [ // BucketCorsRules
58
+ * { // BucketCorsRule
59
+ * id: "STRING_VALUE",
60
+ * allowedMethods: [ // BucketCorsAllowedMethods // required
61
+ * "STRING_VALUE",
62
+ * ],
63
+ * allowedOrigins: [ // BucketCorsAllowedOrigins // required
64
+ * "STRING_VALUE",
65
+ * ],
66
+ * allowedHeaders: [ // BucketCorsAllowedHeaders
67
+ * "STRING_VALUE",
68
+ * ],
69
+ * exposeHeaders: [ // BucketCorsExposeHeaders
70
+ * "STRING_VALUE",
71
+ * ],
72
+ * maxAgeSeconds: Number("int"),
73
+ * },
74
+ * ],
75
+ * },
56
76
  * };
57
77
  * const command = new UpdateBucketCommand(input);
58
78
  * const response = await client.send(command);
@@ -99,6 +119,26 @@ declare const UpdateBucketCommand_base: {
99
119
  * // destination: "STRING_VALUE",
100
120
  * // prefix: "STRING_VALUE",
101
121
  * // },
122
+ * // cors: { // BucketCorsConfig
123
+ * // rules: [ // BucketCorsRules
124
+ * // { // BucketCorsRule
125
+ * // id: "STRING_VALUE",
126
+ * // allowedMethods: [ // BucketCorsAllowedMethods // required
127
+ * // "STRING_VALUE",
128
+ * // ],
129
+ * // allowedOrigins: [ // BucketCorsAllowedOrigins // required
130
+ * // "STRING_VALUE",
131
+ * // ],
132
+ * // allowedHeaders: [ // BucketCorsAllowedHeaders
133
+ * // "STRING_VALUE",
134
+ * // ],
135
+ * // exposeHeaders: [ // BucketCorsExposeHeaders
136
+ * // "STRING_VALUE",
137
+ * // ],
138
+ * // maxAgeSeconds: Number("int"),
139
+ * // },
140
+ * // ],
141
+ * // },
102
142
  * // },
103
143
  * // operations: [ // OperationList
104
144
  * // { // Operation
@@ -1675,6 +1675,77 @@ export interface BucketAccessLogConfig {
1675
1675
  */
1676
1676
  prefix?: string | undefined;
1677
1677
  }
1678
+ /**
1679
+ * <p>Describes a cross-origin resource sharing (CORS) rule for a Lightsail bucket. CORS rules specify which origins are allowed to access the bucket, which HTTP methods are allowed, and other access control information. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
1680
+ * @public
1681
+ */
1682
+ export interface BucketCorsRule {
1683
+ /**
1684
+ * <p>A unique identifier for the CORS rule. The ID value can be up to 255 characters long. The IDs help you find a rule in the configuration.</p>
1685
+ * @public
1686
+ */
1687
+ id?: string | undefined;
1688
+ /**
1689
+ * <p>The HTTP methods that are allowed when accessing the bucket from the specified origin. Each CORS rule must identify at least one origin and one method.</p>
1690
+ * <p>You can use the following HTTP methods:</p>
1691
+ * <ul>
1692
+ * <li>
1693
+ * <p>
1694
+ * <code>GET</code> - Retrieves data from the server, such as downloading files or viewing content.</p>
1695
+ * </li>
1696
+ * <li>
1697
+ * <p>
1698
+ * <code>PUT</code> - Uploads or replaces data on the server, such as uploading new files.</p>
1699
+ * </li>
1700
+ * <li>
1701
+ * <p>
1702
+ * <code>POST</code> - Sends data to the server for processing, such as submitting forms or creating new resources.</p>
1703
+ * </li>
1704
+ * <li>
1705
+ * <p>
1706
+ * <code>DELETE</code> - Removes data from the server, such as deleting files or resources.</p>
1707
+ * </li>
1708
+ * <li>
1709
+ * <p>
1710
+ * <code>HEAD</code> - Retrieves only the headers from the server without the actual content, useful for checking if a resource exists.</p>
1711
+ * </li>
1712
+ * </ul>
1713
+ * @public
1714
+ */
1715
+ allowedMethods: string[] | undefined;
1716
+ /**
1717
+ * <p>One or more origins you want customers to be able to access the bucket from. Each CORS rule must identify at least one origin and one method.</p>
1718
+ * @public
1719
+ */
1720
+ allowedOrigins: string[] | undefined;
1721
+ /**
1722
+ * <p>Headers that are specified in the <code>Access-Control-Request-Headers</code> header. These headers are allowed in a preflight <code>OPTIONS</code> request. In response to any preflight <code>OPTIONS</code> request, Amazon S3 returns any requested headers that are allowed.</p>
1723
+ * @public
1724
+ */
1725
+ allowedHeaders?: string[] | undefined;
1726
+ /**
1727
+ * <p>One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript <code>XMLHttpRequest</code> object).</p>
1728
+ * @public
1729
+ */
1730
+ exposeHeaders?: string[] | undefined;
1731
+ /**
1732
+ * <p>The time in seconds that your browser is to cache the preflight response for the specified resource. A CORS rule can have only one <code>maxAgeSeconds</code> element.</p>
1733
+ * @public
1734
+ */
1735
+ maxAgeSeconds?: number | undefined;
1736
+ }
1737
+ /**
1738
+ * <p>Describes the cross-origin resource sharing (CORS) configuration for a Lightsail bucket. CORS defines a way for client web applications that are loaded in one domain to interact with resources in a different domain.
1739
+ * For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
1740
+ * @public
1741
+ */
1742
+ export interface BucketCorsConfig {
1743
+ /**
1744
+ * <p>A set of origins and methods (cross-origin access that you want to allow). You can add up to 20 rules to the configuration. The total size is limited to 64 KB.</p>
1745
+ * @public
1746
+ */
1747
+ rules?: BucketCorsRule[] | undefined;
1748
+ }
1678
1749
  /**
1679
1750
  * <p>Describes the state of an Amazon Lightsail bucket.</p>
1680
1751
  * @public
@@ -1842,6 +1913,11 @@ export interface Bucket {
1842
1913
  * @public
1843
1914
  */
1844
1915
  accessLogConfig?: BucketAccessLogConfig | undefined;
1916
+ /**
1917
+ * <p>An array of cross-origin resource sharing (CORS) rules that identify origins and the HTTP methods that can be executed on your bucket. This field is only included in the response when CORS configuration is requested or when updating CORS configuration. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
1918
+ * @public
1919
+ */
1920
+ cors?: BucketCorsConfig | undefined;
1845
1921
  }
1846
1922
  /**
1847
1923
  * <p>Describes the specifications of a bundle that can be applied to an Amazon Lightsail
@@ -5209,7 +5285,7 @@ export interface DomainEntry {
5209
5285
  * response. It is now discontinued.</p>
5210
5286
  * </note>
5211
5287
  *
5212
- * @deprecated
5288
+ * @deprecated deprecated
5213
5289
  * @public
5214
5290
  */
5215
5291
  options?: Record<string, string> | undefined;
@@ -5352,7 +5428,7 @@ export interface CreateInstancesRequest {
5352
5428
  * discontinued.</p>
5353
5429
  * </note>
5354
5430
  *
5355
- * @deprecated
5431
+ * @deprecated deprecated
5356
5432
  * @public
5357
5433
  */
5358
5434
  customImageName?: string | undefined;
@@ -6990,7 +7066,7 @@ export interface Disk {
6990
7066
  * response. Use <code>isAttached</code> instead.</p>
6991
7067
  * </note>
6992
7068
  *
6993
- * @deprecated
7069
+ * @deprecated deprecated
6994
7070
  * @public
6995
7071
  */
6996
7072
  attachmentState?: string | undefined;
@@ -7001,7 +7077,7 @@ export interface Disk {
7001
7077
  * response. It is now discontinued.</p>
7002
7078
  * </note>
7003
7079
  *
7004
- * @deprecated
7080
+ * @deprecated deprecated
7005
7081
  * @public
7006
7082
  */
7007
7083
  gbInUse?: number | undefined;
@@ -7983,6 +8059,14 @@ export interface GetBucketsRequest {
7983
8059
  * @public
7984
8060
  */
7985
8061
  includeConnectedResources?: boolean | undefined;
8062
+ /**
8063
+ * <p>A Boolean value that indicates whether to include Lightsail bucket CORS configuration in the response. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
8064
+ * <note>
8065
+ * <p>This parameter is only supported when getting a single bucket with <code>bucketName</code> specified. The default value for this parameter is <code>False</code>.</p>
8066
+ * </note>
8067
+ * @public
8068
+ */
8069
+ includeCors?: boolean | undefined;
7986
8070
  }
7987
8071
  /**
7988
8072
  * @public
@@ -8325,111 +8409,6 @@ export interface GetContainerServiceDeploymentsResult {
8325
8409
  */
8326
8410
  deployments?: ContainerServiceDeployment[] | undefined;
8327
8411
  }
8328
- /**
8329
- * @public
8330
- */
8331
- export interface GetContainerServiceMetricDataRequest {
8332
- /**
8333
- * <p>The name of the container service for which to get metric data.</p>
8334
- * @public
8335
- */
8336
- serviceName: string | undefined;
8337
- /**
8338
- * <p>The metric for which you want to return information.</p>
8339
- * <p>Valid container service metric names are listed below, along with the most useful
8340
- * statistics to include in your request, and the published unit value.</p>
8341
- * <ul>
8342
- * <li>
8343
- * <p>
8344
- * <code>CPUUtilization</code> - The average percentage of compute units that are
8345
- * currently in use across all nodes of the container service. This metric identifies the
8346
- * processing power required to run containers on each node of the container service.</p>
8347
- * <p>Statistics: The most useful statistics are <code>Maximum</code> and
8348
- * <code>Average</code>.</p>
8349
- * <p>Unit: The published unit is <code>Percent</code>.</p>
8350
- * </li>
8351
- * <li>
8352
- * <p>
8353
- * <code>MemoryUtilization</code> - The average percentage of available memory that is
8354
- * currently in use across all nodes of the container service. This metric identifies the
8355
- * memory required to run containers on each node of the container service.</p>
8356
- * <p>Statistics: The most useful statistics are <code>Maximum</code> and
8357
- * <code>Average</code>.</p>
8358
- * <p>Unit: The published unit is <code>Percent</code>.</p>
8359
- * </li>
8360
- * </ul>
8361
- * @public
8362
- */
8363
- metricName: ContainerServiceMetricName | undefined;
8364
- /**
8365
- * <p>The start time of the time period.</p>
8366
- * @public
8367
- */
8368
- startTime: Date | undefined;
8369
- /**
8370
- * <p>The end time of the time period.</p>
8371
- * @public
8372
- */
8373
- endTime: Date | undefined;
8374
- /**
8375
- * <p>The granularity, in seconds, of the returned data points.</p>
8376
- * <p>All container service metric data is available in 5-minute (300 seconds)
8377
- * granularity.</p>
8378
- * @public
8379
- */
8380
- period: number | undefined;
8381
- /**
8382
- * <p>The statistic for the metric.</p>
8383
- * <p>The following statistics are available:</p>
8384
- * <ul>
8385
- * <li>
8386
- * <p>
8387
- * <code>Minimum</code> - The lowest value observed during the specified period. Use this
8388
- * value to determine low volumes of activity for your application.</p>
8389
- * </li>
8390
- * <li>
8391
- * <p>
8392
- * <code>Maximum</code> - The highest value observed during the specified period. Use
8393
- * this value to determine high volumes of activity for your application.</p>
8394
- * </li>
8395
- * <li>
8396
- * <p>
8397
- * <code>Sum</code> - All values submitted for the matching metric added together. You
8398
- * can use this statistic to determine the total volume of a metric.</p>
8399
- * </li>
8400
- * <li>
8401
- * <p>
8402
- * <code>Average</code> - The value of <code>Sum</code> / <code>SampleCount</code> during
8403
- * the specified period. By comparing this statistic with the <code>Minimum</code> and
8404
- * <code>Maximum</code> values, you can determine the full scope of a metric and how close
8405
- * the average use is to the <code>Minimum</code> and <code>Maximum</code> values. This
8406
- * comparison helps you to know when to increase or decrease your resources.</p>
8407
- * </li>
8408
- * <li>
8409
- * <p>
8410
- * <code>SampleCount</code> - The count, or number, of data points used for the
8411
- * statistical calculation.</p>
8412
- * </li>
8413
- * </ul>
8414
- * @public
8415
- */
8416
- statistics: MetricStatistic[] | undefined;
8417
- }
8418
- /**
8419
- * @public
8420
- */
8421
- export interface GetContainerServiceMetricDataResult {
8422
- /**
8423
- * <p>The name of the metric returned. </p>
8424
- * @public
8425
- */
8426
- metricName?: ContainerServiceMetricName | undefined;
8427
- /**
8428
- * <p>An array of objects that describe the metric data returned.</p>
8429
- * @public
8430
- */
8431
- metricData?: MetricDatapoint[] | undefined;
8432
- }
8433
8412
  /**
8434
8413
  * @internal
8435
8414
  */
@@ -1,4 +1,109 @@
1
- import { AccessDirection, AccessRules, AddOn, AlarmState, AvailabilityZone, Bucket, BucketAccessLogConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, CertificateProvider, ComparisonOperator, ContactMethodVerificationProtocol, ContactProtocol, ContainerImage, ContainerService, ContainerServicePower, ContainerServicePowerName, CostEstimate, Disk, DiskSnapshot, DistributionBundle, DistributionMetricName, Domain, DomainEntry, ExportSnapshotRecord, InputOrigin, IpAddressType, KeyPair, LightsailDistribution, MetricDatapoint, MetricName, MetricStatistic, MetricUnit, NetworkProtocol, Operation, PortInfo, PrivateRegistryAccessRequest, RegionName, ResourceLocation, ResourceType, Tag, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum } from "./models_0";
1
+ import { AccessDirection, AccessRules, AddOn, AlarmState, AvailabilityZone, Bucket, BucketAccessLogConfig, BucketCorsConfig, CacheBehavior, CacheBehaviorPerPath, CacheSettings, CertificateProvider, ComparisonOperator, ContactMethodVerificationProtocol, ContactProtocol, ContainerImage, ContainerService, ContainerServiceMetricName, ContainerServicePower, ContainerServicePowerName, CostEstimate, Disk, DiskSnapshot, DistributionBundle, DistributionMetricName, Domain, DomainEntry, ExportSnapshotRecord, InputOrigin, IpAddressType, KeyPair, LightsailDistribution, MetricDatapoint, MetricName, MetricStatistic, MetricUnit, NetworkProtocol, Operation, PortInfo, PrivateRegistryAccessRequest, RegionName, ResourceLocation, ResourceType, Tag, TreatMissingData, ViewerMinimumTlsProtocolVersionEnum } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface GetContainerServiceMetricDataRequest {
6
+ /**
7
+ * <p>The name of the container service for which to get metric data.</p>
8
+ * @public
9
+ */
10
+ serviceName: string | undefined;
11
+ /**
12
+ * <p>The metric for which you want to return information.</p>
13
+ * <p>Valid container service metric names are listed below, along with the most useful
14
+ * statistics to include in your request, and the published unit value.</p>
15
+ * <ul>
16
+ * <li>
17
+ * <p>
18
+ * <code>CPUUtilization</code> - The average percentage of compute units that are
19
+ * currently in use across all nodes of the container service. This metric identifies the
20
+ * processing power required to run containers on each node of the container service.</p>
21
+ * <p>Statistics: The most useful statistics are <code>Maximum</code> and
22
+ * <code>Average</code>.</p>
23
+ * <p>Unit: The published unit is <code>Percent</code>.</p>
24
+ * </li>
25
+ * <li>
26
+ * <p>
27
+ * <code>MemoryUtilization</code> - The average percentage of available memory that is
28
+ * currently in use across all nodes of the container service. This metric identifies the
29
+ * memory required to run containers on each node of the container service.</p>
30
+ * <p>Statistics: The most useful statistics are <code>Maximum</code> and
31
+ * <code>Average</code>.</p>
32
+ * <p>Unit: The published unit is <code>Percent</code>.</p>
33
+ * </li>
34
+ * </ul>
35
+ * @public
36
+ */
37
+ metricName: ContainerServiceMetricName | undefined;
38
+ /**
39
+ * <p>The start time of the time period.</p>
40
+ * @public
41
+ */
42
+ startTime: Date | undefined;
43
+ /**
44
+ * <p>The end time of the time period.</p>
45
+ * @public
46
+ */
47
+ endTime: Date | undefined;
48
+ /**
49
+ * <p>The granularity, in seconds, of the returned data points.</p>
50
+ * <p>All container service metric data is available in 5-minute (300 seconds)
51
+ * granularity.</p>
52
+ * @public
53
+ */
54
+ period: number | undefined;
55
+ /**
56
+ * <p>The statistic for the metric.</p>
57
+ * <p>The following statistics are available:</p>
58
+ * <ul>
59
+ * <li>
60
+ * <p>
61
+ * <code>Minimum</code> - The lowest value observed during the specified period. Use this
62
+ * value to determine low volumes of activity for your application.</p>
63
+ * </li>
64
+ * <li>
65
+ * <p>
66
+ * <code>Maximum</code> - The highest value observed during the specified period. Use
67
+ * this value to determine high volumes of activity for your application.</p>
68
+ * </li>
69
+ * <li>
70
+ * <p>
71
+ * <code>Sum</code> - All values submitted for the matching metric added together. You
72
+ * can use this statistic to determine the total volume of a metric.</p>
73
+ * </li>
74
+ * <li>
75
+ * <p>
76
+ * <code>Average</code> - The value of <code>Sum</code> / <code>SampleCount</code> during
77
+ * the specified period. By comparing this statistic with the <code>Minimum</code> and
78
+ * <code>Maximum</code> values, you can determine the full scope of a metric and how close
79
+ * the average use is to the <code>Minimum</code> and <code>Maximum</code> values. This
80
+ * comparison helps you to know when to increase or decrease your resources.</p>
81
+ * </li>
82
+ * <li>
83
+ * <p>
84
+ * <code>SampleCount</code> - The count, or number, of data points used for the
85
+ * statistical calculation.</p>
86
+ * </li>
87
+ * </ul>
88
+ * @public
89
+ */
90
+ statistics: MetricStatistic[] | undefined;
91
+ }
92
+ /**
93
+ * @public
94
+ */
95
+ export interface GetContainerServiceMetricDataResult {
96
+ /**
97
+ * <p>The name of the metric returned. </p>
98
+ * @public
99
+ */
100
+ metricName?: ContainerServiceMetricName | undefined;
101
+ /**
102
+ * <p>An array of objects that describe the metric data returned.</p>
103
+ * @public
104
+ */
105
+ metricData?: MetricDatapoint[] | undefined;
106
+ }
2
107
  /**
3
108
  * @public
4
109
  */
@@ -3381,7 +3486,7 @@ export interface GetOperationsForResourceResult {
3381
3486
  * instead.</p>
3382
3487
  * </note>
3383
3488
  *
3384
- * @deprecated
3489
+ * @deprecated deprecated
3385
3490
  * @public
3386
3491
  */
3387
3492
  nextPageCount?: string | undefined;
@@ -5785,6 +5890,14 @@ export interface UpdateBucketRequest {
5785
5890
  * @public
5786
5891
  */
5787
5892
  accessLogConfig?: BucketAccessLogConfig | undefined;
5893
+ /**
5894
+ * <p>Sets the cross-origin resource sharing (CORS) configuration for your bucket. If a CORS configuration exists, it is replaced with the specified configuration. For AWS CLI operations, this parameter can also be passed as a file. For more information, see <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/configure-cors.html">Configuring cross-origin resource sharing (CORS)</a>.</p>
5895
+ * <note>
5896
+ * <p>CORS information is only returned in a response when you update the CORS policy.</p>
5897
+ * </note>
5898
+ * @public
5899
+ */
5900
+ cors?: BucketCorsConfig | undefined;
5788
5901
  }
5789
5902
  /**
5790
5903
  * @public
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  GetContainerServiceMetricDataRequest,
10
10
  GetContainerServiceMetricDataResult,
11
- } from "../models/models_0";
11
+ } from "../models/models_1";
12
12
  export { __MetadataBearer };
13
13
  export { $Command };
14
14
  export interface GetContainerServiceMetricDataCommandInput
@@ -556,6 +556,17 @@ export interface BucketAccessLogConfig {
556
556
  destination?: string | undefined;
557
557
  prefix?: string | undefined;
558
558
  }
559
+ export interface BucketCorsRule {
560
+ id?: string | undefined;
561
+ allowedMethods: string[] | undefined;
562
+ allowedOrigins: string[] | undefined;
563
+ allowedHeaders?: string[] | undefined;
564
+ exposeHeaders?: string[] | undefined;
565
+ maxAgeSeconds?: number | undefined;
566
+ }
567
+ export interface BucketCorsConfig {
568
+ rules?: BucketCorsRule[] | undefined;
569
+ }
559
570
  export interface BucketState {
560
571
  code?: string | undefined;
561
572
  message?: string | undefined;
@@ -581,6 +592,7 @@ export interface Bucket {
581
592
  resourcesReceivingAccess?: ResourceReceivingAccess[] | undefined;
582
593
  state?: BucketState | undefined;
583
594
  accessLogConfig?: BucketAccessLogConfig | undefined;
595
+ cors?: BucketCorsConfig | undefined;
584
596
  }
585
597
  export interface BucketBundle {
586
598
  bundleId?: string | undefined;
@@ -1786,6 +1798,7 @@ export interface GetBucketsRequest {
1786
1798
  bucketName?: string | undefined;
1787
1799
  pageToken?: string | undefined;
1788
1800
  includeConnectedResources?: boolean | undefined;
1801
+ includeCors?: boolean | undefined;
1789
1802
  }
1790
1803
  export interface GetBucketsResult {
1791
1804
  buckets?: Bucket[] | undefined;
@@ -1852,18 +1865,6 @@ export interface GetContainerServiceDeploymentsRequest {
1852
1865
  export interface GetContainerServiceDeploymentsResult {
1853
1866
  deployments?: ContainerServiceDeployment[] | undefined;
1854
1867
  }
1855
- export interface GetContainerServiceMetricDataRequest {
1856
- serviceName: string | undefined;
1857
- metricName: ContainerServiceMetricName | undefined;
1858
- startTime: Date | undefined;
1859
- endTime: Date | undefined;
1860
- period: number | undefined;
1861
- statistics: MetricStatistic[] | undefined;
1862
- }
1863
- export interface GetContainerServiceMetricDataResult {
1864
- metricName?: ContainerServiceMetricName | undefined;
1865
- metricData?: MetricDatapoint[] | undefined;
1866
- }
1867
1868
  export declare const AccessKeyFilterSensitiveLog: (obj: AccessKey) => any;
1868
1869
  export declare const CreateBucketAccessKeyResultFilterSensitiveLog: (
1869
1870
  obj: CreateBucketAccessKeyResult
@@ -6,6 +6,7 @@ import {
6
6
  AvailabilityZone,
7
7
  Bucket,
8
8
  BucketAccessLogConfig,
9
+ BucketCorsConfig,
9
10
  CacheBehavior,
10
11
  CacheBehaviorPerPath,
11
12
  CacheSettings,
@@ -15,6 +16,7 @@ import {
15
16
  ContactProtocol,
16
17
  ContainerImage,
17
18
  ContainerService,
19
+ ContainerServiceMetricName,
18
20
  ContainerServicePower,
19
21
  ContainerServicePowerName,
20
22
  CostEstimate,
@@ -44,6 +46,18 @@ import {
44
46
  TreatMissingData,
45
47
  ViewerMinimumTlsProtocolVersionEnum,
46
48
  } from "./models_0";
49
+ export interface GetContainerServiceMetricDataRequest {
50
+ serviceName: string | undefined;
51
+ metricName: ContainerServiceMetricName | undefined;
52
+ startTime: Date | undefined;
53
+ endTime: Date | undefined;
54
+ period: number | undefined;
55
+ statistics: MetricStatistic[] | undefined;
56
+ }
57
+ export interface GetContainerServiceMetricDataResult {
58
+ metricName?: ContainerServiceMetricName | undefined;
59
+ metricData?: MetricDatapoint[] | undefined;
60
+ }
47
61
  export interface GetContainerServicePowersRequest {}
48
62
  export interface GetContainerServicePowersResult {
49
63
  powers?: ContainerServicePower[] | undefined;
@@ -1154,6 +1168,7 @@ export interface UpdateBucketRequest {
1154
1168
  versioning?: string | undefined;
1155
1169
  readonlyAccessAccounts?: string[] | undefined;
1156
1170
  accessLogConfig?: BucketAccessLogConfig | undefined;
1171
+ cors?: BucketCorsConfig | undefined;
1157
1172
  }
1158
1173
  export interface UpdateBucketResult {
1159
1174
  bucket?: Bucket | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lightsail",
3
3
  "description": "AWS SDK for JavaScript Lightsail Client for Node.js, Browser and React Native",
4
- "version": "3.908.0",
4
+ "version": "3.911.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-lightsail",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.908.0",
24
- "@aws-sdk/credential-provider-node": "3.908.0",
25
- "@aws-sdk/middleware-host-header": "3.901.0",
26
- "@aws-sdk/middleware-logger": "3.901.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.908.0",
29
- "@aws-sdk/region-config-resolver": "3.901.0",
30
- "@aws-sdk/types": "3.901.0",
31
- "@aws-sdk/util-endpoints": "3.901.0",
32
- "@aws-sdk/util-user-agent-browser": "3.907.0",
33
- "@aws-sdk/util-user-agent-node": "3.908.0",
34
- "@smithy/config-resolver": "^4.3.0",
35
- "@smithy/core": "^3.15.0",
36
- "@smithy/fetch-http-handler": "^5.3.1",
37
- "@smithy/hash-node": "^4.2.0",
38
- "@smithy/invalid-dependency": "^4.2.0",
39
- "@smithy/middleware-content-length": "^4.2.0",
40
- "@smithy/middleware-endpoint": "^4.3.1",
41
- "@smithy/middleware-retry": "^4.4.1",
42
- "@smithy/middleware-serde": "^4.2.0",
43
- "@smithy/middleware-stack": "^4.2.0",
44
- "@smithy/node-config-provider": "^4.3.0",
45
- "@smithy/node-http-handler": "^4.3.0",
46
- "@smithy/protocol-http": "^5.3.0",
47
- "@smithy/smithy-client": "^4.7.1",
48
- "@smithy/types": "^4.6.0",
49
- "@smithy/url-parser": "^4.2.0",
23
+ "@aws-sdk/core": "3.911.0",
24
+ "@aws-sdk/credential-provider-node": "3.911.0",
25
+ "@aws-sdk/middleware-host-header": "3.910.0",
26
+ "@aws-sdk/middleware-logger": "3.910.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.910.0",
28
+ "@aws-sdk/middleware-user-agent": "3.911.0",
29
+ "@aws-sdk/region-config-resolver": "3.910.0",
30
+ "@aws-sdk/types": "3.910.0",
31
+ "@aws-sdk/util-endpoints": "3.910.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.910.0",
33
+ "@aws-sdk/util-user-agent-node": "3.911.0",
34
+ "@smithy/config-resolver": "^4.3.2",
35
+ "@smithy/core": "^3.16.1",
36
+ "@smithy/fetch-http-handler": "^5.3.3",
37
+ "@smithy/hash-node": "^4.2.2",
38
+ "@smithy/invalid-dependency": "^4.2.2",
39
+ "@smithy/middleware-content-length": "^4.2.2",
40
+ "@smithy/middleware-endpoint": "^4.3.3",
41
+ "@smithy/middleware-retry": "^4.4.3",
42
+ "@smithy/middleware-serde": "^4.2.2",
43
+ "@smithy/middleware-stack": "^4.2.2",
44
+ "@smithy/node-config-provider": "^4.3.2",
45
+ "@smithy/node-http-handler": "^4.4.1",
46
+ "@smithy/protocol-http": "^5.3.2",
47
+ "@smithy/smithy-client": "^4.8.1",
48
+ "@smithy/types": "^4.7.1",
49
+ "@smithy/url-parser": "^4.2.2",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.0",
54
- "@smithy/util-defaults-mode-node": "^4.2.1",
55
- "@smithy/util-endpoints": "^3.2.0",
56
- "@smithy/util-middleware": "^4.2.0",
57
- "@smithy/util-retry": "^4.2.0",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.2",
54
+ "@smithy/util-defaults-mode-node": "^4.2.3",
55
+ "@smithy/util-endpoints": "^3.2.2",
56
+ "@smithy/util-middleware": "^4.2.2",
57
+ "@smithy/util-retry": "^4.2.2",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
59
  "tslib": "^2.6.2"
60
60
  },