aws

package
v1.201.0-test.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateStandaloneAWSUser

func AuthenticateStandaloneAWSUser(ctx context.Context, identityName string, identities map[string]types.Identity) (types.ICredentials, error)

AuthenticateStandaloneAWSUser handles authentication for standalone AWS user identities.

func GetSupportedTaskPolicies added in v1.203.0

func GetSupportedTaskPolicies() []string

GetSupportedTaskPolicies returns the list of supported AWS-managed root task policies.

func IsStandaloneAWSUserChain

func IsStandaloneAWSUserChain(chain []string, identities map[string]schema.Identity) bool

IsStandaloneAWSUserChain checks if the authentication chain represents a standalone AWS user identity.

func IsSupportedTaskPolicy added in v1.203.0

func IsSupportedTaskPolicy(arn string) bool

IsSupportedTaskPolicy checks if a task policy ARN is in the list of known supported policies.

func NewAssumeRoleIdentity

func NewAssumeRoleIdentity(name string, config *schema.Identity) (types.Identity, error)

NewAssumeRoleIdentity creates a new AWS assume role identity.

func NewAssumeRootIdentity added in v1.203.0

func NewAssumeRootIdentity(name string, config *schema.Identity) (types.Identity, error)

NewAssumeRootIdentity creates a new AWS assume root identity.

func NewPermissionSetIdentity

func NewPermissionSetIdentity(name string, config *schema.Identity) (types.Identity, error)

NewPermissionSetIdentity creates a new AWS permission set identity.

func NewSTSClientWithCredentials added in v1.203.0

func NewSTSClientWithCredentials(
	ctx context.Context,
	awsBase *types.AWSCredentials,
	region string,
	identityConfig *schema.Identity,
) (*sts.Client, string, error)

NewSTSClientWithCredentials creates an STS client using the provided credentials and region. This is a shared helper used by assume-role and assume-root identities.

func NewUserIdentity

func NewUserIdentity(name string, config *schema.Identity) (types.Identity, error)

NewUserIdentity creates a new AWS user identity.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL