@aws-sdk/client-opensearchserverless
Advanced tools
Comparing version 3.234.0 to 3.235.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ruleSet = void 0; | ||
exports.ruleSet = { | ||
version: "1.0", | ||
parameters: { | ||
Region: { | ||
builtIn: "AWS::Region", | ||
required: true, | ||
documentation: "The AWS region used to dispatch the request.", | ||
type: "String", | ||
}, | ||
UseDualStack: { | ||
builtIn: "AWS::UseDualStack", | ||
required: true, | ||
default: false, | ||
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", | ||
type: "Boolean", | ||
}, | ||
UseFIPS: { | ||
builtIn: "AWS::UseFIPS", | ||
required: true, | ||
default: false, | ||
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", | ||
type: "Boolean", | ||
}, | ||
Endpoint: { | ||
builtIn: "SDK::Endpoint", | ||
required: false, | ||
documentation: "Override the endpoint used to send this request", | ||
type: "String", | ||
}, | ||
}, | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "aws.partition", | ||
argv: [ | ||
{ | ||
ref: "Region", | ||
}, | ||
], | ||
assign: "PartitionResult", | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "isSet", | ||
argv: [ | ||
{ | ||
ref: "Endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
fn: "parseURL", | ||
argv: [ | ||
{ | ||
ref: "Endpoint", | ||
}, | ||
], | ||
assign: "url", | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseFIPS", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
error: "Invalid Configuration: FIPS and custom endpoint are not supported", | ||
type: "error", | ||
}, | ||
{ | ||
conditions: [], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseDualStack", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
error: "Invalid Configuration: Dualstack and custom endpoint are not supported", | ||
type: "error", | ||
}, | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: { | ||
ref: "Endpoint", | ||
}, | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseFIPS", | ||
}, | ||
true, | ||
], | ||
}, | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseDualStack", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsFIPS", | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsDualStack", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
error: "FIPS and DualStack are enabled, but this partition does not support one or both", | ||
type: "error", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseFIPS", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsFIPS", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
error: "FIPS is enabled but this partition does not support FIPS", | ||
type: "error", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseDualStack", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsDualStack", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
error: "DualStack is enabled but this partition does not support DualStack", | ||
type: "error", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
const s = "fn", t = "argv", u = "ref"; | ||
const a = true, b = false, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = { [u]: "Endpoint" }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, l = {}, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [], r = [k]; | ||
const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: a, default: b, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: a, default: b, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: b, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [s]: "isSet", [t]: o }, { [s]: "parseURL", [t]: o, assign: "url" }], type: f, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: q, type: f, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: q, endpoint: { url: i, properties: l, headers: l }, type: h }] }] }, { conditions: [j, k], type: f, rules: [{ conditions: [m, n], type: f, rules: [{ conditions: q, endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: p, type: f, rules: [{ conditions: [m], type: f, rules: [{ conditions: q, endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: r, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: q, endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: q, endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] }; | ||
exports.ruleSet = _data; |
@@ -1,309 +0,4 @@ | ||
export const ruleSet = { | ||
version: "1.0", | ||
parameters: { | ||
Region: { | ||
builtIn: "AWS::Region", | ||
required: true, | ||
documentation: "The AWS region used to dispatch the request.", | ||
type: "String", | ||
}, | ||
UseDualStack: { | ||
builtIn: "AWS::UseDualStack", | ||
required: true, | ||
default: false, | ||
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", | ||
type: "Boolean", | ||
}, | ||
UseFIPS: { | ||
builtIn: "AWS::UseFIPS", | ||
required: true, | ||
default: false, | ||
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", | ||
type: "Boolean", | ||
}, | ||
Endpoint: { | ||
builtIn: "SDK::Endpoint", | ||
required: false, | ||
documentation: "Override the endpoint used to send this request", | ||
type: "String", | ||
}, | ||
}, | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "aws.partition", | ||
argv: [ | ||
{ | ||
ref: "Region", | ||
}, | ||
], | ||
assign: "PartitionResult", | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "isSet", | ||
argv: [ | ||
{ | ||
ref: "Endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
fn: "parseURL", | ||
argv: [ | ||
{ | ||
ref: "Endpoint", | ||
}, | ||
], | ||
assign: "url", | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseFIPS", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
error: "Invalid Configuration: FIPS and custom endpoint are not supported", | ||
type: "error", | ||
}, | ||
{ | ||
conditions: [], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseDualStack", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
error: "Invalid Configuration: Dualstack and custom endpoint are not supported", | ||
type: "error", | ||
}, | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: { | ||
ref: "Endpoint", | ||
}, | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseFIPS", | ||
}, | ||
true, | ||
], | ||
}, | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseDualStack", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsFIPS", | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsDualStack", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
error: "FIPS and DualStack are enabled, but this partition does not support one or both", | ||
type: "error", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseFIPS", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsFIPS", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
error: "FIPS is enabled but this partition does not support FIPS", | ||
type: "error", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
{ | ||
ref: "UseDualStack", | ||
}, | ||
true, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [ | ||
{ | ||
fn: "booleanEquals", | ||
argv: [ | ||
true, | ||
{ | ||
fn: "getAttr", | ||
argv: [ | ||
{ | ||
ref: "PartitionResult", | ||
}, | ||
"supportsDualStack", | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
type: "tree", | ||
rules: [ | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
error: "DualStack is enabled but this partition does not support DualStack", | ||
type: "error", | ||
}, | ||
], | ||
}, | ||
{ | ||
conditions: [], | ||
endpoint: { | ||
url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", | ||
properties: {}, | ||
headers: {}, | ||
}, | ||
type: "endpoint", | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
const s = "fn", t = "argv", u = "ref"; | ||
const a = true, b = false, c = "String", d = "Boolean", e = "PartitionResult", f = "tree", g = "error", h = "endpoint", i = { [u]: "Endpoint" }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, k = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, l = {}, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [], r = [k]; | ||
const _data = { version: "1.0", parameters: { Region: { builtIn: "AWS::Region", required: a, documentation: "The AWS region used to dispatch the request.", type: c }, UseDualStack: { builtIn: "AWS::UseDualStack", required: a, default: b, documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", type: d }, UseFIPS: { builtIn: "AWS::UseFIPS", required: a, default: b, documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", type: d }, Endpoint: { builtIn: "SDK::Endpoint", required: b, documentation: "Override the endpoint used to send this request", type: c } }, rules: [{ conditions: [{ [s]: "aws.partition", [t]: [{ [u]: "Region" }], assign: e }], type: f, rules: [{ conditions: [{ [s]: "isSet", [t]: o }, { [s]: "parseURL", [t]: o, assign: "url" }], type: f, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { conditions: q, type: f, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: g }, { conditions: q, endpoint: { url: i, properties: l, headers: l }, type: h }] }] }, { conditions: [j, k], type: f, rules: [{ conditions: [m, n], type: f, rules: [{ conditions: q, endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: g }] }, { conditions: p, type: f, rules: [{ conditions: [m], type: f, rules: [{ conditions: q, endpoint: { url: "https://aoss-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "FIPS is enabled but this partition does not support FIPS", type: g }] }, { conditions: r, type: f, rules: [{ conditions: [n], type: f, rules: [{ conditions: q, endpoint: { url: "https://aoss.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: h }] }, { conditions: q, error: "DualStack is enabled but this partition does not support DualStack", type: g }] }, { conditions: q, endpoint: { url: "https://aoss.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: h }] }] }; | ||
export const ruleSet = _data; |
{ | ||
"name": "@aws-sdk/client-opensearchserverless", | ||
"description": "AWS SDK for JavaScript Opensearchserverless Client for Node.js, Browser and React Native", | ||
"version": "3.234.0", | ||
"version": "3.235.0", | ||
"scripts": { | ||
@@ -22,5 +22,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "2.0.0", | ||
"@aws-sdk/client-sts": "3.234.0", | ||
"@aws-sdk/client-sts": "3.235.0", | ||
"@aws-sdk/config-resolver": "3.234.0", | ||
"@aws-sdk/credential-provider-node": "3.234.0", | ||
"@aws-sdk/credential-provider-node": "3.235.0", | ||
"@aws-sdk/fetch-http-handler": "3.226.0", | ||
@@ -34,3 +34,3 @@ "@aws-sdk/hash-node": "3.226.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.226.0", | ||
"@aws-sdk/middleware-retry": "3.229.0", | ||
"@aws-sdk/middleware-retry": "3.235.0", | ||
"@aws-sdk/middleware-serde": "3.226.0", | ||
@@ -37,0 +37,0 @@ "@aws-sdk/middleware-signing": "3.226.0", |
840304
17781
+ Added@aws-sdk/client-sso@3.235.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.235.0(transitive)
+ Added@aws-sdk/client-sts@3.235.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.235.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.235.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.235.0(transitive)
+ Added@aws-sdk/middleware-retry@3.235.0(transitive)
+ Added@aws-sdk/token-providers@3.235.0(transitive)
- Removed@aws-sdk/client-sso@3.234.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.234.0(transitive)
- Removed@aws-sdk/client-sts@3.234.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.234.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.234.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.234.0(transitive)
- Removed@aws-sdk/middleware-retry@3.229.0(transitive)
- Removed@aws-sdk/token-providers@3.234.0(transitive)
Updated@aws-sdk/client-sts@3.235.0