🎥 Make videos programmatically with React
document getAwsClient
Jonny Burger9cc43fbd299f
diff --git a/packages/docs/docs/lambda/getawsclient.md b/packages/docs/docs/lambda/getawsclient.mdindex 851b2062ec..6963a95c21 100644--- a/packages/docs/docs/lambda/getawsclient.md+++ b/packages/docs/docs/lambda/getawsclient.md@@ -74,6 +74,20 @@ One of the [supported regions](/docs/lambda/region-selection) of Remotion LambdaOne of `lambda`, `cloudwatch`, `iam`, `servicequotas` and `s3`.+### `customCredentials`++_available from v3.2.23_++Allows you to connect to another cloud provider, useful if you [render your output to a different cloud](/docs/lambda/custom-destination).++```ts+type CustomCredentials = {+ endpoint: string;+ accessKeyId: string | null;+ secretAccessKey: string | null;+};+```+## Return valueAn object with two properties:diff --git a/packages/lambda/src/api/get-aws-client.ts b/packages/lambda/src/api/get-aws-client.tsindex 6adaea708e..030bf34546 100644--- a/packages/lambda/src/api/get-aws-client.ts+++ b/packages/lambda/src/api/get-aws-client.ts@@ -31,6 +31,7 @@ export type GetAwsClientOutput<T extends keyof ServiceMapping> = {* @link https://remotion.dev/docs/lambda/getawsclient* @param {AwsRegion} params.region The region in which the S3 bucket resides in.* @param {string} params.service One of `iam`, `s3`, `cloudwatch`, `iam` or `servicequotas`+ * @param {CustomCredentials} params.customCredentials Pass endpoint and credentials if you want to connect to a different cloud for S3* @returns {GetAwsClientOutput<T>} Returns `client` and `sdk` of a AWS service*/export const getAwsClient = <T extends keyof ServiceMapping>({