Class UpdateWorkspaceRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateWorkspaceRequest.Builder,UpdateWorkspaceRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal AccountAccessTypeSpecifies 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.final StringSpecifies 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.builder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the WorkspaceDataSources property.final booleanFor responses, this returns true if the service returned a value for the WorkspaceNotificationDestinations property.final booleanFor responses, this returns true if the service returned a value for the WorkspaceOrganizationalUnits property.The configuration settings for network access to your workspace.final StringThe name of an IAM role that already exists to use to access resources through Organizations.final PermissionTypeUse this parameter if you want to change a workspace fromSERVICE_MANAGEDtoCUSTOMER_MANAGED.final StringUse this parameter if you want to change a workspace fromSERVICE_MANAGEDtoCUSTOMER_MANAGED.final BooleanWhether to remove the network access configuration from the workspace.final BooleanWhether to remove the VPC configuration from the workspace.static Class<? extends UpdateWorkspaceRequest.Builder> final StringThe name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final VpcConfigurationThe configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.final List<DataSourceType> This parameter is for internal use only, and should not be used.This parameter is for internal use only, and should not be used.final StringA description for the workspace.final StringThe ID of the workspace to update.final StringA new name for the workspace to update.final List<NotificationDestinationType> Specify the Amazon Web Services notification channels that you plan to use in this workspace.Specify the Amazon Web Services notification channels that you plan to use in this workspace.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.final StringSpecifies 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 class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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 theworkspaceOrganizationalUnitsparameter.If the service returns an enum value that is not available in the current SDK version,
accountAccessTypewill returnAccountAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccountAccessTypeAsString().- Returns:
- 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. - See Also:
-
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 theworkspaceOrganizationalUnitsparameter.If the service returns an enum value that is not available in the current SDK version,
accountAccessTypewill returnAccountAccessType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccountAccessTypeAsString().- Returns:
- 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. - See Also:
-
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:
- 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.
-
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
permissionTypeset toCUSTOMER_MANAGED.- Returns:
- 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.
-
permissionType
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.If the service returns an enum value that is not available in the current SDK version,
permissionTypewill returnPermissionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionTypeAsString().- Returns:
- 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. - See Also:
-
permissionTypeAsString
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.If the service returns an enum value that is not available in the current SDK version,
permissionTypewill returnPermissionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompermissionTypeAsString().- Returns:
- 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. - See Also:
-
removeNetworkAccessConfiguration
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.- Returns:
- 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.
-
removeVpcConfiguration
Whether to remove the VPC configuration from the workspace.
Setting this to
trueand providing avpcConfigurationto set will return an error.- Returns:
- Whether to remove the VPC configuration from the workspace.
Setting this to
trueand providing avpcConfigurationto set will return an error.
-
stackSetName
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
- Returns:
- The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
-
vpcConfiguration
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
- Returns:
- The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
-
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.- Returns:
- This parameter is for internal use only, and should not be used.
-
hasWorkspaceDataSources
public final boolean hasWorkspaceDataSources()For responses, this returns true if the service returned a value for the WorkspaceDataSources property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
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.- Returns:
- This parameter is for internal use only, and should not be used.
-
workspaceDescription
A description for the workspace. This is used only to help you identify this workspace.
- Returns:
- A description for the workspace. This is used only to help you identify this workspace.
-
workspaceId
The ID of the workspace to update.
- Returns:
- The ID of the workspace to update.
-
workspaceName
A new name for the workspace to update.
- Returns:
- A new name for the workspace to update.
-
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.- Returns:
- 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.
-
hasWorkspaceNotificationDestinations
public final boolean hasWorkspaceNotificationDestinations()For responses, this returns true if the service returned a value for the WorkspaceNotificationDestinations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
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.- Returns:
- 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.
-
hasWorkspaceOrganizationalUnits
public final boolean hasWorkspaceOrganizationalUnits()For responses, this returns true if the service returned a value for the WorkspaceOrganizationalUnits property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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. -
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.- Returns:
- 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
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.- Returns:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateWorkspaceRequest.Builder,UpdateWorkspaceRequest> - Specified by:
toBuilderin classGrafanaRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-