Documentation
¶
Index ¶
- Variables
- type AWSProvider
- func (a *AWSProvider) GrantAccess(ctx context.Context, request *models.AccessRequest) error
- func (a *AWSProvider) IsAccessExpired(ctx context.Context, request *models.AccessRequest) (bool, error)
- func (a *AWSProvider) ListUsersWithAccess(ctx context.Context, roleRef models.AccessRoleRef) ([]string, error)
- func (a *AWSProvider) RevokeAccess(ctx context.Context, request *models.AccessRequest) error
- type AWSProviderParameters
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
Click to show internal directories.
Click to hide internal directories.