Interface UpdateWorkspaceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateWorkspaceRequest.Builder,
,UpdateWorkspaceRequest> GrafanaRequest.Builder
,SdkBuilder<UpdateWorkspaceRequest.Builder,
,UpdateWorkspaceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateWorkspaceRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountAccessType
(String 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.accountAccessType
(AccountAccessType 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.default UpdateWorkspaceRequest.Builder
networkAccessControl
(Consumer<NetworkAccessConfiguration.Builder> networkAccessControl) The configuration settings for network access to your workspace.networkAccessControl
(NetworkAccessConfiguration networkAccessControl) The configuration settings for network access to your workspace.organizationRoleName
(String organizationRoleName) The name of an IAM role that already exists to use to access resources through Organizations.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.permissionType
(String permissionType) Use this parameter if you want to change a workspace fromSERVICE_MANAGED
toCUSTOMER_MANAGED
.permissionType
(PermissionType permissionType) Use this parameter if you want to change a workspace fromSERVICE_MANAGED
toCUSTOMER_MANAGED
.removeNetworkAccessConfiguration
(Boolean removeNetworkAccessConfiguration) Whether to remove the network access configuration from the workspace.removeVpcConfiguration
(Boolean removeVpcConfiguration) Whether to remove the VPC configuration from the workspace.stackSetName
(String stackSetName) The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.default UpdateWorkspaceRequest.Builder
vpcConfiguration
(Consumer<VpcConfiguration.Builder> vpcConfiguration) The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.vpcConfiguration
(VpcConfiguration vpcConfiguration) The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.workspaceDataSources
(Collection<DataSourceType> workspaceDataSources) This parameter is for internal use only, and should not be used.workspaceDataSources
(DataSourceType... workspaceDataSources) This parameter is for internal use only, and should not be used.workspaceDataSourcesWithStrings
(String... workspaceDataSources) This parameter is for internal use only, and should not be used.workspaceDataSourcesWithStrings
(Collection<String> workspaceDataSources) This parameter is for internal use only, and should not be used.workspaceDescription
(String workspaceDescription) A description for the workspace.workspaceId
(String workspaceId) The ID of the workspace to update.workspaceName
(String workspaceName) A new name for the workspace to update.workspaceNotificationDestinations
(Collection<NotificationDestinationType> workspaceNotificationDestinations) Specify the Amazon Web Services notification channels that you plan to use in this workspace.workspaceNotificationDestinations
(NotificationDestinationType... workspaceNotificationDestinations) Specify the Amazon Web Services notification channels that you plan to use in this workspace.workspaceNotificationDestinationsWithStrings
(String... workspaceNotificationDestinations) Specify the Amazon Web Services notification channels that you plan to use in this workspace.workspaceNotificationDestinationsWithStrings
(Collection<String> workspaceNotificationDestinations) Specify the Amazon Web Services notification channels that you plan to use in this workspace.workspaceOrganizationalUnits
(String... 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.workspaceOrganizationalUnits
(Collection<String> 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.workspaceRoleArn
(String workspaceRoleArn) Specifies an IAM role that grants permissions to Amazon Web Services resources that the workspace accesses, such as data sources and notification channels.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.grafana.model.GrafanaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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 theworkspaceOrganizationalUnits
parameter.- Parameters:
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 specifyORGANIZATION
, you must specify which organizational units the workspace can access in theworkspaceOrganizationalUnits
parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 theworkspaceOrganizationalUnits
parameter.- Parameters:
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 specifyORGANIZATION
, you must specify which organizational units the workspace can access in theworkspaceOrganizationalUnits
parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkAccessControl
UpdateWorkspaceRequest.Builder networkAccessControl(NetworkAccessConfiguration networkAccessControl) 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.
- Parameters:
networkAccessControl
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkAccessControl
default UpdateWorkspaceRequest.Builder networkAccessControl(Consumer<NetworkAccessConfiguration.Builder> networkAccessControl) 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.
This is a convenience method that creates an instance of theNetworkAccessConfiguration.Builder
avoiding the need to create one manually viaNetworkAccessConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkAccessControl(NetworkAccessConfiguration)
.- Parameters:
networkAccessControl
- a consumer that will call methods onNetworkAccessConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
organizationRoleName
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 toCUSTOMER_MANAGED
.- Parameters:
organizationRoleName
- 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 thepermissionType
set toCUSTOMER_MANAGED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionType
Use this parameter if you want to change a workspace from
SERVICE_MANAGED
toCUSTOMER_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 aworkspaceRoleArn
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 toSERVICE_MANAGED
. Do not include this parameter if you want to leave the workspace asSERVICE_MANAGED
.You can convert a
CUSTOMER_MANAGED
workspace toSERVICE_MANAGED
using the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels.- Parameters:
permissionType
- Use this parameter if you want to change a workspace fromSERVICE_MANAGED
toCUSTOMER_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 aworkspaceRoleArn
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 toSERVICE_MANAGED
. Do not include this parameter if you want to leave the workspace asSERVICE_MANAGED
.You can convert a
CUSTOMER_MANAGED
workspace toSERVICE_MANAGED
using the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permissionType
Use this parameter if you want to change a workspace from
SERVICE_MANAGED
toCUSTOMER_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 aworkspaceRoleArn
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 toSERVICE_MANAGED
. Do not include this parameter if you want to leave the workspace asSERVICE_MANAGED
.You can convert a
CUSTOMER_MANAGED
workspace toSERVICE_MANAGED
using the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels.- Parameters:
permissionType
- Use this parameter if you want to change a workspace fromSERVICE_MANAGED
toCUSTOMER_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 aworkspaceRoleArn
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 toSERVICE_MANAGED
. Do not include this parameter if you want to leave the workspace asSERVICE_MANAGED
.You can convert a
CUSTOMER_MANAGED
workspace toSERVICE_MANAGED
using the Amazon Managed Grafana console. For more information, see Managing permissions for data sources and notification channels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
removeNetworkAccessConfiguration
UpdateWorkspaceRequest.Builder removeNetworkAccessConfiguration(Boolean removeNetworkAccessConfiguration) Whether to remove the network access configuration from the workspace.
Setting this to
true
and providing anetworkAccessControl
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.- Parameters:
removeNetworkAccessConfiguration
- Whether to remove the network access configuration from the workspace.Setting this to
true
and providing anetworkAccessControl
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeVpcConfiguration
Whether to remove the VPC configuration from the workspace.
Setting this to
true
and providing avpcConfiguration
to set will return an error.- Parameters:
removeVpcConfiguration
- Whether to remove the VPC configuration from the workspace.Setting this to
true
and providing avpcConfiguration
to set will return an error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stackSetName
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
- Parameters:
stackSetName
- The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
- Parameters:
vpcConfiguration
- The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfiguration
default UpdateWorkspaceRequest.Builder vpcConfiguration(Consumer<VpcConfiguration.Builder> vpcConfiguration) The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
This is a convenience method that creates an instance of theVpcConfiguration.Builder
avoiding the need to create one manually viaVpcConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfiguration(VpcConfiguration)
.- Parameters:
vpcConfiguration
- a consumer that will call methods onVpcConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workspaceDataSourcesWithStrings
UpdateWorkspaceRequest.Builder workspaceDataSourcesWithStrings(Collection<String> workspaceDataSources) This parameter is for internal use only, and should not be used.
- Parameters:
workspaceDataSources
- This parameter is for internal use only, and should not be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceDataSourcesWithStrings
This parameter is for internal use only, and should not be used.
- Parameters:
workspaceDataSources
- This parameter is for internal use only, and should not be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceDataSources
UpdateWorkspaceRequest.Builder workspaceDataSources(Collection<DataSourceType> workspaceDataSources) This parameter is for internal use only, and should not be used.
- Parameters:
workspaceDataSources
- This parameter is for internal use only, and should not be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceDataSources
This parameter is for internal use only, and should not be used.
- Parameters:
workspaceDataSources
- This parameter is for internal use only, and should not be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceDescription
A description for the workspace. This is used only to help you identify this workspace.
- Parameters:
workspaceDescription
- A description for the workspace. This is used only to help you identify this workspace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceId
The ID of the workspace to update.
- Parameters:
workspaceId
- The ID of the workspace to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceName
A new name for the workspace to update.
- Parameters:
workspaceName
- A new name for the workspace to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceNotificationDestinationsWithStrings
UpdateWorkspaceRequest.Builder workspaceNotificationDestinationsWithStrings(Collection<String> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceNotificationDestinationsWithStrings
UpdateWorkspaceRequest.Builder workspaceNotificationDestinationsWithStrings(String... 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceNotificationDestinations
UpdateWorkspaceRequest.Builder workspaceNotificationDestinations(Collection<NotificationDestinationType> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceNotificationDestinations
UpdateWorkspaceRequest.Builder workspaceNotificationDestinations(NotificationDestinationType... 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceOrganizationalUnits
UpdateWorkspaceRequest.Builder workspaceOrganizationalUnits(Collection<String> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceRoleArn
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.- Parameters:
workspaceRoleArn
- 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 haspermissionType
CUSTOMER_MANAGED
, then this role is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateWorkspaceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateWorkspaceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-