#[non_exhaustive]pub struct UpdateWorkspaceInput {Show 15 fields
pub account_access_type: Option<AccountAccessType>,
pub organization_role_name: Option<String>,
pub permission_type: Option<PermissionType>,
pub stack_set_name: Option<String>,
pub workspace_data_sources: Option<Vec<DataSourceType>>,
pub workspace_description: Option<String>,
pub workspace_id: Option<String>,
pub workspace_name: Option<String>,
pub workspace_notification_destinations: Option<Vec<NotificationDestinationType>>,
pub workspace_organizational_units: Option<Vec<String>>,
pub workspace_role_arn: Option<String>,
pub vpc_configuration: Option<VpcConfiguration>,
pub remove_vpc_configuration: Option<bool>,
pub network_access_control: Option<NetworkAccessConfiguration>,
pub remove_network_access_configuration: Option<bool>,
}
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 you specify ORGANIZATION
, you must specify which organizational units the workspace can access in the workspaceOrganizationalUnits
parameter.
organization_role_name: Option<String>
The name of an IAM role that already exists to use to access resources through Organizations. This can only be used with a workspace that has the permissionType
set to CUSTOMER_MANAGED
.
permission_type: Option<PermissionType>
Use this parameter if you want to change a workspace from SERVICE_MANAGED
to CUSTOMER_MANAGED
. This allows you to manage the permissions that the workspace uses to access datasources and notification channels. If the workspace is in a member Amazon Web Services 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
.
If you specify this as CUSTOMER_MANAGED
, you must also specify a workspaceRoleArn
that the workspace will use for accessing Amazon Web Services resources.
For more information on the role and permissions needed, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
Do not use this to convert a CUSTOMER_MANAGED
workspace to SERVICE_MANAGED
. Do not include this parameter if you want to leave the workspace as SERVICE_MANAGED
.
You can convert a CUSTOMER_MANAGED
workspace to SERVICE_MANAGED
using the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels.
stack_set_name: Option<String>
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
workspace_data_sources: Option<Vec<DataSourceType>>
This parameter is for internal use only, and should not be used.
workspace_description: Option<String>
A description for the workspace. This is used only to help you identify this workspace.
workspace_id: Option<String>
The ID of the workspace to update.
workspace_name: Option<String>
A new name for the workspace to update.
workspace_notification_destinations: Option<Vec<NotificationDestinationType>>
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.
workspace_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.
workspace_role_arn: Option<String>
Specifies an IAM role that grants permissions to Amazon Web Services resources that the workspace accesses, such as data sources and notification channels. If this workspace has permissionType
CUSTOMER_MANAGED
, then this role is required.
vpc_configuration: Option<VpcConfiguration>
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
remove_vpc_configuration: Option<bool>
Whether to remove the VPC configuration from the workspace.
Setting this to true
and providing a vpcConfiguration
to set will return an error.
network_access_control: Option<NetworkAccessConfiguration>
The configuration settings for network access to your workspace.
When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required.
If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
remove_network_access_configuration: Option<bool>
Whether to remove the network access configuration from the workspace.
Setting this to true
and providing a networkAccessControl
to set will return an error.
If you remove this configuration by setting this to true
, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
Implementations§
source§impl UpdateWorkspaceInput
impl UpdateWorkspaceInput
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 you specify ORGANIZATION
, you must specify which organizational units the workspace can access in the workspaceOrganizationalUnits
parameter.
sourcepub fn organization_role_name(&self) -> Option<&str>
pub fn organization_role_name(&self) -> Option<&str>
The name of an IAM role that already exists to use to access resources through Organizations. This can only be used with a workspace that has the permissionType
set to CUSTOMER_MANAGED
.
sourcepub fn permission_type(&self) -> Option<&PermissionType>
pub fn permission_type(&self) -> Option<&PermissionType>
Use this parameter if you want to change a workspace from SERVICE_MANAGED
to CUSTOMER_MANAGED
. This allows you to manage the permissions that the workspace uses to access datasources and notification channels. If the workspace is in a member Amazon Web Services 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
.
If you specify this as CUSTOMER_MANAGED
, you must also specify a workspaceRoleArn
that the workspace will use for accessing Amazon Web Services resources.
For more information on the role and permissions needed, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
Do not use this to convert a CUSTOMER_MANAGED
workspace to SERVICE_MANAGED
. Do not include this parameter if you want to leave the workspace as SERVICE_MANAGED
.
You can convert a CUSTOMER_MANAGED
workspace to SERVICE_MANAGED
using the Amazon Managed Grafana console. For more information, see Managing permissions for 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 to use to generate IAM roles to be used for this workspace.
sourcepub fn workspace_data_sources(&self) -> Option<&[DataSourceType]>
pub fn workspace_data_sources(&self) -> Option<&[DataSourceType]>
This parameter is for internal use only, and should not be used.
sourcepub fn workspace_description(&self) -> Option<&str>
pub fn workspace_description(&self) -> Option<&str>
A description for the workspace. This is used only to help you identify this workspace.
sourcepub fn workspace_id(&self) -> Option<&str>
pub fn workspace_id(&self) -> Option<&str>
The ID of the workspace to update.
sourcepub fn workspace_name(&self) -> Option<&str>
pub fn workspace_name(&self) -> Option<&str>
A new name for the workspace to update.
sourcepub fn workspace_notification_destinations(
&self
) -> Option<&[NotificationDestinationType]>
pub fn workspace_notification_destinations( &self ) -> Option<&[NotificationDestinationType]>
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.
sourcepub fn workspace_organizational_units(&self) -> Option<&[String]>
pub fn workspace_organizational_units(&self) -> Option<&[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.
sourcepub fn workspace_role_arn(&self) -> Option<&str>
pub fn workspace_role_arn(&self) -> Option<&str>
Specifies an IAM role that grants permissions to Amazon Web Services resources that the workspace accesses, such as data sources and notification channels. If this workspace has permissionType
CUSTOMER_MANAGED
, then this role is required.
sourcepub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
pub fn vpc_configuration(&self) -> Option<&VpcConfiguration>
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
sourcepub fn remove_vpc_configuration(&self) -> Option<bool>
pub fn remove_vpc_configuration(&self) -> Option<bool>
Whether to remove the VPC configuration from the workspace.
Setting this to true
and providing a vpcConfiguration
to set will return an error.
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.
When this is configured, only listed IP addresses and VPC endpoints will be able to access your workspace. Standard Grafana authentication and authorization will still be required.
If this is not configured, or is removed, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
sourcepub fn remove_network_access_configuration(&self) -> Option<bool>
pub fn remove_network_access_configuration(&self) -> Option<bool>
Whether to remove the network access configuration from the workspace.
Setting this to true
and providing a networkAccessControl
to set will return an error.
If you remove this configuration by setting this to true
, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.
source§impl UpdateWorkspaceInput
impl UpdateWorkspaceInput
sourcepub fn builder() -> UpdateWorkspaceInputBuilder
pub fn builder() -> UpdateWorkspaceInputBuilder
Creates a new builder-style object to manufacture UpdateWorkspaceInput
.
Trait Implementations§
source§impl Clone for UpdateWorkspaceInput
impl Clone for UpdateWorkspaceInput
source§fn clone(&self) -> UpdateWorkspaceInput
fn clone(&self) -> UpdateWorkspaceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateWorkspaceInput
impl Debug for UpdateWorkspaceInput
source§impl PartialEq<UpdateWorkspaceInput> for UpdateWorkspaceInput
impl PartialEq<UpdateWorkspaceInput> for UpdateWorkspaceInput
source§fn eq(&self, other: &UpdateWorkspaceInput) -> bool
fn eq(&self, other: &UpdateWorkspaceInput) -> bool
self
and other
values to be equal, and is used
by ==
.