Struct aws_sdk_grafana::input::CreateWorkspaceInput
source · [−]#[non_exhaustive]pub struct CreateWorkspaceInput {Show 13 fields
pub account_access_type: Option<AccountAccessType>,
pub client_token: Option<String>,
pub organization_role_name: Option<String>,
pub permission_type: Option<PermissionType>,
pub stack_set_name: Option<String>,
pub workspace_data_sources: Option<Vec<DataSourceType>>,
pub workspace_description: Option<String>,
pub workspace_name: Option<String>,
pub workspace_notification_destinations: Option<Vec<NotificationDestinationType>>,
pub workspace_organizational_units: Option<Vec<String>>,
pub workspace_role_arn: Option<String>,
pub authentication_providers: Option<Vec<AuthenticationProviderTypes>>,
pub tags: Option<HashMap<String, String>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.account_access_type: Option<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.
client_token: Option<String>
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
organization_role_name: Option<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.
permission_type: Option<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.
stack_set_name: Option<String>
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
workspace_data_sources: Option<Vec<DataSourceType>>
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.
workspace_description: Option<String>
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}$
workspace_name: Option<String>
The name for the workspace. It does not have to be unique.
workspace_notification_destinations: Option<Vec<NotificationDestinationType>>
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.
workspace_organizational_units: Option<Vec<String>>
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.
workspace_role_arn: Option<String>
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
.
authentication_providers: Option<Vec<AuthenticationProviderTypes>>
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.
The list of tags associated with the workspace.
Implementations
sourceimpl CreateWorkspaceInput
impl CreateWorkspaceInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateWorkspace, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateWorkspace, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateWorkspace
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateWorkspaceInput
sourceimpl CreateWorkspaceInput
impl CreateWorkspaceInput
sourcepub fn account_access_type(&self) -> Option<&AccountAccessType>
pub fn account_access_type(&self) -> Option<&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.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
sourcepub fn organization_role_name(&self) -> Option<&str>
pub fn organization_role_name(&self) -> Option<&str>
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.
sourcepub fn permission_type(&self) -> Option<&PermissionType>
pub fn permission_type(&self) -> Option<&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.
sourcepub fn stack_set_name(&self) -> Option<&str>
pub fn stack_set_name(&self) -> Option<&str>
The name of the CloudFormation stack set to use to generate IAM roles to be used for this workspace.
sourcepub fn workspace_data_sources(&self) -> Option<&[DataSourceType]>
pub fn workspace_data_sources(&self) -> Option<&[DataSourceType]>
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.
sourcepub fn workspace_description(&self) -> Option<&str>
pub fn workspace_description(&self) -> Option<&str>
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}$
sourcepub fn workspace_name(&self) -> Option<&str>
pub fn workspace_name(&self) -> Option<&str>
The name for the workspace. It does not have to be unique.
sourcepub fn workspace_notification_destinations(
&self
) -> Option<&[NotificationDestinationType]>
pub fn workspace_notification_destinations(
&self
) -> Option<&[NotificationDestinationType]>
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.
sourcepub fn workspace_organizational_units(&self) -> Option<&[String]>
pub fn workspace_organizational_units(&self) -> Option<&[String]>
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.
sourcepub fn workspace_role_arn(&self) -> Option<&str>
pub fn workspace_role_arn(&self) -> Option<&str>
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
.
sourcepub fn authentication_providers(&self) -> Option<&[AuthenticationProviderTypes]>
pub fn authentication_providers(&self) -> Option<&[AuthenticationProviderTypes]>
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.
The list of tags associated with the workspace.
Trait Implementations
sourceimpl Clone for CreateWorkspaceInput
impl Clone for CreateWorkspaceInput
sourcefn clone(&self) -> CreateWorkspaceInput
fn clone(&self) -> CreateWorkspaceInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateWorkspaceInput
impl Debug for CreateWorkspaceInput
sourceimpl PartialEq<CreateWorkspaceInput> for CreateWorkspaceInput
impl PartialEq<CreateWorkspaceInput> for CreateWorkspaceInput
sourcefn eq(&self, other: &CreateWorkspaceInput) -> bool
fn eq(&self, other: &CreateWorkspaceInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateWorkspaceInput) -> bool
fn ne(&self, other: &CreateWorkspaceInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateWorkspaceInput
Auto Trait Implementations
impl RefUnwindSafe for CreateWorkspaceInput
impl Send for CreateWorkspaceInput
impl Sync for CreateWorkspaceInput
impl Unpin for CreateWorkspaceInput
impl UnwindSafe for CreateWorkspaceInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more