Documentation
¶
Index ¶
- Variables
- type AccountCustomization
- type AccountSettings
- type AccountSubscription
- type ActionConnector
- type Agent
- type AgentAssociationUpdate
- type Analysis
- type ApplicableTo
- type ApprovalPolicy
- type AssetBundleExportJob
- type AssetBundleImportJob
- type AssociationFailure
- type AutomationJob
- type Brand
- type CustomPermissions
- type CustomPromptProfile
- type CustomSQL
- type Dashboard
- type DashboardSnapshotJob
- type DashboardVersion
- type DataSet
- type DataSetRefreshProperties
- type DataSource
- type DefaultQBusinessApplication
- type DlpSetting
- type FileSource
- type Flow
- type FlowStepAlias
- type Folder
- type FolderMember
- type FolderSearchFilter
- type Group
- type GroupMember
- type Handler
- func (h *Handler) ChaosOperations() []string
- func (h *Handler) ChaosRegions() []string
- func (h *Handler) ChaosServiceName() string
- func (h *Handler) ExtractOperation(c *echo.Context) string
- func (h *Handler) ExtractResource(c *echo.Context) string
- func (h *Handler) GetSupportedOperations() []string
- func (h *Handler) Handler() echo.HandlerFunc
- func (h *Handler) MatchPriority() int
- func (h *Handler) Name() string
- func (h *Handler) Register(_ context.Context, _ *echo.Echo) error
- func (h *Handler) Reset()
- func (h *Handler) Restore(ctx context.Context, data []byte) error
- func (h *Handler) RouteMatcher() service.Matcher
- func (h *Handler) Snapshot(ctx context.Context) []byte
- type IAMPolicyAssignment
- type IPRestriction
- type IdentityPropagationConfig
- type InMemoryBackend
- func (b *InMemoryBackend) AccountID() string
- func (b *InMemoryBackend) BatchCreateTopicReviewedAnswer(accountID, topicID string, answers []map[string]any) ([]*TopicReviewedAnswer, []TopicAnswerError, error)
- func (b *InMemoryBackend) BatchDeleteKnowledgeBase(accountID string, knowledgeBaseIDs []string) ([]KnowledgeBaseDeleteResult, []KnowledgeBaseDeleteError)
- func (b *InMemoryBackend) BatchDeleteTopicReviewedAnswer(accountID, topicID string, answerIDs []string) ([]string, []TopicAnswerError, error)
- func (b *InMemoryBackend) CancelIngestion(accountID, dataSetID, ingestionID string) error
- func (b *InMemoryBackend) CreateAccountCustomization(accountID, namespace, defaultTheme, defaultEmailCustomizationTemplate string) (*AccountCustomization, error)
- func (b *InMemoryBackend) CreateAccountSubscription(...) (*AccountSubscription, error)
- func (b *InMemoryBackend) CreateActionConnector(accountID, actionConnectorID, name, connectorType, description, ... string, ...) (*ActionConnector, error)
- func (b *InMemoryBackend) CreateAgent(...) (*Agent, error)
- func (b *InMemoryBackend) CreateAnalysis(accountID, analysisID, name, themeArn string, definition map[string]any, ...) (*Analysis, error)
- func (b *InMemoryBackend) CreateApprovalPolicy(policyID, name, description string, ...) (*ApprovalPolicy, error)
- func (b *InMemoryBackend) CreateBrand(accountID, brandID string, definition map[string]any, tags map[string]string) (*Brand, error)
- func (b *InMemoryBackend) CreateCustomPermissions(accountID, name string, capabilities map[string]any, tags map[string]string) (*CustomPermissions, error)
- func (b *InMemoryBackend) CreateDashboard(accountID, dashboardID, name, themeArn, versionDescription string, ...) (*Dashboard, error)
- func (b *InMemoryBackend) CreateDataSet(accountID, dataSetID, name, importMode string, ...) (*DataSet, *Ingestion, error)
- func (b *InMemoryBackend) CreateDataSource(accountID, dataSourceID, name, dsType string, permissions []ResourcePermission, ...) (*DataSource, error)
- func (b *InMemoryBackend) CreateDlpSetting(accountID, dlpSettingID, name string, enabled bool, ...) (*DlpSetting, error)
- func (b *InMemoryBackend) CreateFlow(_, name, description string, flowDefinition map[string]any, ...) (*Flow, error)
- func (b *InMemoryBackend) CreateFolder(accountID, folderID, name, folderType, parentFolderArn, sharingModel string, ...) (*Folder, error)
- func (b *InMemoryBackend) CreateFolderMembership(accountID, folderID, memberID, memberType string) (*FolderMember, error)
- func (b *InMemoryBackend) CreateGroup(accountID, namespace, groupName, description string) (*Group, error)
- func (b *InMemoryBackend) CreateGroupMembership(accountID, namespace, groupName, memberName string) (*GroupMember, error)
- func (b *InMemoryBackend) CreateIAMPolicyAssignment(accountID, namespace, assignmentName, assignmentStatus, policyArn string, ...) (*IAMPolicyAssignment, error)
- func (b *InMemoryBackend) CreateIngestion(accountID, dataSetID, ingestionID string) (*Ingestion, error)
- func (b *InMemoryBackend) CreateKnowledgeBase(...) (*KnowledgeBase, error)
- func (b *InMemoryBackend) CreateLimitsProfile(accountID, clientToken, profileName, description string, ...) (*LimitsProfile, error)
- func (b *InMemoryBackend) CreateNamespace(accountID, namespace, capacityRegion string, tags map[string]string) (*Namespace, error)
- func (b *InMemoryBackend) CreateOAuthClientApplication(accountID, clientID, name string, fields map[string]any, ...) (*OAuthClientApplication, error)
- func (b *InMemoryBackend) CreateRefreshSchedule(accountID, datasetID, scheduleID, refreshType string, ...) (*RefreshSchedule, error)
- func (b *InMemoryBackend) CreateRoleMembership(accountID, namespace, role, memberName string) error
- func (b *InMemoryBackend) CreateSpace(accountID, spaceID, name, description string) (*Space, error)
- func (b *InMemoryBackend) CreateTemplate(accountID, templateID, name, sourceEntityArn, versionDescription string, ...) (*Template, error)
- func (b *InMemoryBackend) CreateTemplateAlias(accountID, templateID, aliasName string, versionNumber int64) (*TemplateAlias, error)
- func (b *InMemoryBackend) CreateTheme(accountID, themeID, name, baseThemeID, versionDescription string, ...) (*Theme, error)
- func (b *InMemoryBackend) CreateThemeAlias(accountID, themeID, aliasName string, versionNumber int64) (*ThemeAlias, error)
- func (b *InMemoryBackend) CreateTopic(accountID, topicID, name, description, userExperienceVersion string, ...) (*Topic, error)
- func (b *InMemoryBackend) CreateTopicRefreshSchedule(accountID, topicID, datasetID, datasetArn, refreshType string, isEnabled bool, ...) (*TopicRefreshSchedule, error)
- func (b *InMemoryBackend) CreateTopicV2(accountID, topicID, name, description, customInstructions string, ...) (*Topic, error)
- func (b *InMemoryBackend) CreateVPCConnection(accountID, vpcConnectionID, name, vpcID string, ...) (*VPCConnection, error)
- func (b *InMemoryBackend) DeleteAccountCustomPermission(accountID string) error
- func (b *InMemoryBackend) DeleteAccountCustomization(accountID, namespace string) error
- func (b *InMemoryBackend) DeleteAccountSubscription(accountID string) error
- func (b *InMemoryBackend) DeleteActionConnector(accountID, actionConnectorID string) (*ActionConnector, error)
- func (b *InMemoryBackend) DeleteAgent(accountID, agentID string) error
- func (b *InMemoryBackend) DeleteAnalysis(accountID, analysisID string, forceDeleteWithoutRecovery bool, ...) (time.Time, error)
- func (b *InMemoryBackend) DeleteApprovalPolicy(policyID string) error
- func (b *InMemoryBackend) DeleteBrand(accountID, brandID string) error
- func (b *InMemoryBackend) DeleteBrandAssignment(accountID string) error
- func (b *InMemoryBackend) DeleteCustomPermissions(accountID, name string) (*CustomPermissions, error)
- func (b *InMemoryBackend) DeleteDashboard(accountID, dashboardID string, versionNumber int64) error
- func (b *InMemoryBackend) DeleteDataSet(accountID, dataSetID string) error
- func (b *InMemoryBackend) DeleteDataSetRefreshProperties(accountID, datasetID string) error
- func (b *InMemoryBackend) DeleteDataSource(accountID, dataSourceID string) error
- func (b *InMemoryBackend) DeleteDefaultQBusinessApplication(accountID, _ string) error
- func (b *InMemoryBackend) DeleteDlpSetting(accountID, dlpSettingID string) (string, error)
- func (b *InMemoryBackend) DeleteFlow(accountID, flowID string) error
- func (b *InMemoryBackend) DeleteFolder(accountID, folderID string) error
- func (b *InMemoryBackend) DeleteFolderMembership(accountID, folderID, memberID, memberType string) error
- func (b *InMemoryBackend) DeleteGroup(accountID, namespace, groupName string) error
- func (b *InMemoryBackend) DeleteGroupMembership(accountID, namespace, groupName, memberName string) error
- func (b *InMemoryBackend) DeleteIAMPolicyAssignment(accountID, namespace, assignmentName string) error
- func (b *InMemoryBackend) DeleteIdentityPropagationConfig(accountID, service string) error
- func (b *InMemoryBackend) DeleteKnowledgeBase(accountID, knowledgeBaseID string) (*KnowledgeBase, error)
- func (b *InMemoryBackend) DeleteLimitsProfile(accountID, profileID string) (string, error)
- func (b *InMemoryBackend) DeleteNamespace(accountID, namespace string) error
- func (b *InMemoryBackend) DeleteOAuthClientApplication(accountID, clientID string) (*OAuthClientApplication, error)
- func (b *InMemoryBackend) DeleteRefreshSchedule(accountID, datasetID, scheduleID string) (*RefreshSchedule, error)
- func (b *InMemoryBackend) DeleteRoleCustomPermission(accountID, namespace, role string) error
- func (b *InMemoryBackend) DeleteRoleMembership(accountID, namespace, role, memberName string) error
- func (b *InMemoryBackend) DeleteSpace(accountID, spaceID string) (*Space, error)
- func (b *InMemoryBackend) DeleteTemplate(accountID, templateID string, versionNumber int64) error
- func (b *InMemoryBackend) DeleteTemplateAlias(accountID, templateID, aliasName string) error
- func (b *InMemoryBackend) DeleteTheme(accountID, themeID string, versionNumber int64) error
- func (b *InMemoryBackend) DeleteThemeAlias(accountID, themeID, aliasName string) error
- func (b *InMemoryBackend) DeleteTopic(accountID, topicID string) error
- func (b *InMemoryBackend) DeleteTopicRefreshSchedule(accountID, topicID, datasetID string) (*TopicRefreshSchedule, error)
- func (b *InMemoryBackend) DeleteUser(accountID, namespace, userName string) error
- func (b *InMemoryBackend) DeleteUserByPrincipalID(accountID, namespace, principalID string) error
- func (b *InMemoryBackend) DeleteUserCustomPermission(accountID, namespace, userName string) error
- func (b *InMemoryBackend) DeleteVPCConnection(accountID, vpcConnectionID string) (*VPCConnection, error)
- func (b *InMemoryBackend) DescribeAccountCustomPermission(accountID string) (string, error)
- func (b *InMemoryBackend) DescribeAccountCustomization(accountID, namespace string, resolved bool) (*AccountCustomization, error)
- func (b *InMemoryBackend) DescribeAccountSettings(accountID string) (*AccountSettings, error)
- func (b *InMemoryBackend) DescribeAccountSubscription(accountID string) (*AccountSubscription, error)
- func (b *InMemoryBackend) DescribeActionConnector(accountID, actionConnectorID string) (*ActionConnector, error)
- func (b *InMemoryBackend) DescribeActionConnectorPermissions(accountID, actionConnectorID string) (*ActionConnector, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeAgent(accountID, agentID string) (*Agent, error)
- func (b *InMemoryBackend) DescribeAgentPermissions(accountID, agentID string) (*Agent, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeAnalysis(accountID, analysisID string) (*Analysis, error)
- func (b *InMemoryBackend) DescribeAnalysisPermissions(accountID, analysisID string) (*Analysis, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeApprovalPolicy(policyID string) (*ApprovalPolicy, error)
- func (b *InMemoryBackend) DescribeAssetBundleExportJob(accountID, jobID string) (*AssetBundleExportJob, error)
- func (b *InMemoryBackend) DescribeAssetBundleImportJob(accountID, jobID string) (*AssetBundleImportJob, error)
- func (b *InMemoryBackend) DescribeAutomationJob(accountID, automationGroupID, automationID, jobID string) (*AutomationJob, error)
- func (b *InMemoryBackend) DescribeBrand(accountID, brandID, versionID string) (*Brand, error)
- func (b *InMemoryBackend) DescribeBrandAssignment(accountID string) (string, error)
- func (b *InMemoryBackend) DescribeBrandPublishedVersion(accountID, brandID string) (*Brand, error)
- func (b *InMemoryBackend) DescribeCustomPermissions(accountID, name string) (*CustomPermissions, error)
- func (b *InMemoryBackend) DescribeDashboard(accountID, dashboardID string) (*Dashboard, error)
- func (b *InMemoryBackend) DescribeDashboardPermissions(accountID, dashboardID string) (*Dashboard, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeDashboardSnapshotJob(accountID, dashboardID, jobID string) (*DashboardSnapshotJob, error)
- func (b *InMemoryBackend) DescribeDashboardSnapshotJobResult(accountID, dashboardID, jobID string) (*DashboardSnapshotJob, error)
- func (b *InMemoryBackend) DescribeDashboardsQAConfiguration(accountID string) (string, error)
- func (b *InMemoryBackend) DescribeDataSet(accountID, dataSetID string) (*DataSet, error)
- func (b *InMemoryBackend) DescribeDataSetPermissions(accountID, dataSetID string) (*DataSet, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeDataSetRefreshProperties(accountID, datasetID string) (*DataSetRefreshProperties, error)
- func (b *InMemoryBackend) DescribeDataSource(accountID, dataSourceID string) (*DataSource, error)
- func (b *InMemoryBackend) DescribeDataSourcePermissions(accountID, dataSourceID string) (*DataSource, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeDefaultQBusinessApplication(accountID, _ string) (*DefaultQBusinessApplication, error)
- func (b *InMemoryBackend) DescribeDlpSetting(accountID, dlpSettingID string) (*DlpSetting, error)
- func (b *InMemoryBackend) DescribeFlow(accountID, flowID string) (*Flow, error)
- func (b *InMemoryBackend) DescribeFolder(accountID, folderID string) (*Folder, error)
- func (b *InMemoryBackend) DescribeFolderPermissions(accountID, folderID string) ([]ResourcePermission, error)
- func (b *InMemoryBackend) DescribeFolderResolvedPermissions(accountID, folderID string) ([]ResourcePermission, error)
- func (b *InMemoryBackend) DescribeGroup(accountID, namespace, groupName string) (*Group, error)
- func (b *InMemoryBackend) DescribeGroupMembership(accountID, namespace, groupName, memberName string) (*GroupMember, error)
- func (b *InMemoryBackend) DescribeIAMPolicyAssignment(accountID, namespace, assignmentName string) (*IAMPolicyAssignment, error)
- func (b *InMemoryBackend) DescribeIPRestriction(accountID string) (*IPRestriction, error)
- func (b *InMemoryBackend) DescribeIngestion(accountID, dataSetID, ingestionID string) (*Ingestion, error)
- func (b *InMemoryBackend) DescribeKeyRegistration(accountID string, defaultKeyOnly bool) ([]RegisteredCustomerManagedKey, error)
- func (b *InMemoryBackend) DescribeKnowledgeBase(accountID, knowledgeBaseID string) (*KnowledgeBase, error)
- func (b *InMemoryBackend) DescribeKnowledgeBasePermissions(accountID, knowledgeBaseID string) (*KnowledgeBase, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeLimitsProfile(accountID, profileID string) (*LimitsProfile, error)
- func (b *InMemoryBackend) DescribeNamespace(accountID, namespace string) (*Namespace, error)
- func (b *InMemoryBackend) DescribeOAuthClientApplication(accountID, clientID string) (*OAuthClientApplication, error)
- func (b *InMemoryBackend) DescribeQPersonalizationConfiguration(accountID string) (string, error)
- func (b *InMemoryBackend) DescribeQuickSightQSearchConfiguration(accountID string) (string, error)
- func (b *InMemoryBackend) DescribeRefreshSchedule(accountID, datasetID, scheduleID string) (*RefreshSchedule, error)
- func (b *InMemoryBackend) DescribeRoleCustomPermission(accountID, namespace, role string) (string, error)
- func (b *InMemoryBackend) DescribeSelfUpgradeConfiguration(accountID, namespace string) (string, error)
- func (b *InMemoryBackend) DescribeSpace(accountID, spaceID string) (*Space, error)
- func (b *InMemoryBackend) DescribeSpacePermissions(accountID, spaceID string) (*Space, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeTemplate(accountID, templateID string, versionNumber int64) (*Template, error)
- func (b *InMemoryBackend) DescribeTemplateAlias(accountID, templateID, aliasName string) (*TemplateAlias, error)
- func (b *InMemoryBackend) DescribeTemplatePermissions(accountID, templateID string) (*Template, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeTheme(accountID, themeID string, versionNumber int64) (*Theme, error)
- func (b *InMemoryBackend) DescribeThemeAlias(accountID, themeID, aliasName string) (*ThemeAlias, error)
- func (b *InMemoryBackend) DescribeThemePermissions(accountID, themeID string) (*Theme, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeTopic(accountID, topicID string) (*Topic, error)
- func (b *InMemoryBackend) DescribeTopicPermissions(accountID, topicID string) (*Topic, []ResourcePermission, error)
- func (b *InMemoryBackend) DescribeTopicRefresh(accountID, topicID, refreshID string) (*TopicRefreshDetails, error)
- func (b *InMemoryBackend) DescribeTopicRefreshSchedule(accountID, topicID, datasetID string) (*TopicRefreshSchedule, error)
- func (b *InMemoryBackend) DescribeUser(accountID, namespace, userName string) (*User, error)
- func (b *InMemoryBackend) DescribeVPCConnection(accountID, vpcConnectionID string) (*VPCConnection, error)
- func (b *InMemoryBackend) GenerateEmbedURLForAnonymousUser(accountID, namespace string, authorizedResourceArns []string, ...) (string, string, error)
- func (b *InMemoryBackend) GenerateEmbedURLForRegisteredUser(accountID, userArn string, experienceConfiguration map[string]any) (string, error)
- func (b *InMemoryBackend) GenerateEmbedURLForRegisteredUserWithIdentity(_ string, experienceConfiguration map[string]any) (string, error)
- func (b *InMemoryBackend) GenerateIdentityContext(...) (string, error)
- func (b *InMemoryBackend) GetDashboardEmbedURL(accountID, dashboardID, identityType, namespace string) (string, error)
- func (b *InMemoryBackend) GetFlowMetadata(accountID, flowID string) (*Flow, error)
- func (b *InMemoryBackend) GetFlowPermissions(accountID, flowID string) (*Flow, []ResourcePermission, error)
- func (b *InMemoryBackend) GetSessionEmbedURL(_, entryPoint string) (string, error)
- func (b *InMemoryBackend) ListActionConnectors(_ string, maxResults int32, nextToken string) ([]*ActionConnector, string, error)
- func (b *InMemoryBackend) ListAgents(_ string, maxResults int32, nextToken string) ([]*Agent, string, error)
- func (b *InMemoryBackend) ListAnalyses(_ string, maxResults int32, nextToken string) ([]*Analysis, string, error)
- func (b *InMemoryBackend) ListApprovalPolicies(maxResults int32, nextToken string) ([]*ApprovalPolicy, string, error)
- func (b *InMemoryBackend) ListAssetBundleExportJobs(_ string, maxResults int32, nextToken string) ([]*AssetBundleExportJob, string, error)
- func (b *InMemoryBackend) ListAssetBundleImportJobs(_ string, maxResults int32, nextToken string) ([]*AssetBundleImportJob, string, error)
- func (b *InMemoryBackend) ListBrands(_ string, maxResults int32, nextToken string) ([]*Brand, string, error)
- func (b *InMemoryBackend) ListCustomPermissions(_ string, maxResults int32, nextToken string) ([]*CustomPermissions, string, error)
- func (b *InMemoryBackend) ListDashboardVersions(accountID, dashboardID string, maxResults int32, nextToken string) ([]*DashboardVersion, string, error)
- func (b *InMemoryBackend) ListDashboards(_ string, maxResults int32, nextToken string) ([]*Dashboard, string, error)
- func (b *InMemoryBackend) ListDataSets(_ string, maxResults int32, nextToken string) ([]*DataSet, string, error)
- func (b *InMemoryBackend) ListDataSources(_ string, maxResults int32, nextToken string) ([]*DataSource, string, error)
- func (b *InMemoryBackend) ListDlpSettings(_ string, maxResults int32, nextToken string) ([]*DlpSetting, string, error)
- func (b *InMemoryBackend) ListFlows(_ string, maxResults int32, nextToken string) ([]*Flow, string, error)
- func (b *InMemoryBackend) ListFolderMembers(accountID, folderID string, maxResults int32, nextToken string) ([]*FolderMember, string, error)
- func (b *InMemoryBackend) ListFolders(accountID string, maxResults int32, nextToken string) ([]*Folder, string, error)
- func (b *InMemoryBackend) ListFoldersForResource(accountID, resourceArn string, maxResults int32, nextToken string) ([]string, string, error)
- func (b *InMemoryBackend) ListGroupMemberships(accountID, namespace, groupName string, maxResults int32, nextToken string) ([]*GroupMember, string, error)
- func (b *InMemoryBackend) ListGroups(_, namespace string, maxResults int32, nextToken string) ([]*Group, string, error)
- func (b *InMemoryBackend) ListIAMPolicyAssignments(accountID, namespace, statusFilter string, maxResults int32, nextToken string) ([]*IAMPolicyAssignment, string, error)
- func (b *InMemoryBackend) ListIAMPolicyAssignmentsForUser(accountID, namespace, userName string, maxResults int32, nextToken string) ([]*IAMPolicyAssignment, string, error)
- func (b *InMemoryBackend) ListIdentityPropagationConfigs(_ string) ([]*IdentityPropagationConfig, error)
- func (b *InMemoryBackend) ListIngestions(_, dataSetID string, maxResults int32, nextToken string) ([]*Ingestion, string, error)
- func (b *InMemoryBackend) ListKnowledgeBases(_ string, maxResults int32, nextToken string) ([]*KnowledgeBase, string, error)
- func (b *InMemoryBackend) ListLimitsProfiles(accountID, resourceType string, maxResults int32, nextToken string) ([]*LimitsProfile, string, error)
- func (b *InMemoryBackend) ListNamespaces(_ string, maxResults int32, nextToken string) ([]*Namespace, string, error)
- func (b *InMemoryBackend) ListOAuthClientApplications(_ string, maxResults int32, nextToken string) ([]*OAuthClientApplication, string, error)
- func (b *InMemoryBackend) ListRefreshSchedules(accountID, datasetID string) ([]*RefreshSchedule, error)
- func (b *InMemoryBackend) ListRoleMemberships(accountID, namespace, role string, maxResults int32, nextToken string) ([]string, string, error)
- func (b *InMemoryBackend) ListSelfUpgrades(accountID, namespace string, maxResults int32, nextToken string) ([]*SelfUpgradeRequestDetail, string, error)
- func (b *InMemoryBackend) ListSpaceResources(accountID, spaceID string) ([]SpaceResource, error)
- func (b *InMemoryBackend) ListSpaces(_ string, maxResults int32, nextToken string) ([]*Space, string, error)
- func (b *InMemoryBackend) ListTagsForResource(resourceARN string) (map[string]string, error)
- func (b *InMemoryBackend) ListTemplateAliases(accountID, templateID string, maxResults int32, nextToken string) ([]*TemplateAlias, string, error)
- func (b *InMemoryBackend) ListTemplateVersions(accountID, templateID string, maxResults int32, nextToken string) ([]*TemplateVersion, string, error)
- func (b *InMemoryBackend) ListTemplates(accountID string, maxResults int32, nextToken string) ([]*Template, string, error)
- func (b *InMemoryBackend) ListThemeAliases(accountID, themeID string, maxResults int32, nextToken string) ([]*ThemeAlias, string, error)
- func (b *InMemoryBackend) ListThemeVersions(accountID, themeID string, maxResults int32, nextToken string) ([]*ThemeVersion, string, error)
- func (b *InMemoryBackend) ListThemes(accountID, themeType string, maxResults int32, nextToken string) ([]*Theme, string, error)
- func (b *InMemoryBackend) ListTopicRefreshSchedules(accountID, topicID string) ([]*TopicRefreshSchedule, error)
- func (b *InMemoryBackend) ListTopicReviewedAnswers(accountID, topicID string) ([]*TopicReviewedAnswer, error)
- func (b *InMemoryBackend) ListTopics(accountID string, maxResults int32, nextToken string) ([]*Topic, string, error)
- func (b *InMemoryBackend) ListUserGroups(accountID, namespace, userName string, maxResults int32, nextToken string) ([]*Group, string, error)
- func (b *InMemoryBackend) ListUsers(accountID, namespace string, maxResults int32, nextToken string) ([]*User, string, error)
- func (b *InMemoryBackend) ListUsersIndexCapacity(_, namespace string, query UserIndexCapacityQuery, maxResults int32, ...) ([]UserIndexCapacity, string, error)
- func (b *InMemoryBackend) ListVPCConnections(_ string, maxResults int32, nextToken string) ([]*VPCConnection, string, error)
- func (b *InMemoryBackend) PredictQAResults(accountID, queryText string) (*QAResult, error)
- func (b *InMemoryBackend) PutDataSetRefreshProperties(accountID, datasetID string, ...) (*DataSetRefreshProperties, error)
- func (b *InMemoryBackend) Region() string
- func (b *InMemoryBackend) RegisterUser(...) (*User, error)
- func (b *InMemoryBackend) Reset()
- func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error
- func (b *InMemoryBackend) RestoreAnalysis(accountID, analysisID string) (*Analysis, error)
- func (b *InMemoryBackend) SearchActionConnectors(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*ActionConnector, string, error)
- func (b *InMemoryBackend) SearchAgents(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*Agent, string, error)
- func (b *InMemoryBackend) SearchAnalyses(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*Analysis, string, error)
- func (b *InMemoryBackend) SearchDashboards(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*Dashboard, string, error)
- func (b *InMemoryBackend) SearchDataSets(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*DataSet, string, error)
- func (b *InMemoryBackend) SearchDataSources(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*DataSource, string, error)
- func (b *InMemoryBackend) SearchFlows(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*Flow, string, error)
- func (b *InMemoryBackend) SearchFolders(accountID string, filters []FolderSearchFilter, maxResults int32, ...) ([]*Folder, string, error)
- func (b *InMemoryBackend) SearchGroups(_, namespace string, filters []SearchFilter, maxResults int32, ...) ([]*Group, string, error)
- func (b *InMemoryBackend) SearchKnowledgeBases(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*KnowledgeBase, string, error)
- func (b *InMemoryBackend) SearchSpaces(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*Space, string, error)
- func (b *InMemoryBackend) SearchTopics(_ string, filters []SearchFilter, maxResults int32, nextToken string) ([]*Topic, string, error)
- func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte
- func (b *InMemoryBackend) StartAssetBundleExportJob(_, jobID, exportFormat, includeFolderMembers string, resourceArns []string, ...) (*AssetBundleExportJob, error)
- func (b *InMemoryBackend) StartAssetBundleImportJob(_, jobID, failureAction string) (*AssetBundleImportJob, error)
- func (b *InMemoryBackend) StartAutomationJob(_, automationGroupID, automationID, inputPayload string) (*AutomationJob, error)
- func (b *InMemoryBackend) StartDashboardSnapshotJob(accountID, dashboardID, jobID string, snapshotConfiguration map[string]any) (*DashboardSnapshotJob, error)
- func (b *InMemoryBackend) StartDashboardSnapshotJobSchedule(accountID, dashboardID, scheduleID string) error
- func (b *InMemoryBackend) TagResource(resourceARN string, tags map[string]string) error
- func (b *InMemoryBackend) UntagResource(resourceARN string, tagKeys []string) error
- func (b *InMemoryBackend) UpdateAccountCustomPermission(accountID, customPermissionsName string) error
- func (b *InMemoryBackend) UpdateAccountCustomization(accountID, namespace, defaultTheme, defaultEmailCustomizationTemplate string) (*AccountCustomization, error)
- func (b *InMemoryBackend) UpdateAccountSettings(accountID, defaultNS, notificationEmail string, ...) (*AccountSettings, error)
- func (b *InMemoryBackend) UpdateActionConnector(accountID, actionConnectorID, name, description, vpcConnectionArn string, ...) (*ActionConnector, error)
- func (b *InMemoryBackend) UpdateActionConnectorPermissions(accountID, actionConnectorID string, grant, revoke []ResourcePermission) (*ActionConnector, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateAgent(accountID, agentID, name, description, iconID, welcomeMessage string, ...) (*Agent, *AgentAssociationUpdate, error)
- func (b *InMemoryBackend) UpdateAgentPermissions(accountID, agentID string, grant, revoke []ResourcePermission) (*Agent, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateAnalysis(accountID, analysisID, name, themeArn string, definition map[string]any) (*Analysis, error)
- func (b *InMemoryBackend) UpdateAnalysisPermissions(accountID, analysisID string, grant, revoke []ResourcePermission) (*Analysis, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateApprovalPolicy(policyID, name, description string, ...) (*ApprovalPolicy, error)
- func (b *InMemoryBackend) UpdateBrand(accountID, brandID string, definition map[string]any) (*Brand, error)
- func (b *InMemoryBackend) UpdateBrandAssignment(accountID, brandArn string) (string, error)
- func (b *InMemoryBackend) UpdateBrandPublishedVersion(accountID, brandID, versionID string) error
- func (b *InMemoryBackend) UpdateCustomPermissions(accountID, name string, capabilities, governance map[string]any) (*CustomPermissions, error)
- func (b *InMemoryBackend) UpdateDashboard(accountID, dashboardID, name, themeArn, versionDescription string, ...) (*Dashboard, error)
- func (b *InMemoryBackend) UpdateDashboardLinks(accountID, dashboardID string, linkEntities []string) (*Dashboard, error)
- func (b *InMemoryBackend) UpdateDashboardPermissions(accountID, dashboardID string, ...) (*Dashboard, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateDashboardPublishedVersion(accountID, dashboardID string, versionNumber int64) (*Dashboard, error)
- func (b *InMemoryBackend) UpdateDashboardsQAConfiguration(accountID, status string) (string, error)
- func (b *InMemoryBackend) UpdateDataSet(accountID, dataSetID, name, importMode string, ...) (*DataSet, *Ingestion, error)
- func (b *InMemoryBackend) UpdateDataSetPermissions(accountID, dataSetID string, grant, revoke []ResourcePermission) (*DataSet, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateDataSource(accountID, dataSourceID, name string) (*DataSource, error)
- func (b *InMemoryBackend) UpdateDataSourcePermissions(accountID, dataSourceID string, grant, revoke []ResourcePermission) (*DataSource, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateDefaultQBusinessApplication(accountID, applicationID, namespace string) (*DefaultQBusinessApplication, error)
- func (b *InMemoryBackend) UpdateDlpSetting(accountID, dlpSettingID, name string, enabled *bool, ...) (*DlpSetting, error)
- func (b *InMemoryBackend) UpdateFlow(accountID, flowID, name, description string, flowDefinition map[string]any) (*Flow, error)
- func (b *InMemoryBackend) UpdateFlowPermissions(accountID, flowID string, grant, revoke []ResourcePermission) (*Flow, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateFolder(accountID, folderID, name string) (*Folder, error)
- func (b *InMemoryBackend) UpdateFolderPermissions(accountID, folderID string, grant, revoke []ResourcePermission) ([]ResourcePermission, error)
- func (b *InMemoryBackend) UpdateGroup(accountID, namespace, groupName, description string) (*Group, error)
- func (b *InMemoryBackend) UpdateIAMPolicyAssignment(accountID, namespace, assignmentName, assignmentStatus, policyArn string, ...) (*IAMPolicyAssignment, error)
- func (b *InMemoryBackend) UpdateIPRestriction(accountID string, ...) (*IPRestriction, error)
- func (b *InMemoryBackend) UpdateIdentityPropagationConfig(_, service string, authorizedTargets []string) error
- func (b *InMemoryBackend) UpdateKeyRegistration(accountID string, keys []RegisteredCustomerManagedKey) ([]RegisteredCustomerManagedKey, error)
- func (b *InMemoryBackend) UpdateKnowledgeBase(accountID, knowledgeBaseID, name, description string, ...) (*KnowledgeBase, error)
- func (b *InMemoryBackend) UpdateKnowledgeBasePermissions(accountID, knowledgeBaseID string, grant, revoke []ResourcePermission) (*KnowledgeBase, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateLimitsProfile(accountID, profileID, profileName, description string, ...) (*LimitsProfile, error)
- func (b *InMemoryBackend) UpdateOAuthClientApplication(accountID, clientID, name string, fields map[string]any) (*OAuthClientApplication, error)
- func (b *InMemoryBackend) UpdatePublicSharingSettings(accountID string, enabled bool) error
- func (b *InMemoryBackend) UpdateQPersonalizationConfiguration(accountID, mode string) (string, error)
- func (b *InMemoryBackend) UpdateQuickSightQSearchConfiguration(accountID, status string) (string, error)
- func (b *InMemoryBackend) UpdateRefreshSchedule(accountID, datasetID, scheduleID, refreshType string, ...) (*RefreshSchedule, error)
- func (b *InMemoryBackend) UpdateRoleCustomPermission(accountID, namespace, role, customPermissionsName string) error
- func (b *InMemoryBackend) UpdateSPICECapacityConfiguration(accountID, purchaseMode string) error
- func (b *InMemoryBackend) UpdateSelfUpgrade(accountID, namespace, action, upgradeRequestID string) (*SelfUpgradeRequestDetail, error)
- func (b *InMemoryBackend) UpdateSelfUpgradeConfiguration(accountID, namespace, status string) (string, error)
- func (b *InMemoryBackend) UpdateSpace(accountID, spaceID, name, description string) (*Space, error)
- func (b *InMemoryBackend) UpdateSpacePermissions(accountID, spaceID string, grant, revoke []ResourcePermission) (*Space, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateSpaceResources(accountID, spaceID string, add, remove []SpaceResource) (*Space, []AssociationFailure, error)
- func (b *InMemoryBackend) UpdateTemplate(accountID, templateID, name, sourceEntityArn, versionDescription string, ...) (*Template, error)
- func (b *InMemoryBackend) UpdateTemplateAlias(accountID, templateID, aliasName string, versionNumber int64) (*TemplateAlias, error)
- func (b *InMemoryBackend) UpdateTemplatePermissions(accountID, templateID string, grant, revoke []ResourcePermission) (*Template, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateTheme(accountID, themeID, name, baseThemeID, versionDescription string, ...) (*Theme, error)
- func (b *InMemoryBackend) UpdateThemeAlias(accountID, themeID, aliasName string, versionNumber int64) (*ThemeAlias, error)
- func (b *InMemoryBackend) UpdateThemePermissions(accountID, themeID string, grant, revoke []ResourcePermission) (*Theme, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateTopic(accountID, topicID, name, description, userExperienceVersion string, ...) (*Topic, error)
- func (b *InMemoryBackend) UpdateTopicPermissions(accountID, topicID string, grant, revoke []ResourcePermission) (*Topic, []ResourcePermission, error)
- func (b *InMemoryBackend) UpdateTopicRefreshSchedule(accountID, topicID, datasetID, refreshType string, isEnabled *bool, ...) (*TopicRefreshSchedule, error)
- func (b *InMemoryBackend) UpdateTopicV2(...) (*Topic, error)
- func (b *InMemoryBackend) UpdateUser(accountID, namespace, userName, email, role, customPermissionsName string) (*User, error)
- func (b *InMemoryBackend) UpdateUserCustomPermission(accountID, namespace, userName, customPermissionsName string) error
- func (b *InMemoryBackend) UpdateVPCConnection(accountID, vpcConnectionID, name string, ...) (*VPCConnection, error)
- type Ingestion
- type InputColumn
- type JoinInstruction
- type KnowledgeBase
- type KnowledgeBaseDeleteError
- type KnowledgeBaseDeleteResult
- type LabelActionMapping
- type LimitsProfile
- type LogicalTable
- type LogicalTableSource
- type MicrosoftPurviewProviderConfig
- type Namespace
- type OAuthClientApplication
- type PhysicalTable
- type ProfileLimitValue
- type Provider
- type ProviderConfig
- type QAResult
- type RefreshSchedule
- type RegisteredCustomerManagedKey
- type RelationalTable
- type ResourcePermission
- type S3Source
- type SaaSTable
- type SearchFilter
- type SelfUpgradeRequestDetail
- type Space
- type SpaceResource
- type StorageBackend
- type TablePathElement
- type Template
- type TemplateAlias
- type TemplateVersion
- type Theme
- type ThemeAlias
- type ThemeVersion
- type Topic
- type TopicAnswerError
- type TopicRefreshDetails
- type TopicRefreshSchedule
- type TopicReviewedAnswer
- type UploadSettings
- type User
- type UserIndexCapacity
- type UserIndexCapacityQuery
- type VPCConnection
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNamespaceNotFound is returned when a namespace does not exist. ErrNamespaceNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrNamespaceAlreadyExists is returned when a namespace already exists. ErrNamespaceAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrGroupNotFound is returned when a group does not exist. ErrGroupNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrGroupAlreadyExists is returned when a group already exists. ErrGroupAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrGroupMemberNotFound is returned when a group member does not exist. ErrGroupMemberNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrGroupMemberAlreadyExists is returned when a group member already exists. ErrGroupMemberAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrUserNotFound is returned when a user does not exist. ErrUserNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrUserAlreadyExists is returned when a user already exists. ErrUserAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrDataSourceNotFound is returned when a data source does not exist. ErrDataSourceNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDataSourceAlreadyExists is returned when a data source already exists. ErrDataSourceAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrDataSetNotFound is returned when a dataset does not exist. ErrDataSetNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDataSetAlreadyExists is returned when a dataset already exists. ErrDataSetAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrIngestionNotFound is returned when an ingestion does not exist. ErrIngestionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrIngestionAlreadyExists is returned when an ingestion already exists. ErrIngestionAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrDashboardNotFound is returned when a dashboard does not exist. ErrDashboardNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDashboardAlreadyExists is returned when a dashboard already exists. ErrDashboardAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrAnalysisNotFound is returned when an analysis does not exist. ErrAnalysisNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrAnalysisAlreadyExists is returned when an analysis already exists. ErrAnalysisAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrFolderNotFound is returned when a folder does not exist. ErrFolderNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrFolderAlreadyExists is returned when a folder already exists. ErrFolderAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrFolderMemberNotFound is returned when a folder membership does not exist. ErrFolderMemberNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrTemplateNotFound is returned when a template (or template version) does not exist. ErrTemplateNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrTemplateAlreadyExists is returned when a template already exists. ErrTemplateAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrTemplateAliasNotFound is returned when a template alias does not exist. ErrTemplateAliasNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrTemplateAliasAlreadyExists is returned when a template alias already exists. ErrTemplateAliasAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrThemeNotFound is returned when a theme (or theme version) does not exist. ErrThemeNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrThemeAlreadyExists is returned when a theme already exists. ErrThemeAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrThemeAliasNotFound is returned when a theme alias does not exist. ErrThemeAliasNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrThemeAliasAlreadyExists is returned when a theme alias already exists. ErrThemeAliasAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrTopicNotFound is returned when a topic does not exist. ErrTopicNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrTopicAlreadyExists is returned when a topic already exists. ErrTopicAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrTopicRefreshScheduleNotFound is returned when a topic refresh schedule does not exist. ErrTopicRefreshScheduleNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrTopicRefreshScheduleAlreadyExists is returned when a topic refresh schedule already exists. ErrTopicRefreshScheduleAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrVPCConnectionNotFound is returned when a VPC connection does not exist. ErrVPCConnectionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrVPCConnectionAlreadyExists is returned when a VPC connection already exists. ErrVPCConnectionAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrIAMPolicyAssignmentNotFound is returned when an IAM policy assignment does not exist. ErrIAMPolicyAssignmentNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrIAMPolicyAssignmentAlreadyExists is returned when an IAM policy assignment already exists. ErrIAMPolicyAssignmentAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrAccountSubscriptionNotFound is returned when an account has no QuickSight subscription. ErrAccountSubscriptionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrAccountSubscriptionAlreadyExists is returned when an account is already subscribed. ErrAccountSubscriptionAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrAccountTerminationProtectionEnabled is returned by DeleteAccountSubscription when the // account's TerminationProtectionEnabled setting is true. ErrAccountTerminationProtectionEnabled = awserr.New("PreconditionNotMetException", awserr.ErrInvalidParameter) // ErrAccountCustomizationNotFound is returned when an account (or namespace) customization // does not exist. ErrAccountCustomizationNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrAccountCustomizationAlreadyExists is returned when an account (or namespace) // customization already exists. ErrAccountCustomizationAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrAccountCustomPermissionNotFound is returned when an account has no custom // permissions profile applied. ErrAccountCustomPermissionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDefaultQBusinessApplicationNotFound is returned when no default Q Business // application is configured for an account. ErrDefaultQBusinessApplicationNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrBrandNotFound is returned when a brand does not exist. ErrBrandNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrBrandAlreadyExists is returned when a brand already exists. ErrBrandAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrBrandVersionNotFound is returned when a brand version does not exist. ErrBrandVersionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrBrandInUse is returned when a brand cannot be deleted because it is assigned. ErrBrandInUse = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrCustomPermissionsNotFound is returned when a custom permissions profile does // not exist. ErrCustomPermissionsNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrCustomPermissionsAlreadyExists is returned when a custom permissions profile // already exists. ErrCustomPermissionsAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrCustomPermissionsInUse is returned when a custom permissions profile cannot // be deleted because it is assigned to a role or user. ErrCustomPermissionsInUse = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrRoleCustomPermissionNotFound is returned when a role has no custom // permissions assigned. ErrRoleCustomPermissionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrRoleMembershipAlreadyExists is returned when a group is already a member of // a role. ErrRoleMembershipAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrRoleMembershipNotFound is returned when a group is not a member of a role. ErrRoleMembershipNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrUserCustomPermissionNotFound is returned when a user has no custom // permissions assigned. ErrUserCustomPermissionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrOAuthClientAppNotFound is returned when an OAuth client application does not // exist. ErrOAuthClientAppNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrOAuthClientAppAlreadyExists is returned when an OAuth client application // already exists. ErrOAuthClientAppAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrIdentityPropagationConfigNotFound is returned when an identity propagation // configuration does not exist for the given service. ErrIdentityPropagationConfigNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrAssetBundleExportJobNotFound is returned when an asset bundle export job does // not exist. ErrAssetBundleExportJobNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrAssetBundleImportJobNotFound is returned when an asset bundle import job does // not exist. ErrAssetBundleImportJobNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDashboardSnapshotJobNotFound is returned when a dashboard snapshot job does // not exist. ErrDashboardSnapshotJobNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrRefreshScheduleNotFound is returned when a dataset refresh schedule does not // exist. ErrRefreshScheduleNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrRefreshScheduleAlreadyExists is returned when a dataset refresh schedule // already exists. ErrRefreshScheduleAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrDataSetRefreshPropertiesNotFound is returned when a dataset has no refresh // properties configured. ErrDataSetRefreshPropertiesNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrValidation is returned on invalid input. ErrValidation = awserr.New(errValidation, awserr.ErrInvalidParameter) // ErrUnknownOperation is returned when the requested operation is not implemented. ErrUnknownOperation = errors.New("unknown operation") // ErrActionConnectorNotFound is returned when an action connector does not exist. ErrActionConnectorNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrActionConnectorAlreadyExists is returned when an action connector already exists. ErrActionConnectorAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrAutomationJobNotFound is returned when an automation job does not exist. ErrAutomationJobNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrFlowNotFound is returned when a flow does not exist. ErrFlowNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDashboardVersionNotFound is returned when a dashboard version does not exist. ErrDashboardVersionNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrSelfUpgradeRequestNotFound is returned when a self-upgrade request does not exist. ErrSelfUpgradeRequestNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrTaggableResourceNotFound is returned by TagResource/UntagResource/ // ListTagsForResource when the given ARN doesn't identify a resource // this backend actually holds. ErrTaggableResourceNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrIngestionNotCancellable is returned by CancelIngestion when the // target ingestion is already in a terminal state (COMPLETED, FAILED, or // CANCELLED) and so can no longer be cancelled. ErrIngestionNotCancellable = awserr.New(errConflictException, awserr.ErrConflict) // ErrAgentNotFound is returned when an agent does not exist. ErrAgentNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrAgentAlreadyExists is returned when an agent already exists. ErrAgentAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrKnowledgeBaseNotFound is returned when a knowledge base does not exist. ErrKnowledgeBaseNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrKnowledgeBaseAlreadyExists is returned when a knowledge base already exists. ErrKnowledgeBaseAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrSpaceNotFound is returned when a space does not exist. ErrSpaceNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrSpaceAlreadyExists is returned when a space already exists. ErrSpaceAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrApprovalPolicyNotFound is returned when an approval policy does not exist. ErrApprovalPolicyNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrApprovalPolicyAlreadyExists is returned when an approval policy already // exists. CreateApprovalPolicy's declared exception set (quicksight@v1.129.0 // deserializers.go's deserializeOpErrorCreateApprovalPolicy) has no // ResourceExistsException, only ConflictException, unlike most other // duplicate-create cases in this package -- so this wraps errConflictException, // not errResourceExists. ErrApprovalPolicyAlreadyExists = awserr.New(errConflictException, awserr.ErrAlreadyExists) // ErrDlpSettingNotFound is returned when a DLP setting does not exist. ErrDlpSettingNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) // ErrDlpSettingAlreadyExists is returned when a DLP setting already exists. ErrDlpSettingAlreadyExists = awserr.New(errResourceExists, awserr.ErrAlreadyExists) // ErrLimitsProfileNotFound is returned when a limits profile does not exist. ErrLimitsProfileNotFound = awserr.New(errResourceNotFound, awserr.ErrNotFound) )
var ErrNilAppContext = errors.New("quicksight: nil app context")
ErrNilAppContext is returned when Init is called with a nil AppContext.
Functions ¶
This section is empty.
Types ¶
type AccountCustomization ¶
type AccountCustomization struct {
Namespace string
DefaultTheme string
DefaultEmailCustomizationTemplate string
}
AccountCustomization represents a QuickSight account's (or namespace's) branding customization.
type AccountSettings ¶
type AccountSettings struct {
AccountName string
Edition string
DefaultNamespace string
NotificationEmail string
PublicSharingEnabled bool
TerminationProtectionEnabled bool
}
AccountSettings represents a QuickSight account's account-wide settings.
type AccountSubscription ¶
type AccountSubscription struct {
AccountName string
Edition string
NotificationEmail string
AuthenticationType string
AccountSubscriptionStatus string
}
AccountSubscription represents a QuickSight account subscription.
type ActionConnector ¶
type ActionConnector struct {
CreatedTime time.Time
LastUpdatedTime time.Time
AuthenticationConfig map[string]any
ActionConnectorID string
Arn string
Name string
Type string
Description string
VPCConnectionArn string
Status string
Permissions []ResourcePermission
}
ActionConnector represents a QuickSight action connector: a configured integration (Salesforce, Jira, generic HTTP, etc.) that QuickSight agents and automations can invoke to perform actions against an external service.
type Agent ¶ added in v1.2.0
type Agent struct {
CustomPrompt *CustomPromptProfile
CreatedAt time.Time
UpdatedAt time.Time
AgentID string
Arn string
Name string
Description string
IconID string
WelcomeMessage string
Creator string
AgentLifecycle string
AgentStatus string
ErrorMessage string
ActionConnectors []string
Spaces []string
StarterPrompts []string
Permissions []ResourcePermission
}
Agent represents a QuickSight agent: an AI-powered conversational assistant scoped to a set of action connectors and spaces.
type AgentAssociationUpdate ¶ added in v1.2.0
type AgentAssociationUpdate struct {
FailedToAddActionConnectors []AssociationFailure
FailedToAddSpaces []AssociationFailure
FailedToRemoveActionConnectors []AssociationFailure
FailedToRemoveSpaces []AssociationFailure
}
AgentAssociationUpdate holds the per-ARN failures from one UpdateAgent call's attach/detach of action connectors and spaces.
type Analysis ¶
type Analysis struct {
CreatedTime time.Time
LastUpdatedTime time.Time
AnalysisID string
Arn string
Name string
ThemeArn string
Status string
Definition map[string]any
Permissions []ResourcePermission
}
Analysis represents a QuickSight analysis. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type ApplicableTo ¶
ApplicableTo represents the scoping configuration for an ApprovalPolicy: which principals the policy applies to.
type ApprovalPolicy ¶
type ApprovalPolicy struct {
CreatedAt time.Time
UpdatedAt time.Time
PolicyID string
Arn string
Name string
Description string
Actions []string
AssetTypes []string
ApprovalGroups []string
ApplicableTo ApplicableTo
}
ApprovalPolicy represents a QuickSight governance approval policy (which governed actions on which asset types require approval from which groups).
type AssetBundleExportJob ¶
type AssetBundleExportJob struct {
CreatedTime time.Time
JobID string
Arn string
Status string
ExportFormat string
DownloadURL string
IncludeFolderMembers string
ResourceArns []string
IncludeAllDependencies bool
IncludeFolderMemberships bool
IncludePermissions bool
IncludeTags bool
}
AssetBundleExportJob represents an asynchronous asset-bundle export job.
type AssetBundleImportJob ¶
type AssetBundleImportJob struct {
CreatedTime time.Time
JobID string
Arn string
Status string
FailureAction string
}
AssetBundleImportJob represents an asynchronous asset-bundle import job.
type AssociationFailure ¶ added in v1.2.0
type AssociationFailure struct {
Arn string
ResourceType string
ErrorCode string
ErrorMessage string
}
AssociationFailure represents one ARN that could not be attached to or detached from a resource, mirroring the real API's FailedToUpdateAssociation (UpdateAgent) / FailedSpaceResourceOperation (UpdateSpaceResources) shapes. ResourceType is empty for Agent associations (the real shape carries none) and set for Space resource operations.
type AutomationJob ¶
type AutomationJob struct {
CreatedAt time.Time
StartedAt time.Time
EndedAt time.Time
AutomationGroupID string
AutomationID string
JobID string
Arn string
Status string
InputPayload string
OutputPayload string
}
AutomationJob represents one run of a QuickSight automation (a console-authored workflow scoped to an automation group/automation).
type Brand ¶
type Brand struct {
CreatedTime time.Time
LastUpdatedTime time.Time
Definition map[string]any
BrandID string
Arn string
Status string
CurrentVersionID string
CurrentVersionStat string
PublishedVersionID string
}
Brand represents a QuickSight brand, a versioned set of visual identity customizations (logo, theme, name) applied to the console/embedded experiences.
type CustomPermissions ¶
type CustomPermissions struct {
Capabilities map[string]any
Governance map[string]any
Name string
Arn string
}
CustomPermissions represents a named, reusable set of QuickSight capability overrides that can be attached to roles or users.
type CustomPromptProfile ¶ added in v1.2.0
type CustomPromptProfile struct {
ModelProfileID string
QbsAwsAccountID string
SubscriptionID string
}
CustomPromptProfile mirrors the real SDK's types.CustomPromptProfile: a caller-supplied reference to an already-provisioned Amazon Q Business custom-prompt profile (CreateAgentInput/UpdateAgentInput's CustomPromptInput.ExistingPrompt union member). All three IDs come from the caller, not from this backend, so storing and echoing them back on Describe/Create/Update is a genuine round-trip, not a fabrication -- unlike CustomPromptInput.NewPrompt, which asks AWS to mint a brand-new profile (and fresh IDs) server-side via a live Amazon Q Business subscription this backend has no state for; see agents.go's customPromptFromBody for how the two variants are told apart.
type CustomSQL ¶ added in v1.3.1
type CustomSQL struct {
DataSourceArn string
Name string
SQLQuery string
Columns []InputColumn
}
CustomSQL is a PhysicalTable variant built from the result set of a custom SQL query (quicksight@v1.123.1 types.CustomSql).
type Dashboard ¶
type Dashboard struct {
CreatedTime time.Time
LastUpdatedTime time.Time
LastPublishedTime time.Time
Definition map[string]any
PublishOptions map[string]any
DashboardID string
Arn string
Name string
Status string
ThemeArn string
VersionDescription string
Permissions []ResourcePermission
LinkPermissions []ResourcePermission
LinkEntities []string
VersionNumber int64
PublishedVersionNumber int64
}
Dashboard represents a QuickSight dashboard. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type DashboardSnapshotJob ¶
type DashboardSnapshotJob struct {
CreatedTime time.Time
LastUpdatedTime time.Time
SnapshotConfig map[string]any
JobID string
Arn string
DashboardID string
Status string
S3URI string
}
DashboardSnapshotJob represents an asynchronous dashboard snapshot ("export to PDF/CSV/Excel") job.
type DashboardVersion ¶
type DashboardVersion struct {
CreatedTime time.Time
Arn string
Status string
ThemeArn string
Description string
VersionNumber int64
}
DashboardVersion represents a version of a QuickSight dashboard.
type DataSet ¶
type DataSet struct {
CreatedTime time.Time
LastUpdatedTime time.Time
PhysicalTableMap map[string]PhysicalTable
LogicalTableMap map[string]LogicalTable
DataSetID string
Arn string
Name string
ImportMode string
Permissions []ResourcePermission
}
DataSet represents a QuickSight dataset. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type DataSetRefreshProperties ¶
type DataSetRefreshProperties struct {
RefreshConfiguration map[string]any
FailureConfiguration map[string]any
}
DataSetRefreshProperties represents a QuickSight dataset's SPICE refresh configuration (incremental refresh window, failure notifications, etc.).
type DataSource ¶
type DataSource struct {
CreatedTime time.Time
LastUpdatedTime time.Time
DataSourceID string
Arn string
Name string
Type string
Status string
Permissions []ResourcePermission
}
DataSource represents a QuickSight data source. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type DefaultQBusinessApplication ¶
DefaultQBusinessApplication represents the default Amazon Q Business application linked to a QuickSight account.
type DlpSetting ¶
type DlpSetting struct {
CreatedAt time.Time
UpdatedAt time.Time
ProviderConfig ProviderConfig
DlpSettingID string
Arn string
Name string
ProviderType string
ProviderOutageAction string
Enabled bool
}
DlpSetting represents a QuickSight data-loss-prevention setting.
type FileSource ¶ added in v1.3.1
type FileSource struct {
UploadSettings *UploadSettings
DataSourceArn string
InputColumns []InputColumn
SheetIndex int32
}
FileSource is a PhysicalTable variant sourced from an uploaded file (quicksight@v1.123.1 types.FileSource).
type Flow ¶
type Flow struct {
CreatedTime time.Time
LastUpdatedTime time.Time
LastPublishedAt time.Time
FlowDefinition map[string]any
Description string
Arn string
Name string
FlowID string
CreatedBy string
LastPublishedBy string
LastUpdatedBy string
PublishState string
Permissions []ResourcePermission
StepAliases []FlowStepAlias
RunCount int32
UserCount int32
}
Flow represents a QuickSight flow. FlowDefinition and StepAliases are only populated for DescribeFlow (the real API's FlowDetail shape); the summary operations (ListFlows/SearchFlows/GetFlowMetadata) leave them nil, mirroring how real AWS's FlowSummary carries no definition.
type FlowStepAlias ¶ added in v1.2.0
FlowStepAlias represents one step-alias mapping in a flow's definition.
type Folder ¶
type Folder struct {
CreatedTime time.Time
LastUpdatedTime time.Time
FolderID string
Arn string
Name string
FolderType string
ParentFolderArn string
SharingModel string
Permissions []ResourcePermission
}
Folder represents a QuickSight folder. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type FolderMember ¶
FolderMember represents a QuickSight folder membership (a dashboard, analysis, dataset, or other asset that belongs to a folder).
type FolderSearchFilter ¶
FolderSearchFilter represents a single SearchFolders filter criterion.
type Group ¶
type Group struct {
GroupName string
Arn string
Description string
Namespace string
PrincipalID string
}
Group represents a QuickSight group.
type GroupMember ¶
GroupMember represents a QuickSight group member.
type Handler ¶
type Handler struct {
Backend StorageBackend
// contains filtered or unexported fields
}
Handler is the Echo HTTP handler for QuickSight operations.
func NewHandler ¶
func NewHandler(b StorageBackend) *Handler
NewHandler creates a new QuickSight handler.
func (*Handler) ChaosOperations ¶
ChaosOperations returns operations eligible for fault injection.
func (*Handler) ChaosRegions ¶
ChaosRegions returns all regions this handler serves.
func (*Handler) ChaosServiceName ¶
ChaosServiceName returns the lowercase AWS service name.
func (*Handler) ExtractOperation ¶
ExtractOperation extracts the QuickSight operation name from the request.
func (*Handler) ExtractResource ¶
ExtractResource extracts the primary resource ID from the request.
func (*Handler) GetSupportedOperations ¶
GetSupportedOperations returns the list of implemented QuickSight operations.
func (*Handler) Handler ¶
func (h *Handler) Handler() echo.HandlerFunc
Handler returns the Echo handler function.
func (*Handler) MatchPriority ¶
MatchPriority returns routing priority (above SecurityHub which also uses /accounts/).
func (*Handler) RouteMatcher ¶
RouteMatcher returns a function that matches QuickSight requests. QuickSight shares /accounts/ prefix with SecurityHub; we disambiguate via the Authorization header signing service name ("quicksight").
type IAMPolicyAssignment ¶
type IAMPolicyAssignment struct {
Identities map[string][]string
AssignmentID string
AssignmentName string
AssignmentStatus string
PolicyArn string
Namespace string
AwsAccountID string
}
IAMPolicyAssignment represents a QuickSight IAM policy assignment, scoped by namespace.
type IPRestriction ¶
type IPRestriction struct {
RuleMap map[string]string
VPCIDRuleMap map[string]string
VPCEndpointIDRuleMap map[string]string
Enabled bool
}
IPRestriction represents a QuickSight account's IP/VPC access restriction rules.
type IdentityPropagationConfig ¶
IdentityPropagationConfig represents the authorized targets for one downstream Amazon Web Services service that QuickSight can propagate an end user's identity to.
type InMemoryBackend ¶
type InMemoryBackend struct {
// contains filtered or unexported fields
}
InMemoryBackend is the in-memory implementation of StorageBackend.
func NewInMemoryBackend ¶
func NewInMemoryBackend(accountID, region string) *InMemoryBackend
NewInMemoryBackend creates a new InMemoryBackend.
func (*InMemoryBackend) AccountID ¶
func (b *InMemoryBackend) AccountID() string
AccountID returns the configured account ID.
func (*InMemoryBackend) BatchCreateTopicReviewedAnswer ¶
func (b *InMemoryBackend) BatchCreateTopicReviewedAnswer( accountID, topicID string, answers []map[string]any, ) ([]*TopicReviewedAnswer, []TopicAnswerError, error)
func (*InMemoryBackend) BatchDeleteKnowledgeBase ¶ added in v1.2.0
func (b *InMemoryBackend) BatchDeleteKnowledgeBase( accountID string, knowledgeBaseIDs []string, ) ([]KnowledgeBaseDeleteResult, []KnowledgeBaseDeleteError)
BatchDeleteKnowledgeBase deletes each ID independently, mirroring the real op's per-item Deleted/Errors partition -- an ID this backend doesn't hold is a real per-item failure, not a whole-request error.
func (*InMemoryBackend) BatchDeleteTopicReviewedAnswer ¶
func (b *InMemoryBackend) BatchDeleteTopicReviewedAnswer( accountID, topicID string, answerIDs []string, ) ([]string, []TopicAnswerError, error)
func (*InMemoryBackend) CancelIngestion ¶
func (b *InMemoryBackend) CancelIngestion(accountID, dataSetID, ingestionID string) error
CancelIngestion cancels an ongoing ingestion. Real AWS only supports cancelling an ingestion that is still queued or running; an ingestion already in a terminal state (COMPLETED, FAILED, or CANCELLED) can't be cancelled again. Before this fix, this backend unconditionally overwrote IngestionStatus to CANCELLED regardless of the current status, so cancelling an already-COMPLETED ingestion would silently corrupt its terminal status.
func (*InMemoryBackend) CreateAccountCustomization ¶
func (b *InMemoryBackend) CreateAccountCustomization( accountID, namespace, defaultTheme, defaultEmailCustomizationTemplate string, ) (*AccountCustomization, error)
CreateAccountCustomization creates the branding customization for accountID (scoped to namespace, or account-wide when namespace is "").
func (*InMemoryBackend) CreateAccountSubscription ¶
func (b *InMemoryBackend) CreateAccountSubscription( accountID, accountName, edition, authenticationMethod, notificationEmail string, ) (*AccountSubscription, error)
CreateAccountSubscription subscribes accountID to QuickSight.
func (*InMemoryBackend) CreateActionConnector ¶
func (b *InMemoryBackend) CreateActionConnector( accountID, actionConnectorID, name, connectorType, description, vpcConnectionArn string, authenticationConfig map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*ActionConnector, error)
func (*InMemoryBackend) CreateAgent ¶ added in v1.2.0
func (b *InMemoryBackend) CreateAgent( accountID, agentID, name, description, iconID, welcomeMessage, agentLifecycle string, actionConnectors, spaces, starterPrompts []string, permissions []ResourcePermission, tags map[string]string, customPrompt *CustomPromptProfile, ) (*Agent, error)
CreateAgent creates a new agent. Real AWS stamps Creator from the caller's identity; this backend has no authenticated-caller concept, so Creator is left empty rather than fabricated.
CustomPromptInput (CustomPromptInterface on the response) is a tagged union with two members: ExistingPrompt (types.CustomPromptProfile -- a caller-supplied ModelProfileId/QbsAwsAccountId/SubscriptionId referencing an already-provisioned Amazon Q Business profile) and NewPrompt (asks AWS to mint a brand-new profile server-side). ExistingPrompt's three IDs come from the caller, not this backend, so customPrompt is stored and echoed back verbatim -- a genuine round-trip. NewPrompt's IDs would have to be minted by a live Amazon Q Business subscription this backend has no state for; synthesizing them would be fabrication, so callers using NewPrompt get customPrompt == nil here (see handler_agents.go's customPromptFromBody, which is where the two variants are told apart) -- an intentional, documented, per-variant omission (see PARITY.md).
func (*InMemoryBackend) CreateAnalysis ¶
func (b *InMemoryBackend) CreateAnalysis( accountID, analysisID, name, themeArn string, definition map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*Analysis, error)
func (*InMemoryBackend) CreateApprovalPolicy ¶
func (b *InMemoryBackend) CreateApprovalPolicy( policyID, name, description string, actions, assetTypes, approvalGroups []string, applicableTo ApplicableTo, ) (*ApprovalPolicy, error)
func (*InMemoryBackend) CreateBrand ¶
func (*InMemoryBackend) CreateCustomPermissions ¶
func (b *InMemoryBackend) CreateCustomPermissions( accountID, name string, capabilities map[string]any, tags map[string]string, ) (*CustomPermissions, error)
func (*InMemoryBackend) CreateDashboard ¶
func (b *InMemoryBackend) CreateDashboard( accountID, dashboardID, name, themeArn, versionDescription string, definition, publishOptions map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*Dashboard, error)
func (*InMemoryBackend) CreateDataSet ¶
func (b *InMemoryBackend) CreateDataSet( accountID, dataSetID, name, importMode string, permissions []ResourcePermission, tags map[string]string, physicalTableMap map[string]PhysicalTable, logicalTableMap map[string]LogicalTable, ) (*DataSet, *Ingestion, error)
CreateDataSet creates a dataset. When importMode is SPICE, AWS triggers an ingestion as a side effect of dataset creation and returns its ARN/ID in the CreateDataSet response; this backend mirrors that by creating a real Ingestion record (so a subsequent DescribeIngestion/ListIngestions call finds it) instead of fabricating an ARN/ID that names a resource that was never persisted. For DIRECT_QUERY datasets, no ingestion is triggered and the returned *Ingestion is nil.
func (*InMemoryBackend) CreateDataSource ¶
func (b *InMemoryBackend) CreateDataSource( accountID, dataSourceID, name, dsType string, permissions []ResourcePermission, tags map[string]string, ) (*DataSource, error)
func (*InMemoryBackend) CreateDlpSetting ¶
func (b *InMemoryBackend) CreateDlpSetting( accountID, dlpSettingID, name string, enabled bool, providerType, providerOutageAction string, providerConfig ProviderConfig, tags map[string]string, ) (*DlpSetting, error)
func (*InMemoryBackend) CreateFlow ¶ added in v1.2.0
func (b *InMemoryBackend) CreateFlow( _, name, description string, flowDefinition map[string]any, permissions []ResourcePermission, ) (*Flow, error)
CreateFlow creates a new flow. Real AWS creates both a DRAFT and a PUBLISHED (auto-published) version; this backend has no versioning concept, so it stores a single definition and reports PublishState PUBLISHED, matching the real op's documented auto-publish behavior.
func (*InMemoryBackend) CreateFolder ¶
func (b *InMemoryBackend) CreateFolder( accountID, folderID, name, folderType, parentFolderArn, sharingModel string, permissions []ResourcePermission, tags map[string]string, ) (*Folder, error)
func (*InMemoryBackend) CreateFolderMembership ¶
func (b *InMemoryBackend) CreateFolderMembership( accountID, folderID, memberID, memberType string, ) (*FolderMember, error)
func (*InMemoryBackend) CreateGroup ¶
func (b *InMemoryBackend) CreateGroup(accountID, namespace, groupName, description string) (*Group, error)
func (*InMemoryBackend) CreateGroupMembership ¶
func (b *InMemoryBackend) CreateGroupMembership( accountID, namespace, groupName, memberName string, ) (*GroupMember, error)
func (*InMemoryBackend) CreateIAMPolicyAssignment ¶
func (b *InMemoryBackend) CreateIAMPolicyAssignment( accountID, namespace, assignmentName, assignmentStatus, policyArn string, identities map[string][]string, ) (*IAMPolicyAssignment, error)
func (*InMemoryBackend) CreateIngestion ¶
func (b *InMemoryBackend) CreateIngestion(accountID, dataSetID, ingestionID string) (*Ingestion, error)
func (*InMemoryBackend) CreateKnowledgeBase ¶ added in v1.2.0
func (b *InMemoryBackend) CreateKnowledgeBase( accountID, knowledgeBaseID, name, description, dataSourceArn, primaryOwnerArn string, configuration, accessControlConfiguration, mediaExtractionConfiguration map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*KnowledgeBase, error)
func (*InMemoryBackend) CreateLimitsProfile ¶
func (b *InMemoryBackend) CreateLimitsProfile( accountID, clientToken, profileName, description string, resourceLimits map[string]ProfileLimitValue, ) (*LimitsProfile, error)
CreateLimitsProfile implements CreateLimitsProfileInput.ClientToken's idempotency contract ("if this token matches a previous request, the service ignores the request, but does not return an error") by returning the existing profile for a repeated token instead of minting a second one. ProfileId is server-generated (the input has no ProfileId member at all, quicksight@v1.129.0 api_op_CreateLimitsProfile.go), so uuid.New is the same generation convention used elsewhere in this package (e.g. automation.go's StartAutomationJob).
func (*InMemoryBackend) CreateNamespace ¶
func (*InMemoryBackend) CreateOAuthClientApplication ¶
func (b *InMemoryBackend) CreateOAuthClientApplication( accountID, clientID, name string, fields map[string]any, tags map[string]string, ) (*OAuthClientApplication, error)
func (*InMemoryBackend) CreateRefreshSchedule ¶
func (b *InMemoryBackend) CreateRefreshSchedule( accountID, datasetID, scheduleID, refreshType string, startAfterDateTime time.Time, scheduleFrequency map[string]any, ) (*RefreshSchedule, error)
func (*InMemoryBackend) CreateRoleMembership ¶
func (b *InMemoryBackend) CreateRoleMembership(accountID, namespace, role, memberName string) error
func (*InMemoryBackend) CreateSpace ¶ added in v1.2.0
func (b *InMemoryBackend) CreateSpace(accountID, spaceID, name, description string) (*Space, error)
func (*InMemoryBackend) CreateTemplate ¶
func (b *InMemoryBackend) CreateTemplate( accountID, templateID, name, sourceEntityArn, versionDescription string, definition map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*Template, error)
func (*InMemoryBackend) CreateTemplateAlias ¶
func (b *InMemoryBackend) CreateTemplateAlias( accountID, templateID, aliasName string, versionNumber int64, ) (*TemplateAlias, error)
func (*InMemoryBackend) CreateTheme ¶
func (b *InMemoryBackend) CreateTheme( accountID, themeID, name, baseThemeID, versionDescription string, configuration map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*Theme, error)
func (*InMemoryBackend) CreateThemeAlias ¶
func (b *InMemoryBackend) CreateThemeAlias( accountID, themeID, aliasName string, versionNumber int64, ) (*ThemeAlias, error)
func (*InMemoryBackend) CreateTopic ¶
func (b *InMemoryBackend) CreateTopic( accountID, topicID, name, description, userExperienceVersion string, dataSets []map[string]any, permissions []ResourcePermission, tags map[string]string, ) (*Topic, error)
func (*InMemoryBackend) CreateTopicRefreshSchedule ¶
func (b *InMemoryBackend) CreateTopicRefreshSchedule( accountID, topicID, datasetID, datasetArn, refreshType string, isEnabled bool, scheduleConfig map[string]any, ) (*TopicRefreshSchedule, error)
func (*InMemoryBackend) CreateTopicV2 ¶ added in v1.3.1
func (b *InMemoryBackend) CreateTopicV2( accountID, topicID, name, description, customInstructions string, dataSets []map[string]any, dataSetRelations []map[string]any, tags map[string]string, ) (*Topic, error)
CreateTopicV2 creates a Q topic (TopicV2Details schema) in the shared b.topics store -- see the file doc comment above.
func (*InMemoryBackend) CreateVPCConnection ¶
func (b *InMemoryBackend) CreateVPCConnection( accountID, vpcConnectionID, name, vpcID string, subnetIDs, securityGroupIDs, dnsResolvers []string, roleArn string, tags map[string]string, ) (*VPCConnection, error)
func (*InMemoryBackend) DeleteAccountCustomPermission ¶
func (b *InMemoryBackend) DeleteAccountCustomPermission(accountID string) error
DeleteAccountCustomPermission removes accountID's applied custom permissions profile.
func (*InMemoryBackend) DeleteAccountCustomization ¶
func (b *InMemoryBackend) DeleteAccountCustomization(accountID, namespace string) error
DeleteAccountCustomization removes accountID's (namespace-scoped) branding customization.
func (*InMemoryBackend) DeleteAccountSubscription ¶
func (b *InMemoryBackend) DeleteAccountSubscription(accountID string) error
DeleteAccountSubscription unsubscribes accountID from QuickSight.
func (*InMemoryBackend) DeleteActionConnector ¶
func (b *InMemoryBackend) DeleteActionConnector(accountID, actionConnectorID string) (*ActionConnector, error)
func (*InMemoryBackend) DeleteAgent ¶ added in v1.2.0
func (b *InMemoryBackend) DeleteAgent(accountID, agentID string) error
func (*InMemoryBackend) DeleteAnalysis ¶
func (b *InMemoryBackend) DeleteAnalysis( accountID, analysisID string, forceDeleteWithoutRecovery bool, recoveryWindowInDays int64, ) (time.Time, error)
DeleteAnalysis soft-deletes analysisID (marking it statusDeleted) unless forceDeleteWithoutRecovery, which purges it outright. It returns the time the analysis is scheduled for permanent deletion -- DeleteAnalysisOutput's real DeletionTime member, computed from recoveryWindowInDays (0 defaults to 30, matching the documented default) -- or the zero time when force- deleted, since there is no scheduled deletion in that case. DeletionTime isn't itself persisted: no other op (DescribeAnalysis included) ever reads it back, so it's a pure function of "now" at delete time, not stored state.
func (*InMemoryBackend) DeleteApprovalPolicy ¶
func (b *InMemoryBackend) DeleteApprovalPolicy(policyID string) error
func (*InMemoryBackend) DeleteBrand ¶
func (b *InMemoryBackend) DeleteBrand(accountID, brandID string) error
func (*InMemoryBackend) DeleteBrandAssignment ¶
func (b *InMemoryBackend) DeleteBrandAssignment(accountID string) error
func (*InMemoryBackend) DeleteCustomPermissions ¶
func (b *InMemoryBackend) DeleteCustomPermissions(accountID, name string) (*CustomPermissions, error)
func (*InMemoryBackend) DeleteDashboard ¶
func (b *InMemoryBackend) DeleteDashboard(accountID, dashboardID string, versionNumber int64) error
DeleteDashboard deletes a dashboard, or (per api_op_DeleteDashboard.go's VersionNumber doc comment: "If the version number property is provided, only the specified version of the dashboard is deleted") just one of its versions when versionNumber is nonzero. This backend has no real per-version content history (see dashboardCurrentVersionToMap's doc comment), so a targeted version delete can't remove that version's Definition/ThemeArn/etc -- but it does record the version number as deleted (DeletedVersions) rather than fabricating removal or -- the bug gopherstack-86y fixed -- deleting the entire dashboard when the caller asked to delete only one version. A version must exist and not already be deleted (mirroring UpdateDashboardPublishedVersion's own [1, VersionNumber] check plus the DeletedVersions check) else ErrDashboardVersionNotFound, matching DeleteTemplate's real behavior of 404ing on a repeat delete of the same version.
func (*InMemoryBackend) DeleteDataSet ¶
func (b *InMemoryBackend) DeleteDataSet(accountID, dataSetID string) error
func (*InMemoryBackend) DeleteDataSetRefreshProperties ¶
func (b *InMemoryBackend) DeleteDataSetRefreshProperties(accountID, datasetID string) error
func (*InMemoryBackend) DeleteDataSource ¶
func (b *InMemoryBackend) DeleteDataSource(accountID, dataSourceID string) error
func (*InMemoryBackend) DeleteDefaultQBusinessApplication ¶
func (b *InMemoryBackend) DeleteDefaultQBusinessApplication(accountID, _ string) error
DeleteDefaultQBusinessApplication removes accountID's default Q Business application.
func (*InMemoryBackend) DeleteDlpSetting ¶
func (b *InMemoryBackend) DeleteDlpSetting(accountID, dlpSettingID string) (string, error)
func (*InMemoryBackend) DeleteFlow ¶ added in v1.2.0
func (b *InMemoryBackend) DeleteFlow(accountID, flowID string) error
func (*InMemoryBackend) DeleteFolder ¶
func (b *InMemoryBackend) DeleteFolder(accountID, folderID string) error
func (*InMemoryBackend) DeleteFolderMembership ¶
func (b *InMemoryBackend) DeleteFolderMembership(accountID, folderID, memberID, memberType string) error
func (*InMemoryBackend) DeleteGroup ¶
func (b *InMemoryBackend) DeleteGroup(accountID, namespace, groupName string) error
func (*InMemoryBackend) DeleteGroupMembership ¶
func (b *InMemoryBackend) DeleteGroupMembership(accountID, namespace, groupName, memberName string) error
func (*InMemoryBackend) DeleteIAMPolicyAssignment ¶
func (b *InMemoryBackend) DeleteIAMPolicyAssignment(accountID, namespace, assignmentName string) error
func (*InMemoryBackend) DeleteIdentityPropagationConfig ¶
func (b *InMemoryBackend) DeleteIdentityPropagationConfig(accountID, service string) error
func (*InMemoryBackend) DeleteKnowledgeBase ¶ added in v1.2.0
func (b *InMemoryBackend) DeleteKnowledgeBase(accountID, knowledgeBaseID string) (*KnowledgeBase, error)
func (*InMemoryBackend) DeleteLimitsProfile ¶
func (b *InMemoryBackend) DeleteLimitsProfile(accountID, profileID string) (string, error)
func (*InMemoryBackend) DeleteNamespace ¶
func (b *InMemoryBackend) DeleteNamespace(accountID, namespace string) error
func (*InMemoryBackend) DeleteOAuthClientApplication ¶
func (b *InMemoryBackend) DeleteOAuthClientApplication(accountID, clientID string) (*OAuthClientApplication, error)
func (*InMemoryBackend) DeleteRefreshSchedule ¶
func (b *InMemoryBackend) DeleteRefreshSchedule(accountID, datasetID, scheduleID string) (*RefreshSchedule, error)
func (*InMemoryBackend) DeleteRoleCustomPermission ¶
func (b *InMemoryBackend) DeleteRoleCustomPermission(accountID, namespace, role string) error
func (*InMemoryBackend) DeleteRoleMembership ¶
func (b *InMemoryBackend) DeleteRoleMembership(accountID, namespace, role, memberName string) error
func (*InMemoryBackend) DeleteSpace ¶ added in v1.2.0
func (b *InMemoryBackend) DeleteSpace(accountID, spaceID string) (*Space, error)
func (*InMemoryBackend) DeleteTemplate ¶
func (b *InMemoryBackend) DeleteTemplate(accountID, templateID string, versionNumber int64) error
func (*InMemoryBackend) DeleteTemplateAlias ¶
func (b *InMemoryBackend) DeleteTemplateAlias(accountID, templateID, aliasName string) error
func (*InMemoryBackend) DeleteTheme ¶
func (b *InMemoryBackend) DeleteTheme(accountID, themeID string, versionNumber int64) error
func (*InMemoryBackend) DeleteThemeAlias ¶
func (b *InMemoryBackend) DeleteThemeAlias(accountID, themeID, aliasName string) error
func (*InMemoryBackend) DeleteTopic ¶
func (b *InMemoryBackend) DeleteTopic(accountID, topicID string) error
func (*InMemoryBackend) DeleteTopicRefreshSchedule ¶
func (b *InMemoryBackend) DeleteTopicRefreshSchedule( accountID, topicID, datasetID string, ) (*TopicRefreshSchedule, error)
func (*InMemoryBackend) DeleteUser ¶
func (b *InMemoryBackend) DeleteUser(accountID, namespace, userName string) error
func (*InMemoryBackend) DeleteUserByPrincipalID ¶
func (b *InMemoryBackend) DeleteUserByPrincipalID(accountID, namespace, principalID string) error
func (*InMemoryBackend) DeleteUserCustomPermission ¶
func (b *InMemoryBackend) DeleteUserCustomPermission(accountID, namespace, userName string) error
func (*InMemoryBackend) DeleteVPCConnection ¶
func (b *InMemoryBackend) DeleteVPCConnection(accountID, vpcConnectionID string) (*VPCConnection, error)
func (*InMemoryBackend) DescribeAccountCustomPermission ¶
func (b *InMemoryBackend) DescribeAccountCustomPermission(accountID string) (string, error)
DescribeAccountCustomPermission returns the name of the custom permissions profile applied to accountID, if any.
func (*InMemoryBackend) DescribeAccountCustomization ¶
func (b *InMemoryBackend) DescribeAccountCustomization( accountID, namespace string, resolved bool, ) (*AccountCustomization, error)
DescribeAccountCustomization returns accountID's (namespace-scoped) branding customization. When resolved is set and namespace is non-empty, it returns the effective view real AWS uses to render the console: namespace-level fields win where set, falling back field-by-field to the account-level customization (DescribeAccountCustomizationInput.Resolved, quicksight@v1.123.1 api_op_DescribeAccountCustomization.go: "Omit this flag... to reveal customizations that are configured at different levels" implies the flag's presence merges them). Resolved has nothing to fall back to when namespace is already "" (the account level itself), so it's ignored in that case.
func (*InMemoryBackend) DescribeAccountSettings ¶
func (b *InMemoryBackend) DescribeAccountSettings(accountID string) (*AccountSettings, error)
DescribeAccountSettings returns the account's settings, defaulting to the AWS out-of-the-box values (STANDARD edition, "default" namespace, no notification email, sharing/termination-protection disabled) when the account has never called UpdateAccountSettings.
func (*InMemoryBackend) DescribeAccountSubscription ¶
func (b *InMemoryBackend) DescribeAccountSubscription(accountID string) (*AccountSubscription, error)
DescribeAccountSubscription returns accountID's subscription info.
func (*InMemoryBackend) DescribeActionConnector ¶
func (b *InMemoryBackend) DescribeActionConnector(accountID, actionConnectorID string) (*ActionConnector, error)
func (*InMemoryBackend) DescribeActionConnectorPermissions ¶
func (b *InMemoryBackend) DescribeActionConnectorPermissions( accountID, actionConnectorID string, ) (*ActionConnector, []ResourcePermission, error)
func (*InMemoryBackend) DescribeAgent ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeAgent(accountID, agentID string) (*Agent, error)
func (*InMemoryBackend) DescribeAgentPermissions ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeAgentPermissions(accountID, agentID string) (*Agent, []ResourcePermission, error)
func (*InMemoryBackend) DescribeAnalysis ¶
func (b *InMemoryBackend) DescribeAnalysis(accountID, analysisID string) (*Analysis, error)
func (*InMemoryBackend) DescribeAnalysisPermissions ¶
func (b *InMemoryBackend) DescribeAnalysisPermissions( accountID, analysisID string, ) (*Analysis, []ResourcePermission, error)
func (*InMemoryBackend) DescribeApprovalPolicy ¶
func (b *InMemoryBackend) DescribeApprovalPolicy(policyID string) (*ApprovalPolicy, error)
func (*InMemoryBackend) DescribeAssetBundleExportJob ¶
func (b *InMemoryBackend) DescribeAssetBundleExportJob(accountID, jobID string) (*AssetBundleExportJob, error)
func (*InMemoryBackend) DescribeAssetBundleImportJob ¶
func (b *InMemoryBackend) DescribeAssetBundleImportJob(accountID, jobID string) (*AssetBundleImportJob, error)
func (*InMemoryBackend) DescribeAutomationJob ¶
func (b *InMemoryBackend) DescribeAutomationJob( accountID, automationGroupID, automationID, jobID string, ) (*AutomationJob, error)
DescribeAutomationJob returns the current state of jobID, settling it to SUCCEEDED if it was still RUNNING.
func (*InMemoryBackend) DescribeBrand ¶
func (b *InMemoryBackend) DescribeBrand(accountID, brandID, versionID string) (*Brand, error)
func (*InMemoryBackend) DescribeBrandAssignment ¶
func (b *InMemoryBackend) DescribeBrandAssignment(accountID string) (string, error)
func (*InMemoryBackend) DescribeBrandPublishedVersion ¶
func (b *InMemoryBackend) DescribeBrandPublishedVersion(accountID, brandID string) (*Brand, error)
func (*InMemoryBackend) DescribeCustomPermissions ¶
func (b *InMemoryBackend) DescribeCustomPermissions(accountID, name string) (*CustomPermissions, error)
func (*InMemoryBackend) DescribeDashboard ¶
func (b *InMemoryBackend) DescribeDashboard(accountID, dashboardID string) (*Dashboard, error)
func (*InMemoryBackend) DescribeDashboardPermissions ¶
func (b *InMemoryBackend) DescribeDashboardPermissions( accountID, dashboardID string, ) (*Dashboard, []ResourcePermission, error)
func (*InMemoryBackend) DescribeDashboardSnapshotJob ¶
func (b *InMemoryBackend) DescribeDashboardSnapshotJob( accountID, dashboardID, jobID string, ) (*DashboardSnapshotJob, error)
func (*InMemoryBackend) DescribeDashboardSnapshotJobResult ¶
func (b *InMemoryBackend) DescribeDashboardSnapshotJobResult( accountID, dashboardID, jobID string, ) (*DashboardSnapshotJob, error)
func (*InMemoryBackend) DescribeDashboardsQAConfiguration ¶
func (b *InMemoryBackend) DescribeDashboardsQAConfiguration(accountID string) (string, error)
DescribeDashboardsQAConfiguration returns accountID's Dashboards Q&A status, defaulting to DISABLED when never configured.
func (*InMemoryBackend) DescribeDataSet ¶
func (b *InMemoryBackend) DescribeDataSet(accountID, dataSetID string) (*DataSet, error)
func (*InMemoryBackend) DescribeDataSetPermissions ¶
func (b *InMemoryBackend) DescribeDataSetPermissions( accountID, dataSetID string, ) (*DataSet, []ResourcePermission, error)
func (*InMemoryBackend) DescribeDataSetRefreshProperties ¶
func (b *InMemoryBackend) DescribeDataSetRefreshProperties( accountID, datasetID string, ) (*DataSetRefreshProperties, error)
func (*InMemoryBackend) DescribeDataSource ¶
func (b *InMemoryBackend) DescribeDataSource(accountID, dataSourceID string) (*DataSource, error)
func (*InMemoryBackend) DescribeDataSourcePermissions ¶
func (b *InMemoryBackend) DescribeDataSourcePermissions( accountID, dataSourceID string, ) (*DataSource, []ResourcePermission, error)
func (*InMemoryBackend) DescribeDefaultQBusinessApplication ¶
func (b *InMemoryBackend) DescribeDefaultQBusinessApplication( accountID, _ string, ) (*DefaultQBusinessApplication, error)
DescribeDefaultQBusinessApplication returns accountID's default Q Business application, defaulting to an empty (unconfigured) application when never set.
func (*InMemoryBackend) DescribeDlpSetting ¶
func (b *InMemoryBackend) DescribeDlpSetting(accountID, dlpSettingID string) (*DlpSetting, error)
func (*InMemoryBackend) DescribeFlow ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeFlow(accountID, flowID string) (*Flow, error)
DescribeFlow returns the FlowDetail-shaped view of a flow. Real AWS scopes the response to a requested PublishState (DRAFT/PUBLISHED/ PENDING_APPROVAL); this backend stores a single definition (no draft/ published divergence), so publishState (required on the request, bound to the "publish-state" query parameter) has nothing to select between and isn't read at all -- confirmed the handler doesn't change which data is returned for any value, not merely that it's unread.
func (*InMemoryBackend) DescribeFolder ¶
func (b *InMemoryBackend) DescribeFolder(accountID, folderID string) (*Folder, error)
func (*InMemoryBackend) DescribeFolderPermissions ¶
func (b *InMemoryBackend) DescribeFolderPermissions(accountID, folderID string) ([]ResourcePermission, error)
func (*InMemoryBackend) DescribeFolderResolvedPermissions ¶
func (b *InMemoryBackend) DescribeFolderResolvedPermissions( accountID, folderID string, ) ([]ResourcePermission, error)
func (*InMemoryBackend) DescribeGroup ¶
func (b *InMemoryBackend) DescribeGroup(accountID, namespace, groupName string) (*Group, error)
func (*InMemoryBackend) DescribeGroupMembership ¶
func (b *InMemoryBackend) DescribeGroupMembership( accountID, namespace, groupName, memberName string, ) (*GroupMember, error)
func (*InMemoryBackend) DescribeIAMPolicyAssignment ¶
func (b *InMemoryBackend) DescribeIAMPolicyAssignment( accountID, namespace, assignmentName string, ) (*IAMPolicyAssignment, error)
func (*InMemoryBackend) DescribeIPRestriction ¶
func (b *InMemoryBackend) DescribeIPRestriction(accountID string) (*IPRestriction, error)
DescribeIPRestriction returns accountID's IP restriction rules, defaulting to an empty, disabled rule set when never configured.
func (*InMemoryBackend) DescribeIngestion ¶
func (b *InMemoryBackend) DescribeIngestion(accountID, dataSetID, ingestionID string) (*Ingestion, error)
func (*InMemoryBackend) DescribeKeyRegistration ¶
func (b *InMemoryBackend) DescribeKeyRegistration( accountID string, defaultKeyOnly bool, ) ([]RegisteredCustomerManagedKey, error)
DescribeKeyRegistration returns accountID's registered customer-managed keys, narrowed to the default key when defaultKeyOnly is set (DescribeKeyRegistrationInput.DefaultKeyOnly, quicksight@v1.123.1 api_op_DescribeKeyRegistration.go).
func (*InMemoryBackend) DescribeKnowledgeBase ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeKnowledgeBase(accountID, knowledgeBaseID string) (*KnowledgeBase, error)
func (*InMemoryBackend) DescribeKnowledgeBasePermissions ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeKnowledgeBasePermissions( accountID, knowledgeBaseID string, ) (*KnowledgeBase, []ResourcePermission, error)
func (*InMemoryBackend) DescribeLimitsProfile ¶
func (b *InMemoryBackend) DescribeLimitsProfile(accountID, profileID string) (*LimitsProfile, error)
func (*InMemoryBackend) DescribeNamespace ¶
func (b *InMemoryBackend) DescribeNamespace(accountID, namespace string) (*Namespace, error)
func (*InMemoryBackend) DescribeOAuthClientApplication ¶
func (b *InMemoryBackend) DescribeOAuthClientApplication(accountID, clientID string) (*OAuthClientApplication, error)
func (*InMemoryBackend) DescribeQPersonalizationConfiguration ¶
func (b *InMemoryBackend) DescribeQPersonalizationConfiguration(accountID string) (string, error)
DescribeQPersonalizationConfiguration returns accountID's Q personalization mode, defaulting to DISABLED when never configured.
func (*InMemoryBackend) DescribeQuickSightQSearchConfiguration ¶
func (b *InMemoryBackend) DescribeQuickSightQSearchConfiguration(accountID string) (string, error)
DescribeQuickSightQSearchConfiguration returns accountID's Q Search status, defaulting to DISABLED when never configured.
func (*InMemoryBackend) DescribeRefreshSchedule ¶
func (b *InMemoryBackend) DescribeRefreshSchedule(accountID, datasetID, scheduleID string) (*RefreshSchedule, error)
func (*InMemoryBackend) DescribeRoleCustomPermission ¶
func (b *InMemoryBackend) DescribeRoleCustomPermission(accountID, namespace, role string) (string, error)
func (*InMemoryBackend) DescribeSelfUpgradeConfiguration ¶
func (b *InMemoryBackend) DescribeSelfUpgradeConfiguration(accountID, namespace string) (string, error)
DescribeSelfUpgradeConfiguration returns namespace's self-upgrade status, defaulting to ADMIN_APPROVAL (the more conservative option) when never configured, mirroring DescribeQuickSightQSearchConfiguration's default-when-unset convention.
func (*InMemoryBackend) DescribeSpace ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeSpace(accountID, spaceID string) (*Space, error)
func (*InMemoryBackend) DescribeSpacePermissions ¶ added in v1.2.0
func (b *InMemoryBackend) DescribeSpacePermissions(accountID, spaceID string) (*Space, []ResourcePermission, error)
func (*InMemoryBackend) DescribeTemplate ¶
func (b *InMemoryBackend) DescribeTemplate(accountID, templateID string, versionNumber int64) (*Template, error)
func (*InMemoryBackend) DescribeTemplateAlias ¶
func (b *InMemoryBackend) DescribeTemplateAlias(accountID, templateID, aliasName string) (*TemplateAlias, error)
func (*InMemoryBackend) DescribeTemplatePermissions ¶
func (b *InMemoryBackend) DescribeTemplatePermissions( accountID, templateID string, ) (*Template, []ResourcePermission, error)
func (*InMemoryBackend) DescribeTheme ¶
func (b *InMemoryBackend) DescribeTheme(accountID, themeID string, versionNumber int64) (*Theme, error)
func (*InMemoryBackend) DescribeThemeAlias ¶
func (b *InMemoryBackend) DescribeThemeAlias(accountID, themeID, aliasName string) (*ThemeAlias, error)
func (*InMemoryBackend) DescribeThemePermissions ¶
func (b *InMemoryBackend) DescribeThemePermissions(accountID, themeID string) (*Theme, []ResourcePermission, error)
func (*InMemoryBackend) DescribeTopic ¶
func (b *InMemoryBackend) DescribeTopic(accountID, topicID string) (*Topic, error)
func (*InMemoryBackend) DescribeTopicPermissions ¶
func (b *InMemoryBackend) DescribeTopicPermissions(accountID, topicID string) (*Topic, []ResourcePermission, error)
func (*InMemoryBackend) DescribeTopicRefresh ¶
func (b *InMemoryBackend) DescribeTopicRefresh(accountID, topicID, refreshID string) (*TopicRefreshDetails, error)
DescribeTopicRefresh reports the status of a topic refresh execution. Because this batch of operations does not include a "start topic refresh" API, refresh records are synthesized lazily on first describe (mirroring the fact that QuickSight refreshes run automatically in the background): the first describe for a given RefreshId creates a COMPLETED record, and subsequent describes for the same RefreshId return that same stored record.
func (*InMemoryBackend) DescribeTopicRefreshSchedule ¶
func (b *InMemoryBackend) DescribeTopicRefreshSchedule( accountID, topicID, datasetID string, ) (*TopicRefreshSchedule, error)
func (*InMemoryBackend) DescribeUser ¶
func (b *InMemoryBackend) DescribeUser(accountID, namespace, userName string) (*User, error)
func (*InMemoryBackend) DescribeVPCConnection ¶
func (b *InMemoryBackend) DescribeVPCConnection(accountID, vpcConnectionID string) (*VPCConnection, error)
func (*InMemoryBackend) GenerateEmbedURLForAnonymousUser ¶
func (*InMemoryBackend) GenerateEmbedURLForRegisteredUser ¶
func (*InMemoryBackend) GenerateEmbedURLForRegisteredUserWithIdentity ¶
func (b *InMemoryBackend) GenerateEmbedURLForRegisteredUserWithIdentity( _ string, experienceConfiguration map[string]any, ) (string, error)
GenerateEmbedURLForRegisteredUserWithIdentity generates an embed URL for identity-enhanced (IAM Identity Center) sessions, which authenticate via the caller's signing credentials rather than an explicit UserArn/accountID lookup.
func (*InMemoryBackend) GenerateIdentityContext ¶
func (b *InMemoryBackend) GenerateIdentityContext( accountID, namespace, userIdentifierKind, userIdentifierValue, contextRegion string, ) (string, error)
GenerateIdentityContext mints an opaque identity-context token for the given user identity, for use as the ContextAssertion parameter of an STS AssumeRole call. Like the embed-URL family, GetIdentityContext is stateless: nothing is persisted, a fresh token is minted on every call, mirroring generateEmbedURL's signed-looking, single-use token pattern.
func (*InMemoryBackend) GetDashboardEmbedURL ¶
func (b *InMemoryBackend) GetDashboardEmbedURL(accountID, dashboardID, identityType, namespace string) (string, error)
func (*InMemoryBackend) GetFlowMetadata ¶
func (b *InMemoryBackend) GetFlowMetadata(accountID, flowID string) (*Flow, error)
func (*InMemoryBackend) GetFlowPermissions ¶
func (b *InMemoryBackend) GetFlowPermissions(accountID, flowID string) (*Flow, []ResourcePermission, error)
func (*InMemoryBackend) GetSessionEmbedURL ¶
func (b *InMemoryBackend) GetSessionEmbedURL(_, entryPoint string) (string, error)
GetSessionEmbedURL generates a console-session embed URL. Unlike the other embed ops, it isn't scoped to any single stored resource, so accountID is only used (via b.accountID) to build the URL itself.
func (*InMemoryBackend) ListActionConnectors ¶
func (b *InMemoryBackend) ListActionConnectors( _ string, maxResults int32, nextToken string, ) ([]*ActionConnector, string, error)
func (*InMemoryBackend) ListAgents ¶ added in v1.2.0
func (*InMemoryBackend) ListAnalyses ¶
func (*InMemoryBackend) ListApprovalPolicies ¶
func (b *InMemoryBackend) ListApprovalPolicies(maxResults int32, nextToken string) ([]*ApprovalPolicy, string, error)
func (*InMemoryBackend) ListAssetBundleExportJobs ¶
func (b *InMemoryBackend) ListAssetBundleExportJobs( _ string, maxResults int32, nextToken string, ) ([]*AssetBundleExportJob, string, error)
func (*InMemoryBackend) ListAssetBundleImportJobs ¶
func (b *InMemoryBackend) ListAssetBundleImportJobs( _ string, maxResults int32, nextToken string, ) ([]*AssetBundleImportJob, string, error)
func (*InMemoryBackend) ListBrands ¶
func (*InMemoryBackend) ListCustomPermissions ¶
func (b *InMemoryBackend) ListCustomPermissions( _ string, maxResults int32, nextToken string, ) ([]*CustomPermissions, string, error)
func (*InMemoryBackend) ListDashboardVersions ¶
func (b *InMemoryBackend) ListDashboardVersions( accountID, dashboardID string, maxResults int32, nextToken string, ) ([]*DashboardVersion, string, error)
func (*InMemoryBackend) ListDashboards ¶
func (*InMemoryBackend) ListDataSets ¶
func (*InMemoryBackend) ListDataSources ¶
func (b *InMemoryBackend) ListDataSources( _ string, maxResults int32, nextToken string, ) ([]*DataSource, string, error)
func (*InMemoryBackend) ListDlpSettings ¶
func (b *InMemoryBackend) ListDlpSettings( _ string, maxResults int32, nextToken string, ) ([]*DlpSetting, string, error)
ListDlpSettings ignores accountID beyond identity: this backend holds exactly one (accountID, region) pair (see store_setup.go's "Composite keys" doc comment), so every stored DLP setting already belongs to it -- same rationale as allFoldersLocked's unused accountID parameter (folders.go).
func (*InMemoryBackend) ListFolderMembers ¶
func (b *InMemoryBackend) ListFolderMembers( accountID, folderID string, maxResults int32, nextToken string, ) ([]*FolderMember, string, error)
func (*InMemoryBackend) ListFolders ¶
func (*InMemoryBackend) ListFoldersForResource ¶
func (b *InMemoryBackend) ListFoldersForResource( accountID, resourceArn string, maxResults int32, nextToken string, ) ([]string, string, error)
ListFoldersForResource lists the ARNs of all folders that resourceArn is a member of.
func (*InMemoryBackend) ListGroupMemberships ¶
func (b *InMemoryBackend) ListGroupMemberships( accountID, namespace, groupName string, maxResults int32, nextToken string, ) ([]*GroupMember, string, error)
func (*InMemoryBackend) ListGroups ¶
func (*InMemoryBackend) ListIAMPolicyAssignments ¶
func (b *InMemoryBackend) ListIAMPolicyAssignments( accountID, namespace, statusFilter string, maxResults int32, nextToken string, ) ([]*IAMPolicyAssignment, string, error)
func (*InMemoryBackend) ListIAMPolicyAssignmentsForUser ¶
func (b *InMemoryBackend) ListIAMPolicyAssignmentsForUser( accountID, namespace, userName string, maxResults int32, nextToken string, ) ([]*IAMPolicyAssignment, string, error)
ListIAMPolicyAssignmentsForUser returns the ENABLED assignments in namespace whose Identities reference userName (directly, by user name).
func (*InMemoryBackend) ListIdentityPropagationConfigs ¶
func (b *InMemoryBackend) ListIdentityPropagationConfigs(_ string) ([]*IdentityPropagationConfig, error)
func (*InMemoryBackend) ListIngestions ¶
func (*InMemoryBackend) ListKnowledgeBases ¶ added in v1.2.0
func (b *InMemoryBackend) ListKnowledgeBases( _ string, maxResults int32, nextToken string, ) ([]*KnowledgeBase, string, error)
func (*InMemoryBackend) ListLimitsProfiles ¶
func (b *InMemoryBackend) ListLimitsProfiles( accountID, resourceType string, maxResults int32, nextToken string, ) ([]*LimitsProfile, string, error)
func (*InMemoryBackend) ListNamespaces ¶
func (*InMemoryBackend) ListOAuthClientApplications ¶
func (b *InMemoryBackend) ListOAuthClientApplications( _ string, maxResults int32, nextToken string, ) ([]*OAuthClientApplication, string, error)
func (*InMemoryBackend) ListRefreshSchedules ¶
func (b *InMemoryBackend) ListRefreshSchedules(accountID, datasetID string) ([]*RefreshSchedule, error)
func (*InMemoryBackend) ListRoleMemberships ¶
func (*InMemoryBackend) ListSelfUpgrades ¶
func (b *InMemoryBackend) ListSelfUpgrades( accountID, namespace string, maxResults int32, nextToken string, ) ([]*SelfUpgradeRequestDetail, string, error)
func (*InMemoryBackend) ListSpaceResources ¶ added in v1.2.0
func (b *InMemoryBackend) ListSpaceResources(accountID, spaceID string) ([]SpaceResource, error)
func (*InMemoryBackend) ListSpaces ¶ added in v1.2.0
func (*InMemoryBackend) ListTagsForResource ¶
func (b *InMemoryBackend) ListTagsForResource(resourceARN string) (map[string]string, error)
ListTagsForResource lists the tags on resourceARN. See TagResource for the existence-check rationale.
func (*InMemoryBackend) ListTemplateAliases ¶
func (b *InMemoryBackend) ListTemplateAliases( accountID, templateID string, maxResults int32, nextToken string, ) ([]*TemplateAlias, string, error)
func (*InMemoryBackend) ListTemplateVersions ¶
func (b *InMemoryBackend) ListTemplateVersions( accountID, templateID string, maxResults int32, nextToken string, ) ([]*TemplateVersion, string, error)
func (*InMemoryBackend) ListTemplates ¶
func (*InMemoryBackend) ListThemeAliases ¶
func (b *InMemoryBackend) ListThemeAliases( accountID, themeID string, maxResults int32, nextToken string, ) ([]*ThemeAlias, string, error)
func (*InMemoryBackend) ListThemeVersions ¶
func (b *InMemoryBackend) ListThemeVersions( accountID, themeID string, maxResults int32, nextToken string, ) ([]*ThemeVersion, string, error)
func (*InMemoryBackend) ListThemes ¶
func (b *InMemoryBackend) ListThemes( accountID, themeType string, maxResults int32, nextToken string, ) ([]*Theme, string, error)
ListThemes filters by themeType (the raw "type" query value: "ALL", "CUSTOM", or "QUICKSIGHT" per ListThemesInput.Type -- api_op_ListThemes.go documents ALL as the default, i.e. no filter). Empty or "ALL" applies no filter; anything else must match a theme's own Type exactly.
func (*InMemoryBackend) ListTopicRefreshSchedules ¶
func (b *InMemoryBackend) ListTopicRefreshSchedules(accountID, topicID string) ([]*TopicRefreshSchedule, error)
func (*InMemoryBackend) ListTopicReviewedAnswers ¶
func (b *InMemoryBackend) ListTopicReviewedAnswers(accountID, topicID string) ([]*TopicReviewedAnswer, error)
func (*InMemoryBackend) ListTopics ¶
func (*InMemoryBackend) ListUserGroups ¶
func (*InMemoryBackend) ListUsersIndexCapacity ¶ added in v1.2.0
func (b *InMemoryBackend) ListUsersIndexCapacity( _, namespace string, query UserIndexCapacityQuery, maxResults int32, nextToken string, ) ([]UserIndexCapacity, string, error)
ListUsersIndexCapacity computes each user's real, derived index-capacity consumption from this backend's actual KnowledgeBase/Space state: a knowledge base counts against its PrimaryOwnerArn, a space against its CreatedByArn. This backend has no synthetic "index size" pipeline, so KBCount/SpaceCount and their byte totals are exactly what CreateSpace/ CreateKnowledgeBase and UpdateSpaceResources have produced -- never a fabricated placeholder.
namespace is optional (empty scans every namespace, per this op's own handler). storedUser's key is accountID/namespace/UserName, so UserName is only unique within one namespace -- across namespaces (or the namespace="" scan) two different users can share a UserName. The default sort and cursor therefore use UserArn, not UserName: UserArn embeds the namespace and so is globally unique, where UserName alone would (a) let store.Table.All()'s unordered iteration reorder tied users across calls and (b) make paginateUserIndexCapacity's equality-matched nextToken resolve to the same (first) tied user forever. query.SortByCapacity switches the sort key to TotalCapacityBytes (the only member UserIndexCapacitySortBy declares) with UserArn as its tiebreaker for the same total-ordering reason.
func (*InMemoryBackend) ListVPCConnections ¶
func (b *InMemoryBackend) ListVPCConnections( _ string, maxResults int32, nextToken string, ) ([]*VPCConnection, string, error)
func (*InMemoryBackend) PredictQAResults ¶
func (b *InMemoryBackend) PredictQAResults(accountID, queryText string) (*QAResult, error)
PredictQAResults answers a natural-language query against the account's registered Topics. This emulator cannot run real Q&A/NLP inference, but it grounds its answer in real backend state: if any Topic's Name appears in the query text, it returns a GENERATED_ANSWER result referencing that real Topic (its actual TopicId/Name), rather than fabricating a plausible-looking answer out of nothing. Otherwise it returns the explicit NO_ANSWER result type, which is itself a valid QAResultType per the AWS API (not an error).
func (*InMemoryBackend) PutDataSetRefreshProperties ¶
func (b *InMemoryBackend) PutDataSetRefreshProperties( accountID, datasetID string, refreshConfiguration, failureConfiguration map[string]any, ) (*DataSetRefreshProperties, error)
func (*InMemoryBackend) Region ¶
func (b *InMemoryBackend) Region() string
Region returns the configured region.
func (*InMemoryBackend) RegisterUser ¶
func (*InMemoryBackend) Restore ¶
func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error
Restore deserializes backend state from JSON. It implements persistence.Persistable.
func (*InMemoryBackend) RestoreAnalysis ¶
func (b *InMemoryBackend) RestoreAnalysis(accountID, analysisID string) (*Analysis, error)
func (*InMemoryBackend) SearchActionConnectors ¶
func (b *InMemoryBackend) SearchActionConnectors( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*ActionConnector, string, error)
func (*InMemoryBackend) SearchAgents ¶ added in v1.2.0
func (b *InMemoryBackend) SearchAgents( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Agent, string, error)
func (*InMemoryBackend) SearchAnalyses ¶
func (b *InMemoryBackend) SearchAnalyses( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Analysis, string, error)
SearchAnalyses searches analyses by name (filter Name == filterAnalysisName); any other filter Name is an ownership-related filter that this in-memory backend doesn't track and is treated as a pass-through match.
func (*InMemoryBackend) SearchDashboards ¶
func (b *InMemoryBackend) SearchDashboards( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Dashboard, string, error)
SearchDashboards searches dashboards by name (filter Name == filterDashboardName); any other filter Name is an ownership-related filter that this in-memory backend doesn't track and is treated as a pass-through match.
func (*InMemoryBackend) SearchDataSets ¶
func (b *InMemoryBackend) SearchDataSets( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*DataSet, string, error)
SearchDataSets searches data sets by name (filter Name == filterDataSetName); any other filter Name is an ownership-related filter that this in-memory backend doesn't track and is treated as a pass-through match.
func (*InMemoryBackend) SearchDataSources ¶
func (b *InMemoryBackend) SearchDataSources( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*DataSource, string, error)
SearchDataSources searches data sources by name (filter Name == filterDataSourceName); any other filter Name is an ownership-related filter that this in-memory backend doesn't track and is treated as a pass-through match, mirroring folderMatchesFilter's permissive default.
func (*InMemoryBackend) SearchFlows ¶
func (b *InMemoryBackend) SearchFlows( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Flow, string, error)
func (*InMemoryBackend) SearchFolders ¶
func (b *InMemoryBackend) SearchFolders( accountID string, filters []FolderSearchFilter, maxResults int32, nextToken string, ) ([]*Folder, string, error)
func (*InMemoryBackend) SearchGroups ¶
func (b *InMemoryBackend) SearchGroups( _, namespace string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Group, string, error)
SearchGroups filters by namespace and, for each filter, GROUP_NAME with a StartsWith comparison -- the only Name/Operator the real API supports (types.GroupSearchFilter's doc comment: "Currently, the only supported name is GROUP_NAME"/"the only supported operator is StartsWith").
func (*InMemoryBackend) SearchKnowledgeBases ¶ added in v1.2.0
func (b *InMemoryBackend) SearchKnowledgeBases( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*KnowledgeBase, string, error)
func (*InMemoryBackend) SearchSpaces ¶ added in v1.2.0
func (b *InMemoryBackend) SearchSpaces( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Space, string, error)
func (*InMemoryBackend) SearchTopics ¶
func (b *InMemoryBackend) SearchTopics( _ string, filters []SearchFilter, maxResults int32, nextToken string, ) ([]*Topic, string, error)
SearchTopics searches topics by name (filter Name == filterTopicName); any other filter Name (QUICKSIGHT_USER, QUICKSIGHT_VIEWER_OR_OWNER, etc.) is an ownership-related filter that this in-memory backend doesn't track principals for and is treated as a pass-through match, mirroring SearchDashboards/SearchAnalyses.
func (*InMemoryBackend) Snapshot ¶
func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte
Snapshot serializes backend state to JSON. It implements persistence.Persistable.
func (*InMemoryBackend) StartAssetBundleExportJob ¶
func (b *InMemoryBackend) StartAssetBundleExportJob( _, jobID, exportFormat, includeFolderMembers string, resourceArns []string, includeAllDependencies, includeFolderMemberships, includePermissions, includeTags bool, ) (*AssetBundleExportJob, error)
func (*InMemoryBackend) StartAssetBundleImportJob ¶
func (b *InMemoryBackend) StartAssetBundleImportJob( _, jobID, failureAction string, ) (*AssetBundleImportJob, error)
func (*InMemoryBackend) StartAutomationJob ¶
func (b *InMemoryBackend) StartAutomationJob( _, automationGroupID, automationID, inputPayload string, ) (*AutomationJob, error)
StartAutomationJob starts a new run of automationID (scoped to automationGroupID) and returns the freshly assigned job. QuickSight has no API to create automation groups/automations themselves (they're authored via the console), so any non-empty IDs are accepted.
func (*InMemoryBackend) StartDashboardSnapshotJob ¶
func (b *InMemoryBackend) StartDashboardSnapshotJob( accountID, dashboardID, jobID string, snapshotConfiguration map[string]any, ) (*DashboardSnapshotJob, error)
func (*InMemoryBackend) StartDashboardSnapshotJobSchedule ¶
func (b *InMemoryBackend) StartDashboardSnapshotJobSchedule(accountID, dashboardID, scheduleID string) error
StartDashboardSnapshotJobSchedule starts an immediate, on-demand execution of a dashboard's existing snapshot job schedule. Real StartDashboardSnapshotJobScheduleOutput carries no data fields beyond the RequestId/Status envelope; the caller polls DescribeDashboardSnapshotJob separately for results. This emulator does not model schedule definitions themselves (there is no corresponding Create/Describe API for them in the SDK), so it validates what real state it can: that the target dashboard exists and a non-empty ScheduleId was supplied.
func (*InMemoryBackend) TagResource ¶
func (b *InMemoryBackend) TagResource(resourceARN string, tags map[string]string) error
TagResource attaches tags to resourceARN. Real AWS returns ResourceNotFoundException when the ARN doesn't identify an existing taggable resource, so this backend checks arnExists before writing -- callers can't tag a resource into existing just by tagging it.
func (*InMemoryBackend) UntagResource ¶
func (b *InMemoryBackend) UntagResource(resourceARN string, tagKeys []string) error
UntagResource removes tags from resourceARN. See TagResource for the existence-check rationale.
func (*InMemoryBackend) UpdateAccountCustomPermission ¶
func (b *InMemoryBackend) UpdateAccountCustomPermission(accountID, customPermissionsName string) error
UpdateAccountCustomPermission applies (creating or replacing) a custom permissions profile to accountID.
func (*InMemoryBackend) UpdateAccountCustomization ¶
func (b *InMemoryBackend) UpdateAccountCustomization( accountID, namespace, defaultTheme, defaultEmailCustomizationTemplate string, ) (*AccountCustomization, error)
UpdateAccountCustomization mutates an existing branding customization.
func (*InMemoryBackend) UpdateAccountSettings ¶
func (b *InMemoryBackend) UpdateAccountSettings( accountID, defaultNS, notificationEmail string, terminationProtectionEnabled *bool, ) (*AccountSettings, error)
UpdateAccountSettings mutates (creating if necessary) the account's settings.
func (*InMemoryBackend) UpdateActionConnector ¶
func (b *InMemoryBackend) UpdateActionConnector( accountID, actionConnectorID, name, description, vpcConnectionArn string, authenticationConfig map[string]any, ) (*ActionConnector, error)
func (*InMemoryBackend) UpdateActionConnectorPermissions ¶
func (b *InMemoryBackend) UpdateActionConnectorPermissions( accountID, actionConnectorID string, grant, revoke []ResourcePermission, ) (*ActionConnector, []ResourcePermission, error)
func (*InMemoryBackend) UpdateAgent ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateAgent( accountID, agentID, name, description, iconID, welcomeMessage string, actionConnectorsToAdd, actionConnectorsToRemove, spacesToAdd, spacesToRemove, starterPrompts []string, customPrompt *CustomPromptProfile, ) (*Agent, *AgentAssociationUpdate, error)
UpdateAgent updates an agent's mutable fields and attaches/detaches action connectors and spaces. Per-ARN attach/detach failures are real, derived checks (an ARN that doesn't identify a resource this backend holds fails with RESOURCE_NOT_FOUND) rather than fabricated always-succeeds behavior. UpdateAgent's customPrompt follows the same ExistingPrompt-only round-trip as CreateAgent (see its doc comment): a non-nil customPrompt (i.e. the caller supplied CustomPromptInput.ExistingPrompt) replaces the agent's stored profile reference; nil (CustomPromptInput omitted, or NewPrompt -- this backend cannot mint NewPrompt's IDs) leaves whatever was previously stored untouched, matching this file's existing "empty/nil means no change" convention for every other optional Update* field.
func (*InMemoryBackend) UpdateAgentPermissions ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateAgentPermissions( accountID, agentID string, grant, revoke []ResourcePermission, ) (*Agent, []ResourcePermission, error)
func (*InMemoryBackend) UpdateAnalysis ¶
func (*InMemoryBackend) UpdateAnalysisPermissions ¶
func (b *InMemoryBackend) UpdateAnalysisPermissions( accountID, analysisID string, grant, revoke []ResourcePermission, ) (*Analysis, []ResourcePermission, error)
func (*InMemoryBackend) UpdateApprovalPolicy ¶
func (b *InMemoryBackend) UpdateApprovalPolicy( policyID, name, description string, actions, assetTypes, approvalGroups []string, applicableTo *ApplicableTo, ) (*ApprovalPolicy, error)
func (*InMemoryBackend) UpdateBrand ¶
func (*InMemoryBackend) UpdateBrandAssignment ¶
func (b *InMemoryBackend) UpdateBrandAssignment(accountID, brandArn string) (string, error)
func (*InMemoryBackend) UpdateBrandPublishedVersion ¶
func (b *InMemoryBackend) UpdateBrandPublishedVersion(accountID, brandID, versionID string) error
func (*InMemoryBackend) UpdateCustomPermissions ¶
func (b *InMemoryBackend) UpdateCustomPermissions( accountID, name string, capabilities, governance map[string]any, ) (*CustomPermissions, error)
func (*InMemoryBackend) UpdateDashboard ¶
func (*InMemoryBackend) UpdateDashboardLinks ¶
func (b *InMemoryBackend) UpdateDashboardLinks( accountID, dashboardID string, linkEntities []string, ) (*Dashboard, error)
UpdateDashboardLinks replaces the set of analysis ARNs linked to a dashboard.
func (*InMemoryBackend) UpdateDashboardPermissions ¶
func (b *InMemoryBackend) UpdateDashboardPermissions( accountID, dashboardID string, grant, revoke, grantLink, revokeLink []ResourcePermission, ) (*Dashboard, []ResourcePermission, error)
func (*InMemoryBackend) UpdateDashboardPublishedVersion ¶
func (b *InMemoryBackend) UpdateDashboardPublishedVersion( accountID, dashboardID string, versionNumber int64, ) (*Dashboard, error)
UpdateDashboardPublishedVersion flips which stored version of a dashboard is the published one. versionNumber must name a version that actually exists and hasn't been deleted (i.e. be in [1, VersionNumber] and absent from DeletedVersions, matching the versions ListDashboardVersions synthesizes), else ErrDashboardVersionNotFound.
func (*InMemoryBackend) UpdateDashboardsQAConfiguration ¶
func (b *InMemoryBackend) UpdateDashboardsQAConfiguration(accountID, status string) (string, error)
UpdateDashboardsQAConfiguration sets accountID's Dashboards Q&A status.
func (*InMemoryBackend) UpdateDataSet ¶
func (b *InMemoryBackend) UpdateDataSet( accountID, dataSetID, name, importMode string, physicalTableMap map[string]PhysicalTable, logicalTableMap map[string]LogicalTable, ) (*DataSet, *Ingestion, error)
UpdateDataSet updates a dataset. Like CreateDataSet, real AWS's UpdateDataSetOutput documents IngestionArn/IngestionId as "triggered as a result of dataset creation if the import mode is SPICE" -- the same conditional-on-ImportMode semantics apply here (UpdateDataSet requires the full dataset definition including ImportMode on every call, so a SPICE dataset effectively re-ingests on every update). This mirrors CreateDataSet by creating a real, describable Ingestion record instead of fabricating an ARN/ID, and only reporting one when the resulting ImportMode is SPICE.
func (*InMemoryBackend) UpdateDataSetPermissions ¶
func (b *InMemoryBackend) UpdateDataSetPermissions( accountID, dataSetID string, grant, revoke []ResourcePermission, ) (*DataSet, []ResourcePermission, error)
func (*InMemoryBackend) UpdateDataSource ¶
func (b *InMemoryBackend) UpdateDataSource(accountID, dataSourceID, name string) (*DataSource, error)
func (*InMemoryBackend) UpdateDataSourcePermissions ¶
func (b *InMemoryBackend) UpdateDataSourcePermissions( accountID, dataSourceID string, grant, revoke []ResourcePermission, ) (*DataSource, []ResourcePermission, error)
func (*InMemoryBackend) UpdateDefaultQBusinessApplication ¶
func (b *InMemoryBackend) UpdateDefaultQBusinessApplication( accountID, applicationID, namespace string, ) (*DefaultQBusinessApplication, error)
UpdateDefaultQBusinessApplication sets (creating if necessary) accountID's default Q Business application.
func (*InMemoryBackend) UpdateDlpSetting ¶
func (b *InMemoryBackend) UpdateDlpSetting( accountID, dlpSettingID, name string, enabled *bool, providerType, providerOutageAction string, providerConfig *ProviderConfig, ) (*DlpSetting, error)
func (*InMemoryBackend) UpdateFlow ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateFlow( accountID, flowID, name, description string, flowDefinition map[string]any, ) (*Flow, error)
UpdateFlow updates a flow's mutable fields. Per CreateFlow, replacing FlowDefinition replaces the entire definition (matching the real op's documented all-or-nothing step replacement).
func (*InMemoryBackend) UpdateFlowPermissions ¶
func (b *InMemoryBackend) UpdateFlowPermissions( accountID, flowID string, grant, revoke []ResourcePermission, ) (*Flow, []ResourcePermission, error)
func (*InMemoryBackend) UpdateFolder ¶
func (b *InMemoryBackend) UpdateFolder(accountID, folderID, name string) (*Folder, error)
func (*InMemoryBackend) UpdateFolderPermissions ¶
func (b *InMemoryBackend) UpdateFolderPermissions( accountID, folderID string, grant, revoke []ResourcePermission, ) ([]ResourcePermission, error)
func (*InMemoryBackend) UpdateGroup ¶
func (b *InMemoryBackend) UpdateGroup(accountID, namespace, groupName, description string) (*Group, error)
func (*InMemoryBackend) UpdateIAMPolicyAssignment ¶
func (b *InMemoryBackend) UpdateIAMPolicyAssignment( accountID, namespace, assignmentName, assignmentStatus, policyArn string, identities map[string][]string, ) (*IAMPolicyAssignment, error)
func (*InMemoryBackend) UpdateIPRestriction ¶
func (b *InMemoryBackend) UpdateIPRestriction( accountID string, ruleMap, vpcIDRuleMap, vpcEndpointIDRuleMap map[string]string, enabled *bool, ) (*IPRestriction, error)
UpdateIPRestriction replaces (creating if necessary) accountID's IP restriction rules. Nil maps leave the corresponding rule map unchanged; a nil enabled leaves Enabled unchanged.
func (*InMemoryBackend) UpdateIdentityPropagationConfig ¶
func (b *InMemoryBackend) UpdateIdentityPropagationConfig(_, service string, authorizedTargets []string) error
func (*InMemoryBackend) UpdateKeyRegistration ¶
func (b *InMemoryBackend) UpdateKeyRegistration( accountID string, keys []RegisteredCustomerManagedKey, ) ([]RegisteredCustomerManagedKey, error)
UpdateKeyRegistration replaces accountID's set of registered customer-managed keys.
func (*InMemoryBackend) UpdateKnowledgeBase ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateKnowledgeBase( accountID, knowledgeBaseID, name, description string, emailNotificationOptedIn *bool, configuration, accessControlConfiguration, mediaExtractionConfiguration map[string]any, ) (*KnowledgeBase, error)
func (*InMemoryBackend) UpdateKnowledgeBasePermissions ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateKnowledgeBasePermissions( accountID, knowledgeBaseID string, grant, revoke []ResourcePermission, ) (*KnowledgeBase, []ResourcePermission, error)
func (*InMemoryBackend) UpdateLimitsProfile ¶
func (b *InMemoryBackend) UpdateLimitsProfile( accountID, profileID, profileName, description string, resourceLimits map[string]ProfileLimitValue, ) (*LimitsProfile, error)
func (*InMemoryBackend) UpdateOAuthClientApplication ¶
func (b *InMemoryBackend) UpdateOAuthClientApplication( accountID, clientID, name string, fields map[string]any, ) (*OAuthClientApplication, error)
func (*InMemoryBackend) UpdatePublicSharingSettings ¶
func (b *InMemoryBackend) UpdatePublicSharingSettings(accountID string, enabled bool) error
UpdatePublicSharingSettings sets whether public sharing is enabled for accountID. The value is surfaced back through DescribeAccountSettings.PublicSharingEnabled.
func (*InMemoryBackend) UpdateQPersonalizationConfiguration ¶
func (b *InMemoryBackend) UpdateQPersonalizationConfiguration(accountID, mode string) (string, error)
UpdateQPersonalizationConfiguration sets accountID's Q personalization mode.
func (*InMemoryBackend) UpdateQuickSightQSearchConfiguration ¶
func (b *InMemoryBackend) UpdateQuickSightQSearchConfiguration(accountID, status string) (string, error)
UpdateQuickSightQSearchConfiguration sets accountID's Q Search status.
func (*InMemoryBackend) UpdateRefreshSchedule ¶
func (b *InMemoryBackend) UpdateRefreshSchedule( accountID, datasetID, scheduleID, refreshType string, startAfterDateTime time.Time, scheduleFrequency map[string]any, ) (*RefreshSchedule, error)
func (*InMemoryBackend) UpdateRoleCustomPermission ¶
func (b *InMemoryBackend) UpdateRoleCustomPermission(accountID, namespace, role, customPermissionsName string) error
func (*InMemoryBackend) UpdateSPICECapacityConfiguration ¶
func (b *InMemoryBackend) UpdateSPICECapacityConfiguration(accountID, purchaseMode string) error
UpdateSPICECapacityConfiguration sets accountID's SPICE capacity purchase mode. The real AWS operation's response carries no data beyond RequestId/Status, so there is nothing to return here beyond validation. An empty purchaseMode is a no-op (PurchaseMode is required by the real API, but callers that omit it here leave the stored configuration untouched rather than erroring); a non-empty, unrecognized value is rejected.
func (*InMemoryBackend) UpdateSelfUpgrade ¶
func (b *InMemoryBackend) UpdateSelfUpgrade( accountID, namespace, action, upgradeRequestID string, ) (*SelfUpgradeRequestDetail, error)
UpdateSelfUpgrade approves, denies, or (re-)verifies an existing self-upgrade request. VERIFY re-confirms an already-decided request without changing its RequestStatus (there is no distinct "VERIFIED" status in the QuickSight API; only PENDING/APPROVED/DENIED/UPDATE_FAILED/VERIFY_FAILED exist), but always refreshes LastUpdateAttemptTime.
func (*InMemoryBackend) UpdateSelfUpgradeConfiguration ¶
func (b *InMemoryBackend) UpdateSelfUpgradeConfiguration(accountID, namespace, status string) (string, error)
UpdateSelfUpgradeConfiguration sets namespace's self-upgrade status.
func (*InMemoryBackend) UpdateSpace ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateSpace(accountID, spaceID, name, description string) (*Space, error)
func (*InMemoryBackend) UpdateSpacePermissions ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateSpacePermissions( accountID, spaceID string, grant, revoke []ResourcePermission, ) (*Space, []ResourcePermission, error)
func (*InMemoryBackend) UpdateSpaceResources ¶ added in v1.2.0
func (b *InMemoryBackend) UpdateSpaceResources( accountID, spaceID string, add, remove []SpaceResource, ) (*Space, []AssociationFailure, error)
UpdateSpaceResources adds/removes resources from a space, keyed by ARN. Each ARN is validated against arnExists (a real, derived check -- an ARN that doesn't identify a resource this backend holds fails rather than being silently accepted), mirroring UpdateAgent's association validation.
func (*InMemoryBackend) UpdateTemplate ¶
func (*InMemoryBackend) UpdateTemplateAlias ¶
func (b *InMemoryBackend) UpdateTemplateAlias( accountID, templateID, aliasName string, versionNumber int64, ) (*TemplateAlias, error)
func (*InMemoryBackend) UpdateTemplatePermissions ¶
func (b *InMemoryBackend) UpdateTemplatePermissions( accountID, templateID string, grant, revoke []ResourcePermission, ) (*Template, []ResourcePermission, error)
func (*InMemoryBackend) UpdateTheme ¶
func (*InMemoryBackend) UpdateThemeAlias ¶
func (b *InMemoryBackend) UpdateThemeAlias( accountID, themeID, aliasName string, versionNumber int64, ) (*ThemeAlias, error)
func (*InMemoryBackend) UpdateThemePermissions ¶
func (b *InMemoryBackend) UpdateThemePermissions( accountID, themeID string, grant, revoke []ResourcePermission, ) (*Theme, []ResourcePermission, error)
func (*InMemoryBackend) UpdateTopic ¶
func (*InMemoryBackend) UpdateTopicPermissions ¶
func (b *InMemoryBackend) UpdateTopicPermissions( accountID, topicID string, grant, revoke []ResourcePermission, ) (*Topic, []ResourcePermission, error)
func (*InMemoryBackend) UpdateTopicRefreshSchedule ¶
func (b *InMemoryBackend) UpdateTopicRefreshSchedule( accountID, topicID, datasetID, refreshType string, isEnabled *bool, scheduleConfig map[string]any, ) (*TopicRefreshSchedule, error)
UpdateTopicRefreshSchedule updates an existing schedule. Pointer/nil-able parameters are only applied when non-nil/non-empty so a partial (or empty) update body leaves existing fields untouched, matching the CreateFolder/ UpdateFolder convention used elsewhere in this package.
func (*InMemoryBackend) UpdateTopicV2 ¶ added in v1.3.1
func (b *InMemoryBackend) UpdateTopicV2( accountID, topicID, name, description, customInstructions, publishOption string, dataSets []map[string]any, dataSetRelations []map[string]any, ) (*Topic, error)
UpdateTopicV2 does a full replace of Name/Description/DataSets/ DataSetRelations and updates CustomInstructions/PublishOption only when supplied -- see the file doc comment above.
func (*InMemoryBackend) UpdateUser ¶
func (b *InMemoryBackend) UpdateUser( accountID, namespace, userName, email, role, customPermissionsName string, ) (*User, error)
func (*InMemoryBackend) UpdateUserCustomPermission ¶
func (b *InMemoryBackend) UpdateUserCustomPermission( accountID, namespace, userName, customPermissionsName string, ) error
func (*InMemoryBackend) UpdateVPCConnection ¶
func (b *InMemoryBackend) UpdateVPCConnection( accountID, vpcConnectionID, name string, subnetIDs, securityGroupIDs, dnsResolvers []string, roleArn string, ) (*VPCConnection, error)
type Ingestion ¶
type Ingestion struct {
CreatedTime time.Time
IngestionID string
Arn string
DataSetID string
IngestionStatus string
}
Ingestion represents a QuickSight ingestion. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type InputColumn ¶ added in v1.3.1
InputColumn describes one column of a PhysicalTable's underlying schema (quicksight@v1.123.1 types.InputColumn).
type JoinInstruction ¶ added in v1.3.1
JoinInstruction is the ON-clause of a two-logical-table join (quicksight@v1.123.1 types.JoinInstruction). LeftJoinKeyProperties/ RightJoinKeyProperties are optional SDK fields not modeled here: this backend never applies a join, so a table alias that is a join carries no backing state either way.
type KnowledgeBase ¶ added in v1.2.0
type KnowledgeBase struct {
CreatedAt time.Time
UpdatedAt time.Time
Configuration map[string]any
AccessControlConfiguration map[string]any
MediaExtractionConfiguration map[string]any
KnowledgeBaseID string
Arn string
Name string
Description string
DataSourceArn string
Status string
PrimaryOwnerArn string
Permissions []ResourcePermission
DocumentCount int64
SizeBytes int64
EmailNotificationOptedIn bool
}
KnowledgeBase represents a QuickSight knowledge base: an indexed corpus of documents from a data source that agents/flows can query for retrieval-augmented answers. Configuration/AccessControlConfiguration/ MediaExtractionConfiguration are stored as opaque pass-through documents (like Dashboard.Definition elsewhere in this backend) since their real shapes are deeply nested and this backend has no processing logic that needs to interpret them.
type KnowledgeBaseDeleteError ¶ added in v1.2.0
type KnowledgeBaseDeleteError struct {
KnowledgeBaseID string
ErrorCode string
ErrorMessage string
}
KnowledgeBaseDeleteError identifies one knowledge base BatchDeleteKnowledgeBase failed to delete.
type KnowledgeBaseDeleteResult ¶ added in v1.2.0
KnowledgeBaseDeleteResult identifies one knowledge base successfully deleted by BatchDeleteKnowledgeBase.
type LabelActionMapping ¶
LabelActionMapping maps one DLP-provider sensitivity label to an enforcement action.
type LimitsProfile ¶
type LimitsProfile struct {
CreatedAt time.Time
UpdatedAt time.Time
ResourceLimits map[string]ProfileLimitValue
ProfileID string
Arn string
AccountID string
ProfileName string
Description string
}
LimitsProfile represents a QuickSight governance limits profile (a named set of per-resource-type usage limits).
type LogicalTable ¶ added in v1.3.1
type LogicalTable struct {
Alias string
Source *LogicalTableSource
DataTransforms []any
}
LogicalTable configures the combination/transformation of PhysicalTableMap entries (quicksight@v1.123.1 types.LogicalTable). DataTransforms is stored and echoed back verbatim rather than modeled: TransformOperation is a 10+-variant union (CastColumnType, CreateColumns, Filter, RenameColumn, ...) this in-memory backend never evaluates, so preserving the caller's raw JSON is honest where re-deriving typed structs it never acts on would not be.
type LogicalTableSource ¶ added in v1.3.1
type LogicalTableSource struct {
DataSetArn string
JoinInstruction *JoinInstruction
PhysicalTableID string
}
LogicalTableSource identifies where a LogicalTable's rows come from: a PhysicalTable by ID, a join of two other logical tables, or another dataset's ARN (quicksight@v1.123.1 types.LogicalTableSource -- a union by doc comment, not an SDK interface; at most one field is expected set).
type MicrosoftPurviewProviderConfig ¶
type MicrosoftPurviewProviderConfig struct {
SecretArn string
UnmappedAction string
LabelActionMappings []LabelActionMapping
}
MicrosoftPurviewProviderConfig is the Microsoft Purview variant of DlpSetting's ProviderConfig union -- the only variant the pinned SDK defines (quicksight@v1.129.0 types/types.go:17080's doc comment).
type Namespace ¶
type Namespace struct {
CreationStatus string
Name string
Arn string
CapacityRegion string
IdentityStore string
}
Namespace represents a QuickSight namespace.
type OAuthClientApplication ¶
type OAuthClientApplication struct {
CreatedTime time.Time
LastUpdatedTime time.Time
Extra map[string]any
ClientID string
Arn string
Name string
Status string
}
OAuthClientApplication represents a QuickSight OAuth 2.0 client application used to connect to a data source's identity provider.
type PhysicalTable ¶ added in v1.3.1
type PhysicalTable struct {
RelationalTable *RelationalTable
CustomSQL *CustomSQL
S3Source *S3Source
FileSource *FileSource
SaaSTable *SaaSTable
}
PhysicalTable is the union of underlying-source shapes a dataset can declare (quicksight@v1.123.1 types.PhysicalTable, an interface with PhysicalTableMember{CustomSql,FileSource,RelationalTable,S3Source,SaaSTable} implementations). Modeled here as a struct with one populated pointer field per wire union member, keyed by the same member name AWS uses on the wire, rather than as a Go interface -- valid input has exactly one non-nil field.
type ProfileLimitValue ¶
ProfileLimitValue is one resource-type limit within a LimitsProfile.
type Provider ¶
type Provider struct{}
Provider implements service.Provider for Amazon QuickSight.
func (*Provider) Init ¶
func (p *Provider) Init(ctx *service.AppContext) (service.Registerable, error)
Init initializes the QuickSight service backend and handler.
type ProviderConfig ¶
type ProviderConfig struct {
MicrosoftPurview *MicrosoftPurviewProviderConfig
}
ProviderConfig is a DlpSetting's provider-specific configuration. Exactly one field is set, mirroring the SDK's ProviderConfig union type.
type QAResult ¶
type QAResult struct {
AnswerID string
AnswerStatus string
QuestionID string
QuestionText string
TopicID string
TopicName string
ResultType string
}
QAResult represents a single Predict QA result: either a generated natural-language answer referencing a real Topic in the account, or an explicit "no answer" result when no topic matches the query text.
type RefreshSchedule ¶
type RefreshSchedule struct {
StartAfterDateTime time.Time
ScheduleFrequency map[string]any
ScheduleID string
Arn string
RefreshType string
}
RefreshSchedule represents a QuickSight dataset SPICE refresh schedule.
type RegisteredCustomerManagedKey ¶
RegisteredCustomerManagedKey represents a customer-managed KMS key registered with QuickSight.
type RelationalTable ¶ added in v1.3.1
type RelationalTable struct {
DataSourceArn string
Name string
Catalog string
Schema string
InputColumns []InputColumn
}
RelationalTable is a PhysicalTable variant sourced from a relational data source (quicksight@v1.123.1 types.RelationalTable).
type ResourcePermission ¶
type ResourcePermission struct {
Principal string `json:"principal"`
Actions []string `json:"actions"`
}
ResourcePermission represents a QuickSight principal + allowed actions grant.
type S3Source ¶ added in v1.3.1
type S3Source struct {
UploadSettings *UploadSettings
DataSourceArn string
InputColumns []InputColumn
}
S3Source is a PhysicalTable variant sourced from an S3 file (quicksight@v1.123.1 types.S3Source).
type SaaSTable ¶ added in v1.3.1
type SaaSTable struct {
DataSourceArn string
InputColumns []InputColumn
TablePath []TablePathElement
}
SaaSTable is a PhysicalTable variant sourced from a SaaS connector (quicksight@v1.123.1 types.SaaSTable).
type SearchFilter ¶
type SearchFilter = FolderSearchFilter
SearchFilter is a generic Name/Operator/Value search filter, shared by the Search{Analyses,Dashboards,DataSets,DataSources} operations. It has the same shape as FolderSearchFilter (SearchFolders' filter type).
type SelfUpgradeRequestDetail ¶
type SelfUpgradeRequestDetail struct {
LastUpdateFailureReason string
OriginalRole string
RequestNote string
RequestStatus string
RequestedRole string
UpgradeRequestID string
UserName string
CreationTime int64
LastUpdateAttemptTime int64
}
SelfUpgradeRequestDetail represents one namespace self-upgrade request (a user's request to be upgraded to a different UserRole).
type Space ¶ added in v1.2.0
type Space struct {
CreatedAt time.Time
UpdatedAt time.Time
SpaceID string
Arn string
Name string
Description string
CreatedBy string
CreatedByArn string
Resources []SpaceResource
Permissions []ResourcePermission
}
Space represents a QuickSight space: a named collection of resources (topics, dashboards, knowledge bases, action connectors, datasets) grouped together to scope agent/flow context.
type SpaceResource ¶ added in v1.2.0
type SpaceResource struct {
UpdatedAt time.Time
ResourceArn string
ResourceType string
ResourceName string
}
SpaceResource represents one QuickSight asset (identified by ARN and type) attached to a space.
type StorageBackend ¶
type StorageBackend interface {
// Namespaces
CreateNamespace(accountID, namespace, capacityRegion string, tags map[string]string) (*Namespace, error)
DescribeNamespace(accountID, namespace string) (*Namespace, error)
DeleteNamespace(accountID, namespace string) error
ListNamespaces(accountID string, maxResults int32, nextToken string) ([]*Namespace, string, error)
// Groups
CreateGroup(accountID, namespace, groupName, description string) (*Group, error)
DescribeGroup(accountID, namespace, groupName string) (*Group, error)
UpdateGroup(accountID, namespace, groupName, description string) (*Group, error)
DeleteGroup(accountID, namespace, groupName string) error
ListGroups(accountID, namespace string, maxResults int32, nextToken string) ([]*Group, string, error)
SearchGroups(
accountID, namespace string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Group, string, error)
// Group Memberships
CreateGroupMembership(accountID, namespace, groupName, memberName string) (*GroupMember, error)
DescribeGroupMembership(accountID, namespace, groupName, memberName string) (*GroupMember, error)
DeleteGroupMembership(accountID, namespace, groupName, memberName string) error
ListGroupMemberships(
accountID, namespace, groupName string,
maxResults int32,
nextToken string,
) ([]*GroupMember, string, error)
// Users
RegisterUser(
accountID, namespace, userName, email, role, identityType, sessionName, customPermissionsName string,
tags map[string]string,
) (*User, error)
DescribeUser(accountID, namespace, userName string) (*User, error)
UpdateUser(accountID, namespace, userName, email, role, customPermissionsName string) (*User, error)
DeleteUser(accountID, namespace, userName string) error
DeleteUserByPrincipalID(accountID, namespace, principalID string) error
ListUsers(accountID, namespace string, maxResults int32, nextToken string) ([]*User, string, error)
ListUserGroups(accountID, namespace, userName string, maxResults int32, nextToken string) ([]*Group, string, error)
// DataSources
CreateDataSource(
accountID, dataSourceID, name, dsType string,
permissions []ResourcePermission,
tags map[string]string,
) (*DataSource, error)
DescribeDataSource(accountID, dataSourceID string) (*DataSource, error)
UpdateDataSource(accountID, dataSourceID, name string) (*DataSource, error)
DeleteDataSource(accountID, dataSourceID string) error
ListDataSources(accountID string, maxResults int32, nextToken string) ([]*DataSource, string, error)
SearchDataSources(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*DataSource, string, error)
DescribeDataSourcePermissions(accountID, dataSourceID string) (*DataSource, []ResourcePermission, error)
UpdateDataSourcePermissions(
accountID, dataSourceID string,
grant, revoke []ResourcePermission,
) (*DataSource, []ResourcePermission, error)
// DataSets
// CreateDataSet returns the created dataset plus the *Ingestion triggered
// as a side effect when importMode is SPICE (nil for DIRECT_QUERY, which
// triggers no ingestion). physicalTableMap is required by AWS (rejects a
// dataset with no physical tables); logicalTableMap is optional.
CreateDataSet(
accountID, dataSetID, name, importMode string,
permissions []ResourcePermission,
tags map[string]string,
physicalTableMap map[string]PhysicalTable,
logicalTableMap map[string]LogicalTable,
) (*DataSet, *Ingestion, error)
DescribeDataSet(accountID, dataSetID string) (*DataSet, error)
// UpdateDataSet returns the updated dataset plus the *Ingestion triggered
// as a side effect when the resulting importMode is SPICE (nil for
// DIRECT_QUERY), mirroring CreateDataSet's conditional-ingestion contract.
// physicalTableMap is required by AWS on every UpdateDataSet call (this
// operation doesn't support partial updates); logicalTableMap is optional.
UpdateDataSet(
accountID, dataSetID, name, importMode string,
physicalTableMap map[string]PhysicalTable,
logicalTableMap map[string]LogicalTable,
) (*DataSet, *Ingestion, error)
DeleteDataSet(accountID, dataSetID string) error
ListDataSets(accountID string, maxResults int32, nextToken string) ([]*DataSet, string, error)
SearchDataSets(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*DataSet, string, error)
DescribeDataSetPermissions(accountID, dataSetID string) (*DataSet, []ResourcePermission, error)
UpdateDataSetPermissions(
accountID, dataSetID string,
grant, revoke []ResourcePermission,
) (*DataSet, []ResourcePermission, error)
// Ingestions
CreateIngestion(accountID, dataSetID, ingestionID string) (*Ingestion, error)
DescribeIngestion(accountID, dataSetID, ingestionID string) (*Ingestion, error)
CancelIngestion(accountID, dataSetID, ingestionID string) error
ListIngestions(accountID, dataSetID string, maxResults int32, nextToken string) ([]*Ingestion, string, error)
// Dashboards
CreateDashboard(
accountID, dashboardID, name, themeArn, versionDescription string,
definition, publishOptions map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*Dashboard, error)
DescribeDashboard(accountID, dashboardID string) (*Dashboard, error)
UpdateDashboard(
accountID, dashboardID, name, themeArn, versionDescription string,
definition, publishOptions map[string]any,
) (*Dashboard, error)
DeleteDashboard(accountID, dashboardID string, versionNumber int64) error
ListDashboards(accountID string, maxResults int32, nextToken string) ([]*Dashboard, string, error)
ListDashboardVersions(
accountID, dashboardID string,
maxResults int32,
nextToken string,
) ([]*DashboardVersion, string, error)
SearchDashboards(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Dashboard, string, error)
UpdateDashboardPublishedVersion(accountID, dashboardID string, versionNumber int64) (*Dashboard, error)
UpdateDashboardLinks(accountID, dashboardID string, linkEntities []string) (*Dashboard, error)
DescribeDashboardPermissions(accountID, dashboardID string) (*Dashboard, []ResourcePermission, error)
UpdateDashboardPermissions(
accountID, dashboardID string,
grant, revoke, grantLink, revokeLink []ResourcePermission,
) (*Dashboard, []ResourcePermission, error)
// Analyses
CreateAnalysis(
accountID, analysisID, name, themeArn string,
definition map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*Analysis, error)
DescribeAnalysis(accountID, analysisID string) (*Analysis, error)
UpdateAnalysis(accountID, analysisID, name, themeArn string, definition map[string]any) (*Analysis, error)
DeleteAnalysis(
accountID, analysisID string, forceDeleteWithoutRecovery bool, recoveryWindowInDays int64,
) (time.Time, error)
ListAnalyses(accountID string, maxResults int32, nextToken string) ([]*Analysis, string, error)
RestoreAnalysis(accountID, analysisID string) (*Analysis, error)
SearchAnalyses(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Analysis, string, error)
DescribeAnalysisPermissions(accountID, analysisID string) (*Analysis, []ResourcePermission, error)
UpdateAnalysisPermissions(
accountID, analysisID string,
grant, revoke []ResourcePermission,
) (*Analysis, []ResourcePermission, error)
// Tags
TagResource(resourceARN string, tags map[string]string) error
UntagResource(resourceARN string, tagKeys []string) error
ListTagsForResource(resourceARN string) (map[string]string, error)
// Folders
CreateFolder(
accountID, folderID, name, folderType, parentFolderArn, sharingModel string,
permissions []ResourcePermission,
tags map[string]string,
) (*Folder, error)
DescribeFolder(accountID, folderID string) (*Folder, error)
UpdateFolder(accountID, folderID, name string) (*Folder, error)
DeleteFolder(accountID, folderID string) error
ListFolders(accountID string, maxResults int32, nextToken string) ([]*Folder, string, error)
SearchFolders(
accountID string,
filters []FolderSearchFilter,
maxResults int32,
nextToken string,
) ([]*Folder, string, error)
// Folder memberships
CreateFolderMembership(accountID, folderID, memberID, memberType string) (*FolderMember, error)
DeleteFolderMembership(accountID, folderID, memberID, memberType string) error
ListFolderMembers(
accountID, folderID string,
maxResults int32,
nextToken string,
) ([]*FolderMember, string, error)
// Folder permissions
DescribeFolderPermissions(accountID, folderID string) ([]ResourcePermission, error)
UpdateFolderPermissions(
accountID, folderID string,
grant, revoke []ResourcePermission,
) ([]ResourcePermission, error)
DescribeFolderResolvedPermissions(accountID, folderID string) ([]ResourcePermission, error)
// Folders-for-resource
ListFoldersForResource(
accountID, resourceArn string,
maxResults int32,
nextToken string,
) ([]string, string, error)
// Templates
CreateTemplate(
accountID, templateID, name, sourceEntityArn, versionDescription string,
definition map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*Template, error)
DescribeTemplate(accountID, templateID string, versionNumber int64) (*Template, error)
UpdateTemplate(
accountID, templateID, name, sourceEntityArn, versionDescription string,
definition map[string]any,
) (*Template, error)
DeleteTemplate(accountID, templateID string, versionNumber int64) error
ListTemplates(accountID string, maxResults int32, nextToken string) ([]*Template, string, error)
ListTemplateVersions(
accountID, templateID string,
maxResults int32,
nextToken string,
) ([]*TemplateVersion, string, error)
DescribeTemplatePermissions(accountID, templateID string) (*Template, []ResourcePermission, error)
UpdateTemplatePermissions(
accountID, templateID string,
grant, revoke []ResourcePermission,
) (*Template, []ResourcePermission, error)
// Template aliases
CreateTemplateAlias(accountID, templateID, aliasName string, versionNumber int64) (*TemplateAlias, error)
DescribeTemplateAlias(accountID, templateID, aliasName string) (*TemplateAlias, error)
UpdateTemplateAlias(accountID, templateID, aliasName string, versionNumber int64) (*TemplateAlias, error)
DeleteTemplateAlias(accountID, templateID, aliasName string) error
ListTemplateAliases(
accountID, templateID string,
maxResults int32,
nextToken string,
) ([]*TemplateAlias, string, error)
// Themes
CreateTheme(
accountID, themeID, name, baseThemeID, versionDescription string,
configuration map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*Theme, error)
DescribeTheme(accountID, themeID string, versionNumber int64) (*Theme, error)
UpdateTheme(
accountID, themeID, name, baseThemeID, versionDescription string,
configuration map[string]any,
) (*Theme, error)
DeleteTheme(accountID, themeID string, versionNumber int64) error
ListThemes(accountID, themeType string, maxResults int32, nextToken string) ([]*Theme, string, error)
ListThemeVersions(
accountID, themeID string,
maxResults int32,
nextToken string,
) ([]*ThemeVersion, string, error)
DescribeThemePermissions(accountID, themeID string) (*Theme, []ResourcePermission, error)
UpdateThemePermissions(
accountID, themeID string,
grant, revoke []ResourcePermission,
) (*Theme, []ResourcePermission, error)
// Theme aliases
CreateThemeAlias(accountID, themeID, aliasName string, versionNumber int64) (*ThemeAlias, error)
DescribeThemeAlias(accountID, themeID, aliasName string) (*ThemeAlias, error)
UpdateThemeAlias(accountID, themeID, aliasName string, versionNumber int64) (*ThemeAlias, error)
DeleteThemeAlias(accountID, themeID, aliasName string) error
ListThemeAliases(
accountID, themeID string,
maxResults int32,
nextToken string,
) ([]*ThemeAlias, string, error)
// Topics
CreateTopic(
accountID, topicID, name, description, userExperienceVersion string,
dataSets []map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*Topic, error)
DescribeTopic(accountID, topicID string) (*Topic, error)
UpdateTopic(
accountID, topicID, name, description, userExperienceVersion string,
dataSets []map[string]any,
) (*Topic, error)
DeleteTopic(accountID, topicID string) error
ListTopics(accountID string, maxResults int32, nextToken string) ([]*Topic, string, error)
SearchTopics(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Topic, string, error)
// Topic permissions
DescribeTopicPermissions(accountID, topicID string) (*Topic, []ResourcePermission, error)
UpdateTopicPermissions(
accountID, topicID string,
grant, revoke []ResourcePermission,
) (*Topic, []ResourcePermission, error)
// Topic refresh
DescribeTopicRefresh(accountID, topicID, refreshID string) (*TopicRefreshDetails, error)
// Topic refresh schedules
CreateTopicRefreshSchedule(
accountID, topicID, datasetID, datasetArn, refreshType string,
isEnabled bool,
scheduleConfig map[string]any,
) (*TopicRefreshSchedule, error)
DescribeTopicRefreshSchedule(accountID, topicID, datasetID string) (*TopicRefreshSchedule, error)
UpdateTopicRefreshSchedule(
accountID, topicID, datasetID, refreshType string,
isEnabled *bool,
scheduleConfig map[string]any,
) (*TopicRefreshSchedule, error)
DeleteTopicRefreshSchedule(accountID, topicID, datasetID string) (*TopicRefreshSchedule, error)
ListTopicRefreshSchedules(accountID, topicID string) ([]*TopicRefreshSchedule, error)
// Topic reviewed answers
BatchCreateTopicReviewedAnswer(
accountID, topicID string,
answers []map[string]any,
) ([]*TopicReviewedAnswer, []TopicAnswerError, error)
BatchDeleteTopicReviewedAnswer(
accountID, topicID string,
answerIDs []string,
) ([]string, []TopicAnswerError, error)
ListTopicReviewedAnswers(accountID, topicID string) ([]*TopicReviewedAnswer, error)
// Topics V2 (Q topics); Describe/Delete/List/Search/permissions reuse the
// V1 methods above directly (handler_topics_v2.go) -- see topics_v2.go.
CreateTopicV2(
accountID, topicID, name, description, customInstructions string,
dataSets []map[string]any,
dataSetRelations []map[string]any,
tags map[string]string,
) (*Topic, error)
UpdateTopicV2(
accountID, topicID, name, description, customInstructions, publishOption string,
dataSets []map[string]any,
dataSetRelations []map[string]any,
) (*Topic, error)
// VPC connections
CreateVPCConnection(
accountID, vpcConnectionID, name, vpcID string,
subnetIDs, securityGroupIDs, dnsResolvers []string,
roleArn string,
tags map[string]string,
) (*VPCConnection, error)
DescribeVPCConnection(accountID, vpcConnectionID string) (*VPCConnection, error)
UpdateVPCConnection(
accountID, vpcConnectionID, name string,
subnetIDs, securityGroupIDs, dnsResolvers []string,
roleArn string,
) (*VPCConnection, error)
DeleteVPCConnection(accountID, vpcConnectionID string) (*VPCConnection, error)
ListVPCConnections(accountID string, maxResults int32, nextToken string) ([]*VPCConnection, string, error)
// IAM policy assignments
CreateIAMPolicyAssignment(
accountID, namespace, assignmentName, assignmentStatus, policyArn string,
identities map[string][]string,
) (*IAMPolicyAssignment, error)
DescribeIAMPolicyAssignment(accountID, namespace, assignmentName string) (*IAMPolicyAssignment, error)
UpdateIAMPolicyAssignment(
accountID, namespace, assignmentName, assignmentStatus, policyArn string,
identities map[string][]string,
) (*IAMPolicyAssignment, error)
DeleteIAMPolicyAssignment(accountID, namespace, assignmentName string) error
ListIAMPolicyAssignments(
accountID, namespace, statusFilter string,
maxResults int32,
nextToken string,
) ([]*IAMPolicyAssignment, string, error)
ListIAMPolicyAssignmentsForUser(
accountID, namespace, userName string,
maxResults int32,
nextToken string,
) ([]*IAMPolicyAssignment, string, error)
// Account settings
DescribeAccountSettings(accountID string) (*AccountSettings, error)
UpdateAccountSettings(
accountID, defaultNamespace, notificationEmail string,
terminationProtectionEnabled *bool,
) (*AccountSettings, error)
// Account subscription
CreateAccountSubscription(
accountID, accountName, edition, authenticationMethod, notificationEmail string,
) (*AccountSubscription, error)
DescribeAccountSubscription(accountID string) (*AccountSubscription, error)
DeleteAccountSubscription(accountID string) error
// Account customization
CreateAccountCustomization(
accountID, namespace, defaultTheme, defaultEmailCustomizationTemplate string,
) (*AccountCustomization, error)
DescribeAccountCustomization(accountID, namespace string, resolved bool) (*AccountCustomization, error)
UpdateAccountCustomization(
accountID, namespace, defaultTheme, defaultEmailCustomizationTemplate string,
) (*AccountCustomization, error)
DeleteAccountCustomization(accountID, namespace string) error
// Account custom permission
DescribeAccountCustomPermission(accountID string) (string, error)
UpdateAccountCustomPermission(accountID, customPermissionsName string) error
DeleteAccountCustomPermission(accountID string) error
// IP restriction
DescribeIPRestriction(accountID string) (*IPRestriction, error)
UpdateIPRestriction(
accountID string,
ruleMap, vpcIDRuleMap, vpcEndpointIDRuleMap map[string]string,
enabled *bool,
) (*IPRestriction, error)
// Public sharing
UpdatePublicSharingSettings(accountID string, enabled bool) error
// Key registration
DescribeKeyRegistration(accountID string, defaultKeyOnly bool) ([]RegisteredCustomerManagedKey, error)
UpdateKeyRegistration(
accountID string,
keys []RegisteredCustomerManagedKey,
) ([]RegisteredCustomerManagedKey, error)
// Default Q Business Application
DescribeDefaultQBusinessApplication(accountID, namespace string) (*DefaultQBusinessApplication, error)
UpdateDefaultQBusinessApplication(
accountID, applicationID, namespace string,
) (*DefaultQBusinessApplication, error)
DeleteDefaultQBusinessApplication(accountID, namespace string) error
// Q personalization
DescribeQPersonalizationConfiguration(accountID string) (string, error)
UpdateQPersonalizationConfiguration(accountID, mode string) (string, error)
// Q Search configuration
DescribeQuickSightQSearchConfiguration(accountID string) (string, error)
UpdateQuickSightQSearchConfiguration(accountID, status string) (string, error)
// Dashboards Q&A configuration
DescribeDashboardsQAConfiguration(accountID string) (string, error)
UpdateDashboardsQAConfiguration(accountID, status string) (string, error)
// Brands
CreateBrand(accountID, brandID string, definition map[string]any, tags map[string]string) (*Brand, error)
DescribeBrand(accountID, brandID, versionID string) (*Brand, error)
UpdateBrand(accountID, brandID string, definition map[string]any) (*Brand, error)
DeleteBrand(accountID, brandID string) error
ListBrands(accountID string, maxResults int32, nextToken string) ([]*Brand, string, error)
DescribeBrandPublishedVersion(accountID, brandID string) (*Brand, error)
UpdateBrandPublishedVersion(accountID, brandID, versionID string) error
DescribeBrandAssignment(accountID string) (string, error)
UpdateBrandAssignment(accountID, brandArn string) (string, error)
DeleteBrandAssignment(accountID string) error
// Custom permissions
CreateCustomPermissions(
accountID, name string,
capabilities map[string]any,
tags map[string]string,
) (*CustomPermissions, error)
DescribeCustomPermissions(accountID, name string) (*CustomPermissions, error)
UpdateCustomPermissions(
accountID, name string, capabilities, governance map[string]any,
) (*CustomPermissions, error)
DeleteCustomPermissions(accountID, name string) (*CustomPermissions, error)
ListCustomPermissions(accountID string, maxResults int32, nextToken string) ([]*CustomPermissions, string, error)
// Role custom permission
UpdateRoleCustomPermission(accountID, namespace, role, customPermissionsName string) error
DescribeRoleCustomPermission(accountID, namespace, role string) (string, error)
DeleteRoleCustomPermission(accountID, namespace, role string) error
// Role memberships
CreateRoleMembership(accountID, namespace, role, memberName string) error
DeleteRoleMembership(accountID, namespace, role, memberName string) error
ListRoleMemberships(
accountID, namespace, role string,
maxResults int32,
nextToken string,
) ([]string, string, error)
// User custom permission
UpdateUserCustomPermission(accountID, namespace, userName, customPermissionsName string) error
DeleteUserCustomPermission(accountID, namespace, userName string) error
// OAuth client applications
CreateOAuthClientApplication(
accountID, clientID, name string,
fields map[string]any,
tags map[string]string,
) (*OAuthClientApplication, error)
DescribeOAuthClientApplication(accountID, clientID string) (*OAuthClientApplication, error)
UpdateOAuthClientApplication(
accountID, clientID, name string,
fields map[string]any,
) (*OAuthClientApplication, error)
DeleteOAuthClientApplication(accountID, clientID string) (*OAuthClientApplication, error)
ListOAuthClientApplications(
accountID string,
maxResults int32,
nextToken string,
) ([]*OAuthClientApplication, string, error)
// Identity propagation configuration
UpdateIdentityPropagationConfig(accountID, service string, authorizedTargets []string) error
DeleteIdentityPropagationConfig(accountID, service string) error
ListIdentityPropagationConfigs(accountID string) ([]*IdentityPropagationConfig, error)
// Asset bundle export jobs
StartAssetBundleExportJob(
accountID, jobID, exportFormat, includeFolderMembers string,
resourceArns []string,
includeAllDependencies, includeFolderMemberships, includePermissions, includeTags bool,
) (*AssetBundleExportJob, error)
DescribeAssetBundleExportJob(accountID, jobID string) (*AssetBundleExportJob, error)
ListAssetBundleExportJobs(
accountID string,
maxResults int32,
nextToken string,
) ([]*AssetBundleExportJob, string, error)
// Asset bundle import jobs
StartAssetBundleImportJob(accountID, jobID, failureAction string) (*AssetBundleImportJob, error)
DescribeAssetBundleImportJob(accountID, jobID string) (*AssetBundleImportJob, error)
ListAssetBundleImportJobs(
accountID string,
maxResults int32,
nextToken string,
) ([]*AssetBundleImportJob, string, error)
// Dashboard snapshot jobs
StartDashboardSnapshotJob(
accountID, dashboardID, jobID string,
snapshotConfiguration map[string]any,
) (*DashboardSnapshotJob, error)
DescribeDashboardSnapshotJob(accountID, dashboardID, jobID string) (*DashboardSnapshotJob, error)
DescribeDashboardSnapshotJobResult(accountID, dashboardID, jobID string) (*DashboardSnapshotJob, error)
StartDashboardSnapshotJobSchedule(accountID, dashboardID, scheduleID string) error
// Predict QA results
PredictQAResults(accountID, queryText string) (*QAResult, error)
// DataSet refresh schedules
CreateRefreshSchedule(
accountID, datasetID, scheduleID, refreshType string,
startAfterDateTime time.Time,
scheduleFrequency map[string]any,
) (*RefreshSchedule, error)
DescribeRefreshSchedule(accountID, datasetID, scheduleID string) (*RefreshSchedule, error)
UpdateRefreshSchedule(
accountID, datasetID, scheduleID, refreshType string,
startAfterDateTime time.Time,
scheduleFrequency map[string]any,
) (*RefreshSchedule, error)
DeleteRefreshSchedule(accountID, datasetID, scheduleID string) (*RefreshSchedule, error)
ListRefreshSchedules(accountID, datasetID string) ([]*RefreshSchedule, error)
// DataSet refresh properties
PutDataSetRefreshProperties(
accountID, datasetID string,
refreshConfiguration, failureConfiguration map[string]any,
) (*DataSetRefreshProperties, error)
DescribeDataSetRefreshProperties(accountID, datasetID string) (*DataSetRefreshProperties, error)
DeleteDataSetRefreshProperties(accountID, datasetID string) error
// Embed URLs
GenerateEmbedURLForAnonymousUser(
accountID, namespace string,
authorizedResourceArns []string,
experienceConfiguration map[string]any,
) (embedURL, anonymousUserArn string, err error)
GenerateEmbedURLForRegisteredUser(
accountID, userArn string,
experienceConfiguration map[string]any,
) (string, error)
GenerateEmbedURLForRegisteredUserWithIdentity(
accountID string,
experienceConfiguration map[string]any,
) (string, error)
GetDashboardEmbedURL(accountID, dashboardID, identityType, namespace string) (string, error)
GetSessionEmbedURL(accountID, entryPoint string) (string, error)
// Identity context
GenerateIdentityContext(
accountID, namespace, userIdentifierKind, userIdentifierValue, contextRegion string,
) (string, error)
// Action connectors
CreateActionConnector(
accountID, actionConnectorID, name, connectorType, description, vpcConnectionArn string,
authenticationConfig map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*ActionConnector, error)
DescribeActionConnector(accountID, actionConnectorID string) (*ActionConnector, error)
UpdateActionConnector(
accountID, actionConnectorID, name, description, vpcConnectionArn string,
authenticationConfig map[string]any,
) (*ActionConnector, error)
DeleteActionConnector(accountID, actionConnectorID string) (*ActionConnector, error)
ListActionConnectors(accountID string, maxResults int32, nextToken string) ([]*ActionConnector, string, error)
SearchActionConnectors(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*ActionConnector, string, error)
DescribeActionConnectorPermissions(
accountID, actionConnectorID string,
) (*ActionConnector, []ResourcePermission, error)
UpdateActionConnectorPermissions(
accountID, actionConnectorID string,
grant, revoke []ResourcePermission,
) (*ActionConnector, []ResourcePermission, error)
// Automation jobs
StartAutomationJob(accountID, automationGroupID, automationID, inputPayload string) (*AutomationJob, error)
DescribeAutomationJob(accountID, automationGroupID, automationID, jobID string) (*AutomationJob, error)
// SPICE capacity configuration
UpdateSPICECapacityConfiguration(accountID, purchaseMode string) error
// Flows
ListFlows(accountID string, maxResults int32, nextToken string) ([]*Flow, string, error)
SearchFlows(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Flow, string, error)
GetFlowMetadata(accountID, flowID string) (*Flow, error)
GetFlowPermissions(accountID, flowID string) (*Flow, []ResourcePermission, error)
UpdateFlowPermissions(
accountID, flowID string,
grant, revoke []ResourcePermission,
) (*Flow, []ResourcePermission, error)
CreateFlow(
accountID, name, description string,
flowDefinition map[string]any,
permissions []ResourcePermission,
) (*Flow, error)
DescribeFlow(accountID, flowID string) (*Flow, error)
UpdateFlow(accountID, flowID, name, description string, flowDefinition map[string]any) (*Flow, error)
DeleteFlow(accountID, flowID string) error
// Agents
CreateAgent(
accountID, agentID, name, description, iconID, welcomeMessage, agentLifecycle string,
actionConnectors, spaces, starterPrompts []string,
permissions []ResourcePermission,
tags map[string]string,
customPrompt *CustomPromptProfile,
) (*Agent, error)
DescribeAgent(accountID, agentID string) (*Agent, error)
UpdateAgent(
accountID, agentID, name, description, iconID, welcomeMessage string,
actionConnectorsToAdd, actionConnectorsToRemove, spacesToAdd, spacesToRemove, starterPrompts []string,
customPrompt *CustomPromptProfile,
) (*Agent, *AgentAssociationUpdate, error)
DeleteAgent(accountID, agentID string) error
ListAgents(accountID string, maxResults int32, nextToken string) ([]*Agent, string, error)
SearchAgents(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Agent, string, error)
DescribeAgentPermissions(accountID, agentID string) (*Agent, []ResourcePermission, error)
UpdateAgentPermissions(
accountID, agentID string,
grant, revoke []ResourcePermission,
) (*Agent, []ResourcePermission, error)
// Knowledge bases
CreateKnowledgeBase(
accountID, knowledgeBaseID, name, description, dataSourceArn, primaryOwnerArn string,
configuration, accessControlConfiguration, mediaExtractionConfiguration map[string]any,
permissions []ResourcePermission,
tags map[string]string,
) (*KnowledgeBase, error)
DescribeKnowledgeBase(accountID, knowledgeBaseID string) (*KnowledgeBase, error)
UpdateKnowledgeBase(
accountID, knowledgeBaseID, name, description string,
emailNotificationOptedIn *bool,
configuration, accessControlConfiguration, mediaExtractionConfiguration map[string]any,
) (*KnowledgeBase, error)
DeleteKnowledgeBase(accountID, knowledgeBaseID string) (*KnowledgeBase, error)
BatchDeleteKnowledgeBase(
accountID string,
knowledgeBaseIDs []string,
) ([]KnowledgeBaseDeleteResult, []KnowledgeBaseDeleteError)
ListKnowledgeBases(accountID string, maxResults int32, nextToken string) ([]*KnowledgeBase, string, error)
SearchKnowledgeBases(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*KnowledgeBase, string, error)
DescribeKnowledgeBasePermissions(accountID, knowledgeBaseID string) (*KnowledgeBase, []ResourcePermission, error)
UpdateKnowledgeBasePermissions(
accountID, knowledgeBaseID string,
grant, revoke []ResourcePermission,
) (*KnowledgeBase, []ResourcePermission, error)
// Spaces
CreateSpace(accountID, spaceID, name, description string) (*Space, error)
DescribeSpace(accountID, spaceID string) (*Space, error)
UpdateSpace(accountID, spaceID, name, description string) (*Space, error)
DeleteSpace(accountID, spaceID string) (*Space, error)
ListSpaces(accountID string, maxResults int32, nextToken string) ([]*Space, string, error)
SearchSpaces(
accountID string,
filters []SearchFilter,
maxResults int32,
nextToken string,
) ([]*Space, string, error)
DescribeSpacePermissions(accountID, spaceID string) (*Space, []ResourcePermission, error)
UpdateSpacePermissions(
accountID, spaceID string,
grant, revoke []ResourcePermission,
) (*Space, []ResourcePermission, error)
ListSpaceResources(accountID, spaceID string) ([]SpaceResource, error)
UpdateSpaceResources(
accountID, spaceID string,
add, remove []SpaceResource,
) (*Space, []AssociationFailure, error)
// User index capacity
ListUsersIndexCapacity(
accountID, namespace string,
query UserIndexCapacityQuery,
maxResults int32,
nextToken string,
) ([]UserIndexCapacity, string, error)
// Namespace self-upgrade
DescribeSelfUpgradeConfiguration(accountID, namespace string) (string, error)
UpdateSelfUpgradeConfiguration(accountID, namespace, status string) (string, error)
ListSelfUpgrades(
accountID, namespace string,
maxResults int32,
nextToken string,
) ([]*SelfUpgradeRequestDetail, string, error)
UpdateSelfUpgrade(accountID, namespace, action, upgradeRequestID string) (*SelfUpgradeRequestDetail, error)
// Approval policies
CreateApprovalPolicy(
policyID, name, description string,
actions, assetTypes, approvalGroups []string,
applicableTo ApplicableTo,
) (*ApprovalPolicy, error)
DescribeApprovalPolicy(policyID string) (*ApprovalPolicy, error)
UpdateApprovalPolicy(
policyID, name, description string,
actions, assetTypes, approvalGroups []string,
applicableTo *ApplicableTo,
) (*ApprovalPolicy, error)
DeleteApprovalPolicy(policyID string) error
ListApprovalPolicies(maxResults int32, nextToken string) ([]*ApprovalPolicy, string, error)
// DLP settings
CreateDlpSetting(
accountID, dlpSettingID, name string,
enabled bool,
providerType, providerOutageAction string,
providerConfig ProviderConfig,
tags map[string]string,
) (*DlpSetting, error)
DescribeDlpSetting(accountID, dlpSettingID string) (*DlpSetting, error)
UpdateDlpSetting(
accountID, dlpSettingID, name string,
enabled *bool,
providerType, providerOutageAction string,
providerConfig *ProviderConfig,
) (*DlpSetting, error)
DeleteDlpSetting(accountID, dlpSettingID string) (string, error)
ListDlpSettings(accountID string, maxResults int32, nextToken string) ([]*DlpSetting, string, error)
// Limits profiles
CreateLimitsProfile(
accountID, clientToken, profileName, description string,
resourceLimits map[string]ProfileLimitValue,
) (*LimitsProfile, error)
DescribeLimitsProfile(accountID, profileID string) (*LimitsProfile, error)
UpdateLimitsProfile(
accountID, profileID, profileName, description string,
resourceLimits map[string]ProfileLimitValue,
) (*LimitsProfile, error)
DeleteLimitsProfile(accountID, profileID string) (string, error)
ListLimitsProfiles(
accountID, resourceType string,
maxResults int32,
nextToken string,
) ([]*LimitsProfile, string, error)
AccountID() string
Region() string
Reset()
}
type TablePathElement ¶ added in v1.3.1
TablePathElement identifies one step in a SaaSTable's hierarchical path (quicksight@v1.123.1 types.TablePathElement).
type Template ¶
type Template struct {
CreatedTime time.Time
LastUpdatedTime time.Time
TemplateID string
Arn string
Name string
Version *TemplateVersion
Permissions []ResourcePermission
}
Template represents a QuickSight template (a versioned, reusable dashboard/analysis layout definition).
type TemplateAlias ¶
TemplateAlias represents a named pointer to a specific template version.
type TemplateVersion ¶
type TemplateVersion struct {
CreatedTime time.Time
Definition map[string]any
Arn string
Status string
SourceEntityArn string
Description string
VersionNumber int64
}
TemplateVersion represents one version of a QuickSight template. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type Theme ¶
type Theme struct {
CreatedTime time.Time
LastUpdatedTime time.Time
ThemeID string
Arn string
Name string
Type string
Version *ThemeVersion
Permissions []ResourcePermission
}
Theme represents a QuickSight theme (a versioned set of visual style settings).
type ThemeAlias ¶
ThemeAlias represents a named pointer to a specific theme version.
type ThemeVersion ¶
type ThemeVersion struct {
CreatedTime time.Time
Configuration map[string]any
Arn string
Status string
BaseThemeID string
Description string
VersionNumber int64
}
ThemeVersion represents one version of a QuickSight theme. CreatedTime first: non-pointer prefix reduces GC pointer bytes.
type Topic ¶
type Topic struct {
CreatedTime time.Time
LastUpdatedTime time.Time
TopicID string
Arn string
Name string
Description string
UserExperienceVersion string
CustomInstructions string
PublishOption string
DataSets []map[string]any
DataSetsV2 []map[string]any
DataSetRelations []map[string]any
Permissions []ResourcePermission
}
Topic represents a QuickSight topic (a natural-language Q&A data source). DataSetsV2/DataSetRelations/CustomInstructions/PublishOption are V2-only; DataSets/UserExperienceVersion are V1-only -- see topics_v2.go.
type TopicAnswerError ¶
TopicAnswerError represents a single failed entry in a batch reviewed-answer create/delete operation. ErrorCode must be one of types.ReviewedAnswerErrorCode's values -- the real InvalidTopicReviewedAnswer.Error wire member is that enum string, not a free-form message (quicksight@v1.129.0 deserializers.go:103007-103013).
type TopicRefreshDetails ¶
TopicRefreshDetails represents the status of a single topic refresh execution.
type TopicRefreshSchedule ¶
type TopicRefreshSchedule struct {
ScheduleConfig map[string]any
DatasetID string
DatasetArn string
RefreshType string
IsEnabled bool
}
TopicRefreshSchedule represents one refresh schedule for a topic's dataset, keyed by DatasetId.
type TopicReviewedAnswer ¶
type TopicReviewedAnswer struct {
PrimaryVisual map[string]any
Template map[string]any
AnswerID string
DatasetArn string
Question string
Mode string
}
TopicReviewedAnswer represents one human-reviewed answer attached to a topic.
type UploadSettings ¶ added in v1.3.1
type UploadSettings struct {
ContainsHeader *bool
StartFromRow *int32
CustomCellAddressRange string
Delimiter string
Format string
TextQualifier string
}
UploadSettings describes the file format of an S3Source/FileSource physical table (quicksight@v1.123.1 types.UploadSettings).
type User ¶
type User struct {
UserName string
Arn string
Email string
Role string
IdentityType string
Namespace string
PrincipalID string
SessionName string
CustomPermissionsName string
Active bool
}
User represents a QuickSight user.
type UserIndexCapacity ¶ added in v1.2.0
type UserIndexCapacity struct {
UserArn string
UserName string
Email string
Role string
KBCount int32
SpaceCount int32
TotalCapacityBytes int64
TotalKBCapacityBytes int64
TotalSpaceCapacityBytes int64
}
UserIndexCapacity represents one user's derived index-capacity consumption: the number and size of the knowledge bases and spaces they own, computed from this backend's actual KnowledgeBase/Space state (see InMemoryBackend.ListUsersIndexCapacity) rather than fabricated.
type UserIndexCapacityQuery ¶
type UserIndexCapacityQuery struct {
MinCapacityBytes *int64
MaxCapacityBytes *int64
Prefix *string
SortByCapacity bool
SortDescending bool
}
UserIndexCapacityQuery bundles ListUsersIndexCapacity's optional filter and sort parameters (quicksight@v1.123.1 api_op_ListUsersIndexCapacity.go's Filters/SortBy/SortOrder). At most one of MinCapacityBytes/MaxCapacityBytes and Prefix is populated per the real API's "only one filter is supported per request" -- both are carried so a caller sending more than one (which real AWS would reject, a validation concern this backend leaves unenforced like its sibling filters) still gets every constraint applied rather than only the last one parsed.
type VPCConnection ¶
type VPCConnection struct {
CreatedTime time.Time
LastUpdatedTime time.Time
VPCConnectionID string
Arn string
Name string
VPCID string
RoleArn string
Status string
AvailabilityStatus string
SubnetIDs []string
SecurityGroupIDs []string
DNSResolvers []string
}
VPCConnection represents a QuickSight VPC connection.
Source Files
¶
- account.go
- actionconnector.go
- actionconnector_auth.go
- agents.go
- analysis.go
- assetbundle.go
- automation.go
- brands.go
- custompermissions.go
- dashboard.go
- dashboardsnapshot.go
- dataset.go
- dataset_physicaltable.go
- datasource.go
- embedurl.go
- errors.go
- flow.go
- folders.go
- governance.go
- group.go
- handler.go
- handler_account.go
- handler_actionconnector.go
- handler_agents.go
- handler_analysis.go
- handler_assetbundle.go
- handler_automation.go
- handler_brands.go
- handler_custompermissions.go
- handler_dashboard.go
- handler_dataset.go
- handler_datasource.go
- handler_dispatch.go
- handler_embedurl.go
- handler_flow.go
- handler_folders.go
- handler_governance.go
- handler_group.go
- handler_iampolicyassignments.go
- handler_identitypropagation.go
- handler_knowledgebases.go
- handler_namespace.go
- handler_oauth.go
- handler_paths.go
- handler_refreshschedule.go
- handler_selfupgrade.go
- handler_spaces.go
- handler_tags.go
- handler_templates.go
- handler_themes.go
- handler_topics.go
- handler_topics_v2.go
- handler_user.go
- handler_userindexcapacity.go
- handler_vpcconnections.go
- iampolicyassignments.go
- identitypropagation.go
- interfaces.go
- knowledgebases.go
- models.go
- namespace.go
- oauth.go
- persistence.go
- provider.go
- refreshschedule.go
- selfupgrade.go
- spaces.go
- store.go
- store_setup.go
- tags.go
- templates.go
- themes.go
- topics.go
- topics_v2.go
- types.go
- user.go
- userindexcapacity.go
- vpcconnections.go