Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data UpdateWorkspace = UpdateWorkspace' {
- accountAccessType :: Maybe AccountAccessType
- organizationRoleName :: Maybe (Sensitive Text)
- permissionType :: Maybe PermissionType
- removeVpcConfiguration :: Maybe Bool
- stackSetName :: Maybe Text
- vpcConfiguration :: Maybe VpcConfiguration
- workspaceDataSources :: Maybe [DataSourceType]
- workspaceDescription :: Maybe (Sensitive Text)
- workspaceName :: Maybe (Sensitive Text)
- workspaceNotificationDestinations :: Maybe [NotificationDestinationType]
- workspaceOrganizationalUnits :: Maybe (Sensitive [Text])
- workspaceRoleArn :: Maybe (Sensitive Text)
- workspaceId :: Text
- newUpdateWorkspace :: Text -> UpdateWorkspace
- updateWorkspace_accountAccessType :: Lens' UpdateWorkspace (Maybe AccountAccessType)
- updateWorkspace_organizationRoleName :: Lens' UpdateWorkspace (Maybe Text)
- updateWorkspace_permissionType :: Lens' UpdateWorkspace (Maybe PermissionType)
- updateWorkspace_removeVpcConfiguration :: Lens' UpdateWorkspace (Maybe Bool)
- updateWorkspace_stackSetName :: Lens' UpdateWorkspace (Maybe Text)
- updateWorkspace_vpcConfiguration :: Lens' UpdateWorkspace (Maybe VpcConfiguration)
- updateWorkspace_workspaceDataSources :: Lens' UpdateWorkspace (Maybe [DataSourceType])
- updateWorkspace_workspaceDescription :: Lens' UpdateWorkspace (Maybe Text)
- updateWorkspace_workspaceName :: Lens' UpdateWorkspace (Maybe Text)
- updateWorkspace_workspaceNotificationDestinations :: Lens' UpdateWorkspace (Maybe [NotificationDestinationType])
- updateWorkspace_workspaceOrganizationalUnits :: Lens' UpdateWorkspace (Maybe [Text])
- updateWorkspace_workspaceRoleArn :: Lens' UpdateWorkspace (Maybe Text)
- updateWorkspace_workspaceId :: Lens' UpdateWorkspace Text
- data UpdateWorkspaceResponse = UpdateWorkspaceResponse' {}
- newUpdateWorkspaceResponse :: Int -> WorkspaceDescription -> UpdateWorkspaceResponse
- updateWorkspaceResponse_httpStatus :: Lens' UpdateWorkspaceResponse Int
- updateWorkspaceResponse_workspace :: Lens' UpdateWorkspaceResponse WorkspaceDescription
Creating a Request
data UpdateWorkspace Source #
See: newUpdateWorkspace
smart constructor.
UpdateWorkspace' | |
|
Instances
Create a value of UpdateWorkspace
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateWorkspace
, updateWorkspace_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.
UpdateWorkspace
, updateWorkspace_organizationRoleName
- The name of an IAM role that already exists to use to access resources
through Organizations.
UpdateWorkspace
, updateWorkspace_permissionType
- 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
$sel:removeVpcConfiguration:UpdateWorkspace'
, updateWorkspace_removeVpcConfiguration
- Whether to remove the VPC configuration from the workspace.
Setting this to true
and providing a vpcConfiguration
to set will
return an error.
UpdateWorkspace
, updateWorkspace_stackSetName
- The name of the CloudFormation stack set to use to generate IAM roles to
be used for this workspace.
UpdateWorkspace
, updateWorkspace_vpcConfiguration
- The configuration settings for an Amazon VPC that contains data sources
for your Grafana workspace to connect to.
$sel:workspaceDataSources:UpdateWorkspace'
, updateWorkspace_workspaceDataSources
- 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.
$sel:workspaceDescription:UpdateWorkspace'
, updateWorkspace_workspaceDescription
- A description for the workspace. This is used only to help you identify
this workspace.
$sel:workspaceName:UpdateWorkspace'
, updateWorkspace_workspaceName
- A new name for the workspace to update.
$sel:workspaceNotificationDestinations:UpdateWorkspace'
, updateWorkspace_workspaceNotificationDestinations
- 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.
$sel:workspaceOrganizationalUnits:UpdateWorkspace'
, updateWorkspace_workspaceOrganizationalUnits
- 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.
UpdateWorkspace
, updateWorkspace_workspaceRoleArn
- 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.
$sel:workspaceId:UpdateWorkspace'
, updateWorkspace_workspaceId
- The ID of the workspace to update.
Request Lenses
updateWorkspace_accountAccessType :: Lens' UpdateWorkspace (Maybe AccountAccessType) Source #
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.
updateWorkspace_organizationRoleName :: Lens' UpdateWorkspace (Maybe Text) Source #
The name of an IAM role that already exists to use to access resources through Organizations.
updateWorkspace_permissionType :: Lens' UpdateWorkspace (Maybe PermissionType) Source #
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
updateWorkspace_removeVpcConfiguration :: Lens' UpdateWorkspace (Maybe Bool) Source #
Whether to remove the VPC configuration from the workspace.
Setting this to true
and providing a vpcConfiguration
to set will
return an error.
updateWorkspace_stackSetName :: Lens' UpdateWorkspace (Maybe Text) Source #
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
updateWorkspace_vpcConfiguration :: Lens' UpdateWorkspace (Maybe VpcConfiguration) Source #
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
updateWorkspace_workspaceDataSources :: Lens' UpdateWorkspace (Maybe [DataSourceType]) Source #
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.
updateWorkspace_workspaceDescription :: Lens' UpdateWorkspace (Maybe Text) Source #
A description for the workspace. This is used only to help you identify this workspace.
updateWorkspace_workspaceName :: Lens' UpdateWorkspace (Maybe Text) Source #
A new name for the workspace to update.
updateWorkspace_workspaceNotificationDestinations :: Lens' UpdateWorkspace (Maybe [NotificationDestinationType]) Source #
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.
updateWorkspace_workspaceOrganizationalUnits :: Lens' UpdateWorkspace (Maybe [Text]) Source #
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.
updateWorkspace_workspaceRoleArn :: Lens' UpdateWorkspace (Maybe Text) Source #
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.
updateWorkspace_workspaceId :: Lens' UpdateWorkspace Text Source #
The ID of the workspace to update.
Destructuring the Response
data UpdateWorkspaceResponse Source #
See: newUpdateWorkspaceResponse
smart constructor.
UpdateWorkspaceResponse' | |
|
Instances
newUpdateWorkspaceResponse Source #
Create a value of UpdateWorkspaceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateWorkspaceResponse'
, updateWorkspaceResponse_httpStatus
- The response's http status code.
$sel:workspace:UpdateWorkspaceResponse'
, updateWorkspaceResponse_workspace
- A structure containing data about the workspace that was created.
Response Lenses
updateWorkspaceResponse_httpStatus :: Lens' UpdateWorkspaceResponse Int Source #
The response's http status code.
updateWorkspaceResponse_workspace :: Lens' UpdateWorkspaceResponse WorkspaceDescription Source #
A structure containing data about the workspace that was created.