aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: GPL-3.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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