Class CfnWorkspace
Specifies a workspace .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Grafana
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWorkspace : CfnResource, IInspectable
Syntax (vb)
Public Class CfnWorkspace
Inherits CfnResource
Implements IInspectable
Remarks
In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-grafana-workspace.html
CloudformationResource: AWS::Grafana::Workspace
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Grafana;
var cfnWorkspace = new CfnWorkspace(this, "MyCfnWorkspace", new CfnWorkspaceProps {
AccountAccessType = "accountAccessType",
AuthenticationProviders = new [] { "authenticationProviders" },
PermissionType = "permissionType",
// the properties below are optional
ClientToken = "clientToken",
DataSources = new [] { "dataSources" },
Description = "description",
GrafanaVersion = "grafanaVersion",
Name = "name",
NetworkAccessControl = new NetworkAccessControlProperty {
PrefixListIds = new [] { "prefixListIds" },
VpceIds = new [] { "vpceIds" }
},
NotificationDestinations = new [] { "notificationDestinations" },
OrganizationalUnits = new [] { "organizationalUnits" },
OrganizationRoleName = "organizationRoleName",
PluginAdminEnabled = false,
RoleArn = "roleArn",
SamlConfiguration = new SamlConfigurationProperty {
IdpMetadata = new IdpMetadataProperty {
Url = "url",
Xml = "xml"
},
// the properties below are optional
AllowedOrganizations = new [] { "allowedOrganizations" },
AssertionAttributes = new AssertionAttributesProperty {
Email = "email",
Groups = "groups",
Login = "login",
Name = "name",
Org = "org",
Role = "role"
},
LoginValidityDuration = 123,
RoleValues = new RoleValuesProperty {
Admin = new [] { "admin" },
Editor = new [] { "editor" }
}
},
StackSetName = "stackSetName",
VpcConfiguration = new VpcConfigurationProperty {
SecurityGroupIds = new [] { "securityGroupIds" },
SubnetIds = new [] { "subnetIds" }
}
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Account |
Specifies whether the workspace can access AWS resources in this AWS account only, or whether it can also access AWS resources in other accounts in the same organization. |
Attr |
The date that the workspace was created. |
Attr |
The URL that users can use to access the Grafana console in the workspace. |
Attr |
Specifies the version of Grafana supported by this workspace. |
Attr |
The unique ID of this workspace. |
Attr |
The most recent date that the workspace was modified. |
Attr |
Specifies whether the workspace's SAML configuration is complete. |
Attr |
The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana . |
Attr |
The current status of the workspace. |
Authentication |
Specifies whether this workspace uses SAML 2.0, AWS 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 . |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Client |
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request. |
Data |
Specifies the AWS data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources. |
Description | The user-defined description of the workspace. |
Grafana |
Specifies the version of Grafana to support in the workspace. |
Name | The name of the workspace. |
Network |
The configuration settings for network access to your workspace. |
Notification |
The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these channels. |
Organizational |
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. |
Organization |
The name of the IAM role that is used to access resources through Organizations. |
Permission |
If this is |
Plugin |
Whether plugin administration is enabled in the workspace. |
Role |
The IAM role that grants permissions to the AWS resources that the workspace will view data from. |
Saml |
If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the |
Stack |
The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace. |
Vpc |
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnWorkspace(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnWorkspace(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnWorkspace(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnWorkspace(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnWorkspace(Construct, String, ICfnWorkspaceProps)
public CfnWorkspace(Construct scope, string id, ICfnWorkspaceProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Workspace Props Resource properties.
Properties
AccountAccessType
Specifies whether the workspace can access AWS resources in this AWS account only, or whether it can also access AWS resources in other accounts in the same organization.
public virtual string AccountAccessType { get; set; }
Property Value
System.
AttrCreationTimestamp
The date that the workspace was created.
public virtual string AttrCreationTimestamp { get; }
Property Value
System.
Remarks
Type: Timestamp
CloudformationAttribute: CreationTimestamp
AttrEndpoint
The URL that users can use to access the Grafana console in the workspace.
public virtual string AttrEndpoint { get; }
Property Value
System.
Remarks
Type: String
CloudformationAttribute: Endpoint
AttrGrafanaVersion
Specifies the version of Grafana supported by this workspace.
public virtual string AttrGrafanaVersion { get; }
Property Value
System.
Remarks
Type: String
CloudformationAttribute: GrafanaVersion
AttrId
The unique ID of this workspace.
public virtual string AttrId { get; }
Property Value
System.
Remarks
Type: String
CloudformationAttribute: Id
AttrModificationTimestamp
The most recent date that the workspace was modified.
public virtual string AttrModificationTimestamp { get; }
Property Value
System.
Remarks
Type: Timestamp
CloudformationAttribute: ModificationTimestamp
AttrSamlConfigurationStatus
Specifies whether the workspace's SAML configuration is complete.
public virtual string AttrSamlConfigurationStatus { get; }
Property Value
System.
Remarks
Valid values: CONFIGURED | NOT_CONFIGURED
Type: String
CloudformationAttribute: SamlConfigurationStatus
AttrSsoClientId
The ID of the IAM Identity Center-managed application that is created by Amazon Managed Grafana .
public virtual string AttrSsoClientId { get; }
Property Value
System.
Remarks
Type: String
CloudformationAttribute: SsoClientId
AttrStatus
The current status of the workspace.
public virtual string AttrStatus { get; }
Property Value
System.
Remarks
Valid values: ACTIVE | CREATING | DELETING | FAILED | UPDATING | UPGRADING | DELETION_FAILED | CREATION_FAILED | UPDATE_FAILED | UPGRADE_FAILED | LICENSE_REMOVAL_FAILED
Type: String
CloudformationAttribute: Status
AuthenticationProviders
Specifies whether this workspace uses SAML 2.0, AWS 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 .
public virtual string[] AuthenticationProviders { get; set; }
Property Value
System.
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
ClientToken
A unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.
public virtual string ClientToken { get; set; }
Property Value
System.
DataSources
Specifies the AWS data sources that have been configured to have IAM roles and permissions created to allow Amazon Managed Grafana to read data from these sources.
public virtual string[] DataSources { get; set; }
Property Value
System.
Description
The user-defined description of the workspace.
public virtual string Description { get; set; }
Property Value
System.
GrafanaVersion
Specifies the version of Grafana to support in the workspace.
public virtual string GrafanaVersion { get; set; }
Property Value
System.
Name
The name of the workspace.
public virtual string Name { get; set; }
Property Value
System.
NetworkAccessControl
The configuration settings for network access to your workspace.
public virtual object NetworkAccessControl { get; set; }
Property Value
System.
NotificationDestinations
The AWS notification channels that Amazon Managed Grafana can automatically create IAM roles and permissions for, to allow Amazon Managed Grafana to use these channels.
public virtual string[] NotificationDestinations { get; set; }
Property Value
System.
OrganizationalUnits
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.
public virtual string[] OrganizationalUnits { get; set; }
Property Value
System.
OrganizationRoleName
The name of the IAM role that is used to access resources through Organizations.
public virtual string OrganizationRoleName { get; set; }
Property Value
System.
PermissionType
If this is SERVICE_MANAGED
, and the workplace was created through the Amazon Managed Grafana console, then Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use AWS data sources and notification channels.
public virtual string PermissionType { get; set; }
Property Value
System.
PluginAdminEnabled
Whether plugin administration is enabled in the workspace.
public virtual object PluginAdminEnabled { get; set; }
Property Value
System.
RoleArn
The IAM role that grants permissions to the AWS resources that the workspace will view data from.
public virtual string RoleArn { get; set; }
Property Value
System.
SamlConfiguration
If the workspace uses SAML, use this structure to map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin
and Editor
roles in the workspace.
public virtual object SamlConfiguration { get; set; }
Property Value
System.
StackSetName
The name of the AWS CloudFormation stack set that is used to generate IAM roles to be used for this workspace.
public virtual string StackSetName { get; set; }
Property Value
System.
VpcConfiguration
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to.
public virtual object VpcConfiguration { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.