当我使用javascript的aws s3客户端的时候,我可以使用如下代码创建s3 client
import { S3 } from "@aws-sdk/client-s3"; import { fromCognitoIdentityPool } from "@aws-sdk/credential-provider-cognito-identity"; import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; const s3Client = new S3({ region: 'region', credentials: fromCognitoIdentityPool({ client: new CognitoIdentityClient({ region: 'region' }), identityPoolId: 'identityPoolId', }) });
请问,如果我更换成 golang 的sdk,要如何操作?
You are not logged in. Log in to post an answer.
A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.