aws

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = config.GetConfig()
View Source
var Tracer = otel.Tracer("pkg/providers/aws")

Functions

This section is empty.

Types

type AWSProvider

type AWSProvider struct {
	SSOAdminClient *ssoadmin.Client
	IdentityClient *identitystore.Client
	Parameters     AWSProviderParameters
	Name           string `json:"name"`
}

AWSProvider handles AWS Identity Center (SSO) group management

func NewAWSProvider

func NewAWSProvider(ctx context.Context, config models.ProviderConfig) (*AWSProvider, error)

NewAWSProvider initializes an AWSProvider with the given configuration

func (*AWSProvider) GrantAccess

func (a *AWSProvider) GrantAccess(ctx context.Context, request *models.AccessRequest) error

GrantAccess adds a user to an Identity Center group

func (*AWSProvider) IsAccessExpired

func (a *AWSProvider) IsAccessExpired(ctx context.Context, request *models.AccessRequest) (bool, error)

IsAccessExpired checks whether the access for the given request has expired

func (*AWSProvider) ListUsersWithAccess

func (a *AWSProvider) ListUsersWithAccess(ctx context.Context, roleRef models.AccessRoleRef) ([]string, error)

func (*AWSProvider) RevokeAccess

func (a *AWSProvider) RevokeAccess(ctx context.Context, request *models.AccessRequest) error

RevokeAccess removes a user from an Identity Center group

type AWSProviderParameters

type AWSProviderParameters struct {
	IdentityStoreID string `json:"identitystoreid"`
	InstanceARN     string `json:"instancearn"`
	Region          string `json:"region"`
	Group           string `json:"group"`
	Username        string `json:"username"`
}

AWSProviderParameters encapsulates provider configuration details

Jump to

Keyboard shortcuts

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