Documentation
¶
Index ¶
- func AuthenticateStandaloneAWSUser(ctx context.Context, identityName string, identities map[string]types.Identity) (types.ICredentials, error)
- func GetSupportedTaskPolicies() []string
- func IsStandaloneAWSUserChain(chain []string, identities map[string]schema.Identity) bool
- func IsSupportedTaskPolicy(arn string) bool
- func NewAssumeRoleIdentity(name string, config *schema.Identity) (types.Identity, error)
- func NewAssumeRootIdentity(name string, config *schema.Identity) (types.Identity, error)
- func NewPermissionSetIdentity(name string, config *schema.Identity) (types.Identity, error)
- func NewSTSClientWithCredentials(ctx context.Context, awsBase *types.AWSCredentials, region string, ...) (*sts.Client, string, error)
- func NewUserIdentity(name string, config *schema.Identity) (types.Identity, error)
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 ¶
IsStandaloneAWSUserChain checks if the authentication chain represents a standalone AWS user identity.
func IsSupportedTaskPolicy ¶ added in v1.203.0
IsSupportedTaskPolicy checks if a task policy ARN is in the list of known supported policies.
func NewAssumeRoleIdentity ¶
NewAssumeRoleIdentity creates a new AWS assume role identity.
func NewAssumeRootIdentity ¶ added in v1.203.0
NewAssumeRootIdentity creates a new AWS assume root identity.
func NewPermissionSetIdentity ¶
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.
Types ¶
This section is empty.