Socket
Socket
Sign inDemoInstall

@aws-sdk/client-rbin

Package Overview
Dependencies
Maintainers
5
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-rbin - npm Package Compare versions

Comparing version 3.476.0 to 3.477.0

175

dist-cjs/protocols/Aws_restJson1.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.de_UpdateRuleCommand = exports.de_UntagResourceCommand = exports.de_UnlockRuleCommand = exports.de_TagResourceCommand = exports.de_LockRuleCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRulesCommand = exports.de_GetRuleCommand = exports.de_DeleteRuleCommand = exports.de_CreateRuleCommand = exports.se_UpdateRuleCommand = exports.se_UntagResourceCommand = exports.se_UnlockRuleCommand = exports.se_TagResourceCommand = exports.se_LockRuleCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRulesCommand = exports.se_GetRuleCommand = exports.se_DeleteRuleCommand = exports.se_CreateRuleCommand = void 0;
const protocol_http_1 = require("@smithy/protocol-http");
const core_1 = require("@smithy/core");
const smithy_client_1 = require("@smithy/smithy-client");

@@ -9,7 +9,7 @@ const models_0_1 = require("../models/models_0");

const se_CreateRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules";
b.bp("/rules");
let body;

@@ -24,53 +24,32 @@ body = JSON.stringify((0, smithy_client_1.take)(input, {

}));
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
b.m("POST").h(headers).b(body);
return b.build();
};
exports.se_CreateRuleCommand = se_CreateRuleCommand;
const se_DeleteRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
b.m("DELETE").h(headers).b(body);
return b.build();
};
exports.se_DeleteRuleCommand = se_DeleteRuleCommand;
const se_GetRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
b.m("GET").h(headers).b(body);
return b.build();
};
exports.se_GetRuleCommand = se_GetRuleCommand;
const se_ListRulesCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-rules";
b.bp("/list-rules");
let body;

@@ -84,37 +63,23 @@ body = JSON.stringify((0, smithy_client_1.take)(input, {

}));
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
b.m("POST").h(headers).b(body);
return b.build();
};
exports.se_ListRulesCommand = se_ListRulesCommand;
const se_ListTagsForResourceCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
b.bp("/tags/{ResourceArn}");
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
b.m("GET").h(headers).b(body);
return b.build();
};
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
const se_LockRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/lock";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}/lock");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;

@@ -124,20 +89,13 @@ body = JSON.stringify((0, smithy_client_1.take)(input, {

}));
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
b.m("PATCH").h(headers).b(body);
return b.build();
};
exports.se_LockRuleCommand = se_LockRuleCommand;
const se_TagResourceCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
b.bp("/tags/{ResourceArn}");
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
let body;

@@ -147,61 +105,39 @@ body = JSON.stringify((0, smithy_client_1.take)(input, {

}));
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
b.m("POST").h(headers).b(body);
return b.build();
};
exports.se_TagResourceCommand = se_TagResourceCommand;
const se_UnlockRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}/unlock");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
b.m("PATCH").h(headers).b(body);
return b.build();
};
exports.se_UnlockRuleCommand = se_UnlockRuleCommand;
const se_UntagResourceCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
b.bp("/tags/{ResourceArn}");
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
const query = (0, smithy_client_1.map)({
tagKeys: [
[_tK]: [
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
() => (input.TagKeys || []).map((_entry) => _entry),
() => (input[_TK] || []).map((_entry) => _entry),
],
});
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
query,
body,
});
b.m("DELETE").h(headers).q(query).b(body);
return b.build();
};
exports.se_UntagResourceCommand = se_UntagResourceCommand;
const se_UpdateRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = (0, core_1.requestBuilder)(input, context);
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;

@@ -214,11 +150,4 @@ body = JSON.stringify((0, smithy_client_1.take)(input, {

}));
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
b.m("PATCH").h(headers).b(body);
return b.build();
};

@@ -755,2 +684,4 @@ exports.se_UpdateRuleCommand = se_UpdateRuleCommand;

(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
const _TK = "TagKeys";
const _tK = "tagKeys";
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {

@@ -757,0 +688,0 @@ if (encoded.length) {

@@ -1,11 +0,11 @@

import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
import { requestBuilder as rb } from "@smithy/core";
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
import { RbinServiceException as __BaseException } from "../models/RbinServiceException";
export const se_CreateRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules";
b.bp("/rules");
let body;

@@ -20,50 +20,29 @@ body = JSON.stringify(take(input, {

}));
return new __HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_DeleteRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;
return new __HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
b.m("DELETE").h(headers).b(body);
return b.build();
};
export const se_GetRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;
return new __HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
b.m("GET").h(headers).b(body);
return b.build();
};
export const se_ListRulesCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-rules";
b.bp("/list-rules");
let body;

@@ -77,35 +56,21 @@ body = JSON.stringify(take(input, {

}));
return new __HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_ListTagsForResourceCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
b.bp("/tags/{ResourceArn}");
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
let body;
return new __HttpRequest({
protocol,
hostname,
port,
method: "GET",
headers,
path: resolvedPath,
body,
});
b.m("GET").h(headers).b(body);
return b.build();
};
export const se_LockRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/lock";
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}/lock");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;

@@ -115,19 +80,12 @@ body = JSON.stringify(take(input, {

}));
return new __HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
b.m("PATCH").h(headers).b(body);
return b.build();
};
export const se_TagResourceCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
b.bp("/tags/{ResourceArn}");
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
let body;

@@ -137,58 +95,36 @@ body = JSON.stringify(take(input, {

}));
return new __HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
body,
});
b.m("POST").h(headers).b(body);
return b.build();
};
export const se_UnlockRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}/unlock";
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}/unlock");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;
return new __HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
b.m("PATCH").h(headers).b(body);
return b.build();
};
export const se_UntagResourceCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
b.bp("/tags/{ResourceArn}");
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
const query = map({
tagKeys: [
[_tK]: [
__expectNonNull(input.TagKeys, `TagKeys`) != null,
() => (input.TagKeys || []).map((_entry) => _entry),
() => (input[_TK] || []).map((_entry) => _entry),
],
});
let body;
return new __HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
query,
body,
});
b.m("DELETE").h(headers).q(query).b(body);
return b.build();
};
export const se_UpdateRuleCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const b = rb(input, context);
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rules/{Identifier}";
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
b.bp("/rules/{Identifier}");
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
let body;

@@ -201,11 +137,4 @@ body = JSON.stringify(take(input, {

}));
return new __HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
b.m("PATCH").h(headers).b(body);
return b.build();
};

@@ -731,2 +660,4 @@ export const de_CreateRuleCommand = async (output, context) => {

(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
const _TK = "TagKeys";
const _tK = "tagKeys";
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {

@@ -733,0 +664,0 @@ if (encoded.length) {

{
"name": "@aws-sdk/client-rbin",
"description": "AWS SDK for JavaScript Rbin Client for Node.js, Browser and React Native",
"version": "3.476.0",
"version": "3.477.0",
"scripts": {

@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "3.476.0",
"@aws-sdk/core": "3.476.0",
"@aws-sdk/credential-provider-node": "3.476.0",
"@aws-sdk/client-sts": "3.477.0",
"@aws-sdk/core": "3.477.0",
"@aws-sdk/credential-provider-node": "3.477.0",
"@aws-sdk/middleware-host-header": "3.468.0",

@@ -38,2 +38,3 @@ "@aws-sdk/middleware-logger": "3.468.0",

"@smithy/config-resolver": "^2.0.21",
"@smithy/core": "^1.2.0",
"@smithy/fetch-http-handler": "^2.3.1",

@@ -40,0 +41,0 @@ "@smithy/hash-node": "^2.0.17",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc