import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client"; import { AccountAccessType, AuthenticationProviderTypes, DataSourceType, LicenseType, NotificationDestinationType, PermissionType, Role, SamlConfigurationStatus, UpdateAction, UserType, WorkspaceStatus, } from "./enums"; export interface CreateWorkspaceApiKeyRequest { keyName: string | undefined; keyRole: string | undefined; secondsToLive: number | undefined; workspaceId: string | undefined; } export interface CreateWorkspaceApiKeyResponse { keyName: string | undefined; key: string | undefined; workspaceId: string | undefined; } export interface ValidationExceptionField { name: string | undefined; message: string | undefined; } export interface DeleteWorkspaceApiKeyRequest { keyName: string | undefined; workspaceId: string | undefined; } export interface DeleteWorkspaceApiKeyResponse { keyName: string | undefined; workspaceId: string | undefined; } export interface AssertionAttributes { name?: string | undefined; login?: string | undefined; email?: string | undefined; groups?: string | undefined; role?: string | undefined; org?: string | undefined; } export interface AssociateLicenseRequest { workspaceId: string | undefined; licenseType: LicenseType | undefined; grafanaToken?: string | undefined; } export interface AuthenticationSummary { providers: AuthenticationProviderTypes[] | undefined; samlConfigurationStatus?: SamlConfigurationStatus | undefined; } export interface NetworkAccessConfiguration { prefixListIds: string[] | undefined; vpceIds: string[] | undefined; } export interface VpcConfiguration { securityGroupIds: string[] | undefined; subnetIds: string[] | undefined; } export interface WorkspaceDescription { accountAccessType?: AccountAccessType | undefined; created: Date | undefined; dataSources: DataSourceType[] | undefined; description?: string | undefined; endpoint: string | undefined; grafanaVersion: string | undefined; id: string | undefined; modified: Date | undefined; name?: string | undefined; organizationRoleName?: string | undefined; notificationDestinations?: NotificationDestinationType[] | undefined; organizationalUnits?: string[] | undefined; permissionType?: PermissionType | undefined; stackSetName?: string | undefined; status: WorkspaceStatus | undefined; workspaceRoleArn?: string | undefined; licenseType?: LicenseType | undefined; freeTrialConsumed?: boolean | undefined; licenseExpiration?: Date | undefined; freeTrialExpiration?: Date | undefined; authentication: AuthenticationSummary | undefined; tags?: Record | undefined; vpcConfiguration?: VpcConfiguration | undefined; networkAccessControl?: NetworkAccessConfiguration | undefined; grafanaToken?: string | undefined; kmsKeyId?: string | undefined; } export interface AssociateLicenseResponse { workspace: WorkspaceDescription | undefined; } export interface DescribeWorkspaceAuthenticationRequest { workspaceId: string | undefined; } export interface AwsSsoAuthentication { ssoClientId?: string | undefined; } export type IdpMetadata = | IdpMetadata.UrlMember | IdpMetadata.XmlMember | IdpMetadata.$UnknownMember; export declare namespace IdpMetadata { interface UrlMember { url: string; xml?: never; $unknown?: never; } interface XmlMember { url?: never; xml: string; $unknown?: never; } interface $UnknownMember { url?: never; xml?: never; $unknown: [string, any]; } interface Visitor { url: (value: string) => T; xml: (value: string) => T; _: (name: string, value: any) => T; } } export interface RoleValues { editor?: string[] | undefined; admin?: string[] | undefined; } export interface SamlConfiguration { idpMetadata: IdpMetadata | undefined; assertionAttributes?: AssertionAttributes | undefined; roleValues?: RoleValues | undefined; allowedOrganizations?: string[] | undefined; loginValidityDuration?: number | undefined; } export interface SamlAuthentication { status: SamlConfigurationStatus | undefined; configuration?: SamlConfiguration | undefined; } export interface AuthenticationDescription { providers: AuthenticationProviderTypes[] | undefined; saml?: SamlAuthentication | undefined; awsSso?: AwsSsoAuthentication | undefined; } export interface DescribeWorkspaceAuthenticationResponse { authentication: AuthenticationDescription | undefined; } export interface UpdateWorkspaceAuthenticationRequest { workspaceId: string | undefined; authenticationProviders: AuthenticationProviderTypes[] | undefined; samlConfiguration?: SamlConfiguration | undefined; } export interface UpdateWorkspaceAuthenticationResponse { authentication: AuthenticationDescription | undefined; } export interface DescribeWorkspaceConfigurationRequest { workspaceId: string | undefined; } export interface DescribeWorkspaceConfigurationResponse { configuration: __AutomaticJsonStringConversion | string | undefined; grafanaVersion?: string | undefined; } export interface UpdateWorkspaceConfigurationRequest { configuration: __AutomaticJsonStringConversion | string | undefined; workspaceId: string | undefined; grafanaVersion?: string | undefined; } export interface UpdateWorkspaceConfigurationResponse {} export interface DisassociateLicenseRequest { workspaceId: string | undefined; licenseType: LicenseType | undefined; } export interface DisassociateLicenseResponse { workspace: WorkspaceDescription | undefined; } export interface ListTagsForResourceRequest { resourceArn: string | undefined; } export interface ListTagsForResourceResponse { tags?: Record | undefined; } export interface ListVersionsRequest { maxResults?: number | undefined; nextToken?: string | undefined; workspaceId?: string | undefined; } export interface ListVersionsResponse { nextToken?: string | undefined; grafanaVersions?: string[] | undefined; } export interface ListPermissionsRequest { maxResults?: number | undefined; nextToken?: string | undefined; userType?: UserType | undefined; userId?: string | undefined; groupId?: string | undefined; workspaceId: string | undefined; } export interface User { id: string | undefined; type: UserType | undefined; } export interface PermissionEntry { user: User | undefined; role: Role | undefined; } export interface ListPermissionsResponse { nextToken?: string | undefined; permissions: PermissionEntry[] | undefined; } export interface UpdateInstruction { action: UpdateAction | undefined; role: Role | undefined; users: User[] | undefined; } export interface UpdatePermissionsRequest { updateInstructionBatch: UpdateInstruction[] | undefined; workspaceId: string | undefined; } export interface UpdateError { code: number | undefined; message: string | undefined; causedBy: UpdateInstruction | undefined; } export interface UpdatePermissionsResponse { errors: UpdateError[] | undefined; } export interface CreateWorkspaceServiceAccountRequest { name: string | undefined; grafanaRole: Role | undefined; workspaceId: string | undefined; } export interface CreateWorkspaceServiceAccountResponse { id: string | undefined; name: string | undefined; grafanaRole: Role | undefined; workspaceId: string | undefined; } export interface DeleteWorkspaceServiceAccountRequest { serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface DeleteWorkspaceServiceAccountResponse { serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface ListWorkspaceServiceAccountsRequest { maxResults?: number | undefined; nextToken?: string | undefined; workspaceId: string | undefined; } export interface ServiceAccountSummary { id: string | undefined; name: string | undefined; isDisabled: string | undefined; grafanaRole: Role | undefined; } export interface ListWorkspaceServiceAccountsResponse { nextToken?: string | undefined; serviceAccounts: ServiceAccountSummary[] | undefined; workspaceId: string | undefined; } export interface CreateWorkspaceServiceAccountTokenRequest { name: string | undefined; secondsToLive: number | undefined; serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface ServiceAccountTokenSummaryWithKey { id: string | undefined; name: string | undefined; key: string | undefined; } export interface CreateWorkspaceServiceAccountTokenResponse { serviceAccountToken: ServiceAccountTokenSummaryWithKey | undefined; serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface DeleteWorkspaceServiceAccountTokenRequest { tokenId: string | undefined; serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface DeleteWorkspaceServiceAccountTokenResponse { tokenId: string | undefined; serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface ListWorkspaceServiceAccountTokensRequest { maxResults?: number | undefined; nextToken?: string | undefined; serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface ServiceAccountTokenSummary { id: string | undefined; name: string | undefined; createdAt: Date | undefined; expiresAt: Date | undefined; lastUsedAt?: Date | undefined; } export interface ListWorkspaceServiceAccountTokensResponse { nextToken?: string | undefined; serviceAccountTokens: ServiceAccountTokenSummary[] | undefined; serviceAccountId: string | undefined; workspaceId: string | undefined; } export interface TagResourceRequest { resourceArn: string | undefined; tags: Record | undefined; } export interface TagResourceResponse {} export interface UntagResourceRequest { resourceArn: string | undefined; tagKeys: string[] | undefined; } export interface UntagResourceResponse {} export interface CreateWorkspaceRequest { accountAccessType: AccountAccessType | undefined; clientToken?: string | undefined; organizationRoleName?: string | undefined; permissionType: PermissionType | undefined; stackSetName?: string | undefined; workspaceDataSources?: DataSourceType[] | undefined; workspaceDescription?: string | undefined; workspaceName?: string | undefined; workspaceNotificationDestinations?: NotificationDestinationType[] | undefined; workspaceOrganizationalUnits?: string[] | undefined; workspaceRoleArn?: string | undefined; authenticationProviders: AuthenticationProviderTypes[] | undefined; tags?: Record | undefined; vpcConfiguration?: VpcConfiguration | undefined; configuration?: __AutomaticJsonStringConversion | string | undefined; networkAccessControl?: NetworkAccessConfiguration | undefined; grafanaVersion?: string | undefined; kmsKeyId?: string | undefined; } export interface CreateWorkspaceResponse { workspace: WorkspaceDescription | undefined; } export interface DeleteWorkspaceRequest { workspaceId: string | undefined; } export interface DeleteWorkspaceResponse { workspace: WorkspaceDescription | undefined; } export interface DescribeWorkspaceRequest { workspaceId: string | undefined; } export interface DescribeWorkspaceResponse { workspace: WorkspaceDescription | undefined; } export interface ListWorkspacesRequest { maxResults?: number | undefined; nextToken?: string | undefined; } export interface WorkspaceSummary { created: Date | undefined; description?: string | undefined; endpoint: string | undefined; grafanaVersion: string | undefined; id: string | undefined; modified: Date | undefined; name?: string | undefined; notificationDestinations?: NotificationDestinationType[] | undefined; status: WorkspaceStatus | undefined; authentication: AuthenticationSummary | undefined; tags?: Record | undefined; licenseType?: LicenseType | undefined; grafanaToken?: string | undefined; } export interface ListWorkspacesResponse { workspaces: WorkspaceSummary[] | undefined; nextToken?: string | undefined; } export interface UpdateWorkspaceRequest { accountAccessType?: AccountAccessType | undefined; organizationRoleName?: string | undefined; permissionType?: PermissionType | undefined; stackSetName?: string | undefined; workspaceDataSources?: DataSourceType[] | undefined; workspaceDescription?: string | undefined; workspaceId: string | undefined; workspaceName?: string | undefined; workspaceNotificationDestinations?: NotificationDestinationType[] | undefined; workspaceOrganizationalUnits?: string[] | undefined; workspaceRoleArn?: string | undefined; vpcConfiguration?: VpcConfiguration | undefined; removeVpcConfiguration?: boolean | undefined; networkAccessControl?: NetworkAccessConfiguration | undefined; removeNetworkAccessConfiguration?: boolean | undefined; } export interface UpdateWorkspaceResponse { workspace: WorkspaceDescription | undefined; }