@aws-amplify/storage
Version:
Storage category of aws-amplify
1 lines • 1.93 kB
Source Map (JSON)
{"version":3,"file":"getUrl.mjs","sources":["../../../../src/internals/apis/getUrl.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Amplify } from '@aws-amplify/core';\nimport { getUrl as getUrlInternal } from '../../providers/s3/apis/internal/getUrl';\n/**\n * @internal\n */\nexport const getUrl = (input) => getUrlInternal(Amplify, {\n path: input.path,\n options: {\n useAccelerateEndpoint: input?.options?.useAccelerateEndpoint,\n bucket: input?.options?.bucket,\n validateObjectExistence: input?.options?.validateObjectExistence,\n expiresIn: input?.options?.expiresIn,\n contentDisposition: input?.options?.contentDisposition,\n contentType: input?.options?.contentType,\n expectedBucketOwner: input?.options?.expectedBucketOwner,\n // Advanced options\n locationCredentialsProvider: input?.options?.locationCredentialsProvider,\n customEndpoint: input?.options?.customEndpoint,\n },\n // Type casting is necessary because `getPropertiesInternal` supports both Gen1 and Gen2 signatures, but here\n // given in input can only be Gen2 signature, the return can only ben Gen2 signature.\n});\n"],"names":["getUrlInternal"],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACY,MAAC,MAAM,GAAG,CAAC,KAAK,KAAKA,QAAc,CAAC,OAAO,EAAE;AACzD,IAAI,IAAI,EAAE,KAAK,CAAC,IAAI;AACpB,IAAI,OAAO,EAAE;AACb,QAAQ,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,qBAAqB;AACpE,QAAQ,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM;AACtC,QAAQ,uBAAuB,EAAE,KAAK,EAAE,OAAO,EAAE,uBAAuB;AACxE,QAAQ,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS;AAC5C,QAAQ,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB;AAC9D,QAAQ,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW;AAChD,QAAQ,mBAAmB,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB;AAChE;AACA,QAAQ,2BAA2B,EAAE,KAAK,EAAE,OAAO,EAAE,2BAA2B;AAChF,QAAQ,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc;AACtD,KAAK;AACL;AACA;AACA,CAAC;;;;"}