Struct aws_sdk_grafana::client::fluent_builders::UpdateWorkspace [−][src]
pub struct UpdateWorkspace<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateWorkspace
.
Modifies an existing Amazon Managed Grafana workspace. If you use this operation and omit any optional parameters, the existing values of those parameters are not changed.
To modify the user authentication methods that the workspace uses, such as SAML or Amazon Web Services SSO, use UpdateWorkspaceAuthentication.
To modify which users in the workspace have the Admin
and Editor
Grafana roles,
use UpdatePermissions.
Implementations
impl<C, M, R> UpdateWorkspace<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateWorkspace<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateWorkspaceOutput, SdkError<UpdateWorkspaceError>> where
R::Policy: SmithyRetryPolicy<UpdateWorkspaceInputOperationOutputAlias, UpdateWorkspaceOutput, UpdateWorkspaceError, UpdateWorkspaceInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateWorkspaceOutput, SdkError<UpdateWorkspaceError>> where
R::Policy: SmithyRetryPolicy<UpdateWorkspaceInputOperationOutputAlias, UpdateWorkspaceOutput, UpdateWorkspaceError, UpdateWorkspaceInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
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 you specify ORGANIZATION
, you must
specify which organizational units the workspace can access in the
workspaceOrganizationalUnits
parameter.
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 you specify ORGANIZATION
, you must
specify which organizational units the workspace can access in the
workspaceOrganizationalUnits
parameter.
The name of an IAM role that already exists to use to access resources through Organizations.
The name of an IAM role that already exists to use to access resources through Organizations.
If you specify 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 you specify CUSTOMER_MANAGED
, you will 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
If you specify 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 you specify CUSTOMER_MANAGED
, you will 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
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
Appends an item to workspaceDataSources
.
To override the contents of this collection use set_workspace_data_sources
.
Specify the Amazon Web Services data sources that you want to be queried in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to read data from these sources. You must still add them as data sources in the Grafana console in the workspace.
If you don't specify a data source here, you can still add it as a data source later in the workspace console. However, you will then have to manually configure permissions for it.
Specify the Amazon Web Services data sources that you want to be queried in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to read data from these sources. You must still add them as data sources in the Grafana console in the workspace.
If you don't specify a data source here, you can still add it as a data source later in the workspace console. However, you will then have to manually configure permissions for it.
A description for the workspace. This is used only to help you identify this workspace.
A description for the workspace. This is used only to help you identify this workspace.
The ID of the workspace to update.
The ID of the workspace to update.
A new name for the workspace to update.
A new name for the workspace to update.
pub fn workspace_notification_destinations(
self,
inp: impl Into<NotificationDestinationType>
) -> Self
pub fn workspace_notification_destinations(
self,
inp: impl Into<NotificationDestinationType>
) -> Self
Appends an item to workspaceNotificationDestinations
.
To override the contents of this collection use set_workspace_notification_destinations
.
Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.
pub fn set_workspace_notification_destinations(
self,
input: Option<Vec<NotificationDestinationType>>
) -> Self
pub fn set_workspace_notification_destinations(
self,
input: Option<Vec<NotificationDestinationType>>
) -> Self
Specify the Amazon Web Services notification channels that you plan to use in this workspace. Specifying these data sources here enables Amazon Managed Grafana to create IAM roles and permissions that allow Amazon Managed Grafana to use these channels.
Appends an item to workspaceOrganizationalUnits
.
To override the contents of this collection use set_workspace_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.
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.
The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the
workspace will view data from. If you already have a role that you want to use, specify it here. If you omit
this field and you specify some Amazon Web Services resources in workspaceDataSources
or
workspaceNotificationDestinations
, a new IAM role with the necessary permissions is
automatically created.
The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the
workspace will view data from. If you already have a role that you want to use, specify it here. If you omit
this field and you specify some Amazon Web Services resources in workspaceDataSources
or
workspaceNotificationDestinations
, a new IAM role with the necessary permissions is
automatically created.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for UpdateWorkspace<C, M, R>
impl<C, M, R> Send for UpdateWorkspace<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateWorkspace<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateWorkspace<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for UpdateWorkspace<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more