connector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const GrantIDTemplate = "grant:%s:%s:%s"

The format of grant IDs follows: 'grant:principal-type:principal-id:entitlement'.

View Source
const MembershipEntitlementIDTemplate = "%s:%s:member"

Variables

This section is empty.

Functions

func AccountIdFromARN

func AccountIdFromARN(input string) (string, error)

func Convert

func Convert[T any, R any](slice []T, f func(in T) R) []R

Convert accepts a list of T and returns a list of R based on the input func.

func GrantID

func GrantID(entitlement *v2.Entitlement, principalId *v2.ResourceId) string

func IsValidRoleARN

func IsValidRoleARN(input string) error

func MembershipEntitlementID

func MembershipEntitlementID(resource *v2.ResourceId) string

func ResourceWithoutPath

func ResourceWithoutPath(resourceType string, input string) (string, error)

func SsoUserResource

func SsoUserResource(ctx context.Context, user awsIdentityStoreTypes.User, region string, identityStoreId *string) (*v2.Resource, error)

Create a new connector resource for an aws sso user.

Types

type AWS

type AWS struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config Config) (*AWS, error)

func (*AWS) Asset

func (c *AWS) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)

func (*AWS) Metadata

func (c *AWS) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

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
}

type PermissionSetBinding

type PermissionSetBinding struct {
	AccountID       string
	PermissionSetId string
}

func (*PermissionSetBinding) String

func (psm *PermissionSetBinding) String() string

func (*PermissionSetBinding) UnmarshalText

func (psm *PermissionSetBinding) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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