Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumeRoleInfo ¶
type AssumeRoleInfo struct {
/* 角色资源标识(jrn) */
RoleJrn string `json:"roleJrn"`
/* 角色会话名称 */
RoleSessionName string `json:"roleSessionName"`
/* 会话策略,策略描述需遵循 IAM 策略语法,但不可包含 Principal元素,长度限制 2048 字节。会话策略限制临时凭证的权限;如不指定,则临时凭证默认拥有附加到角色的所有权限。 (Optional) */
Policy *string `json:"policy"`
/* 临时凭证有效期,单位秒,取值范围:3600~您所扮演的角色设置的maxSessionDuration,默认3600 (Optional) */
DurationSeconds *int `json:"durationSeconds"`
}
type AssumeRoleWithSAMLInfo ¶ added in v1.17.0
type AssumeRoleWithSAMLInfo struct {
/* 角色资源标识(jrn) */
RoleJrn string `json:"roleJrn"`
/* 身份提供商资源标识(jrn) */
SamlProviderJrn string `json:"samlProviderJrn"`
/* 会话策略,压缩后不超过1024字节 (Optional) */
Policy string `json:"policy"`
/* 临时凭证有效期,单位秒,取值范围:1800~您所扮演的角色设置的maxSessionDuration,默认3600 (Optional) */
DurationSeconds int `json:"durationSeconds"`
/* SAML断言(Base64编码) */
SamlAssertion string `json:"samlAssertion"`
}
type AssumeServiceRoleInfo ¶
type AssumedRoleService ¶
type AssumedRoleUser ¶
type Credentials ¶
type Credentials struct {
/* 临时accessKey (Optional) */
AccessKey string `json:"accessKey"`
/* 临时secretKey (Optional) */
SecretKey string `json:"secretKey"`
/* 临时安全令牌 (Optional) */
SessionToken string `json:"sessionToken"`
/* 失效时间,格式:yyyy-MM-dd HH:mm:ss(eg 2019-01-01 00:00:00) (Optional) */
Expiration string `json:"expiration"`
}
type SamlAssertionInfo ¶ added in v1.17.0
type SamlAssertionInfo struct {
/* SAML断言中NameID的格式 (Optional) */
SubjectType string `json:"subjectType"`
/* SAML断言中Subject.NameID字段值 (Optional) */
Subject string `json:"subject"`
/* SAML断言中Subject.SubjectConfirmation.SubjectConfirmationData字段中Recipient字段值 (Optional) */
Recipient string `json:"recipient"`
/* SAML断言中Issuer字段值 (Optional) */
Issuer string `json:"issuer"`
}
Click to show internal directories.
Click to hide internal directories.