update_workspace
async
¶
update_workspace(
workspace_id: WorkspaceId,
*,
config_overrides: Optional[AsyncgrafanaClientConfig] = None,
account_access_type: Optional[AccountAccessType] = None,
organization_role_name: Optional[OrganizationRoleName] = None,
permission_type: Optional[PermissionType] = None,
stack_set_name: Optional[StackSetName] = None,
workspace_data_sources: Optional[DataSourceTypesList] = None,
workspace_description: Optional[Description] = None,
workspace_name: Optional[WorkspaceName] = None,
workspace_notification_destinations: Optional[NotificationDestinationsList] = None,
workspace_organizational_units: Optional[OrganizationalUnitList] = None,
workspace_role_arn: Optional[IamRoleArn] = None,
vpc_configuration: Optional[VpcConfiguration] = None,
remove_vpc_configuration: Optional[bool] = None,
network_access_control: Optional[NetworkAccessConfiguration] = None,
remove_network_access_configuration: Optional[bool] = None,
ip_address_type: Optional[IPAddressType] = None,
) -> UpdateWorkspaceResponse
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 IAM Identity Center, use UpdateWorkspaceAuthentication.
To modify which users in the workspace have the Admin and Editor Grafana roles, use UpdatePermissions.
Parameters:
-
account_access_type(Optional[AccountAccessType], default:None) –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 theworkspaceOrganizationalUnitsparameter. -
organization_role_name(Optional[OrganizationRoleName], default:None) –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
permissionTypeset toCUSTOMER_MANAGED. -
permission_type(Optional[PermissionType], default:None) –Use this parameter if you want to change a workspace from
SERVICE_MANAGEDtoCUSTOMER_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 chooseCUSTOMER_MANAGED.If you specify this as
CUSTOMER_MANAGED, you must also specify aworkspaceRoleArnthat 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_MANAGEDworkspace toSERVICE_MANAGED. Do not include this parameter if you want to leave the workspace asSERVICE_MANAGED.You can convert a
CUSTOMER_MANAGEDworkspace toSERVICE_MANAGEDusing the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels. -
stack_set_name(Optional[StackSetName], default:None) –The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
-
workspace_data_sources(Optional[DataSourceTypesList], default:None) –This parameter is for internal use only, and should not be used.
-
workspace_description(Optional[Description], default:None) –A description for the workspace. This is used only to help you identify this workspace.
-
workspace_id(WorkspaceId) –The ID of the workspace to update.
-
workspace_name(Optional[WorkspaceName], default:None) –A new name for the workspace to update.
-
workspace_notification_destinations(Optional[NotificationDestinationsList], default:None) –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(Optional[OrganizationalUnitList], default:None) –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(Optional[IamRoleArn], default:None) –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
permissionTypeCUSTOMER_MANAGED, then this role is required. -
vpc_configuration(Optional[VpcConfiguration], default:None) –The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
-
remove_vpc_configuration(Optional[bool], default:None) –Whether to remove the VPC configuration from the workspace.
Setting this to
trueand providing avpcConfigurationto set will return an error. -
network_access_control(Optional[NetworkAccessConfiguration], default:None) –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(Optional[bool], default:None) –Whether to remove the network access configuration from the workspace.
Setting this to
trueand providing anetworkAccessControlto 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. -
ip_address_type(Optional[IPAddressType], default:None) –Specifies whether the workspace supports IPv4 only, or IPv4 and IPv6. Valid values are
IPv4andDualStack. For more information about IP address types, see Network access control.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–A resource was in an inconsistent state during an update or a deletion.
-
InternalServerException–Unexpected error while processing the request. Retry the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ThrottlingException–The request was denied because of request throttling. Retry the request.
-
ValidationException–The value of a parameter in the request caused an error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_grafana/_services/async_grafana.py
1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 | |