Class CreateWorkspaceRequest
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<CreateWorkspaceRequest.Builder,
CreateWorkspaceRequest>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal 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.final String
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.final List
<AuthenticationProviderTypes> Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace.Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace.builder()
final String
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.final String
The configuration string for the workspace that you create.final boolean
final boolean
equalsBySdkFields
(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 String
Specifies the version of Grafana to support in the new workspace.final boolean
For responses, this returns true if the service returned a value for the AuthenticationProviders property.final int
hashCode()
final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final boolean
For responses, this returns true if the service returned a value for the WorkspaceDataSources property.final boolean
For responses, this returns true if the service returned a value for the WorkspaceNotificationDestinations property.final boolean
For responses, this returns true if the service returned a value for the WorkspaceOrganizationalUnits property.Configuration for network access to your workspace.final String
The name of an IAM role that already exists to use with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.final PermissionType
When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.final String
When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.static Class
<? extends CreateWorkspaceRequest.Builder> final String
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.tags()
The list of tags associated with the workspace.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final VpcConfiguration
The 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 String
A description for the workspace.final String
The name for the workspace.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 String
Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
Methods 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 theworkspaceOrganizationalUnits
parameter.If the service returns an enum value that is not available in the current SDK version,
accountAccessType
will 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 theworkspaceOrganizationalUnits
parameter. - 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 theworkspaceOrganizationalUnits
parameter.If the service returns an enum value that is not available in the current SDK version,
accountAccessType
will 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 theworkspaceOrganizationalUnits
parameter. - See Also:
-
authenticationProviders
Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana.
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
hasAuthenticationProviders()
method.- Returns:
- Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana.
-
hasAuthenticationProviders
public final boolean hasAuthenticationProviders()For responses, this returns true if the service returned a value for the AuthenticationProviders 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. -
authenticationProvidersAsStrings
Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana.
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
hasAuthenticationProviders()
method.- Returns:
- Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the Grafana console within a workspace. For more information, see User authentication in Amazon Managed Grafana.
-
clientToken
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
- Returns:
- A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
-
configuration
The configuration string for the workspace that you create. For more information about the format and configuration options available, see Working in your Grafana workspace.
- Returns:
- The configuration string for the workspace that you create. For more information about the format and configuration options available, see Working in your Grafana workspace.
-
grafanaVersion
Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the latest version (for example, 9.4).
To get a list of supported versions, use the
ListVersions
operation.- Returns:
- Specifies the version of Grafana to support in the new workspace. If not specified, defaults to the
latest version (for example, 9.4).
To get a list of supported versions, use the
ListVersions
operation.
-
networkAccessControl
Configuration 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:
- Configuration 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 with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.
- Returns:
- The name of an IAM role that already exists to use with Organizations to access Amazon Web Services data sources and notification channels in other accounts in an organization.
-
permissionType
When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.
You must also specify a
workspaceRoleArn
for a role that you will manage for the workspace to use when accessing those datasources and notification channels.The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to
SERVICE_MANAGED
.Use only the
CUSTOMER_MANAGED
permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels.
If the service returns an enum value that is not available in the current SDK version,
permissionType
will returnPermissionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompermissionTypeAsString()
.- Returns:
- When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation,
you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web
Services data sources and notification channels.
You must also specify a
workspaceRoleArn
for a role that you will manage for the workspace to use when accessing those datasources and notification channels.The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to
SERVICE_MANAGED
.Use only the
CUSTOMER_MANAGED
permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels.
- See Also:
-
permissionTypeAsString
When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation, you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.
You must also specify a
workspaceRoleArn
for a role that you will manage for the workspace to use when accessing those datasources and notification channels.The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to
SERVICE_MANAGED
.Use only the
CUSTOMER_MANAGED
permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels.
If the service returns an enum value that is not available in the current SDK version,
permissionType
will returnPermissionType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompermissionTypeAsString()
.- Returns:
- When creating a workspace through the Amazon Web Services API, CLI or Amazon Web Services CloudFormation,
you must manage IAM roles and provision the permissions that the workspace needs to use Amazon Web
Services data sources and notification channels.
You must also specify a
workspaceRoleArn
for a role that you will manage for the workspace to use when accessing those datasources and notification channels.The ability for Amazon Managed Grafana to create and update IAM roles on behalf of the user is supported only in the Amazon Managed Grafana console, where this value may be set to
SERVICE_MANAGED
.Use only the
CUSTOMER_MANAGED
permission type when creating a workspace with the API, CLI or Amazon Web Services CloudFormation.For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels.
- See Also:
-
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.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags 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. -
tags
The list of tags associated with the workspace.
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
hasTags()
method.- Returns:
- The list of tags associated with the workspace.
-
vpcConfiguration
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).
- Returns:
- The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to
connect to.
Connecting to a private VPC is not yet available in the Asia Pacific (Seoul) Region (ap-northeast-2).
-
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.
Pattern:
^[\\p{L}\\p{Z}\\p{N}\\p{P}]{0,2048}$
- Returns:
- A description for the workspace. This is used only to help you identify this workspace.
Pattern:
^[\\p{L}\\p{Z}\\p{N}\\p{P}]{0,2048}$
-
workspaceName
The name for the workspace. It does not have to be unique.
- Returns:
- The name for the workspace. It does not have to be unique.
-
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
Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added.
- Returns:
- Specified the IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from, including both data sources and notification channels. You are responsible for managing the permissions for this role as new data sources or notification channels are added.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<CreateWorkspaceRequest.Builder,
CreateWorkspaceRequest> - Specified by:
toBuilder
in classGrafanaRequest
- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCode
in classAwsRequest
-
equals
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
Description copied from class:SdkRequest
Used 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:
getValueForField
in 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
-