Versions in this module Expand all Collapse all v1 v1.48.2 Nov 21, 2023 Changes in this version + const EndpointsID + const ErrCodeExpiredTokenException + const ErrCodeIDPCommunicationErrorException + const ErrCodeIDPRejectedClaimException + const ErrCodeInvalidAuthorizationMessageException + const ErrCodeInvalidIdentityTokenException + const ErrCodeMalformedPolicyDocumentException + const ErrCodePackedPolicyTooLargeException + const ErrCodeRegionDisabledException + const ServiceID + const ServiceName + type AssumeRoleInput struct + DurationSeconds *int64 + ExternalId *string + Policy *string + PolicyArns []*PolicyDescriptorType + ProvidedContexts []*ProvidedContext + RoleArn *string + RoleSessionName *string + SerialNumber *string + SourceIdentity *string + Tags []*Tag + TokenCode *string + TransitiveTagKeys []*string + func (s *AssumeRoleInput) SetDurationSeconds(v int64) *AssumeRoleInput + func (s *AssumeRoleInput) SetExternalId(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetPolicy(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetPolicyArns(v []*PolicyDescriptorType) *AssumeRoleInput + func (s *AssumeRoleInput) SetProvidedContexts(v []*ProvidedContext) *AssumeRoleInput + func (s *AssumeRoleInput) SetRoleArn(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetRoleSessionName(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetSerialNumber(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetSourceIdentity(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetTags(v []*Tag) *AssumeRoleInput + func (s *AssumeRoleInput) SetTokenCode(v string) *AssumeRoleInput + func (s *AssumeRoleInput) SetTransitiveTagKeys(v []*string) *AssumeRoleInput + func (s *AssumeRoleInput) Validate() error + func (s AssumeRoleInput) GoString() string + func (s AssumeRoleInput) String() string + type AssumeRoleOutput struct + AssumedRoleUser *AssumedRoleUser + Credentials *Credentials + PackedPolicySize *int64 + SourceIdentity *string + func (s *AssumeRoleOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleOutput + func (s *AssumeRoleOutput) SetCredentials(v *Credentials) *AssumeRoleOutput + func (s *AssumeRoleOutput) SetPackedPolicySize(v int64) *AssumeRoleOutput + func (s *AssumeRoleOutput) SetSourceIdentity(v string) *AssumeRoleOutput + func (s AssumeRoleOutput) GoString() string + func (s AssumeRoleOutput) String() string + type AssumeRoleWithSAMLInput struct + DurationSeconds *int64 + Policy *string + PolicyArns []*PolicyDescriptorType + PrincipalArn *string + RoleArn *string + SAMLAssertion *string + func (s *AssumeRoleWithSAMLInput) SetDurationSeconds(v int64) *AssumeRoleWithSAMLInput + func (s *AssumeRoleWithSAMLInput) SetPolicy(v string) *AssumeRoleWithSAMLInput + func (s *AssumeRoleWithSAMLInput) SetPolicyArns(v []*PolicyDescriptorType) *AssumeRoleWithSAMLInput + func (s *AssumeRoleWithSAMLInput) SetPrincipalArn(v string) *AssumeRoleWithSAMLInput + func (s *AssumeRoleWithSAMLInput) SetRoleArn(v string) *AssumeRoleWithSAMLInput + func (s *AssumeRoleWithSAMLInput) SetSAMLAssertion(v string) *AssumeRoleWithSAMLInput + func (s *AssumeRoleWithSAMLInput) Validate() error + func (s AssumeRoleWithSAMLInput) GoString() string + func (s AssumeRoleWithSAMLInput) String() string + type AssumeRoleWithSAMLOutput struct + AssumedRoleUser *AssumedRoleUser + Audience *string + Credentials *Credentials + Issuer *string + NameQualifier *string + PackedPolicySize *int64 + SourceIdentity *string + Subject *string + SubjectType *string + func (s *AssumeRoleWithSAMLOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetAudience(v string) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetCredentials(v *Credentials) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetIssuer(v string) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetNameQualifier(v string) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetPackedPolicySize(v int64) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetSourceIdentity(v string) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetSubject(v string) *AssumeRoleWithSAMLOutput + func (s *AssumeRoleWithSAMLOutput) SetSubjectType(v string) *AssumeRoleWithSAMLOutput + func (s AssumeRoleWithSAMLOutput) GoString() string + func (s AssumeRoleWithSAMLOutput) String() string + type AssumeRoleWithWebIdentityInput struct + DurationSeconds *int64 + Policy *string + PolicyArns []*PolicyDescriptorType + ProviderId *string + RoleArn *string + RoleSessionName *string + WebIdentityToken *string + func (s *AssumeRoleWithWebIdentityInput) SetDurationSeconds(v int64) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) SetPolicy(v string) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) SetPolicyArns(v []*PolicyDescriptorType) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) SetProviderId(v string) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) SetRoleArn(v string) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) SetRoleSessionName(v string) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) SetWebIdentityToken(v string) *AssumeRoleWithWebIdentityInput + func (s *AssumeRoleWithWebIdentityInput) Validate() error + func (s AssumeRoleWithWebIdentityInput) GoString() string + func (s AssumeRoleWithWebIdentityInput) String() string + type AssumeRoleWithWebIdentityOutput struct + AssumedRoleUser *AssumedRoleUser + Audience *string + Credentials *Credentials + PackedPolicySize *int64 + Provider *string + SourceIdentity *string + SubjectFromWebIdentityToken *string + func (s *AssumeRoleWithWebIdentityOutput) SetAssumedRoleUser(v *AssumedRoleUser) *AssumeRoleWithWebIdentityOutput + func (s *AssumeRoleWithWebIdentityOutput) SetAudience(v string) *AssumeRoleWithWebIdentityOutput + func (s *AssumeRoleWithWebIdentityOutput) SetCredentials(v *Credentials) *AssumeRoleWithWebIdentityOutput + func (s *AssumeRoleWithWebIdentityOutput) SetPackedPolicySize(v int64) *AssumeRoleWithWebIdentityOutput + func (s *AssumeRoleWithWebIdentityOutput) SetProvider(v string) *AssumeRoleWithWebIdentityOutput + func (s *AssumeRoleWithWebIdentityOutput) SetSourceIdentity(v string) *AssumeRoleWithWebIdentityOutput + func (s *AssumeRoleWithWebIdentityOutput) SetSubjectFromWebIdentityToken(v string) *AssumeRoleWithWebIdentityOutput + func (s AssumeRoleWithWebIdentityOutput) GoString() string + func (s AssumeRoleWithWebIdentityOutput) String() string + type AssumedRoleUser struct + Arn *string + AssumedRoleId *string + func (s *AssumedRoleUser) SetArn(v string) *AssumedRoleUser + func (s *AssumedRoleUser) SetAssumedRoleId(v string) *AssumedRoleUser + func (s AssumedRoleUser) GoString() string + func (s AssumedRoleUser) String() string + type Credentials struct + AccessKeyId *string + Expiration *time.Time + SecretAccessKey *string + SessionToken *string + func (s *Credentials) SetAccessKeyId(v string) *Credentials + func (s *Credentials) SetExpiration(v time.Time) *Credentials + func (s *Credentials) SetSecretAccessKey(v string) *Credentials + func (s *Credentials) SetSessionToken(v string) *Credentials + func (s Credentials) GoString() string + func (s Credentials) String() string + type DecodeAuthorizationMessageInput struct + EncodedMessage *string + func (s *DecodeAuthorizationMessageInput) SetEncodedMessage(v string) *DecodeAuthorizationMessageInput + func (s *DecodeAuthorizationMessageInput) Validate() error + func (s DecodeAuthorizationMessageInput) GoString() string + func (s DecodeAuthorizationMessageInput) String() string + type DecodeAuthorizationMessageOutput struct + DecodedMessage *string + func (s *DecodeAuthorizationMessageOutput) SetDecodedMessage(v string) *DecodeAuthorizationMessageOutput + func (s DecodeAuthorizationMessageOutput) GoString() string + func (s DecodeAuthorizationMessageOutput) String() string + type FederatedUser struct + Arn *string + FederatedUserId *string + func (s *FederatedUser) SetArn(v string) *FederatedUser + func (s *FederatedUser) SetFederatedUserId(v string) *FederatedUser + func (s FederatedUser) GoString() string + func (s FederatedUser) String() string + type GetAccessKeyInfoInput struct + AccessKeyId *string + func (s *GetAccessKeyInfoInput) SetAccessKeyId(v string) *GetAccessKeyInfoInput + func (s *GetAccessKeyInfoInput) Validate() error + func (s GetAccessKeyInfoInput) GoString() string + func (s GetAccessKeyInfoInput) String() string + type GetAccessKeyInfoOutput struct + Account *string + func (s *GetAccessKeyInfoOutput) SetAccount(v string) *GetAccessKeyInfoOutput + func (s GetAccessKeyInfoOutput) GoString() string + func (s GetAccessKeyInfoOutput) String() string + type GetCallerIdentityInput struct + func (s GetCallerIdentityInput) GoString() string + func (s GetCallerIdentityInput) String() string + type GetCallerIdentityOutput struct + Account *string + Arn *string + UserId *string + func (s *GetCallerIdentityOutput) SetAccount(v string) *GetCallerIdentityOutput + func (s *GetCallerIdentityOutput) SetArn(v string) *GetCallerIdentityOutput + func (s *GetCallerIdentityOutput) SetUserId(v string) *GetCallerIdentityOutput + func (s GetCallerIdentityOutput) GoString() string + func (s GetCallerIdentityOutput) String() string + type GetFederationTokenInput struct + DurationSeconds *int64 + Name *string + Policy *string + PolicyArns []*PolicyDescriptorType + Tags []*Tag + func (s *GetFederationTokenInput) SetDurationSeconds(v int64) *GetFederationTokenInput + func (s *GetFederationTokenInput) SetName(v string) *GetFederationTokenInput + func (s *GetFederationTokenInput) SetPolicy(v string) *GetFederationTokenInput + func (s *GetFederationTokenInput) SetPolicyArns(v []*PolicyDescriptorType) *GetFederationTokenInput + func (s *GetFederationTokenInput) SetTags(v []*Tag) *GetFederationTokenInput + func (s *GetFederationTokenInput) Validate() error + func (s GetFederationTokenInput) GoString() string + func (s GetFederationTokenInput) String() string + type GetFederationTokenOutput struct + Credentials *Credentials + FederatedUser *FederatedUser + PackedPolicySize *int64 + func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput + func (s *GetFederationTokenOutput) SetFederatedUser(v *FederatedUser) *GetFederationTokenOutput + func (s *GetFederationTokenOutput) SetPackedPolicySize(v int64) *GetFederationTokenOutput + func (s GetFederationTokenOutput) GoString() string + func (s GetFederationTokenOutput) String() string + type GetSessionTokenInput struct + DurationSeconds *int64 + SerialNumber *string + TokenCode *string + func (s *GetSessionTokenInput) SetDurationSeconds(v int64) *GetSessionTokenInput + func (s *GetSessionTokenInput) SetSerialNumber(v string) *GetSessionTokenInput + func (s *GetSessionTokenInput) SetTokenCode(v string) *GetSessionTokenInput + func (s *GetSessionTokenInput) Validate() error + func (s GetSessionTokenInput) GoString() string + func (s GetSessionTokenInput) String() string + type GetSessionTokenOutput struct + Credentials *Credentials + func (s *GetSessionTokenOutput) SetCredentials(v *Credentials) *GetSessionTokenOutput + func (s GetSessionTokenOutput) GoString() string + func (s GetSessionTokenOutput) String() string + type PolicyDescriptorType struct + Arn *string + func (s *PolicyDescriptorType) SetArn(v string) *PolicyDescriptorType + func (s *PolicyDescriptorType) Validate() error + func (s PolicyDescriptorType) GoString() string + func (s PolicyDescriptorType) String() string + type ProvidedContext struct + ContextAssertion *string + ProviderArn *string + func (s *ProvidedContext) SetContextAssertion(v string) *ProvidedContext + func (s *ProvidedContext) SetProviderArn(v string) *ProvidedContext + func (s *ProvidedContext) Validate() error + func (s ProvidedContext) GoString() string + func (s ProvidedContext) String() string + type STS struct + func New(p client.ConfigProvider, cfgs ...*aws.Config) *STS + func (c *STS) AssumeRole(input *AssumeRoleInput) (*AssumeRoleOutput, error) + func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, output *AssumeRoleOutput) + func (c *STS) AssumeRoleWithContext(ctx aws.Context, input *AssumeRoleInput, opts ...request.Option) (*AssumeRoleOutput, error) + func (c *STS) AssumeRoleWithSAML(input *AssumeRoleWithSAMLInput) (*AssumeRoleWithSAMLOutput, error) + func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *request.Request, output *AssumeRoleWithSAMLOutput) + func (c *STS) AssumeRoleWithSAMLWithContext(ctx aws.Context, input *AssumeRoleWithSAMLInput, opts ...request.Option) (*AssumeRoleWithSAMLOutput, error) + func (c *STS) AssumeRoleWithWebIdentity(input *AssumeRoleWithWebIdentityInput) (*AssumeRoleWithWebIdentityOutput, error) + func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityInput) (req *request.Request, output *AssumeRoleWithWebIdentityOutput) + func (c *STS) AssumeRoleWithWebIdentityWithContext(ctx aws.Context, input *AssumeRoleWithWebIdentityInput, opts ...request.Option) (*AssumeRoleWithWebIdentityOutput, error) + func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) + func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessageInput) (req *request.Request, output *DecodeAuthorizationMessageOutput) + func (c *STS) DecodeAuthorizationMessageWithContext(ctx aws.Context, input *DecodeAuthorizationMessageInput, ...) (*DecodeAuthorizationMessageOutput, error) + func (c *STS) GetAccessKeyInfo(input *GetAccessKeyInfoInput) (*GetAccessKeyInfoOutput, error) + func (c *STS) GetAccessKeyInfoRequest(input *GetAccessKeyInfoInput) (req *request.Request, output *GetAccessKeyInfoOutput) + func (c *STS) GetAccessKeyInfoWithContext(ctx aws.Context, input *GetAccessKeyInfoInput, opts ...request.Option) (*GetAccessKeyInfoOutput, error) + func (c *STS) GetCallerIdentity(input *GetCallerIdentityInput) (*GetCallerIdentityOutput, error) + func (c *STS) GetCallerIdentityRequest(input *GetCallerIdentityInput) (req *request.Request, output *GetCallerIdentityOutput) + func (c *STS) GetCallerIdentityWithContext(ctx aws.Context, input *GetCallerIdentityInput, opts ...request.Option) (*GetCallerIdentityOutput, error) + func (c *STS) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) + func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) + func (c *STS) GetFederationTokenWithContext(ctx aws.Context, input *GetFederationTokenInput, opts ...request.Option) (*GetFederationTokenOutput, error) + func (c *STS) GetSessionToken(input *GetSessionTokenInput) (*GetSessionTokenOutput, error) + func (c *STS) GetSessionTokenRequest(input *GetSessionTokenInput) (req *request.Request, output *GetSessionTokenOutput) + func (c *STS) GetSessionTokenWithContext(ctx aws.Context, input *GetSessionTokenInput, opts ...request.Option) (*GetSessionTokenOutput, error) + type Tag struct + Key *string + Value *string + func (s *Tag) SetKey(v string) *Tag + func (s *Tag) SetValue(v string) *Tag + func (s *Tag) Validate() error + func (s Tag) GoString() string + func (s Tag) String() string