amazonka-grafana-2.0: Amazon Managed Grafana SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Grafana.UpdateWorkspace

Description

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

Creating a Request

data UpdateWorkspace Source #

See: newUpdateWorkspace smart constructor.

Constructors

UpdateWorkspace' 

Fields

  • accountAccessType :: Maybe 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.

  • organizationRoleName :: Maybe (Sensitive Text)

    The name of an IAM role that already exists to use to access resources through Organizations.

  • permissionType :: Maybe 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

  • removeVpcConfiguration :: Maybe Bool

    Whether to remove the VPC configuration from the workspace.

    Setting this to true and providing a vpcConfiguration to set will return an error.

  • stackSetName :: Maybe Text

    The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.

  • vpcConfiguration :: Maybe VpcConfiguration

    The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.

  • workspaceDataSources :: Maybe [DataSourceType]

    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.

  • workspaceDescription :: Maybe (Sensitive Text)

    A description for the workspace. This is used only to help you identify this workspace.

  • workspaceName :: Maybe (Sensitive Text)

    A new name for the workspace to update.

  • workspaceNotificationDestinations :: Maybe [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.

  • workspaceOrganizationalUnits :: Maybe (Sensitive [Text])

    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.

  • workspaceRoleArn :: Maybe (Sensitive Text)

    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.

  • workspaceId :: Text

    The ID of the workspace to update.

Instances

Instances details
ToJSON UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

ToHeaders UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

ToPath UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

ToQuery UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

AWSRequest UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

Associated Types

type AWSResponse UpdateWorkspace #

Generic UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

Associated Types

type Rep UpdateWorkspace :: Type -> Type #

Show UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

NFData UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

Methods

rnf :: UpdateWorkspace -> () #

Eq UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

Hashable UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

type AWSResponse UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

type Rep UpdateWorkspace Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

type Rep UpdateWorkspace = D1 ('MetaData "UpdateWorkspace" "Amazonka.Grafana.UpdateWorkspace" "amazonka-grafana-2.0-1hXXW2cgZWZJGJ3AoD5xOB" 'False) (C1 ('MetaCons "UpdateWorkspace'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "accountAccessType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountAccessType)) :*: (S1 ('MetaSel ('Just "organizationRoleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "permissionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PermissionType)))) :*: (S1 ('MetaSel ('Just "removeVpcConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "stackSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vpcConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfiguration))))) :*: ((S1 ('MetaSel ('Just "workspaceDataSources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DataSourceType])) :*: (S1 ('MetaSel ('Just "workspaceDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "workspaceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))))) :*: ((S1 ('MetaSel ('Just "workspaceNotificationDestinations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [NotificationDestinationType])) :*: S1 ('MetaSel ('Just "workspaceOrganizationalUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive [Text])))) :*: (S1 ('MetaSel ('Just "workspaceRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newUpdateWorkspace Source #

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.

Constructors

UpdateWorkspaceResponse' 

Fields

Instances

Instances details
Generic UpdateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

Associated Types

type Rep UpdateWorkspaceResponse :: Type -> Type #

Show UpdateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

NFData UpdateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

Methods

rnf :: UpdateWorkspaceResponse -> () #

Eq UpdateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

type Rep UpdateWorkspaceResponse Source # 
Instance details

Defined in Amazonka.Grafana.UpdateWorkspace

type Rep UpdateWorkspaceResponse = D1 ('MetaData "UpdateWorkspaceResponse" "Amazonka.Grafana.UpdateWorkspace" "amazonka-grafana-2.0-1hXXW2cgZWZJGJ3AoD5xOB" 'False) (C1 ('MetaCons "UpdateWorkspaceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "workspace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WorkspaceDescription)))

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_workspace :: Lens' UpdateWorkspaceResponse WorkspaceDescription Source #

A structure containing data about the workspace that was created.