Documentation ¶
Index ¶
- Constants
- func AccountIdFromARN(input string) (string, error)
- func Convert[T any, R any](slice []T, f func(in T) R) []R
- func GrantID(entitlement *v2.Entitlement, principalId *v2.ResourceId) string
- func IsValidRoleARN(input string) error
- func MembershipEntitlementID(resource *v2.ResourceId) string
- func NormalizeAWSIdentityCenterSCIMUrl(u string) (string, error)
- func ResourceWithoutPath(resourceType string, input string) (string, error)
- func V1GrantID(entitlementID string, userID string) string
- func V1MembershipEntitlementID(resource *v2.ResourceId) string
- type AWS
- func (c *AWS) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)
- func (c *AWS) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (c *AWS) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
- func (c *AWS) SetupClients(ctx context.Context) error
- func (c *AWS) Validate(ctx context.Context) (annotations.Annotations, error)
- type Config
- type PermissionSetBinding
- type SCIMUser
- type SCIMUserAddress
- type SCIMUserEmail
Constants ¶
View Source
const ( AccountAssignmentMaxWaitDuration = 5 * time.Minute AccountAssignmentRetryDelay = 1 * time.Second )
View Source
const ( MembershipEntitlementIDTemplate = "%s:%s:member" V1MembershipEntitlementIDTemplate = "membership:%s" // The format of grant IDs follows: 'grant:principal-type:principal-id:entitlement'. GrantIDTemplate = "grant:%s:%s:%s" V1GrantIDTemplate = "grant:%s:%s" )
Variables ¶
This section is empty.
Functions ¶
func AccountIdFromARN ¶
func GrantID ¶
func GrantID(entitlement *v2.Entitlement, principalId *v2.ResourceId) string
func IsValidRoleARN ¶
func MembershipEntitlementID ¶
func MembershipEntitlementID(resource *v2.ResourceId) string
func NormalizeAWSIdentityCenterSCIMUrl ¶ added in v0.0.8
NormalizeAWSIdentityCenterSCIMUrl normalizes the AWS Identity Center SCIM URL. e.x. https://scim.<region>.amazonaws.com/aAaAaAaAaAa-bBbB-cCcC-dDdD-eEeEeEeEeEeE/scim/v2
func ResourceWithoutPath ¶
func V1MembershipEntitlementID ¶ added in v0.0.4
func V1MembershipEntitlementID(resource *v2.ResourceId) string
Types ¶
type AWS ¶
type AWS struct {
// contains filtered or unexported fields
}
func (*AWS) ResourceSyncers ¶
func (c *AWS) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
func (*AWS) Validate ¶
func (c *AWS) Validate(ctx context.Context) (annotations.Annotations, error)
type Config ¶
type Config struct { UseAssumeRole bool GlobalBindingExternalID string GlobalRegion string GlobalRoleARN string GlobalSecretAccessKey string GlobalAccessKeyID string GlobalAwsSsoRegion string GlobalAwsOrgsEnabled bool GlobalAwsSsoEnabled bool ExternalID string RoleARN string SCIMToken string SCIMEndpoint string SCIMEnabled bool }
type PermissionSetBinding ¶
func (*PermissionSetBinding) String ¶
func (psm *PermissionSetBinding) String() string
func (*PermissionSetBinding) UnmarshalText ¶
func (psm *PermissionSetBinding) UnmarshalText(data []byte) error
type SCIMUser ¶ added in v0.0.8
type SCIMUser struct { ID string `json:"id,omitempty"` Schemas []string `json:"schemas"` Username string `json:"userName"` Name struct { FamilyName string `json:"familyName"` GivenName string `json:"givenName"` } `json:"name"` DisplayName string `json:"displayName"` Active bool `json:"active"` Emails []SCIMUserEmail `json:"emails"` Addresses []SCIMUserAddress `json:"addresses"` }
SCIMUser is an AWS Identity Center SCIM User.
type SCIMUserAddress ¶ added in v0.0.8
type SCIMUserAddress struct {
Type string `json:"type"`
}
type SCIMUserEmail ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.