如何使用identityPoolId进行golang sdk的鉴权

0

当我使用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,要如何操作?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인