Struct aws_sdk_grafana::types::WorkspaceDescription
source · #[non_exhaustive]pub struct WorkspaceDescription {Show 25 fields
pub account_access_type: Option<AccountAccessType>,
pub created: DateTime,
pub data_sources: Vec<DataSourceType>,
pub description: Option<String>,
pub endpoint: String,
pub grafana_version: String,
pub id: String,
pub modified: DateTime,
pub name: Option<String>,
pub organization_role_name: Option<String>,
pub notification_destinations: Option<Vec<NotificationDestinationType>>,
pub organizational_units: Option<Vec<String>>,
pub permission_type: Option<PermissionType>,
pub stack_set_name: Option<String>,
pub status: WorkspaceStatus,
pub workspace_role_arn: Option<String>,
pub license_type: Option<LicenseType>,
pub free_trial_consumed: Option<bool>,
pub license_expiration: Option<DateTime>,
pub free_trial_expiration: Option<DateTime>,
pub authentication: Option<AuthenticationSummary>,
pub tags: Option<HashMap<String, String>>,
pub vpc_configuration: Option<VpcConfiguration>,
pub network_access_control: Option<NetworkAccessConfiguration>,
pub grafana_token: Option<String>,
}
Expand description
A structure containing information about an Amazon Managed Grafana workspace in your account.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.account_access_type: Option<AccountAccessType>
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.
created: DateTime
The date that the workspace was created.
data_sources: Vec<DataSourceType>
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 list is only used when the workspace was created through the Amazon Web Services console, and the permissionType
is SERVICE_MANAGED
.
description: Option<String>
The user-defined description of the workspace.
endpoint: String
The URL that users can use to access the Grafana console in the workspace.
grafana_version: String
The version of Grafana supported in this workspace.
id: String
The unique ID of this workspace.
modified: DateTime
The most recent date that the workspace was modified.
name: Option<String>
The name of the workspace.
organization_role_name: Option<String>
The name of the IAM role that is used to access resources through Organizations.
notification_destinations: Option<Vec<NotificationDestinationType>>
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.
organizational_units: Option<Vec<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.
permission_type: Option<PermissionType>
If this is SERVICE_MANAGED
, and the workplace was created through the Amazon Managed Grafana console, then 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 must manage those roles and permissions yourself.
If you are working with a 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, this parameter must be set to CUSTOMER_MANAGED
.
For more information about converting between customer and service managed, see Managing permissions for data sources and notification channels. For more information about the roles and permissions that must be managed for customer managed workspaces, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
stack_set_name: Option<String>
The name of the CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
status: WorkspaceStatus
The current status of the workspace.
workspace_role_arn: Option<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.
license_type: Option<LicenseType>
Specifies whether this workspace has a full Grafana Enterprise license.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
free_trial_consumed: Option<bool>
Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
license_expiration: Option<DateTime>
If this workspace has a full Grafana Enterprise license purchased through Amazon Web Services Marketplace, this specifies when the license ends and will need to be renewed. Purchasing the Enterprise plugins option through Amazon Managed Grafana does not have an expiration. It is valid until the license is removed.
free_trial_expiration: Option<DateTime>
If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
authentication: Option<AuthenticationSummary>
A structure that describes whether the workspace uses SAML, IAM Identity Center, or both methods for user authentication.
The list of tags associated with the workspace.
vpc_configuration: Option<VpcConfiguration>
The configuration for connecting to data sources in a private VPC (Amazon Virtual Private Cloud).
network_access_control: Option<NetworkAccessConfiguration>
The configuration settings for network access to your workspace.
grafana_token: Option<String>
The token that ties this workspace to a Grafana Labs account. For more information, see Link your account with Grafana Labs.
Implementations§
source§impl WorkspaceDescription
impl WorkspaceDescription
sourcepub fn account_access_type(&self) -> Option<&AccountAccessType>
pub fn account_access_type(&self) -> Option<&AccountAccessType>
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.
sourcepub fn data_sources(&self) -> &[DataSourceType]
pub fn data_sources(&self) -> &[DataSourceType]
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 list is only used when the workspace was created through the Amazon Web Services console, and the permissionType
is SERVICE_MANAGED
.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The user-defined description of the workspace.
sourcepub fn endpoint(&self) -> &str
pub fn endpoint(&self) -> &str
The URL that users can use to access the Grafana console in the workspace.
sourcepub fn grafana_version(&self) -> &str
pub fn grafana_version(&self) -> &str
The version of Grafana supported in this workspace.
sourcepub fn organization_role_name(&self) -> Option<&str>
pub fn organization_role_name(&self) -> Option<&str>
The name of the IAM role that is used to access resources through Organizations.
sourcepub fn notification_destinations(&self) -> &[NotificationDestinationType]
pub fn notification_destinations(&self) -> &[NotificationDestinationType]
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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .notification_destinations.is_none()
.
sourcepub fn organizational_units(&self) -> &[String]
pub fn organizational_units(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .organizational_units.is_none()
.
sourcepub fn permission_type(&self) -> Option<&PermissionType>
pub fn permission_type(&self) -> Option<&PermissionType>
If this is SERVICE_MANAGED
, and the workplace was created through the Amazon Managed Grafana console, then 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 must manage those roles and permissions yourself.
If you are working with a 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, this parameter must be set to CUSTOMER_MANAGED
.
For more information about converting between customer and service managed, see Managing permissions for data sources and notification channels. For more information about the roles and permissions that must be managed for customer managed workspaces, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
sourcepub fn stack_set_name(&self) -> Option<&str>
pub fn stack_set_name(&self) -> Option<&str>
The name of the CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
sourcepub fn status(&self) -> &WorkspaceStatus
pub fn status(&self) -> &WorkspaceStatus
The current status of the workspace.
sourcepub fn workspace_role_arn(&self) -> Option<&str>
pub fn workspace_role_arn(&self) -> Option<&str>
The IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from. This role must already exist.
sourcepub fn license_type(&self) -> Option<&LicenseType>
pub fn license_type(&self) -> Option<&LicenseType>
Specifies whether this workspace has a full Grafana Enterprise license.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
sourcepub fn free_trial_consumed(&self) -> Option<bool>
pub fn free_trial_consumed(&self) -> Option<bool>
Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
sourcepub fn license_expiration(&self) -> Option<&DateTime>
pub fn license_expiration(&self) -> Option<&DateTime>
If this workspace has a full Grafana Enterprise license purchased through Amazon Web Services Marketplace, this specifies when the license ends and will need to be renewed. Purchasing the Enterprise plugins option through Amazon Managed Grafana does not have an expiration. It is valid until the license is removed.
sourcepub fn free_trial_expiration(&self) -> Option<&DateTime>
pub fn free_trial_expiration(&self) -> Option<&DateTime>
If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.
Amazon Managed Grafana workspaces no longer support Grafana Enterprise free trials.
sourcepub fn authentication(&self) -> Option<&AuthenticationSummary>
pub fn authentication(&self) -> Option<&AuthenticationSummary>
A structure that describes whether the workspace uses SAML, IAM Identity Center, or both methods for user authentication.
The list of tags associated with the workspace.
sourcepub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
pub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
The configuration for connecting to data sources in a private VPC (Amazon Virtual Private Cloud).
sourcepub fn network_access_control(&self) -> Option<&NetworkAccessConfiguration>
pub fn network_access_control(&self) -> Option<&NetworkAccessConfiguration>
The configuration settings for network access to your workspace.
sourcepub fn grafana_token(&self) -> Option<&str>
pub fn grafana_token(&self) -> Option<&str>
The token that ties this workspace to a Grafana Labs account. For more information, see Link your account with Grafana Labs.
source§impl WorkspaceDescription
impl WorkspaceDescription
sourcepub fn builder() -> WorkspaceDescriptionBuilder
pub fn builder() -> WorkspaceDescriptionBuilder
Creates a new builder-style object to manufacture WorkspaceDescription
.
Trait Implementations§
source§impl Clone for WorkspaceDescription
impl Clone for WorkspaceDescription
source§fn clone(&self) -> WorkspaceDescription
fn clone(&self) -> WorkspaceDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WorkspaceDescription
impl Debug for WorkspaceDescription
source§impl PartialEq for WorkspaceDescription
impl PartialEq for WorkspaceDescription
source§fn eq(&self, other: &WorkspaceDescription) -> bool
fn eq(&self, other: &WorkspaceDescription) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WorkspaceDescription
Auto Trait Implementations§
impl Freeze for WorkspaceDescription
impl RefUnwindSafe for WorkspaceDescription
impl Send for WorkspaceDescription
impl Sync for WorkspaceDescription
impl Unpin for WorkspaceDescription
impl UnwindSafe for WorkspaceDescription
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more