@Generated(value="software.amazon.awssdk:codegen") public final class CreateWorkspaceRequest extends GrafanaRequest implements ToCopyableBuilder<CreateWorkspaceRequest.Builder,CreateWorkspaceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateWorkspaceRequest.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.
|
List<AuthenticationProviderTypes> |
authenticationProviders()
Specifies whether this workspace uses SAML 2.0, Amazon Web Services Single Sign On, or both to authenticate users
for using the Grafana console within a workspace.
|
List<String> |
authenticationProvidersAsStrings()
Specifies whether this workspace uses SAML 2.0, Amazon Web Services Single Sign On, or both to authenticate users
for using the Grafana console within a workspace.
|
static CreateWorkspaceRequest.Builder |
builder() |
String |
clientToken()
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAuthenticationProviders()
For responses, this returns true if the service returned a value for the AuthenticationProviders property.
|
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
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.
|
String |
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.
|
PermissionType |
permissionType()
If you specify
SERVICE_MANAGED on AWS Grafana console, 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. |
String |
permissionTypeAsString()
If you specify
SERVICE_MANAGED on AWS Grafana console, 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. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateWorkspaceRequest.Builder> |
serializableBuilderClass() |
String |
stackSetName()
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
|
Map<String,String> |
tags()
The list of tags associated with the workspace.
|
CreateWorkspaceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<DataSourceType> |
workspaceDataSources()
Specify the Amazon Web Services data sources that you want to be queried in this workspace.
|
List<String> |
workspaceDataSourcesAsStrings()
Specify the Amazon Web Services data sources that you want to be queried in this workspace.
|
String |
workspaceDescription()
A description for the workspace.
|
String |
workspaceName()
The name for the workspace.
|
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()
The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the workspace
will view data from.
|
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 List<AuthenticationProviderTypes> authenticationProviders()
Specifies whether this workspace uses SAML 2.0, Amazon Web Services Single Sign On, 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.
public final boolean hasAuthenticationProviders()
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> authenticationProvidersAsStrings()
Specifies whether this workspace uses SAML 2.0, Amazon Web Services Single Sign On, 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.
public final String clientToken()
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
public final String 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.
public final PermissionType permissionType()
If you specify SERVICE_MANAGED on AWS Grafana console, 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. In CLI mode, the permissionType SERVICE_MANAGED will not create the IAM role
for you.
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 that 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.
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 on AWS Grafana console, 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. In CLI mode, the permissionType SERVICE_MANAGED will
not create the IAM role for you.
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 that 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.
PermissionTypepublic final String permissionTypeAsString()
If you specify SERVICE_MANAGED on AWS Grafana console, 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. In CLI mode, the permissionType SERVICE_MANAGED will not create the IAM role
for you.
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 that 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.
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 on AWS Grafana console, 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. In CLI mode, the permissionType SERVICE_MANAGED will
not create the IAM role for you.
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 that 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.
PermissionTypepublic final String stackSetName()
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
public final boolean hasTags()
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 Map<String,String> 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.
public final List<DataSourceType> 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 in the workspace console later. However, you will then have to manually configure permissions for it.
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.
If you don't specify a data source here, you can still add it as a data source in the workspace console later. However, you will then have to manually configure permissions for it.
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()
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 in the workspace console later. However, you will then have to manually configure permissions for it.
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.
If you don't specify a data source here, you can still add it as a data source in the workspace console later. However, you will then have to manually configure permissions for it.
public final String 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}$
Pattern: ^[\\p{L}\\p{Z}\\p{N}\\p{P}]{0,2048}$
public final String workspaceName()
The name for the workspace. It does not have to be unique.
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()
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. The permission type should
be set to CUSTOMER_MANAGED.
CUSTOMER_MANAGED.public CreateWorkspaceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateWorkspaceRequest.Builder,CreateWorkspaceRequest>toBuilder in class GrafanaRequestpublic static CreateWorkspaceRequest.Builder builder()
public static Class<? extends CreateWorkspaceRequest.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 © 2022. All rights reserved.