Struct aws_sdk_grafana::model::workspace_description::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for WorkspaceDescription
Implementations
sourceimpl Builder
impl Builder
sourcepub fn account_access_type(self, input: AccountAccessType) -> Self
pub fn account_access_type(self, input: AccountAccessType) -> Self
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 set_account_access_type(self, input: Option<AccountAccessType>) -> Self
pub fn set_account_access_type(self, input: Option<AccountAccessType>) -> Self
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 set_created(self, input: Option<DateTime>) -> Self
pub fn set_created(self, input: Option<DateTime>) -> Self
The date that the workspace was created.
sourcepub fn data_sources(self, input: DataSourceType) -> Self
pub fn data_sources(self, input: DataSourceType) -> Self
Appends an item to data_sources
.
To override the contents of this collection use set_data_sources
.
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.
sourcepub fn set_data_sources(self, input: Option<Vec<DataSourceType>>) -> Self
pub fn set_data_sources(self, input: Option<Vec<DataSourceType>>) -> Self
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.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The user-defined description of the workspace.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The user-defined description of the workspace.
sourcepub fn endpoint(self, input: impl Into<String>) -> Self
pub fn endpoint(self, input: impl Into<String>) -> Self
The URL that users can use to access the Grafana console in the workspace.
sourcepub fn set_endpoint(self, input: Option<String>) -> Self
pub fn set_endpoint(self, input: Option<String>) -> Self
The URL that users can use to access the Grafana console in the workspace.
sourcepub fn grafana_version(self, input: impl Into<String>) -> Self
pub fn grafana_version(self, input: impl Into<String>) -> Self
The version of Grafana supported in this workspace.
sourcepub fn set_grafana_version(self, input: Option<String>) -> Self
pub fn set_grafana_version(self, input: Option<String>) -> Self
The version of Grafana supported in this workspace.
sourcepub fn modified(self, input: DateTime) -> Self
pub fn modified(self, input: DateTime) -> Self
The most recent date that the workspace was modified.
sourcepub fn set_modified(self, input: Option<DateTime>) -> Self
pub fn set_modified(self, input: Option<DateTime>) -> Self
The most recent date that the workspace was modified.
sourcepub fn organization_role_name(self, input: impl Into<String>) -> Self
pub fn organization_role_name(self, input: impl Into<String>) -> Self
The name of the IAM role that is used to access resources through Organizations.
sourcepub fn set_organization_role_name(self, input: Option<String>) -> Self
pub fn set_organization_role_name(self, input: Option<String>) -> Self
The name of the IAM role that is used to access resources through Organizations.
sourcepub fn notification_destinations(
self,
input: NotificationDestinationType
) -> Self
pub fn notification_destinations(
self,
input: NotificationDestinationType
) -> Self
Appends an item to notification_destinations
.
To override the contents of this collection use set_notification_destinations
.
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.
sourcepub fn set_notification_destinations(
self,
input: Option<Vec<NotificationDestinationType>>
) -> Self
pub fn set_notification_destinations(
self,
input: Option<Vec<NotificationDestinationType>>
) -> Self
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.
sourcepub fn organizational_units(self, input: impl Into<String>) -> Self
pub fn organizational_units(self, input: impl Into<String>) -> Self
Appends an item to organizational_units
.
To override the contents of this collection use set_organizational_units
.
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.
sourcepub fn set_organizational_units(self, input: Option<Vec<String>>) -> Self
pub fn set_organizational_units(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn permission_type(self, input: PermissionType) -> Self
pub fn permission_type(self, input: PermissionType) -> Self
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
sourcepub fn set_permission_type(self, input: Option<PermissionType>) -> Self
pub fn set_permission_type(self, input: Option<PermissionType>) -> Self
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
sourcepub fn stack_set_name(self, input: impl Into<String>) -> Self
pub fn stack_set_name(self, input: impl Into<String>) -> Self
The name of the CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
sourcepub fn set_stack_set_name(self, input: Option<String>) -> Self
pub fn set_stack_set_name(self, input: Option<String>) -> Self
The name of the CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
sourcepub fn status(self, input: WorkspaceStatus) -> Self
pub fn status(self, input: WorkspaceStatus) -> Self
The current status of the workspace.
sourcepub fn set_status(self, input: Option<WorkspaceStatus>) -> Self
pub fn set_status(self, input: Option<WorkspaceStatus>) -> Self
The current status of the workspace.
sourcepub fn workspace_role_arn(self, input: impl Into<String>) -> Self
pub fn workspace_role_arn(self, input: impl Into<String>) -> Self
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 set_workspace_role_arn(self, input: Option<String>) -> Self
pub fn set_workspace_role_arn(self, input: Option<String>) -> Self
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, input: LicenseType) -> Self
pub fn license_type(self, input: LicenseType) -> Self
Specifies whether this workspace has a full Grafana Enterprise license or a free trial license.
sourcepub fn set_license_type(self, input: Option<LicenseType>) -> Self
pub fn set_license_type(self, input: Option<LicenseType>) -> Self
Specifies whether this workspace has a full Grafana Enterprise license or a free trial license.
sourcepub fn free_trial_consumed(self, input: bool) -> Self
pub fn free_trial_consumed(self, input: bool) -> Self
Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.
sourcepub fn set_free_trial_consumed(self, input: Option<bool>) -> Self
pub fn set_free_trial_consumed(self, input: Option<bool>) -> Self
Specifies whether this workspace has already fully used its free trial for Grafana Enterprise.
sourcepub fn license_expiration(self, input: DateTime) -> Self
pub fn license_expiration(self, input: DateTime) -> Self
If this workspace has a full Grafana Enterprise license, this specifies when the license ends and will need to be renewed.
sourcepub fn set_license_expiration(self, input: Option<DateTime>) -> Self
pub fn set_license_expiration(self, input: Option<DateTime>) -> Self
If this workspace has a full Grafana Enterprise license, this specifies when the license ends and will need to be renewed.
sourcepub fn free_trial_expiration(self, input: DateTime) -> Self
pub fn free_trial_expiration(self, input: DateTime) -> Self
If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.
sourcepub fn set_free_trial_expiration(self, input: Option<DateTime>) -> Self
pub fn set_free_trial_expiration(self, input: Option<DateTime>) -> Self
If this workspace is currently in the free trial period for Grafana Enterprise, this value specifies when that free trial ends.
sourcepub fn authentication(self, input: AuthenticationSummary) -> Self
pub fn authentication(self, input: AuthenticationSummary) -> Self
A structure that describes whether the workspace uses SAML, Amazon Web Services SSO, or both methods for user authentication.
sourcepub fn set_authentication(self, input: Option<AuthenticationSummary>) -> Self
pub fn set_authentication(self, input: Option<AuthenticationSummary>) -> Self
A structure that describes whether the workspace uses SAML, Amazon Web Services SSO, or both methods for user authentication.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The list of tags associated with the workspace.
The list of tags associated with the workspace.
sourcepub fn build(self) -> WorkspaceDescription
pub fn build(self) -> WorkspaceDescription
Consumes the builder and constructs a WorkspaceDescription
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more