Documentation
¶
Index ¶
- func CreateHttpClientWithoutKeepAlive() *awsHttp.BuildableClient
- func GetAccounts(client *organizations.Client, parentId string) ([]orgTypes.Account, error)
- func GetAccountsWithProvisionedPermissionSet(client *ssoadmin.Client, instanceArn string, permissionSetArn string) ([]string, error)
- func GetAllAccountsFromOuRecursive(ctx context.Context, client *organizations.Client, parentId string) ([]orgTypes.Account, error)
- func GetAllOUsFromParent(ctx context.Context, client *organizations.Client, parentId string) ([]orgTypes.OrganizationalUnit, error)
- func GetAssignedForPermissionSetInAccount(client *ssoadmin.Client, ssoInstanceArn string, permissionSetArn string, ...) ([]types.AccountAssignment, error)
- func GetGroupMemberships(client *identitystore.Client, identityStoreArn string, groupId *string) ([]identityTypes.GroupMembership, error)
- func GetGroups(client *identitystore.Client, identityStoreArn string) ([]identityTypes.Group, error)
- func GetPermissionSets(client *ssoadmin.Client, instanceArn string) ([]string, error)
- func GetSsoRoles(accounts []SsoRoleMapping, roleName string) (map[string]SsoRoleMapping, error)
- func RemoveAccountPrefix(prefix string, val string) string
- type CapabilitySso
- type GetAccountsMissingCapabilityPermissionSetResponse
- type GetGroupsNotAssignedToAccountWithPermissionSetResponse
- type ManageSso
- func (m *ManageSso) GetAccountById(val string) *orgTypes.Account
- func (m *ManageSso) GetAccountByName(val string) *orgTypes.Account
- func (m *ManageSso) GetAccountsMissingCapabilityPermissionSet(client *ssoadmin.Client, ssoInstanceArn string, ...) ([]*GetAccountsMissingCapabilityPermissionSetResponse, error)
- func (m *ManageSso) GetGroupById(val string) *identityStoreTypes.Group
- func (m *ManageSso) GetGroupByName(val string) *identityStoreTypes.Group
- func (m *ManageSso) GetGroupsNotAssignedToAccountWithPermissionSet(client *ssoadmin.Client, ssoInstanceArn string, permissionSetArn string, ...) (*GetGroupsNotAssignedToAccountWithPermissionSetResponse, error)
- type ScimClient
- func (c *ScimClient) CreateGroup(data ScimCreateGroupRequest) error
- func (c *ScimClient) CreateUser(data ScimCreateUserRequest) error
- func (c *ScimClient) GetGroupViaDisplayName(name string) (*ScimGetGroupResponse, error)
- func (c *ScimClient) GetUserViaExternalId(id string) (*ScimGetUserResponse, error)
- func (c *ScimClient) PatchAddMembersToGroup(groupId string, members ...string) error
- func (c *ScimClient) PatchRemoveMembersFromGroup(groupId string, members ...string) error
- func (c *ScimClient) RemoveGroup(id string) error
- func (c *ScimClient) RemoveUser(id string) error
- type ScimCreateGroupRequest
- type ScimCreateUserRequest
- type ScimGetGroupResponse
- type ScimGetGroupsResponse
- type ScimGetUserResponse
- type ScimGetUsersResponse
- type ScimPatchMembersToGroupOperationRequest
- type ScimPatchMembersToGroupOperationValueRequest
- type ScimPatchMembersToGroupRequest
- type SsoRoleMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHttpClientWithoutKeepAlive ¶
func CreateHttpClientWithoutKeepAlive() *awsHttp.BuildableClient
func GetAccounts ¶
func GetAllAccountsFromOuRecursive ¶ added in v0.0.15
func GetAllOUsFromParent ¶ added in v0.0.15
func GetAllOUsFromParent(ctx context.Context, client *organizations.Client, parentId string) ([]orgTypes.OrganizationalUnit, error)
func GetGroupMemberships ¶
func GetGroupMemberships(client *identitystore.Client, identityStoreArn string, groupId *string) ([]identityTypes.GroupMembership, error)
func GetGroups ¶
func GetGroups(client *identitystore.Client, identityStoreArn string) ([]identityTypes.Group, error)
func GetPermissionSets ¶
func GetSsoRoles ¶
func GetSsoRoles(accounts []SsoRoleMapping, roleName string) (map[string]SsoRoleMapping, error)
func RemoveAccountPrefix ¶
Types ¶
type CapabilitySso ¶
type GetAccountsMissingCapabilityPermissionSetResponse ¶
type GetAccountsMissingCapabilityPermissionSetResponse struct { Account *orgTypes.Account Group *identityStoreTypes.Group }
type GetGroupsNotAssignedToAccountWithPermissionSetResponse ¶
type GetGroupsNotAssignedToAccountWithPermissionSetResponse struct { GroupsNotAssigned []*identityStoreTypes.Group GroupsAssigned []*identityStoreTypes.Group }
type ManageSso ¶
type ManageSso struct { AwsAccounts []*orgTypes.Account AwsSsoGroups []*identityStoreTypes.Group // contains filtered or unexported fields }
func InitManageSso ¶
func (*ManageSso) GetAccountByName ¶
func (*ManageSso) GetAccountsMissingCapabilityPermissionSet ¶
func (m *ManageSso) GetAccountsMissingCapabilityPermissionSet(client *ssoadmin.Client, ssoInstanceArn string, capabilityPermissionSetArn string, ssoGroupPrefix string, awsAccountPrefix string) ([]*GetAccountsMissingCapabilityPermissionSetResponse, error)
GetAccountsMissingCapabilityPermissionSet
func (*ManageSso) GetGroupById ¶
func (m *ManageSso) GetGroupById(val string) *identityStoreTypes.Group
func (*ManageSso) GetGroupByName ¶
func (m *ManageSso) GetGroupByName(val string) *identityStoreTypes.Group
func (*ManageSso) GetGroupsNotAssignedToAccountWithPermissionSet ¶
type ScimClient ¶ added in v0.0.11
type ScimClient struct {
// contains filtered or unexported fields
}
func CreateScimClient ¶ added in v0.0.11
func CreateScimClient(endpoint string, token string) *ScimClient
func (*ScimClient) CreateGroup ¶ added in v0.0.11
func (c *ScimClient) CreateGroup(data ScimCreateGroupRequest) error
func (*ScimClient) CreateUser ¶ added in v0.0.11
func (c *ScimClient) CreateUser(data ScimCreateUserRequest) error
func (*ScimClient) GetGroupViaDisplayName ¶ added in v0.0.11
func (c *ScimClient) GetGroupViaDisplayName(name string) (*ScimGetGroupResponse, error)
func (*ScimClient) GetUserViaExternalId ¶ added in v0.0.11
func (c *ScimClient) GetUserViaExternalId(id string) (*ScimGetUserResponse, error)
func (*ScimClient) PatchAddMembersToGroup ¶ added in v0.0.11
func (c *ScimClient) PatchAddMembersToGroup(groupId string, members ...string) error
func (*ScimClient) PatchRemoveMembersFromGroup ¶ added in v0.0.11
func (c *ScimClient) PatchRemoveMembersFromGroup(groupId string, members ...string) error
func (*ScimClient) RemoveGroup ¶ added in v0.0.11
func (c *ScimClient) RemoveGroup(id string) error
func (*ScimClient) RemoveUser ¶ added in v0.0.11
func (c *ScimClient) RemoveUser(id string) error
type ScimCreateGroupRequest ¶ added in v0.0.11
type ScimCreateUserRequest ¶ added in v0.0.11
type ScimGetGroupResponse ¶ added in v0.0.11
type ScimGetGroupResponse struct { ID string `json:"id"` ExternalID string `json:"externalId"` Meta struct { ResourceType string `json:"resourceType"` Created time.Time `json:"created"` LastModified time.Time `json:"lastModified"` } `json:"meta"` Schemas []string `json:"schemas"` DisplayName string `json:"displayName"` Members []interface{} `json:"members"` }
type ScimGetGroupsResponse ¶ added in v0.0.11
type ScimGetGroupsResponse struct { TotalResults int `json:"totalResults"` ItemsPerPage int `json:"itemsPerPage"` StartIndex int `json:"startIndex"` Schemas []string `json:"schemas"` Resources []*ScimGetGroupResponse `json:"Resources"` }
type ScimGetUserResponse ¶ added in v0.0.11
type ScimGetUserResponse struct { ID string `json:"id"` ExternalID string `json:"externalId"` Meta struct { ResourceType string `json:"resourceType"` Created time.Time `json:"created"` LastModified time.Time `json:"lastModified"` } `json:"meta"` Schemas []string `json:"schemas"` UserName string `json:"userName"` Name struct { Formatted string `json:"formatted"` FamilyName string `json:"familyName"` GivenName string `json:"givenName"` } `json:"name"` DisplayName string `json:"displayName"` Title string `json:"title"` Active bool `json:"active"` Emails []struct { Value string `json:"value"` Type string `json:"type"` Primary bool `json:"primary"` } `json:"emails"` Addresses []struct { StreetAddress string `json:"streetAddress"` Locality string `json:"locality"` PostalCode string `json:"postalCode"` Country string `json:"country"` Type string `json:"type"` Primary bool `json:"primary"` } `json:"addresses"` UrnIetfParamsScimSchemasExtensionEnterprise21User struct { EmployeeNumber string `json:"employeeNumber"` Department string `json:"department"` Manager struct { Value string `json:"value"` } `json:"manager"` } `json:"urn:ietf:params:scim:schemas:extension:enterprise:2.1:User"` }
type ScimGetUsersResponse ¶ added in v0.0.11
type ScimGetUsersResponse struct { TotalResults int `json:"totalResults"` ItemsPerPage int `json:"itemsPerPage"` StartIndex int `json:"startIndex"` Schemas []string `json:"schemas"` Resources []*ScimGetUserResponse `json:"Resources"` }
type ScimPatchMembersToGroupOperationRequest ¶ added in v0.0.11
type ScimPatchMembersToGroupOperationRequest struct { Op string `json:"op"` Path string `json:"path"` Value []ScimPatchMembersToGroupOperationValueRequest `json:"value"` }
type ScimPatchMembersToGroupOperationValueRequest ¶ added in v0.0.11
type ScimPatchMembersToGroupOperationValueRequest struct {
Value string `json:"value"`
}
type ScimPatchMembersToGroupRequest ¶ added in v0.0.11
type ScimPatchMembersToGroupRequest struct { Schemas []string `json:"schemas"` Operations []ScimPatchMembersToGroupOperationRequest `json:"Operations"` }
func NewScimPatchAddMembersToGroupRequest ¶ added in v0.0.11
func NewScimPatchAddMembersToGroupRequest(members ...string) ScimPatchMembersToGroupRequest
func NewScimPatchRemoveMembersToGroupRequest ¶ added in v0.0.11
func NewScimPatchRemoveMembersToGroupRequest(members ...string) ScimPatchMembersToGroupRequest
Click to show internal directories.
Click to hide internal directories.