Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(
handlerExecutionContext
),
handlerExecutionContext
);
}
}
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
if (configuration.disableBodySigning) {
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"x-amz-content-sha256": "UNSIGNED-PAYLOAD"
}),
{
step: "build",
priority: 100,
tags: { BODY_CHECKSUM: true, UNSIGNED_PAYLOAD: true }
}
);
}
stack.add(
__aws_sdk_ssec_middleware.ssecMiddleware({
base64Encoder: configuration.base64Encoder,
hashConstructor: configuration.md5,
ssecProperties: {
$serverSideEncryptionKey: {
targetProperty: "SSECustomerKey",
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(handlerExecutionContext),
handlerExecutionContext
);
}
}
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(
handlerExecutionContext
),
handlerExecutionContext
);
}
}
clientStack: __aws_sdk_middleware_stack.MiddlewareStack<
InputTypesUnion,
OutputTypesUnion,
_stream.Readable
>,
configuration: MediaStoreDataResolvedConfiguration
): __aws_sdk_types.Handler {
const { handler } = configuration;
const stack = clientStack.concat(this.middlewareStack);
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: this.model
};
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"X-Amz-Content-Sha256": "UNSIGNED_PAYLOAD"
}),
{
step: "build",
priority: 100,
tags: { UNSIGNED_PAYLOAD: true }
}
);
return stack.resolve(
handler(handlerExecutionContext),
handlerExecutionContext
);
}
}
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(handlerExecutionContext),
handlerExecutionContext
);
}
}
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(
handlerExecutionContext
),
handlerExecutionContext
);
}
}
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(handlerExecutionContext),
handlerExecutionContext
);
}
}
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler<
GetBucketAccelerateConfigurationInput,
GetBucketAccelerateConfigurationOutput
>(handlerExecutionContext),
handlerExecutionContext
);
}
model: this.model
};
stack.add(
__aws_sdk_bucket_endpoint_middleware.bucketEndpointMiddleware({
forcePathStyle: configuration.forcePathStyle,
preformedBucketEndpoint: configuration.bucketEndpoint,
useAccelerateEndpoint: configuration.useAccelerateEndpoint,
useDualstackEndpoint: configuration.useDualstackEndpoint
}),
{
step: "build",
priority: 0
}
);
stack.add(
__aws_sdk_middleware_header_default.headerDefault({
"Content-Type": "application/octet-stream"
}),
{
step: "build",
priority: -50,
tags: { "Content-Type": true }
}
);
return stack.resolve(
handler(
handlerExecutionContext
),
handlerExecutionContext
);
}
}