Class: TencentCloud::Sts::V20180813::AssumeRoleWithWebIdentityRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180813/models.rb

Overview

AssumeRoleWithWebIdentity请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(providerid = nil, webidentitytoken = nil, rolearn = nil, rolesessionname = nil, durationseconds = nil) ⇒ AssumeRoleWithWebIdentityRequest

Returns a new instance of AssumeRoleWithWebIdentityRequest.



218
219
220
221
222
223
224
# File 'lib/v20180813/models.rb', line 218

def initialize(providerid=nil, webidentitytoken=nil, rolearn=nil, rolesessionname=nil, durationseconds=nil)
  @ProviderId = providerid
  @WebIdentityToken = webidentitytoken
  @RoleArn = rolearn
  @RoleSessionName = rolesessionname
  @DurationSeconds = durationseconds
end

Instance Attribute Details

#DurationSecondsObject

Parameters:

  • ProviderId:

    身份提供商名称

  • WebIdentityToken:

    IdP签发的OIDC令牌

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



216
217
218
# File 'lib/v20180813/models.rb', line 216

def DurationSeconds
  @DurationSeconds
end

#ProviderIdObject

Parameters:

  • ProviderId:

    身份提供商名称

  • WebIdentityToken:

    IdP签发的OIDC令牌

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



216
217
218
# File 'lib/v20180813/models.rb', line 216

def ProviderId
  @ProviderId
end

#RoleArnObject

Parameters:

  • ProviderId:

    身份提供商名称

  • WebIdentityToken:

    IdP签发的OIDC令牌

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



216
217
218
# File 'lib/v20180813/models.rb', line 216

def RoleArn
  @RoleArn
end

#RoleSessionNameObject

Parameters:

  • ProviderId:

    身份提供商名称

  • WebIdentityToken:

    IdP签发的OIDC令牌

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



216
217
218
# File 'lib/v20180813/models.rb', line 216

def RoleSessionName
  @RoleSessionName
end

#WebIdentityTokenObject

Parameters:

  • ProviderId:

    身份提供商名称

  • WebIdentityToken:

    IdP签发的OIDC令牌

  • RoleArn:

    角色访问描述名

  • RoleSessionName:

    会话名称

  • DurationSeconds:

    指定临时访问凭证的有效期,单位:秒,默认 7200 秒,最长可设定有效期为 43200 秒



216
217
218
# File 'lib/v20180813/models.rb', line 216

def WebIdentityToken
  @WebIdentityToken
end

Instance Method Details

#deserialize(params) ⇒ Object



226
227
228
229
230
231
232
# File 'lib/v20180813/models.rb', line 226

def deserialize(params)
  @ProviderId = params['ProviderId']
  @WebIdentityToken = params['WebIdentityToken']
  @RoleArn = params['RoleArn']
  @RoleSessionName = params['RoleSessionName']
  @DurationSeconds = params['DurationSeconds']
end