@Generated(value="software.amazon.awssdk:codegen") public final class UpdateWorkspaceRequest extends GrafanaRequest implements ToCopyableBuilder<UpdateWorkspaceRequest.Builder,UpdateWorkspaceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateWorkspaceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
accountAccessTypeAsString()
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.
|
static UpdateWorkspaceRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasWorkspaceDataSources()
For responses, this returns true if the service returned a value for the WorkspaceDataSources property.
|
boolean |
hasWorkspaceNotificationDestinations()
For responses, this returns true if the service returned a value for the WorkspaceNotificationDestinations
property.
|
boolean |
hasWorkspaceOrganizationalUnits()
For responses, this returns true if the service returned a value for the WorkspaceOrganizationalUnits property.
|
NetworkAccessConfiguration |
networkAccessControl()
The configuration settings for network access to your workspace.
|
String |
organizationRoleName()
The name of an IAM role that already exists to use to access resources through Organizations.
|
PermissionType |
permissionType()
Use this parameter if you want to change a workspace from
SERVICE_MANAGED to
CUSTOMER_MANAGED. |
String |
permissionTypeAsString()
Use this parameter if you want to change a workspace from
SERVICE_MANAGED to
CUSTOMER_MANAGED. |
Boolean |
removeNetworkAccessConfiguration()
Whether to remove the network access configuration from the workspace.
|
Boolean |
removeVpcConfiguration()
Whether to remove the VPC configuration from the workspace.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateWorkspaceRequest.Builder> |
serializableBuilderClass() |
String |
stackSetName()
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
|
UpdateWorkspaceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VpcConfiguration |
vpcConfiguration()
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
|
List<DataSourceType> |
workspaceDataSources()
This parameter is for internal use only, and should not be used.
|
List<String> |
workspaceDataSourcesAsStrings()
This parameter is for internal use only, and should not be used.
|
String |
workspaceDescription()
A description for the workspace.
|
String |
workspaceId()
The ID of the workspace to update.
|
String |
workspaceName()
A new name for the workspace to update.
|
List<NotificationDestinationType> |
workspaceNotificationDestinations()
Specify the Amazon Web Services notification channels that you plan to use in this workspace.
|
List<String> |
workspaceNotificationDestinationsAsStrings()
Specify the Amazon Web Services notification channels that you plan to use in this workspace.
|
List<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.
|
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.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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. If
you specify ORGANIZATION, you must specify which organizational units the workspace can access in
the workspaceOrganizationalUnits parameter.
If the service returns an enum value that is not available in the current SDK version, accountAccessType
will return AccountAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from accountAccessTypeAsString().
ORGANIZATION, you must specify which organizational units the
workspace can access in the workspaceOrganizationalUnits parameter.AccountAccessTypepublic final String accountAccessTypeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, accountAccessType
will return AccountAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from accountAccessTypeAsString().
ORGANIZATION, you must specify which organizational units the
workspace can access in the workspaceOrganizationalUnits parameter.AccountAccessTypepublic final 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.
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.
public final String 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 to CUSTOMER_MANAGED.
permissionType set to
CUSTOMER_MANAGED.public final PermissionType permissionType()
Use this parameter if you want to change a workspace from SERVICE_MANAGED to
CUSTOMER_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 choose
CUSTOMER_MANAGED.
If you specify this as CUSTOMER_MANAGED, you must also specify a workspaceRoleArn 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 to SERVICE_MANAGED. Do not
include this parameter if you want to leave the workspace as SERVICE_MANAGED.
You can convert a CUSTOMER_MANAGED workspace to SERVICE_MANAGED using the Amazon
Managed Grafana console. For more information, see Managing
permissions for data sources and notification channels.
If the service returns an enum value that is not available in the current SDK version, permissionType
will return PermissionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from permissionTypeAsString().
SERVICE_MANAGED to
CUSTOMER_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 choose
CUSTOMER_MANAGED.
If you specify this as CUSTOMER_MANAGED, you must also specify a
workspaceRoleArn 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 to SERVICE_MANAGED. Do
not include this parameter if you want to leave the workspace as SERVICE_MANAGED.
You can convert a CUSTOMER_MANAGED workspace to SERVICE_MANAGED using the
Amazon Managed Grafana console. For more information, see Managing
permissions for data sources and notification channels.
PermissionTypepublic final String permissionTypeAsString()
Use this parameter if you want to change a workspace from SERVICE_MANAGED to
CUSTOMER_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 choose
CUSTOMER_MANAGED.
If you specify this as CUSTOMER_MANAGED, you must also specify a workspaceRoleArn 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 to SERVICE_MANAGED. Do not
include this parameter if you want to leave the workspace as SERVICE_MANAGED.
You can convert a CUSTOMER_MANAGED workspace to SERVICE_MANAGED using the Amazon
Managed Grafana console. For more information, see Managing
permissions for data sources and notification channels.
If the service returns an enum value that is not available in the current SDK version, permissionType
will return PermissionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from permissionTypeAsString().
SERVICE_MANAGED to
CUSTOMER_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 choose
CUSTOMER_MANAGED.
If you specify this as CUSTOMER_MANAGED, you must also specify a
workspaceRoleArn 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 to SERVICE_MANAGED. Do
not include this parameter if you want to leave the workspace as SERVICE_MANAGED.
You can convert a CUSTOMER_MANAGED workspace to SERVICE_MANAGED using the
Amazon Managed Grafana console. For more information, see Managing
permissions for data sources and notification channels.
PermissionTypepublic final Boolean removeNetworkAccessConfiguration()
Whether to remove the network access configuration from the workspace.
Setting this to true and providing a networkAccessControl 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.
Setting this to true and providing a networkAccessControl 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.
public final Boolean removeVpcConfiguration()
Whether to remove the VPC configuration from the workspace.
Setting this to true and providing a vpcConfiguration to set will return an error.
Setting this to true and providing a vpcConfiguration to set will return an
error.
public final String stackSetName()
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
public final VpcConfiguration vpcConfiguration()
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
public final List<DataSourceType> workspaceDataSources()
This parameter is for internal use only, and should not be used.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasWorkspaceDataSources() method.
public final boolean hasWorkspaceDataSources()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> workspaceDataSourcesAsStrings()
This parameter is for internal use only, and should not be used.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasWorkspaceDataSources() method.
public final String workspaceDescription()
A description for the workspace. This is used only to help you identify this workspace.
public final String workspaceId()
The ID of the workspace to update.
public final String workspaceName()
A new name for the workspace to update.
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasWorkspaceNotificationDestinations()
method.
public final boolean hasWorkspaceNotificationDestinations()
isEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may
need to differentiate between the service returning nothing (or null) and the service returning an empty
collection or map. For requests, this returns true if a value for the property was specified in the request
builder, and false if a value was not specified.public final List<String> workspaceNotificationDestinationsAsStrings()
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasWorkspaceNotificationDestinations()
method.
public final boolean hasWorkspaceOrganizationalUnits()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasWorkspaceOrganizationalUnits() method.
public final 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. If this workspace has permissionType
CUSTOMER_MANAGED, then this role is required.
permissionType CUSTOMER_MANAGED, then this role is required.public UpdateWorkspaceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateWorkspaceRequest.Builder,UpdateWorkspaceRequest>toBuilder in class GrafanaRequestpublic static UpdateWorkspaceRequest.Builder builder()
public static Class<? extends UpdateWorkspaceRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.