Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-apply-body-checksum

Package Overview
Dependencies
4
Maintainers
5
Versions
119
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-apply-body-checksum


Version published
Maintainers
5
Created

Package description

What is @aws-sdk/middleware-apply-body-checksum?

@aws-sdk/middleware-apply-body-checksum is a middleware package for the AWS SDK for JavaScript. It is used to automatically apply checksums to the body of requests, ensuring data integrity during transmission.

What are @aws-sdk/middleware-apply-body-checksum's main functionalities?

Apply Checksum to Request Body

This feature demonstrates how to apply a checksum to the body of a request using the @aws-sdk/middleware-apply-body-checksum package. The middleware is added to the S3 client's middleware stack, ensuring that the body of the PutObjectCommand request is checksummed before being sent.

const { S3Client, PutObjectCommand } = require('@aws-sdk/client-s3');
const { applyBodyChecksumMiddleware } = require('@aws-sdk/middleware-apply-body-checksum');

const client = new S3Client({ region: 'us-west-2' });
client.middlewareStack.add(applyBodyChecksumMiddleware(), {
  step: 'build',
  priority: 'high',
});

const command = new PutObjectCommand({
  Bucket: 'example-bucket',
  Key: 'example-object',
  Body: 'Hello, world!',
});

client.send(command).then((response) => {
  console.log('Success', response);
}).catch((error) => {
  console.error('Error', error);
});

Other packages similar to @aws-sdk/middleware-apply-body-checksum

Changelog

Source

3.303.0 (2023-03-30)

Features

  • client-athena: Make DefaultExecutorDpuSize and CoordinatorDpuSize fields optional in StartSession (1a4cd21)
  • client-auto-scaling: Amazon EC2 Auto Scaling now supports Elastic Load Balancing traffic sources with the AttachTrafficSources, DetachTrafficSources, and DescribeTrafficSources APIs. This release also introduces a new activity status, "WaitingForConnectionDraining", for VPC Lattice to the DescribeScalingActivities API. (3f4037e)
  • client-batch: This feature allows Batch on EKS to support configuration of Pod Labels through Metadata for Batch on EKS Jobs. (d26bec4)
  • client-compute-optimizer: This release adds support for HDD EBS volume types and io2 Block Express. We are also adding support for 61 new instance types and instances that have non consecutive runtime. (defd0ca)
  • client-drs: Adding a field to the replication configuration APIs to support the auto replicate new disks feature. We also deprecated RetryDataReplication. (6848391)
  • client-ec2: This release adds support for Tunnel Endpoint Lifecycle control, a new feature that provides Site-to-Site VPN customers with better visibility and control of their VPN tunnel maintenance updates. (daa7956)
  • client-emr: Updated DescribeCluster and ListClusters API responses to include ErrorDetail that specifies error code, programmatically accessible error data,and an error message. ErrorDetail provides the underlying reason for cluster failure and recommends actions to simplify troubleshooting of EMR clusters. (aa47baa)
  • client-glue: This release adds support for AWS Glue Data Quality, which helps you evaluate and monitor the quality of your data and includes the API for creating, deleting, or updating data quality rulesets, runs and evaluations. (811c814)
  • client-guardduty: Added EKS Runtime Monitoring feature support to existing detector, finding APIs and introducing new Coverage APIs (0f16674)
  • client-imagebuilder: Adds support for new image workflow details and image vulnerability detection. (a2d8908)
  • client-ivs: Amazon Interactive Video Service (IVS) now offers customers the ability to configure IVS channels to allow insecure RTMP ingest. (0001a10)
  • client-kendra: AWS Kendra now supports featured results for a query. (2271816)
  • client-network-firewall: AWS Network Firewall added TLS inspection configurations to allow TLS traffic inspection. (801cd21)
  • client-sagemaker-geospatial: Amazon SageMaker geospatial capabilities now supports server-side encryption with customer managed KMS key and SageMaker notebooks with a SageMaker geospatial image in a Amazon SageMaker Domain with VPC only mode. (04b37bf)
  • client-vpc-lattice: General Availability (GA) release of Amazon VPC Lattice (fc57f8f)
  • client-wellarchitected: AWS Well-Architected SDK now supports getting consolidated report metrics and generating a consolidated report PDF. (f0d07c4)
  • clients: update client endpoints as of 2023-03-30 (4682bc1)

Readme

Source

@aws-sdk/middleware-apply-body-checksum

NPM version NPM downloads

This package provides AWS SDK for JavaScript middleware that applies a checksum of the request body as a header.

FAQs

Last updated on 30 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc