From 4519f16de02d3194c225f26ba7873d26218d7b98 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Thu, 10 Oct 2024 18:12:14 +0800 Subject: [PATCH] Update README-CN.md --- README-CN.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README-CN.md b/README-CN.md index 3307d96..57e4380 100644 --- a/README-CN.md +++ b/README-CN.md @@ -118,11 +118,17 @@ import ( func main() { config := new(credentials.Config). SetType("oidc_role_arn"). + // The ARN of OIDC provider SetOIDCProviderArn("OIDCProviderArn"). + // The path of OIDC token file SetOIDCTokenFilePath("OIDCTokenFilePath"). + // The ARN of role + SetRoleArn("RoleArn"). + // The role session name SetRoleSessionName("RoleSessionName"). + // Not required, The RAM policy document. SetPolicy("Policy"). - SetRoleArn("RoleArn"). + // Not required, limit the Valid time of STS Token SetSessionExpiration(3600) provider, err := credentials.NewCredential(config)