AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

AssumeRoleWithWebIdentityOutput

import "github.com/aws/aws-sdk-go/service/sts"

type AssumeRoleWithWebIdentityOutput struct { AssumedRoleUser *AssumedRoleUser `type:"structure"` Audience *string `type:"string"` Credentials *Credentials `type:"structure"` PackedPolicySize *int64 `type:"integer"` Provider *string `type:"string"` SubjectFromWebIdentityToken *string `min:"6" type:"string"` }

Contains the response to a successful AssumeRoleWithWebIdentity request, including temporary AWS credentials that can be used to make AWS requests.

AssumedRoleUser

The identifiers for the temporary security credentials that the operation returns.

Audience

Type: *string

The intended audience (also known as client ID) of the web identity token. This is traditionally the client identifier issued to the application that requested the web identity token.

Credentials

AWS credentials for API authentication.

PackedPolicySize

Type: *int64

A percentage value that indicates the size of the policy in packed form. The service rejects any policy with a packed size greater than 100 percent, which means the policy exceeded the allowed space.

Provider

Type: *string

The issuing authority of the web identity token presented. For OpenID Connect ID Tokens this contains the value of the iss field. For OAuth 2.0 access tokens, this contains the value of the ProviderId parameter that was passed in the AssumeRoleWithWebIdentity request.

SubjectFromWebIdentityToken

Type: *string

The unique user identifier that is returned by the identity provider. This identifier is associated with the WebIdentityToken that was submitted with the AssumeRoleWithWebIdentity call. The identifier is typically unique to the user and the application that acquired the WebIdentityToken (pairwise identifier). For OpenID Connect ID tokens, this field contains the value returned by the identity provider as the token's sub (Subject) claim.

Method

GoString

func (s AssumeRoleWithWebIdentityOutput) GoString() string

GoString returns the string representation

SetAssumedRoleUser

func (s *AssumeRoleWithWebIdentityOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithWebIdentityOutput

SetAssumedRoleUser sets the AssumedRoleUser field's value.

SetAudience

func (s *AssumeRoleWithWebIdentityOutput) SetAudience(v string) *AssumeRoleWithWebIdentityOutput

SetAudience sets the Audience field's value.

SetCredentials

func (s *AssumeRoleWithWebIdentityOutput) SetCredentials(v *Credentials) *AssumeRoleWithWebIdentityOutput

SetCredentials sets the Credentials field's value.

SetPackedPolicySize

func (s *AssumeRoleWithWebIdentityOutput) SetPackedPolicySize(v int64) *AssumeRoleWithWebIdentityOutput

SetPackedPolicySize sets the PackedPolicySize field's value.

SetProvider

func (s *AssumeRoleWithWebIdentityOutput) SetProvider(v string) *AssumeRoleWithWebIdentityOutput

SetProvider sets the Provider field's value.

SetSubjectFromWebIdentityToken

func (s *AssumeRoleWithWebIdentityOutput) SetSubjectFromWebIdentityToken(v string) *AssumeRoleWithWebIdentityOutput

SetSubjectFromWebIdentityToken sets the SubjectFromWebIdentityToken field's value.

String

func (s AssumeRoleWithWebIdentityOutput) String() string

String returns the string representation

On this page: