1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// A structure that defines which attributes in the IdP assertion are to be used to
// define information about the users authenticated by the IdP to use the
// workspace.
type AssertionAttributes struct {
// The name of the attribute within the SAML assertion to use as the email names
// for SAML users.
Email *string
// The name of the attribute within the SAML assertion to use as the user full
// "friendly" names for user groups.
Groups *string
// The name of the attribute within the SAML assertion to use as the login names
// for SAML users.
Login *string
// The name of the attribute within the SAML assertion to use as the user full
// "friendly" names for SAML users.
Name *string
// The name of the attribute within the SAML assertion to use as the user full
// "friendly" names for the users' organizations.
Org *string
// The name of the attribute within the SAML assertion to use as the user roles.
Role *string
noSmithyDocumentSerde
}
// A structure containing information about the user authentication methods used by
// the workspace.
type AuthenticationDescription struct {
// Specifies whether this workspace uses Amazon Web Services SSO, SAML, or both
// methods to authenticate users to use the Grafana console in the Amazon Managed
// Grafana workspace.
//
// This member is required.
Providers []AuthenticationProviderTypes
// A structure containing information about how this workspace works with Amazon
// Web Services SSO.
AwsSso *AwsSsoAuthentication
// A structure containing information about how this workspace works with SAML,
// including what attributes within the assertion are to be mapped to user
// information in the workspace.
Saml *SamlAuthentication
noSmithyDocumentSerde
}
// A structure that describes whether the workspace uses SAML, Amazon Web Services
// SSO, or both methods for user authentication, and whether that authentication is
// fully configured.
type AuthenticationSummary struct {
// Specifies whether the workspace uses SAML, Amazon Web Services SSO, or both
// methods for user authentication.
//
// This member is required.
Providers []AuthenticationProviderTypes
// Specifies whether the workplace's user authentication method is fully
// configured.
SamlConfigurationStatus SamlConfigurationStatus
noSmithyDocumentSerde
}
// A structure containing information about how this workspace works with Amazon
// Web Services SSO.
type AwsSsoAuthentication struct {
// The ID of the Amazon Web Services SSO-managed application that is created by
// Amazon Managed Grafana.
SsoClientId *string
noSmithyDocumentSerde
}
// A structure containing the identity provider (IdP) metadata used to integrate
// the identity provider with this workspace. You can specify the metadata either
// by providing a URL to its location in the url parameter, or by specifying the
// full metadata in XML format in the xml parameter.
//
// The following types satisfy this interface:
//
// IdpMetadataMemberUrl
// IdpMetadataMemberXml
type IdpMetadata interface {
isIdpMetadata()
}
// The URL of the location containing the metadata.
type IdpMetadataMemberUrl struct {
Value string
noSmithyDocumentSerde
}
func (*IdpMetadataMemberUrl) isIdpMetadata() {}
// The actual full metadata file, in XML format.
type IdpMetadataMemberXml struct {
Value string
noSmithyDocumentSerde
}
func (*IdpMetadataMemberXml) isIdpMetadata() {}
// A structure containing the identity of one user or group and the Admin or Editor
// role that they have.
type PermissionEntry struct {
// Specifies whether the user or group has the Admin or Editor role.
//
// This member is required.
Role Role
// A structure with the ID of the user or group with this role.
//
// This member is required.
User *User
noSmithyDocumentSerde
}
// This structure defines which groups defined in the SAML assertion attribute are
// to be mapped to the Grafana Admin and Editor roles in the workspace.
type RoleValues struct {
// A list of groups from the SAML assertion attribute to grant the Grafana Admin
// role to.
Admin []string
// A list of groups from the SAML assertion attribute to grant the Grafana Editor
// role to.
Editor []string
noSmithyDocumentSerde
}
// A structure containing information about how this workspace works with SAML.
type SamlAuthentication struct {
// Specifies whether the workspace's SAML configuration is complete.
//
// This member is required.
Status SamlConfigurationStatus
// A structure containing details about how this workspace works with SAML.
Configuration *SamlConfiguration
noSmithyDocumentSerde
}
// A structure containing information about how this workspace works with SAML.
type SamlConfiguration struct {
// A structure containing the identity provider (IdP) metadata used to integrate
// the identity provider with this workspace.
//
// This member is required.
IdpMetadata IdpMetadata
// Lists which organizations defined in the SAML assertion are allowed to use the
// Amazon Managed Grafana workspace. If this is empty, all organizations in the
// assertion attribute have access.
AllowedOrganizations []string
// A structure that defines which attributes in the SAML assertion are to be used
// to define information about the users authenticated by that IdP to use the
// workspace.
AssertionAttributes *AssertionAttributes
// How long a sign-on session by a SAML user is valid, before the user has to sign
// on again.
LoginValidityDuration int32
// A structure containing arrays that map group names in the SAML assertion to the
// Grafana Admin and Editor roles in the workspace.
RoleValues *RoleValues
noSmithyDocumentSerde
}
// A structure containing information about one error encountered while performing
// an UpdatePermissions
// (https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdatePermissions.html)
// operation.
type UpdateError struct {
// Specifies which permission update caused the error.
//
// This member is required.
CausedBy *UpdateInstruction
// The error code.
//
// This member is required.
Code *int32
// The message for this error.
//
// This member is required.
Message *string
noSmithyDocumentSerde
}
// Contains the instructions for one Grafana role permission update in a
// UpdatePermissions
// (https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdatePermissions.html)
// operation.
type UpdateInstruction struct {
// Specifies whether this update is to add or revoke role permissions.
//
// This member is required.
Action UpdateAction
// The role to add or revoke for the user or the group specified in users.
//
// This member is required.
Role Role
// A structure that specifies the user or group to add or revoke the role for.
//
// This member is required.
Users []User
noSmithyDocumentSerde
}
// A structure that specifies one user or group in the workspace.
type User struct {
// The ID of the user or group. Pattern:
// ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$
//
// This member is required.
Id *string
// Specifies whether this is a single user or a group.
//
// This member is required.
Type UserType
noSmithyDocumentSerde
}
// A structure that contains information about a request parameter that caused an
// error.
type ValidationExceptionField struct {
// A message describing why this field couldn't be validated.
//
// This member is required.
Message *string
// The name of the field that caused the validation error.
//
// This member is required.
Name *string
noSmithyDocumentSerde
}
// A structure containing information about an Amazon Managed Grafana workspace in
// your account.
type WorkspaceDescription struct {
// A structure that describes whether the workspace uses SAML, Amazon Web Services
// SSO, or both methods for user authentication.
//
// This member is required.
Authentication *AuthenticationSummary
// The date that the workspace was created.
//
// This member is required.
Created *time.Time
// Specifies the Amazon Web Services data sources that have been configured to have
// IAM roles and permissions created to allow Amazon Managed Grafana to read data
// from these sources.
//
// This member is required.
DataSources []DataSourceType
// The URL that users can use to access the Grafana console in the workspace.
//
// This member is required.
Endpoint *string
// The version of Grafana supported in this workspace.
//
// This member is required.
GrafanaVersion *string
// The unique ID of this workspace.
//
// This member is required.
Id *string
// The most recent date that the workspace was modified.
//
// This member is required.
Modified *time.Time
// The current status of the workspace.
//
// This member is required.
Status WorkspaceStatus
// Specifies whether the workspace can access Amazon Web Services resources in this
// Amazon Web Services account only, or whether it can also access Amazon Web
// Services resources in other accounts in the same organization. If this is
// ORGANIZATION, the workspaceOrganizationalUnits parameter specifies which
// organizational units the workspace can access.
AccountAccessType AccountAccessType
// The user-defined description of the workspace.
Description *string
// Specifies whether this workspace has already fully used its free trial for
// Grafana Enterprise.
FreeTrialConsumed *bool
// If this workspace is currently in the free trial period for Grafana Enterprise,
// this value specifies when that free trial ends.
FreeTrialExpiration *time.Time
// If this workspace has a full Grafana Enterprise license, this specifies when the
// license ends and will need to be renewed.
LicenseExpiration *time.Time
// Specifies whether this workspace has a full Grafana Enterprise license or a free
// trial license.
LicenseType LicenseType
// The name of the workspace.
Name *string
// The Amazon Web Services notification channels that Amazon Managed Grafana can
// automatically create IAM roles and permissions for, to allow Amazon Managed
// Grafana to use these channels.
NotificationDestinations []NotificationDestinationType
// The name of the IAM role that is used to access resources through Organizations.
OrganizationRoleName *string
// Specifies the organizational units that this workspace is allowed to use data
// sources from, if this workspace is in an account that is part of an
// organization.
OrganizationalUnits []string
// If this is Service Managed, Amazon Managed Grafana automatically creates the IAM
// roles and provisions the permissions that the workspace needs to use Amazon Web
// Services data sources and notification channels. If this is CUSTOMER_MANAGED,
// you manage those roles and permissions yourself. If you are creating this
// workspace in a member account of an organization and that account is not a
// delegated administrator account, and you want the workspace to access data
// sources in other Amazon Web Services accounts in the organization, you must
// choose CUSTOMER_MANAGED. For more information, see Amazon Managed Grafana
// permissions and policies for Amazon Web Services data sources and notification
// channels
// (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html)
PermissionType PermissionType
// The name of the CloudFormation stack set that is used to generate IAM roles to
// be used for this workspace.
StackSetName *string
// The list of tags associated with the workspace.
Tags map[string]string
// The IAM role that grants permissions to the Amazon Web Services resources that
// the workspace will view data from. This role must already exist.
WorkspaceRoleArn *string
noSmithyDocumentSerde
}
// A structure that contains some information about one workspace in the account.
type WorkspaceSummary struct {
// A structure containing information about the authentication methods used in the
// workspace.
//
// This member is required.
Authentication *AuthenticationSummary
// The date that the workspace was created.
//
// This member is required.
Created *time.Time
// The URL endpoint to use to access the Grafana console in the workspace.
//
// This member is required.
Endpoint *string
// The Grafana version that the workspace is running.
//
// This member is required.
GrafanaVersion *string
// The unique ID of the workspace.
//
// This member is required.
Id *string
// The most recent date that the workspace was modified.
//
// This member is required.
Modified *time.Time
// The current status of the workspace.
//
// This member is required.
Status WorkspaceStatus
// The customer-entered description of the workspace.
Description *string
// The name of the workspace.
Name *string
// The Amazon Web Services notification channels that Amazon Managed Grafana can
// automatically create IAM roles and permissions for, which allows Amazon Managed
// Grafana to use these channels.
NotificationDestinations []NotificationDestinationType
// The list of tags associated with the workspace.
Tags map[string]string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
// UnknownUnionMember is returned when a union member is returned over the wire,
// but has an unknown tag.
type UnknownUnionMember struct {
Tag string
Value []byte
noSmithyDocumentSerde
}
func (*UnknownUnionMember) isIdpMetadata() {}
|