aws_sdk_grafana/client/update_workspace.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateWorkspace`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`account_access_type(AccountAccessType)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::account_access_type) / [`set_account_access_type(Option<AccountAccessType>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_account_access_type):<br>required: **false**<br><p>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 <code>ORGANIZATION</code>, you must specify which organizational units the workspace can access in the <code>workspaceOrganizationalUnits</code> parameter.</p><br>
7 /// - [`organization_role_name(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::organization_role_name) / [`set_organization_role_name(Option<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_organization_role_name):<br>required: **false**<br><p>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 <code>permissionType</code> set to <code>CUSTOMER_MANAGED</code>.</p><br>
8 /// - [`permission_type(PermissionType)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::permission_type) / [`set_permission_type(Option<PermissionType>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_permission_type):<br>required: **false**<br><p>Use this parameter if you want to change a workspace from <code>SERVICE_MANAGED</code> to <code>CUSTOMER_MANAGED</code>. 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 <code>CUSTOMER_MANAGED</code>.</p> <p>If you specify this as <code>CUSTOMER_MANAGED</code>, you must also specify a <code>workspaceRoleArn</code> that the workspace will use for accessing Amazon Web Services resources.</p> <p>For more information on the role and permissions needed, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html">Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels</a></p><note> <p>Do not use this to convert a <code>CUSTOMER_MANAGED</code> workspace to <code>SERVICE_MANAGED</code>. Do not include this parameter if you want to leave the workspace as <code>SERVICE_MANAGED</code>.</p> <p>You can convert a <code>CUSTOMER_MANAGED</code> workspace to <code>SERVICE_MANAGED</code> using the Amazon Managed Grafana console. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/AMG-datasource-and-notification.html">Managing permissions for data sources and notification channels</a>.</p> </note><br>
9 /// - [`stack_set_name(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::stack_set_name) / [`set_stack_set_name(Option<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_stack_set_name):<br>required: **false**<br><p>The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.</p><br>
10 /// - [`workspace_data_sources(DataSourceType)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_data_sources) / [`set_workspace_data_sources(Option<Vec::<DataSourceType>>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_data_sources):<br>required: **false**<br><p>This parameter is for internal use only, and should not be used.</p><br>
11 /// - [`workspace_description(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_description) / [`set_workspace_description(Option<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_description):<br>required: **false**<br><p>A description for the workspace. This is used only to help you identify this workspace.</p><br>
12 /// - [`workspace_id(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_id) / [`set_workspace_id(Option<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_id):<br>required: **true**<br><p>The ID of the workspace to update.</p><br>
13 /// - [`workspace_name(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_name) / [`set_workspace_name(Option<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_name):<br>required: **false**<br><p>A new name for the workspace to update.</p><br>
14 /// - [`workspace_notification_destinations(NotificationDestinationType)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_notification_destinations) / [`set_workspace_notification_destinations(Option<Vec::<NotificationDestinationType>>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_notification_destinations):<br>required: **false**<br><p>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.</p><br>
15 /// - [`workspace_organizational_units(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_organizational_units) / [`set_workspace_organizational_units(Option<Vec::<String>>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_organizational_units):<br>required: **false**<br><p>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.</p><br>
16 /// - [`workspace_role_arn(impl Into<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::workspace_role_arn) / [`set_workspace_role_arn(Option<String>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_workspace_role_arn):<br>required: **false**<br><p>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 <code>permissionType</code> <code>CUSTOMER_MANAGED</code>, then this role is required.</p><br>
17 /// - [`vpc_configuration(VpcConfiguration)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::vpc_configuration) / [`set_vpc_configuration(Option<VpcConfiguration>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_vpc_configuration):<br>required: **false**<br><p>The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.</p><br>
18 /// - [`remove_vpc_configuration(bool)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::remove_vpc_configuration) / [`set_remove_vpc_configuration(Option<bool>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_remove_vpc_configuration):<br>required: **false**<br><p>Whether to remove the VPC configuration from the workspace.</p> <p>Setting this to <code>true</code> and providing a <code>vpcConfiguration</code> to set will return an error.</p><br>
19 /// - [`network_access_control(NetworkAccessConfiguration)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::network_access_control) / [`set_network_access_control(Option<NetworkAccessConfiguration>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_network_access_control):<br>required: **false**<br><p>The configuration settings for network access to your workspace.</p> <p>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.</p> <p>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.</p><br>
20 /// - [`remove_network_access_configuration(bool)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::remove_network_access_configuration) / [`set_remove_network_access_configuration(Option<bool>)`](crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::set_remove_network_access_configuration):<br>required: **false**<br><p>Whether to remove the network access configuration from the workspace.</p> <p>Setting this to <code>true</code> and providing a <code>networkAccessControl</code> to set will return an error.</p> <p>If you remove this configuration by setting this to <code>true</code>, then all IP addresses and VPC endpoints will be allowed. Standard Grafana authentication and authorization will still be required.</p><br>
21 /// - On success, responds with [`UpdateWorkspaceOutput`](crate::operation::update_workspace::UpdateWorkspaceOutput) with field(s):
22 /// - [`workspace(Option<WorkspaceDescription>)`](crate::operation::update_workspace::UpdateWorkspaceOutput::workspace): <p>A structure containing data about the workspace that was created.</p>
23 /// - On failure, responds with [`SdkError<UpdateWorkspaceError>`](crate::operation::update_workspace::UpdateWorkspaceError)
24 pub fn update_workspace(&self) -> crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder {
25 crate::operation::update_workspace::builders::UpdateWorkspaceFluentBuilder::new(self.handle.clone())
26 }
27}