Documentation ¶
Index ¶
- type LicenseAssociation
- type LicenseAssociationArgs
- type LicenseAssociationArray
- type LicenseAssociationArrayInput
- type LicenseAssociationArrayOutput
- func (LicenseAssociationArrayOutput) ElementType() reflect.Type
- func (o LicenseAssociationArrayOutput) Index(i pulumi.IntInput) LicenseAssociationOutput
- func (o LicenseAssociationArrayOutput) ToLicenseAssociationArrayOutput() LicenseAssociationArrayOutput
- func (o LicenseAssociationArrayOutput) ToLicenseAssociationArrayOutputWithContext(ctx context.Context) LicenseAssociationArrayOutput
- type LicenseAssociationInput
- type LicenseAssociationMap
- type LicenseAssociationMapInput
- type LicenseAssociationMapOutput
- func (LicenseAssociationMapOutput) ElementType() reflect.Type
- func (o LicenseAssociationMapOutput) MapIndex(k pulumi.StringInput) LicenseAssociationOutput
- func (o LicenseAssociationMapOutput) ToLicenseAssociationMapOutput() LicenseAssociationMapOutput
- func (o LicenseAssociationMapOutput) ToLicenseAssociationMapOutputWithContext(ctx context.Context) LicenseAssociationMapOutput
- type LicenseAssociationOutput
- func (LicenseAssociationOutput) ElementType() reflect.Type
- func (o LicenseAssociationOutput) FreeTrialExpiration() pulumi.StringOutput
- func (o LicenseAssociationOutput) LicenseExpiration() pulumi.StringOutput
- func (o LicenseAssociationOutput) LicenseType() pulumi.StringOutput
- func (o LicenseAssociationOutput) ToLicenseAssociationOutput() LicenseAssociationOutput
- func (o LicenseAssociationOutput) ToLicenseAssociationOutputWithContext(ctx context.Context) LicenseAssociationOutput
- func (o LicenseAssociationOutput) WorkspaceId() pulumi.StringOutput
- type LicenseAssociationState
- type LookupWorkspaceArgs
- type LookupWorkspaceOutputArgs
- type LookupWorkspaceResult
- type LookupWorkspaceResultOutput
- func (o LookupWorkspaceResultOutput) AccountAccessType() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) Arn() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) AuthenticationProviders() pulumi.StringArrayOutput
- func (o LookupWorkspaceResultOutput) CreatedDate() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) DataSources() pulumi.StringArrayOutput
- func (o LookupWorkspaceResultOutput) Description() pulumi.StringOutput
- func (LookupWorkspaceResultOutput) ElementType() reflect.Type
- func (o LookupWorkspaceResultOutput) Endpoint() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) GrafanaVersion() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) Id() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) LastUpdatedDate() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) Name() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) NotificationDestinations() pulumi.StringArrayOutput
- func (o LookupWorkspaceResultOutput) OrganizationRoleName() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) OrganizationalUnits() pulumi.StringArrayOutput
- func (o LookupWorkspaceResultOutput) PermissionType() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) RoleArn() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) SamlConfigurationStatus() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) StackSetName() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) Status() pulumi.StringOutput
- func (o LookupWorkspaceResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutput() LookupWorkspaceResultOutput
- func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutputWithContext(ctx context.Context) LookupWorkspaceResultOutput
- func (o LookupWorkspaceResultOutput) WorkspaceId() pulumi.StringOutput
- type RoleAssociation
- type RoleAssociationArgs
- type RoleAssociationArray
- type RoleAssociationArrayInput
- type RoleAssociationArrayOutput
- func (RoleAssociationArrayOutput) ElementType() reflect.Type
- func (o RoleAssociationArrayOutput) Index(i pulumi.IntInput) RoleAssociationOutput
- func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput
- func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput
- type RoleAssociationInput
- type RoleAssociationMap
- type RoleAssociationMapInput
- type RoleAssociationMapOutput
- func (RoleAssociationMapOutput) ElementType() reflect.Type
- func (o RoleAssociationMapOutput) MapIndex(k pulumi.StringInput) RoleAssociationOutput
- func (o RoleAssociationMapOutput) ToRoleAssociationMapOutput() RoleAssociationMapOutput
- func (o RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput
- type RoleAssociationOutput
- func (RoleAssociationOutput) ElementType() reflect.Type
- func (o RoleAssociationOutput) GroupIds() pulumi.StringArrayOutput
- func (o RoleAssociationOutput) Role() pulumi.StringOutput
- func (o RoleAssociationOutput) ToRoleAssociationOutput() RoleAssociationOutput
- func (o RoleAssociationOutput) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput
- func (o RoleAssociationOutput) UserIds() pulumi.StringArrayOutput
- func (o RoleAssociationOutput) WorkspaceId() pulumi.StringOutput
- type RoleAssociationState
- type Workspace
- type WorkspaceApiKey
- type WorkspaceApiKeyArgs
- type WorkspaceApiKeyArray
- type WorkspaceApiKeyArrayInput
- type WorkspaceApiKeyArrayOutput
- func (WorkspaceApiKeyArrayOutput) ElementType() reflect.Type
- func (o WorkspaceApiKeyArrayOutput) Index(i pulumi.IntInput) WorkspaceApiKeyOutput
- func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput
- func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput
- type WorkspaceApiKeyInput
- type WorkspaceApiKeyMap
- type WorkspaceApiKeyMapInput
- type WorkspaceApiKeyMapOutput
- func (WorkspaceApiKeyMapOutput) ElementType() reflect.Type
- func (o WorkspaceApiKeyMapOutput) MapIndex(k pulumi.StringInput) WorkspaceApiKeyOutput
- func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput
- func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput
- type WorkspaceApiKeyOutput
- func (WorkspaceApiKeyOutput) ElementType() reflect.Type
- func (o WorkspaceApiKeyOutput) Key() pulumi.StringOutput
- func (o WorkspaceApiKeyOutput) KeyName() pulumi.StringOutput
- func (o WorkspaceApiKeyOutput) KeyRole() pulumi.StringOutput
- func (o WorkspaceApiKeyOutput) SecondsToLive() pulumi.IntOutput
- func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput
- func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput
- func (o WorkspaceApiKeyOutput) WorkspaceId() pulumi.StringOutput
- type WorkspaceApiKeyState
- type WorkspaceArgs
- type WorkspaceArray
- type WorkspaceArrayInput
- type WorkspaceArrayOutput
- func (WorkspaceArrayOutput) ElementType() reflect.Type
- func (o WorkspaceArrayOutput) Index(i pulumi.IntInput) WorkspaceOutput
- func (o WorkspaceArrayOutput) ToWorkspaceArrayOutput() WorkspaceArrayOutput
- func (o WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput
- type WorkspaceInput
- type WorkspaceMap
- type WorkspaceMapInput
- type WorkspaceMapOutput
- type WorkspaceOutput
- func (o WorkspaceOutput) AccountAccessType() pulumi.StringOutput
- func (o WorkspaceOutput) Arn() pulumi.StringOutput
- func (o WorkspaceOutput) AuthenticationProviders() pulumi.StringArrayOutput
- func (o WorkspaceOutput) Configuration() pulumi.StringOutput
- func (o WorkspaceOutput) DataSources() pulumi.StringArrayOutput
- func (o WorkspaceOutput) Description() pulumi.StringPtrOutput
- func (WorkspaceOutput) ElementType() reflect.Type
- func (o WorkspaceOutput) Endpoint() pulumi.StringOutput
- func (o WorkspaceOutput) GrafanaVersion() pulumi.StringOutput
- func (o WorkspaceOutput) Name() pulumi.StringOutput
- func (o WorkspaceOutput) NotificationDestinations() pulumi.StringArrayOutput
- func (o WorkspaceOutput) OrganizationRoleName() pulumi.StringPtrOutput
- func (o WorkspaceOutput) OrganizationalUnits() pulumi.StringArrayOutput
- func (o WorkspaceOutput) PermissionType() pulumi.StringOutput
- func (o WorkspaceOutput) RoleArn() pulumi.StringPtrOutput
- func (o WorkspaceOutput) SamlConfigurationStatus() pulumi.StringOutput
- func (o WorkspaceOutput) StackSetName() pulumi.StringPtrOutput
- func (o WorkspaceOutput) Tags() pulumi.StringMapOutput
- func (o WorkspaceOutput) TagsAll() pulumi.StringMapOutput
- func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput
- func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
- func (o WorkspaceOutput) VpcConfiguration() WorkspaceVpcConfigurationPtrOutput
- type WorkspaceSamlConfiguration
- func (*WorkspaceSamlConfiguration) ElementType() reflect.Type
- func (i *WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput
- func (i *WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput
- type WorkspaceSamlConfigurationArgs
- type WorkspaceSamlConfigurationArray
- func (WorkspaceSamlConfigurationArray) ElementType() reflect.Type
- func (i WorkspaceSamlConfigurationArray) ToWorkspaceSamlConfigurationArrayOutput() WorkspaceSamlConfigurationArrayOutput
- func (i WorkspaceSamlConfigurationArray) ToWorkspaceSamlConfigurationArrayOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationArrayOutput
- type WorkspaceSamlConfigurationArrayInput
- type WorkspaceSamlConfigurationArrayOutput
- func (WorkspaceSamlConfigurationArrayOutput) ElementType() reflect.Type
- func (o WorkspaceSamlConfigurationArrayOutput) Index(i pulumi.IntInput) WorkspaceSamlConfigurationOutput
- func (o WorkspaceSamlConfigurationArrayOutput) ToWorkspaceSamlConfigurationArrayOutput() WorkspaceSamlConfigurationArrayOutput
- func (o WorkspaceSamlConfigurationArrayOutput) ToWorkspaceSamlConfigurationArrayOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationArrayOutput
- type WorkspaceSamlConfigurationInput
- type WorkspaceSamlConfigurationMap
- func (WorkspaceSamlConfigurationMap) ElementType() reflect.Type
- func (i WorkspaceSamlConfigurationMap) ToWorkspaceSamlConfigurationMapOutput() WorkspaceSamlConfigurationMapOutput
- func (i WorkspaceSamlConfigurationMap) ToWorkspaceSamlConfigurationMapOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationMapOutput
- type WorkspaceSamlConfigurationMapInput
- type WorkspaceSamlConfigurationMapOutput
- func (WorkspaceSamlConfigurationMapOutput) ElementType() reflect.Type
- func (o WorkspaceSamlConfigurationMapOutput) MapIndex(k pulumi.StringInput) WorkspaceSamlConfigurationOutput
- func (o WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutput() WorkspaceSamlConfigurationMapOutput
- func (o WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationMapOutput
- type WorkspaceSamlConfigurationOutput
- func (o WorkspaceSamlConfigurationOutput) AdminRoleValues() pulumi.StringArrayOutput
- func (o WorkspaceSamlConfigurationOutput) AllowedOrganizations() pulumi.StringArrayOutput
- func (o WorkspaceSamlConfigurationOutput) EditorRoleValues() pulumi.StringArrayOutput
- func (WorkspaceSamlConfigurationOutput) ElementType() reflect.Type
- func (o WorkspaceSamlConfigurationOutput) EmailAssertion() pulumi.StringOutput
- func (o WorkspaceSamlConfigurationOutput) GroupsAssertion() pulumi.StringPtrOutput
- func (o WorkspaceSamlConfigurationOutput) IdpMetadataUrl() pulumi.StringPtrOutput
- func (o WorkspaceSamlConfigurationOutput) IdpMetadataXml() pulumi.StringPtrOutput
- func (o WorkspaceSamlConfigurationOutput) LoginAssertion() pulumi.StringOutput
- func (o WorkspaceSamlConfigurationOutput) LoginValidityDuration() pulumi.IntOutput
- func (o WorkspaceSamlConfigurationOutput) NameAssertion() pulumi.StringOutput
- func (o WorkspaceSamlConfigurationOutput) OrgAssertion() pulumi.StringPtrOutput
- func (o WorkspaceSamlConfigurationOutput) RoleAssertion() pulumi.StringPtrOutput
- func (o WorkspaceSamlConfigurationOutput) Status() pulumi.StringOutput
- func (o WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput
- func (o WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput
- func (o WorkspaceSamlConfigurationOutput) WorkspaceId() pulumi.StringOutput
- type WorkspaceSamlConfigurationState
- type WorkspaceState
- type WorkspaceVpcConfiguration
- type WorkspaceVpcConfigurationArgs
- func (WorkspaceVpcConfigurationArgs) ElementType() reflect.Type
- func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
- func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput
- func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
- func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
- type WorkspaceVpcConfigurationInput
- type WorkspaceVpcConfigurationOutput
- func (WorkspaceVpcConfigurationOutput) ElementType() reflect.Type
- func (o WorkspaceVpcConfigurationOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o WorkspaceVpcConfigurationOutput) SubnetIds() pulumi.StringArrayOutput
- func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
- func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput
- func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
- func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
- type WorkspaceVpcConfigurationPtrInput
- type WorkspaceVpcConfigurationPtrOutput
- func (o WorkspaceVpcConfigurationPtrOutput) Elem() WorkspaceVpcConfigurationOutput
- func (WorkspaceVpcConfigurationPtrOutput) ElementType() reflect.Type
- func (o WorkspaceVpcConfigurationPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o WorkspaceVpcConfigurationPtrOutput) SubnetIds() pulumi.StringArrayOutput
- func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
- func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LicenseAssociation ¶
type LicenseAssociation struct { pulumi.CustomResourceState // If `licenseType` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial. FreeTrialExpiration pulumi.StringOutput `pulumi:"freeTrialExpiration"` // If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license. LicenseExpiration pulumi.StringOutput `pulumi:"licenseExpiration"` // The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`. LicenseType pulumi.StringOutput `pulumi:"licenseType"` // The workspace id. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Provides an Amazon Managed Grafana workspace license association resource.
## Example Usage ### Basic configuration
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tmpJSON0, err := json.Marshal(map[string]interface{}{ "Version": "2012-10-17", "Statement": []map[string]interface{}{ map[string]interface{}{ "Action": "sts:AssumeRole", "Effect": "Allow", "Sid": "", "Principal": map[string]interface{}{ "Service": "grafana.amazonaws.com", }, }, }, }) if err != nil { return err } json0 := string(tmpJSON0) assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{ AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } exampleWorkspace, err := grafana.NewWorkspace(ctx, "exampleWorkspace", &grafana.WorkspaceArgs{ AccountAccessType: pulumi.String("CURRENT_ACCOUNT"), AuthenticationProviders: pulumi.StringArray{ pulumi.String("SAML"), }, PermissionType: pulumi.String("SERVICE_MANAGED"), RoleArn: assume.Arn, }) if err != nil { return err } _, err = grafana.NewLicenseAssociation(ctx, "exampleLicenseAssociation", &grafana.LicenseAssociationArgs{ LicenseType: pulumi.String("ENTERPRISE_FREE_TRIAL"), WorkspaceId: exampleWorkspace.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Grafana workspace license association can be imported using the workspace's `id`, e.g.,
```sh
$ pulumi import aws:grafana/licenseAssociation:LicenseAssociation example g-2054c75a02
```
func GetLicenseAssociation ¶
func GetLicenseAssociation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LicenseAssociationState, opts ...pulumi.ResourceOption) (*LicenseAssociation, error)
GetLicenseAssociation gets an existing LicenseAssociation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLicenseAssociation ¶
func NewLicenseAssociation(ctx *pulumi.Context, name string, args *LicenseAssociationArgs, opts ...pulumi.ResourceOption) (*LicenseAssociation, error)
NewLicenseAssociation registers a new resource with the given unique name, arguments, and options.
func (*LicenseAssociation) ElementType ¶
func (*LicenseAssociation) ElementType() reflect.Type
func (*LicenseAssociation) ToLicenseAssociationOutput ¶
func (i *LicenseAssociation) ToLicenseAssociationOutput() LicenseAssociationOutput
func (*LicenseAssociation) ToLicenseAssociationOutputWithContext ¶
func (i *LicenseAssociation) ToLicenseAssociationOutputWithContext(ctx context.Context) LicenseAssociationOutput
type LicenseAssociationArgs ¶
type LicenseAssociationArgs struct { // The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`. LicenseType pulumi.StringInput // The workspace id. WorkspaceId pulumi.StringInput }
The set of arguments for constructing a LicenseAssociation resource.
func (LicenseAssociationArgs) ElementType ¶
func (LicenseAssociationArgs) ElementType() reflect.Type
type LicenseAssociationArray ¶
type LicenseAssociationArray []LicenseAssociationInput
func (LicenseAssociationArray) ElementType ¶
func (LicenseAssociationArray) ElementType() reflect.Type
func (LicenseAssociationArray) ToLicenseAssociationArrayOutput ¶
func (i LicenseAssociationArray) ToLicenseAssociationArrayOutput() LicenseAssociationArrayOutput
func (LicenseAssociationArray) ToLicenseAssociationArrayOutputWithContext ¶
func (i LicenseAssociationArray) ToLicenseAssociationArrayOutputWithContext(ctx context.Context) LicenseAssociationArrayOutput
type LicenseAssociationArrayInput ¶
type LicenseAssociationArrayInput interface { pulumi.Input ToLicenseAssociationArrayOutput() LicenseAssociationArrayOutput ToLicenseAssociationArrayOutputWithContext(context.Context) LicenseAssociationArrayOutput }
LicenseAssociationArrayInput is an input type that accepts LicenseAssociationArray and LicenseAssociationArrayOutput values. You can construct a concrete instance of `LicenseAssociationArrayInput` via:
LicenseAssociationArray{ LicenseAssociationArgs{...} }
type LicenseAssociationArrayOutput ¶
type LicenseAssociationArrayOutput struct{ *pulumi.OutputState }
func (LicenseAssociationArrayOutput) ElementType ¶
func (LicenseAssociationArrayOutput) ElementType() reflect.Type
func (LicenseAssociationArrayOutput) Index ¶
func (o LicenseAssociationArrayOutput) Index(i pulumi.IntInput) LicenseAssociationOutput
func (LicenseAssociationArrayOutput) ToLicenseAssociationArrayOutput ¶
func (o LicenseAssociationArrayOutput) ToLicenseAssociationArrayOutput() LicenseAssociationArrayOutput
func (LicenseAssociationArrayOutput) ToLicenseAssociationArrayOutputWithContext ¶
func (o LicenseAssociationArrayOutput) ToLicenseAssociationArrayOutputWithContext(ctx context.Context) LicenseAssociationArrayOutput
type LicenseAssociationInput ¶
type LicenseAssociationInput interface { pulumi.Input ToLicenseAssociationOutput() LicenseAssociationOutput ToLicenseAssociationOutputWithContext(ctx context.Context) LicenseAssociationOutput }
type LicenseAssociationMap ¶
type LicenseAssociationMap map[string]LicenseAssociationInput
func (LicenseAssociationMap) ElementType ¶
func (LicenseAssociationMap) ElementType() reflect.Type
func (LicenseAssociationMap) ToLicenseAssociationMapOutput ¶
func (i LicenseAssociationMap) ToLicenseAssociationMapOutput() LicenseAssociationMapOutput
func (LicenseAssociationMap) ToLicenseAssociationMapOutputWithContext ¶
func (i LicenseAssociationMap) ToLicenseAssociationMapOutputWithContext(ctx context.Context) LicenseAssociationMapOutput
type LicenseAssociationMapInput ¶
type LicenseAssociationMapInput interface { pulumi.Input ToLicenseAssociationMapOutput() LicenseAssociationMapOutput ToLicenseAssociationMapOutputWithContext(context.Context) LicenseAssociationMapOutput }
LicenseAssociationMapInput is an input type that accepts LicenseAssociationMap and LicenseAssociationMapOutput values. You can construct a concrete instance of `LicenseAssociationMapInput` via:
LicenseAssociationMap{ "key": LicenseAssociationArgs{...} }
type LicenseAssociationMapOutput ¶
type LicenseAssociationMapOutput struct{ *pulumi.OutputState }
func (LicenseAssociationMapOutput) ElementType ¶
func (LicenseAssociationMapOutput) ElementType() reflect.Type
func (LicenseAssociationMapOutput) MapIndex ¶
func (o LicenseAssociationMapOutput) MapIndex(k pulumi.StringInput) LicenseAssociationOutput
func (LicenseAssociationMapOutput) ToLicenseAssociationMapOutput ¶
func (o LicenseAssociationMapOutput) ToLicenseAssociationMapOutput() LicenseAssociationMapOutput
func (LicenseAssociationMapOutput) ToLicenseAssociationMapOutputWithContext ¶
func (o LicenseAssociationMapOutput) ToLicenseAssociationMapOutputWithContext(ctx context.Context) LicenseAssociationMapOutput
type LicenseAssociationOutput ¶
type LicenseAssociationOutput struct{ *pulumi.OutputState }
func (LicenseAssociationOutput) ElementType ¶
func (LicenseAssociationOutput) ElementType() reflect.Type
func (LicenseAssociationOutput) FreeTrialExpiration ¶ added in v5.4.0
func (o LicenseAssociationOutput) FreeTrialExpiration() pulumi.StringOutput
If `licenseType` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial.
func (LicenseAssociationOutput) LicenseExpiration ¶ added in v5.4.0
func (o LicenseAssociationOutput) LicenseExpiration() pulumi.StringOutput
If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license.
func (LicenseAssociationOutput) LicenseType ¶ added in v5.4.0
func (o LicenseAssociationOutput) LicenseType() pulumi.StringOutput
The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`.
func (LicenseAssociationOutput) ToLicenseAssociationOutput ¶
func (o LicenseAssociationOutput) ToLicenseAssociationOutput() LicenseAssociationOutput
func (LicenseAssociationOutput) ToLicenseAssociationOutputWithContext ¶
func (o LicenseAssociationOutput) ToLicenseAssociationOutputWithContext(ctx context.Context) LicenseAssociationOutput
func (LicenseAssociationOutput) WorkspaceId ¶ added in v5.4.0
func (o LicenseAssociationOutput) WorkspaceId() pulumi.StringOutput
The workspace id.
type LicenseAssociationState ¶
type LicenseAssociationState struct { // If `licenseType` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial. FreeTrialExpiration pulumi.StringPtrInput // If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license. LicenseExpiration pulumi.StringPtrInput // The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`. LicenseType pulumi.StringPtrInput // The workspace id. WorkspaceId pulumi.StringPtrInput }
func (LicenseAssociationState) ElementType ¶
func (LicenseAssociationState) ElementType() reflect.Type
type LookupWorkspaceArgs ¶
type LookupWorkspaceArgs struct { // Tags assigned to the resource Tags map[string]string `pulumi:"tags"` // Grafana workspace ID. WorkspaceId string `pulumi:"workspaceId"` }
A collection of arguments for invoking getWorkspace.
type LookupWorkspaceOutputArgs ¶
type LookupWorkspaceOutputArgs struct { // Tags assigned to the resource Tags pulumi.StringMapInput `pulumi:"tags"` // Grafana workspace ID. WorkspaceId pulumi.StringInput `pulumi:"workspaceId"` }
A collection of arguments for invoking getWorkspace.
func (LookupWorkspaceOutputArgs) ElementType ¶
func (LookupWorkspaceOutputArgs) ElementType() reflect.Type
type LookupWorkspaceResult ¶
type LookupWorkspaceResult struct { // (Required) Type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present. AccountAccessType string `pulumi:"accountAccessType"` // ARN of the Grafana workspace. Arn string `pulumi:"arn"` // (Required) Authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both. AuthenticationProviders []string `pulumi:"authenticationProviders"` // Creation date of the Grafana workspace. CreatedDate string `pulumi:"createdDate"` // Data sources for the workspace. DataSources []string `pulumi:"dataSources"` // Workspace description. Description string `pulumi:"description"` // Endpoint of the Grafana workspace. Endpoint string `pulumi:"endpoint"` // Version of Grafana running on the workspace. GrafanaVersion string `pulumi:"grafanaVersion"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Last updated date of the Grafana workspace. LastUpdatedDate string `pulumi:"lastUpdatedDate"` // Grafana workspace name. Name string `pulumi:"name"` // The notification destinations. NotificationDestinations []string `pulumi:"notificationDestinations"` // The role name that the workspace uses to access resources through Amazon Organizations. OrganizationRoleName string `pulumi:"organizationRoleName"` // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. OrganizationalUnits []string `pulumi:"organizationalUnits"` // Permission type of the workspace. PermissionType string `pulumi:"permissionType"` // IAM role ARN that the workspace assumes. RoleArn string `pulumi:"roleArn"` SamlConfigurationStatus string `pulumi:"samlConfigurationStatus"` // AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. StackSetName string `pulumi:"stackSetName"` // Status of the Grafana workspace. Status string `pulumi:"status"` // Tags assigned to the resource Tags map[string]string `pulumi:"tags"` WorkspaceId string `pulumi:"workspaceId"` }
A collection of values returned by getWorkspace.
func LookupWorkspace ¶
func LookupWorkspace(ctx *pulumi.Context, args *LookupWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupWorkspaceResult, error)
Provides an Amazon Managed Grafana workspace data source.
## Example Usage ### Basic configuration
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := grafana.LookupWorkspace(ctx, &grafana.LookupWorkspaceArgs{ WorkspaceId: "g-2054c75a02", }, nil) if err != nil { return err } return nil }) }
```
type LookupWorkspaceResultOutput ¶
type LookupWorkspaceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getWorkspace.
func LookupWorkspaceOutput ¶
func LookupWorkspaceOutput(ctx *pulumi.Context, args LookupWorkspaceOutputArgs, opts ...pulumi.InvokeOption) LookupWorkspaceResultOutput
func (LookupWorkspaceResultOutput) AccountAccessType ¶
func (o LookupWorkspaceResultOutput) AccountAccessType() pulumi.StringOutput
(Required) Type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present.
func (LookupWorkspaceResultOutput) Arn ¶
func (o LookupWorkspaceResultOutput) Arn() pulumi.StringOutput
ARN of the Grafana workspace.
func (LookupWorkspaceResultOutput) AuthenticationProviders ¶
func (o LookupWorkspaceResultOutput) AuthenticationProviders() pulumi.StringArrayOutput
(Required) Authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.
func (LookupWorkspaceResultOutput) CreatedDate ¶
func (o LookupWorkspaceResultOutput) CreatedDate() pulumi.StringOutput
Creation date of the Grafana workspace.
func (LookupWorkspaceResultOutput) DataSources ¶
func (o LookupWorkspaceResultOutput) DataSources() pulumi.StringArrayOutput
Data sources for the workspace.
func (LookupWorkspaceResultOutput) Description ¶
func (o LookupWorkspaceResultOutput) Description() pulumi.StringOutput
Workspace description.
func (LookupWorkspaceResultOutput) ElementType ¶
func (LookupWorkspaceResultOutput) ElementType() reflect.Type
func (LookupWorkspaceResultOutput) Endpoint ¶
func (o LookupWorkspaceResultOutput) Endpoint() pulumi.StringOutput
Endpoint of the Grafana workspace.
func (LookupWorkspaceResultOutput) GrafanaVersion ¶
func (o LookupWorkspaceResultOutput) GrafanaVersion() pulumi.StringOutput
Version of Grafana running on the workspace.
func (LookupWorkspaceResultOutput) Id ¶
func (o LookupWorkspaceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupWorkspaceResultOutput) LastUpdatedDate ¶
func (o LookupWorkspaceResultOutput) LastUpdatedDate() pulumi.StringOutput
Last updated date of the Grafana workspace.
func (LookupWorkspaceResultOutput) Name ¶
func (o LookupWorkspaceResultOutput) Name() pulumi.StringOutput
Grafana workspace name.
func (LookupWorkspaceResultOutput) NotificationDestinations ¶
func (o LookupWorkspaceResultOutput) NotificationDestinations() pulumi.StringArrayOutput
The notification destinations.
func (LookupWorkspaceResultOutput) OrganizationRoleName ¶
func (o LookupWorkspaceResultOutput) OrganizationRoleName() pulumi.StringOutput
The role name that the workspace uses to access resources through Amazon Organizations.
func (LookupWorkspaceResultOutput) OrganizationalUnits ¶
func (o LookupWorkspaceResultOutput) OrganizationalUnits() pulumi.StringArrayOutput
The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
func (LookupWorkspaceResultOutput) PermissionType ¶
func (o LookupWorkspaceResultOutput) PermissionType() pulumi.StringOutput
Permission type of the workspace.
func (LookupWorkspaceResultOutput) RoleArn ¶
func (o LookupWorkspaceResultOutput) RoleArn() pulumi.StringOutput
IAM role ARN that the workspace assumes.
func (LookupWorkspaceResultOutput) SamlConfigurationStatus ¶
func (o LookupWorkspaceResultOutput) SamlConfigurationStatus() pulumi.StringOutput
func (LookupWorkspaceResultOutput) StackSetName ¶
func (o LookupWorkspaceResultOutput) StackSetName() pulumi.StringOutput
AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
func (LookupWorkspaceResultOutput) Status ¶
func (o LookupWorkspaceResultOutput) Status() pulumi.StringOutput
Status of the Grafana workspace.
func (LookupWorkspaceResultOutput) Tags ¶ added in v5.5.0
func (o LookupWorkspaceResultOutput) Tags() pulumi.StringMapOutput
Tags assigned to the resource
func (LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutput ¶
func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutput() LookupWorkspaceResultOutput
func (LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutputWithContext ¶
func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutputWithContext(ctx context.Context) LookupWorkspaceResultOutput
func (LookupWorkspaceResultOutput) WorkspaceId ¶
func (o LookupWorkspaceResultOutput) WorkspaceId() pulumi.StringOutput
type RoleAssociation ¶ added in v5.2.0
type RoleAssociation struct { pulumi.CustomResourceState // The AWS SSO group ids to be assigned the role given in `role`. GroupIds pulumi.StringArrayOutput `pulumi:"groupIds"` // The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role). Role pulumi.StringOutput `pulumi:"role"` // The AWS SSO user ids to be assigned the role given in `role`. UserIds pulumi.StringArrayOutput `pulumi:"userIds"` // The workspace id. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Provides an Amazon Managed Grafana workspace role association resource.
## Example Usage ### Basic configuration
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tmpJSON0, err := json.Marshal(map[string]interface{}{ "Version": "2012-10-17", "Statement": []map[string]interface{}{ map[string]interface{}{ "Action": "sts:AssumeRole", "Effect": "Allow", "Sid": "", "Principal": map[string]interface{}{ "Service": "grafana.amazonaws.com", }, }, }, }) if err != nil { return err } json0 := string(tmpJSON0) assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{ AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } exampleWorkspace, err := grafana.NewWorkspace(ctx, "exampleWorkspace", &grafana.WorkspaceArgs{ AccountAccessType: pulumi.String("CURRENT_ACCOUNT"), AuthenticationProviders: pulumi.StringArray{ pulumi.String("SAML"), }, PermissionType: pulumi.String("SERVICE_MANAGED"), RoleArn: assume.Arn, }) if err != nil { return err } _, err = grafana.NewRoleAssociation(ctx, "exampleRoleAssociation", &grafana.RoleAssociationArgs{ Role: pulumi.String("ADMIN"), UserIds: pulumi.StringArray{ pulumi.String("USER_ID_1"), pulumi.String("USER_ID_2"), }, WorkspaceId: exampleWorkspace.ID(), }) if err != nil { return err } return nil }) }
```
func GetRoleAssociation ¶ added in v5.2.0
func GetRoleAssociation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleAssociationState, opts ...pulumi.ResourceOption) (*RoleAssociation, error)
GetRoleAssociation gets an existing RoleAssociation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRoleAssociation ¶ added in v5.2.0
func NewRoleAssociation(ctx *pulumi.Context, name string, args *RoleAssociationArgs, opts ...pulumi.ResourceOption) (*RoleAssociation, error)
NewRoleAssociation registers a new resource with the given unique name, arguments, and options.
func (*RoleAssociation) ElementType ¶ added in v5.2.0
func (*RoleAssociation) ElementType() reflect.Type
func (*RoleAssociation) ToRoleAssociationOutput ¶ added in v5.2.0
func (i *RoleAssociation) ToRoleAssociationOutput() RoleAssociationOutput
func (*RoleAssociation) ToRoleAssociationOutputWithContext ¶ added in v5.2.0
func (i *RoleAssociation) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput
type RoleAssociationArgs ¶ added in v5.2.0
type RoleAssociationArgs struct { // The AWS SSO group ids to be assigned the role given in `role`. GroupIds pulumi.StringArrayInput // The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role). Role pulumi.StringInput // The AWS SSO user ids to be assigned the role given in `role`. UserIds pulumi.StringArrayInput // The workspace id. WorkspaceId pulumi.StringInput }
The set of arguments for constructing a RoleAssociation resource.
func (RoleAssociationArgs) ElementType ¶ added in v5.2.0
func (RoleAssociationArgs) ElementType() reflect.Type
type RoleAssociationArray ¶ added in v5.2.0
type RoleAssociationArray []RoleAssociationInput
func (RoleAssociationArray) ElementType ¶ added in v5.2.0
func (RoleAssociationArray) ElementType() reflect.Type
func (RoleAssociationArray) ToRoleAssociationArrayOutput ¶ added in v5.2.0
func (i RoleAssociationArray) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput
func (RoleAssociationArray) ToRoleAssociationArrayOutputWithContext ¶ added in v5.2.0
func (i RoleAssociationArray) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput
type RoleAssociationArrayInput ¶ added in v5.2.0
type RoleAssociationArrayInput interface { pulumi.Input ToRoleAssociationArrayOutput() RoleAssociationArrayOutput ToRoleAssociationArrayOutputWithContext(context.Context) RoleAssociationArrayOutput }
RoleAssociationArrayInput is an input type that accepts RoleAssociationArray and RoleAssociationArrayOutput values. You can construct a concrete instance of `RoleAssociationArrayInput` via:
RoleAssociationArray{ RoleAssociationArgs{...} }
type RoleAssociationArrayOutput ¶ added in v5.2.0
type RoleAssociationArrayOutput struct{ *pulumi.OutputState }
func (RoleAssociationArrayOutput) ElementType ¶ added in v5.2.0
func (RoleAssociationArrayOutput) ElementType() reflect.Type
func (RoleAssociationArrayOutput) Index ¶ added in v5.2.0
func (o RoleAssociationArrayOutput) Index(i pulumi.IntInput) RoleAssociationOutput
func (RoleAssociationArrayOutput) ToRoleAssociationArrayOutput ¶ added in v5.2.0
func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput
func (RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext ¶ added in v5.2.0
func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput
type RoleAssociationInput ¶ added in v5.2.0
type RoleAssociationInput interface { pulumi.Input ToRoleAssociationOutput() RoleAssociationOutput ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput }
type RoleAssociationMap ¶ added in v5.2.0
type RoleAssociationMap map[string]RoleAssociationInput
func (RoleAssociationMap) ElementType ¶ added in v5.2.0
func (RoleAssociationMap) ElementType() reflect.Type
func (RoleAssociationMap) ToRoleAssociationMapOutput ¶ added in v5.2.0
func (i RoleAssociationMap) ToRoleAssociationMapOutput() RoleAssociationMapOutput
func (RoleAssociationMap) ToRoleAssociationMapOutputWithContext ¶ added in v5.2.0
func (i RoleAssociationMap) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput
type RoleAssociationMapInput ¶ added in v5.2.0
type RoleAssociationMapInput interface { pulumi.Input ToRoleAssociationMapOutput() RoleAssociationMapOutput ToRoleAssociationMapOutputWithContext(context.Context) RoleAssociationMapOutput }
RoleAssociationMapInput is an input type that accepts RoleAssociationMap and RoleAssociationMapOutput values. You can construct a concrete instance of `RoleAssociationMapInput` via:
RoleAssociationMap{ "key": RoleAssociationArgs{...} }
type RoleAssociationMapOutput ¶ added in v5.2.0
type RoleAssociationMapOutput struct{ *pulumi.OutputState }
func (RoleAssociationMapOutput) ElementType ¶ added in v5.2.0
func (RoleAssociationMapOutput) ElementType() reflect.Type
func (RoleAssociationMapOutput) MapIndex ¶ added in v5.2.0
func (o RoleAssociationMapOutput) MapIndex(k pulumi.StringInput) RoleAssociationOutput
func (RoleAssociationMapOutput) ToRoleAssociationMapOutput ¶ added in v5.2.0
func (o RoleAssociationMapOutput) ToRoleAssociationMapOutput() RoleAssociationMapOutput
func (RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext ¶ added in v5.2.0
func (o RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput
type RoleAssociationOutput ¶ added in v5.2.0
type RoleAssociationOutput struct{ *pulumi.OutputState }
func (RoleAssociationOutput) ElementType ¶ added in v5.2.0
func (RoleAssociationOutput) ElementType() reflect.Type
func (RoleAssociationOutput) GroupIds ¶ added in v5.4.0
func (o RoleAssociationOutput) GroupIds() pulumi.StringArrayOutput
The AWS SSO group ids to be assigned the role given in `role`.
func (RoleAssociationOutput) Role ¶ added in v5.4.0
func (o RoleAssociationOutput) Role() pulumi.StringOutput
The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role).
func (RoleAssociationOutput) ToRoleAssociationOutput ¶ added in v5.2.0
func (o RoleAssociationOutput) ToRoleAssociationOutput() RoleAssociationOutput
func (RoleAssociationOutput) ToRoleAssociationOutputWithContext ¶ added in v5.2.0
func (o RoleAssociationOutput) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput
func (RoleAssociationOutput) UserIds ¶ added in v5.4.0
func (o RoleAssociationOutput) UserIds() pulumi.StringArrayOutput
The AWS SSO user ids to be assigned the role given in `role`.
func (RoleAssociationOutput) WorkspaceId ¶ added in v5.4.0
func (o RoleAssociationOutput) WorkspaceId() pulumi.StringOutput
The workspace id.
type RoleAssociationState ¶ added in v5.2.0
type RoleAssociationState struct { // The AWS SSO group ids to be assigned the role given in `role`. GroupIds pulumi.StringArrayInput // The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role). Role pulumi.StringPtrInput // The AWS SSO user ids to be assigned the role given in `role`. UserIds pulumi.StringArrayInput // The workspace id. WorkspaceId pulumi.StringPtrInput }
func (RoleAssociationState) ElementType ¶ added in v5.2.0
func (RoleAssociationState) ElementType() reflect.Type
type Workspace ¶
type Workspace struct { pulumi.CustomResourceState // The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present. AccountAccessType pulumi.StringOutput `pulumi:"accountAccessType"` // The Amazon Resource Name (ARN) of the Grafana workspace. Arn pulumi.StringOutput `pulumi:"arn"` // The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both. AuthenticationProviders pulumi.StringArrayOutput `pulumi:"authenticationProviders"` // 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](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html). Configuration pulumi.StringOutput `pulumi:"configuration"` // The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY` DataSources pulumi.StringArrayOutput `pulumi:"dataSources"` // The workspace description. Description pulumi.StringPtrOutput `pulumi:"description"` // The endpoint of the Grafana workspace. Endpoint pulumi.StringOutput `pulumi:"endpoint"` // The version of Grafana running on the workspace. GrafanaVersion pulumi.StringOutput `pulumi:"grafanaVersion"` // The Grafana workspace name. Name pulumi.StringOutput `pulumi:"name"` // The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to `SNS`. NotificationDestinations pulumi.StringArrayOutput `pulumi:"notificationDestinations"` // The role name that the workspace uses to access resources through Amazon Organizations. OrganizationRoleName pulumi.StringPtrOutput `pulumi:"organizationRoleName"` // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. OrganizationalUnits pulumi.StringArrayOutput `pulumi:"organizationalUnits"` // The permission type of the workspace. If `SERVICE_MANAGED` is specified, the IAM roles and IAM policy attachments are generated automatically. If `CUSTOMER_MANAGED` is specified, the IAM roles and IAM policy attachments will not be created. PermissionType pulumi.StringOutput `pulumi:"permissionType"` // The IAM role ARN that the workspace assumes. RoleArn pulumi.StringPtrOutput `pulumi:"roleArn"` SamlConfigurationStatus pulumi.StringOutput `pulumi:"samlConfigurationStatus"` // The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. StackSetName pulumi.StringPtrOutput `pulumi:"stackSetName"` // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level Tags pulumi.StringMapOutput `pulumi:"tags"` // Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` // The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below. VpcConfiguration WorkspaceVpcConfigurationPtrOutput `pulumi:"vpcConfiguration"` }
Provides an Amazon Managed Grafana workspace resource.
## Example Usage ### Basic configuration
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tmpJSON0, err := json.Marshal(map[string]interface{}{ "Version": "2012-10-17", "Statement": []map[string]interface{}{ map[string]interface{}{ "Action": "sts:AssumeRole", "Effect": "Allow", "Sid": "", "Principal": map[string]interface{}{ "Service": "grafana.amazonaws.com", }, }, }, }) if err != nil { return err } json0 := string(tmpJSON0) assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{ AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } _, err = grafana.NewWorkspace(ctx, "example", &grafana.WorkspaceArgs{ AccountAccessType: pulumi.String("CURRENT_ACCOUNT"), AuthenticationProviders: pulumi.StringArray{ pulumi.String("SAML"), }, PermissionType: pulumi.String("SERVICE_MANAGED"), RoleArn: assume.Arn, }) if err != nil { return err } return nil }) }
```
## Import
Grafana Workspace can be imported using the workspace's `id`, e.g.,
```sh
$ pulumi import aws:grafana/workspace:Workspace example g-2054c75a02
```
func GetWorkspace ¶
func GetWorkspace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error)
GetWorkspace gets an existing Workspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkspace ¶
func NewWorkspace(ctx *pulumi.Context, name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error)
NewWorkspace registers a new resource with the given unique name, arguments, and options.
func (*Workspace) ElementType ¶
func (*Workspace) ToWorkspaceOutput ¶
func (i *Workspace) ToWorkspaceOutput() WorkspaceOutput
func (*Workspace) ToWorkspaceOutputWithContext ¶
func (i *Workspace) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
type WorkspaceApiKey ¶ added in v5.13.0
type WorkspaceApiKey struct { pulumi.CustomResourceState // The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace. Key pulumi.StringOutput `pulumi:"key"` // Specifies the name of the API key. Key names must be unique to the workspace. KeyName pulumi.StringOutput `pulumi:"keyName"` // Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`. KeyRole pulumi.StringOutput `pulumi:"keyRole"` // Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. SecondsToLive pulumi.IntOutput `pulumi:"secondsToLive"` // The ID of the workspace that the API key is valid for. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Provides an Amazon Managed Grafana workspace API Key resource.
## Example Usage ### Basic configuration
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := grafana.NewWorkspaceApiKey(ctx, "key", &grafana.WorkspaceApiKeyArgs{ KeyName: pulumi.String("test-key"), KeyRole: pulumi.String("VIEWER"), SecondsToLive: pulumi.Int(3600), WorkspaceId: pulumi.Any(aws_grafana_workspace.Test.Id), }) if err != nil { return err } return nil }) }
```
func GetWorkspaceApiKey ¶ added in v5.13.0
func GetWorkspaceApiKey(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceApiKeyState, opts ...pulumi.ResourceOption) (*WorkspaceApiKey, error)
GetWorkspaceApiKey gets an existing WorkspaceApiKey resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkspaceApiKey ¶ added in v5.13.0
func NewWorkspaceApiKey(ctx *pulumi.Context, name string, args *WorkspaceApiKeyArgs, opts ...pulumi.ResourceOption) (*WorkspaceApiKey, error)
NewWorkspaceApiKey registers a new resource with the given unique name, arguments, and options.
func (*WorkspaceApiKey) ElementType ¶ added in v5.13.0
func (*WorkspaceApiKey) ElementType() reflect.Type
func (*WorkspaceApiKey) ToWorkspaceApiKeyOutput ¶ added in v5.13.0
func (i *WorkspaceApiKey) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput
func (*WorkspaceApiKey) ToWorkspaceApiKeyOutputWithContext ¶ added in v5.13.0
func (i *WorkspaceApiKey) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput
type WorkspaceApiKeyArgs ¶ added in v5.13.0
type WorkspaceApiKeyArgs struct { // Specifies the name of the API key. Key names must be unique to the workspace. KeyName pulumi.StringInput // Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`. KeyRole pulumi.StringInput // Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. SecondsToLive pulumi.IntInput // The ID of the workspace that the API key is valid for. WorkspaceId pulumi.StringInput }
The set of arguments for constructing a WorkspaceApiKey resource.
func (WorkspaceApiKeyArgs) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyArgs) ElementType() reflect.Type
type WorkspaceApiKeyArray ¶ added in v5.13.0
type WorkspaceApiKeyArray []WorkspaceApiKeyInput
func (WorkspaceApiKeyArray) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyArray) ElementType() reflect.Type
func (WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutput ¶ added in v5.13.0
func (i WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput
func (WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutputWithContext ¶ added in v5.13.0
func (i WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput
type WorkspaceApiKeyArrayInput ¶ added in v5.13.0
type WorkspaceApiKeyArrayInput interface { pulumi.Input ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput ToWorkspaceApiKeyArrayOutputWithContext(context.Context) WorkspaceApiKeyArrayOutput }
WorkspaceApiKeyArrayInput is an input type that accepts WorkspaceApiKeyArray and WorkspaceApiKeyArrayOutput values. You can construct a concrete instance of `WorkspaceApiKeyArrayInput` via:
WorkspaceApiKeyArray{ WorkspaceApiKeyArgs{...} }
type WorkspaceApiKeyArrayOutput ¶ added in v5.13.0
type WorkspaceApiKeyArrayOutput struct{ *pulumi.OutputState }
func (WorkspaceApiKeyArrayOutput) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyArrayOutput) ElementType() reflect.Type
func (WorkspaceApiKeyArrayOutput) Index ¶ added in v5.13.0
func (o WorkspaceApiKeyArrayOutput) Index(i pulumi.IntInput) WorkspaceApiKeyOutput
func (WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput ¶ added in v5.13.0
func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput
func (WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext ¶ added in v5.13.0
func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput
type WorkspaceApiKeyInput ¶ added in v5.13.0
type WorkspaceApiKeyInput interface { pulumi.Input ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput }
type WorkspaceApiKeyMap ¶ added in v5.13.0
type WorkspaceApiKeyMap map[string]WorkspaceApiKeyInput
func (WorkspaceApiKeyMap) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyMap) ElementType() reflect.Type
func (WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutput ¶ added in v5.13.0
func (i WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput
func (WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutputWithContext ¶ added in v5.13.0
func (i WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput
type WorkspaceApiKeyMapInput ¶ added in v5.13.0
type WorkspaceApiKeyMapInput interface { pulumi.Input ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput ToWorkspaceApiKeyMapOutputWithContext(context.Context) WorkspaceApiKeyMapOutput }
WorkspaceApiKeyMapInput is an input type that accepts WorkspaceApiKeyMap and WorkspaceApiKeyMapOutput values. You can construct a concrete instance of `WorkspaceApiKeyMapInput` via:
WorkspaceApiKeyMap{ "key": WorkspaceApiKeyArgs{...} }
type WorkspaceApiKeyMapOutput ¶ added in v5.13.0
type WorkspaceApiKeyMapOutput struct{ *pulumi.OutputState }
func (WorkspaceApiKeyMapOutput) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyMapOutput) ElementType() reflect.Type
func (WorkspaceApiKeyMapOutput) MapIndex ¶ added in v5.13.0
func (o WorkspaceApiKeyMapOutput) MapIndex(k pulumi.StringInput) WorkspaceApiKeyOutput
func (WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput ¶ added in v5.13.0
func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput
func (WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext ¶ added in v5.13.0
func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput
type WorkspaceApiKeyOutput ¶ added in v5.13.0
type WorkspaceApiKeyOutput struct{ *pulumi.OutputState }
func (WorkspaceApiKeyOutput) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyOutput) ElementType() reflect.Type
func (WorkspaceApiKeyOutput) Key ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) Key() pulumi.StringOutput
The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace.
func (WorkspaceApiKeyOutput) KeyName ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) KeyName() pulumi.StringOutput
Specifies the name of the API key. Key names must be unique to the workspace.
func (WorkspaceApiKeyOutput) KeyRole ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) KeyRole() pulumi.StringOutput
Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`.
func (WorkspaceApiKeyOutput) SecondsToLive ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) SecondsToLive() pulumi.IntOutput
Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days.
func (WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutput ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput
func (WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput
func (WorkspaceApiKeyOutput) WorkspaceId ¶ added in v5.13.0
func (o WorkspaceApiKeyOutput) WorkspaceId() pulumi.StringOutput
The ID of the workspace that the API key is valid for.
type WorkspaceApiKeyState ¶ added in v5.13.0
type WorkspaceApiKeyState struct { // The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace. Key pulumi.StringPtrInput // Specifies the name of the API key. Key names must be unique to the workspace. KeyName pulumi.StringPtrInput // Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`. KeyRole pulumi.StringPtrInput // Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days. SecondsToLive pulumi.IntPtrInput // The ID of the workspace that the API key is valid for. WorkspaceId pulumi.StringPtrInput }
func (WorkspaceApiKeyState) ElementType ¶ added in v5.13.0
func (WorkspaceApiKeyState) ElementType() reflect.Type
type WorkspaceArgs ¶
type WorkspaceArgs struct { // The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present. AccountAccessType pulumi.StringInput // The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both. AuthenticationProviders pulumi.StringArrayInput // 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](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html). Configuration pulumi.StringPtrInput // The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY` DataSources pulumi.StringArrayInput // The workspace description. Description pulumi.StringPtrInput // The Grafana workspace name. Name pulumi.StringPtrInput // The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to `SNS`. NotificationDestinations pulumi.StringArrayInput // The role name that the workspace uses to access resources through Amazon Organizations. OrganizationRoleName pulumi.StringPtrInput // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. OrganizationalUnits pulumi.StringArrayInput // The permission type of the workspace. If `SERVICE_MANAGED` is specified, the IAM roles and IAM policy attachments are generated automatically. If `CUSTOMER_MANAGED` is specified, the IAM roles and IAM policy attachments will not be created. PermissionType pulumi.StringInput // The IAM role ARN that the workspace assumes. RoleArn pulumi.StringPtrInput // The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. StackSetName pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level Tags pulumi.StringMapInput // The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below. VpcConfiguration WorkspaceVpcConfigurationPtrInput }
The set of arguments for constructing a Workspace resource.
func (WorkspaceArgs) ElementType ¶
func (WorkspaceArgs) ElementType() reflect.Type
type WorkspaceArray ¶
type WorkspaceArray []WorkspaceInput
func (WorkspaceArray) ElementType ¶
func (WorkspaceArray) ElementType() reflect.Type
func (WorkspaceArray) ToWorkspaceArrayOutput ¶
func (i WorkspaceArray) ToWorkspaceArrayOutput() WorkspaceArrayOutput
func (WorkspaceArray) ToWorkspaceArrayOutputWithContext ¶
func (i WorkspaceArray) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput
type WorkspaceArrayInput ¶
type WorkspaceArrayInput interface { pulumi.Input ToWorkspaceArrayOutput() WorkspaceArrayOutput ToWorkspaceArrayOutputWithContext(context.Context) WorkspaceArrayOutput }
WorkspaceArrayInput is an input type that accepts WorkspaceArray and WorkspaceArrayOutput values. You can construct a concrete instance of `WorkspaceArrayInput` via:
WorkspaceArray{ WorkspaceArgs{...} }
type WorkspaceArrayOutput ¶
type WorkspaceArrayOutput struct{ *pulumi.OutputState }
func (WorkspaceArrayOutput) ElementType ¶
func (WorkspaceArrayOutput) ElementType() reflect.Type
func (WorkspaceArrayOutput) Index ¶
func (o WorkspaceArrayOutput) Index(i pulumi.IntInput) WorkspaceOutput
func (WorkspaceArrayOutput) ToWorkspaceArrayOutput ¶
func (o WorkspaceArrayOutput) ToWorkspaceArrayOutput() WorkspaceArrayOutput
func (WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext ¶
func (o WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput
type WorkspaceInput ¶
type WorkspaceInput interface { pulumi.Input ToWorkspaceOutput() WorkspaceOutput ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput }
type WorkspaceMap ¶
type WorkspaceMap map[string]WorkspaceInput
func (WorkspaceMap) ElementType ¶
func (WorkspaceMap) ElementType() reflect.Type
func (WorkspaceMap) ToWorkspaceMapOutput ¶
func (i WorkspaceMap) ToWorkspaceMapOutput() WorkspaceMapOutput
func (WorkspaceMap) ToWorkspaceMapOutputWithContext ¶
func (i WorkspaceMap) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput
type WorkspaceMapInput ¶
type WorkspaceMapInput interface { pulumi.Input ToWorkspaceMapOutput() WorkspaceMapOutput ToWorkspaceMapOutputWithContext(context.Context) WorkspaceMapOutput }
WorkspaceMapInput is an input type that accepts WorkspaceMap and WorkspaceMapOutput values. You can construct a concrete instance of `WorkspaceMapInput` via:
WorkspaceMap{ "key": WorkspaceArgs{...} }
type WorkspaceMapOutput ¶
type WorkspaceMapOutput struct{ *pulumi.OutputState }
func (WorkspaceMapOutput) ElementType ¶
func (WorkspaceMapOutput) ElementType() reflect.Type
func (WorkspaceMapOutput) MapIndex ¶
func (o WorkspaceMapOutput) MapIndex(k pulumi.StringInput) WorkspaceOutput
func (WorkspaceMapOutput) ToWorkspaceMapOutput ¶
func (o WorkspaceMapOutput) ToWorkspaceMapOutput() WorkspaceMapOutput
func (WorkspaceMapOutput) ToWorkspaceMapOutputWithContext ¶
func (o WorkspaceMapOutput) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput
type WorkspaceOutput ¶
type WorkspaceOutput struct{ *pulumi.OutputState }
func (WorkspaceOutput) AccountAccessType ¶ added in v5.4.0
func (o WorkspaceOutput) AccountAccessType() pulumi.StringOutput
The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present.
func (WorkspaceOutput) Arn ¶ added in v5.4.0
func (o WorkspaceOutput) Arn() pulumi.StringOutput
The Amazon Resource Name (ARN) of the Grafana workspace.
func (WorkspaceOutput) AuthenticationProviders ¶ added in v5.4.0
func (o WorkspaceOutput) AuthenticationProviders() pulumi.StringArrayOutput
The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.
func (WorkspaceOutput) Configuration ¶ added in v5.29.0
func (o WorkspaceOutput) Configuration() pulumi.StringOutput
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](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html).
func (WorkspaceOutput) DataSources ¶ added in v5.4.0
func (o WorkspaceOutput) DataSources() pulumi.StringArrayOutput
The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY`
func (WorkspaceOutput) Description ¶ added in v5.4.0
func (o WorkspaceOutput) Description() pulumi.StringPtrOutput
The workspace description.
func (WorkspaceOutput) ElementType ¶
func (WorkspaceOutput) ElementType() reflect.Type
func (WorkspaceOutput) Endpoint ¶ added in v5.4.0
func (o WorkspaceOutput) Endpoint() pulumi.StringOutput
The endpoint of the Grafana workspace.
func (WorkspaceOutput) GrafanaVersion ¶ added in v5.4.0
func (o WorkspaceOutput) GrafanaVersion() pulumi.StringOutput
The version of Grafana running on the workspace.
func (WorkspaceOutput) Name ¶ added in v5.4.0
func (o WorkspaceOutput) Name() pulumi.StringOutput
The Grafana workspace name.
func (WorkspaceOutput) NotificationDestinations ¶ added in v5.4.0
func (o WorkspaceOutput) NotificationDestinations() pulumi.StringArrayOutput
The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to `SNS`.
func (WorkspaceOutput) OrganizationRoleName ¶ added in v5.4.0
func (o WorkspaceOutput) OrganizationRoleName() pulumi.StringPtrOutput
The role name that the workspace uses to access resources through Amazon Organizations.
func (WorkspaceOutput) OrganizationalUnits ¶ added in v5.4.0
func (o WorkspaceOutput) OrganizationalUnits() pulumi.StringArrayOutput
The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
func (WorkspaceOutput) PermissionType ¶ added in v5.4.0
func (o WorkspaceOutput) PermissionType() pulumi.StringOutput
The permission type of the workspace. If `SERVICE_MANAGED` is specified, the IAM roles and IAM policy attachments are generated automatically. If `CUSTOMER_MANAGED` is specified, the IAM roles and IAM policy attachments will not be created.
func (WorkspaceOutput) RoleArn ¶ added in v5.4.0
func (o WorkspaceOutput) RoleArn() pulumi.StringPtrOutput
The IAM role ARN that the workspace assumes.
func (WorkspaceOutput) SamlConfigurationStatus ¶ added in v5.4.0
func (o WorkspaceOutput) SamlConfigurationStatus() pulumi.StringOutput
func (WorkspaceOutput) StackSetName ¶ added in v5.4.0
func (o WorkspaceOutput) StackSetName() pulumi.StringPtrOutput
The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
func (WorkspaceOutput) Tags ¶ added in v5.5.0
func (o WorkspaceOutput) Tags() pulumi.StringMapOutput
Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
func (WorkspaceOutput) TagsAll ¶ added in v5.5.0
func (o WorkspaceOutput) TagsAll() pulumi.StringMapOutput
Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
func (WorkspaceOutput) ToWorkspaceOutput ¶
func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput
func (WorkspaceOutput) ToWorkspaceOutputWithContext ¶
func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
func (WorkspaceOutput) VpcConfiguration ¶ added in v5.24.0
func (o WorkspaceOutput) VpcConfiguration() WorkspaceVpcConfigurationPtrOutput
The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below.
type WorkspaceSamlConfiguration ¶
type WorkspaceSamlConfiguration struct { pulumi.CustomResourceState // The admin role values. AdminRoleValues pulumi.StringArrayOutput `pulumi:"adminRoleValues"` // The allowed organizations. AllowedOrganizations pulumi.StringArrayOutput `pulumi:"allowedOrganizations"` // The editor role values. EditorRoleValues pulumi.StringArrayOutput `pulumi:"editorRoleValues"` // The email assertion. EmailAssertion pulumi.StringOutput `pulumi:"emailAssertion"` // The groups assertion. GroupsAssertion pulumi.StringPtrOutput `pulumi:"groupsAssertion"` // The IDP Metadata URL. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified. IdpMetadataUrl pulumi.StringPtrOutput `pulumi:"idpMetadataUrl"` // The IDP Metadata XML. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified. IdpMetadataXml pulumi.StringPtrOutput `pulumi:"idpMetadataXml"` // The login assertion. LoginAssertion pulumi.StringOutput `pulumi:"loginAssertion"` // The login validity duration. LoginValidityDuration pulumi.IntOutput `pulumi:"loginValidityDuration"` // The name assertion. NameAssertion pulumi.StringOutput `pulumi:"nameAssertion"` // The org assertion. OrgAssertion pulumi.StringPtrOutput `pulumi:"orgAssertion"` // The role assertion. RoleAssertion pulumi.StringPtrOutput `pulumi:"roleAssertion"` // The status of the SAML configuration. Status pulumi.StringOutput `pulumi:"status"` // The workspace id. WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"` }
Provides an Amazon Managed Grafana workspace SAML configuration resource.
## Example Usage ### Basic configuration
```go package main
import (
"encoding/json" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { tmpJSON0, err := json.Marshal(map[string]interface{}{ "Version": "2012-10-17", "Statement": []map[string]interface{}{ map[string]interface{}{ "Action": "sts:AssumeRole", "Effect": "Allow", "Sid": "", "Principal": map[string]interface{}{ "Service": "grafana.amazonaws.com", }, }, }, }) if err != nil { return err } json0 := string(tmpJSON0) assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{ AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } exampleWorkspace, err := grafana.NewWorkspace(ctx, "exampleWorkspace", &grafana.WorkspaceArgs{ AccountAccessType: pulumi.String("CURRENT_ACCOUNT"), AuthenticationProviders: pulumi.StringArray{ pulumi.String("SAML"), }, PermissionType: pulumi.String("SERVICE_MANAGED"), RoleArn: assume.Arn, }) if err != nil { return err } _, err = grafana.NewWorkspaceSamlConfiguration(ctx, "exampleWorkspaceSamlConfiguration", &grafana.WorkspaceSamlConfigurationArgs{ EditorRoleValues: pulumi.StringArray{ pulumi.String("editor"), }, IdpMetadataUrl: pulumi.String("https://my_idp_metadata.url"), WorkspaceId: exampleWorkspace.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Grafana Workspace SAML configuration can be imported using the workspace's `id`, e.g.,
```sh
$ pulumi import aws:grafana/workspaceSamlConfiguration:WorkspaceSamlConfiguration example g-2054c75a02
```
func GetWorkspaceSamlConfiguration ¶
func GetWorkspaceSamlConfiguration(ctx *pulumi.Context, name string, id pulumi.IDInput, state *WorkspaceSamlConfigurationState, opts ...pulumi.ResourceOption) (*WorkspaceSamlConfiguration, error)
GetWorkspaceSamlConfiguration gets an existing WorkspaceSamlConfiguration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewWorkspaceSamlConfiguration ¶
func NewWorkspaceSamlConfiguration(ctx *pulumi.Context, name string, args *WorkspaceSamlConfigurationArgs, opts ...pulumi.ResourceOption) (*WorkspaceSamlConfiguration, error)
NewWorkspaceSamlConfiguration registers a new resource with the given unique name, arguments, and options.
func (*WorkspaceSamlConfiguration) ElementType ¶
func (*WorkspaceSamlConfiguration) ElementType() reflect.Type
func (*WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutput ¶
func (i *WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput
func (*WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutputWithContext ¶
func (i *WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput
type WorkspaceSamlConfigurationArgs ¶
type WorkspaceSamlConfigurationArgs struct { // The admin role values. AdminRoleValues pulumi.StringArrayInput // The allowed organizations. AllowedOrganizations pulumi.StringArrayInput // The editor role values. EditorRoleValues pulumi.StringArrayInput // The email assertion. EmailAssertion pulumi.StringPtrInput // The groups assertion. GroupsAssertion pulumi.StringPtrInput // The IDP Metadata URL. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified. IdpMetadataUrl pulumi.StringPtrInput // The IDP Metadata XML. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified. IdpMetadataXml pulumi.StringPtrInput // The login assertion. LoginAssertion pulumi.StringPtrInput // The login validity duration. LoginValidityDuration pulumi.IntPtrInput // The name assertion. NameAssertion pulumi.StringPtrInput // The org assertion. OrgAssertion pulumi.StringPtrInput // The role assertion. RoleAssertion pulumi.StringPtrInput // The workspace id. WorkspaceId pulumi.StringInput }
The set of arguments for constructing a WorkspaceSamlConfiguration resource.
func (WorkspaceSamlConfigurationArgs) ElementType ¶
func (WorkspaceSamlConfigurationArgs) ElementType() reflect.Type
type WorkspaceSamlConfigurationArray ¶
type WorkspaceSamlConfigurationArray []WorkspaceSamlConfigurationInput
func (WorkspaceSamlConfigurationArray) ElementType ¶
func (WorkspaceSamlConfigurationArray) ElementType() reflect.Type
func (WorkspaceSamlConfigurationArray) ToWorkspaceSamlConfigurationArrayOutput ¶
func (i WorkspaceSamlConfigurationArray) ToWorkspaceSamlConfigurationArrayOutput() WorkspaceSamlConfigurationArrayOutput
func (WorkspaceSamlConfigurationArray) ToWorkspaceSamlConfigurationArrayOutputWithContext ¶
func (i WorkspaceSamlConfigurationArray) ToWorkspaceSamlConfigurationArrayOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationArrayOutput
type WorkspaceSamlConfigurationArrayInput ¶
type WorkspaceSamlConfigurationArrayInput interface { pulumi.Input ToWorkspaceSamlConfigurationArrayOutput() WorkspaceSamlConfigurationArrayOutput ToWorkspaceSamlConfigurationArrayOutputWithContext(context.Context) WorkspaceSamlConfigurationArrayOutput }
WorkspaceSamlConfigurationArrayInput is an input type that accepts WorkspaceSamlConfigurationArray and WorkspaceSamlConfigurationArrayOutput values. You can construct a concrete instance of `WorkspaceSamlConfigurationArrayInput` via:
WorkspaceSamlConfigurationArray{ WorkspaceSamlConfigurationArgs{...} }
type WorkspaceSamlConfigurationArrayOutput ¶
type WorkspaceSamlConfigurationArrayOutput struct{ *pulumi.OutputState }
func (WorkspaceSamlConfigurationArrayOutput) ElementType ¶
func (WorkspaceSamlConfigurationArrayOutput) ElementType() reflect.Type
func (WorkspaceSamlConfigurationArrayOutput) Index ¶
func (o WorkspaceSamlConfigurationArrayOutput) Index(i pulumi.IntInput) WorkspaceSamlConfigurationOutput
func (WorkspaceSamlConfigurationArrayOutput) ToWorkspaceSamlConfigurationArrayOutput ¶
func (o WorkspaceSamlConfigurationArrayOutput) ToWorkspaceSamlConfigurationArrayOutput() WorkspaceSamlConfigurationArrayOutput
func (WorkspaceSamlConfigurationArrayOutput) ToWorkspaceSamlConfigurationArrayOutputWithContext ¶
func (o WorkspaceSamlConfigurationArrayOutput) ToWorkspaceSamlConfigurationArrayOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationArrayOutput
type WorkspaceSamlConfigurationInput ¶
type WorkspaceSamlConfigurationInput interface { pulumi.Input ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput }
type WorkspaceSamlConfigurationMap ¶
type WorkspaceSamlConfigurationMap map[string]WorkspaceSamlConfigurationInput
func (WorkspaceSamlConfigurationMap) ElementType ¶
func (WorkspaceSamlConfigurationMap) ElementType() reflect.Type
func (WorkspaceSamlConfigurationMap) ToWorkspaceSamlConfigurationMapOutput ¶
func (i WorkspaceSamlConfigurationMap) ToWorkspaceSamlConfigurationMapOutput() WorkspaceSamlConfigurationMapOutput
func (WorkspaceSamlConfigurationMap) ToWorkspaceSamlConfigurationMapOutputWithContext ¶
func (i WorkspaceSamlConfigurationMap) ToWorkspaceSamlConfigurationMapOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationMapOutput
type WorkspaceSamlConfigurationMapInput ¶
type WorkspaceSamlConfigurationMapInput interface { pulumi.Input ToWorkspaceSamlConfigurationMapOutput() WorkspaceSamlConfigurationMapOutput ToWorkspaceSamlConfigurationMapOutputWithContext(context.Context) WorkspaceSamlConfigurationMapOutput }
WorkspaceSamlConfigurationMapInput is an input type that accepts WorkspaceSamlConfigurationMap and WorkspaceSamlConfigurationMapOutput values. You can construct a concrete instance of `WorkspaceSamlConfigurationMapInput` via:
WorkspaceSamlConfigurationMap{ "key": WorkspaceSamlConfigurationArgs{...} }
type WorkspaceSamlConfigurationMapOutput ¶
type WorkspaceSamlConfigurationMapOutput struct{ *pulumi.OutputState }
func (WorkspaceSamlConfigurationMapOutput) ElementType ¶
func (WorkspaceSamlConfigurationMapOutput) ElementType() reflect.Type
func (WorkspaceSamlConfigurationMapOutput) MapIndex ¶
func (o WorkspaceSamlConfigurationMapOutput) MapIndex(k pulumi.StringInput) WorkspaceSamlConfigurationOutput
func (WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutput ¶
func (o WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutput() WorkspaceSamlConfigurationMapOutput
func (WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutputWithContext ¶
func (o WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationMapOutput
type WorkspaceSamlConfigurationOutput ¶
type WorkspaceSamlConfigurationOutput struct{ *pulumi.OutputState }
func (WorkspaceSamlConfigurationOutput) AdminRoleValues ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) AdminRoleValues() pulumi.StringArrayOutput
The admin role values.
func (WorkspaceSamlConfigurationOutput) AllowedOrganizations ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) AllowedOrganizations() pulumi.StringArrayOutput
The allowed organizations.
func (WorkspaceSamlConfigurationOutput) EditorRoleValues ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) EditorRoleValues() pulumi.StringArrayOutput
The editor role values.
func (WorkspaceSamlConfigurationOutput) ElementType ¶
func (WorkspaceSamlConfigurationOutput) ElementType() reflect.Type
func (WorkspaceSamlConfigurationOutput) EmailAssertion ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) EmailAssertion() pulumi.StringOutput
The email assertion.
func (WorkspaceSamlConfigurationOutput) GroupsAssertion ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) GroupsAssertion() pulumi.StringPtrOutput
The groups assertion.
func (WorkspaceSamlConfigurationOutput) IdpMetadataUrl ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) IdpMetadataUrl() pulumi.StringPtrOutput
The IDP Metadata URL. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified.
func (WorkspaceSamlConfigurationOutput) IdpMetadataXml ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) IdpMetadataXml() pulumi.StringPtrOutput
The IDP Metadata XML. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified.
func (WorkspaceSamlConfigurationOutput) LoginAssertion ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) LoginAssertion() pulumi.StringOutput
The login assertion.
func (WorkspaceSamlConfigurationOutput) LoginValidityDuration ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) LoginValidityDuration() pulumi.IntOutput
The login validity duration.
func (WorkspaceSamlConfigurationOutput) NameAssertion ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) NameAssertion() pulumi.StringOutput
The name assertion.
func (WorkspaceSamlConfigurationOutput) OrgAssertion ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) OrgAssertion() pulumi.StringPtrOutput
The org assertion.
func (WorkspaceSamlConfigurationOutput) RoleAssertion ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) RoleAssertion() pulumi.StringPtrOutput
The role assertion.
func (WorkspaceSamlConfigurationOutput) Status ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) Status() pulumi.StringOutput
The status of the SAML configuration.
func (WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutput ¶
func (o WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput
func (WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutputWithContext ¶
func (o WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput
func (WorkspaceSamlConfigurationOutput) WorkspaceId ¶ added in v5.4.0
func (o WorkspaceSamlConfigurationOutput) WorkspaceId() pulumi.StringOutput
The workspace id.
type WorkspaceSamlConfigurationState ¶
type WorkspaceSamlConfigurationState struct { // The admin role values. AdminRoleValues pulumi.StringArrayInput // The allowed organizations. AllowedOrganizations pulumi.StringArrayInput // The editor role values. EditorRoleValues pulumi.StringArrayInput // The email assertion. EmailAssertion pulumi.StringPtrInput // The groups assertion. GroupsAssertion pulumi.StringPtrInput // The IDP Metadata URL. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified. IdpMetadataUrl pulumi.StringPtrInput // The IDP Metadata XML. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified. IdpMetadataXml pulumi.StringPtrInput // The login assertion. LoginAssertion pulumi.StringPtrInput // The login validity duration. LoginValidityDuration pulumi.IntPtrInput // The name assertion. NameAssertion pulumi.StringPtrInput // The org assertion. OrgAssertion pulumi.StringPtrInput // The role assertion. RoleAssertion pulumi.StringPtrInput // The status of the SAML configuration. Status pulumi.StringPtrInput // The workspace id. WorkspaceId pulumi.StringPtrInput }
func (WorkspaceSamlConfigurationState) ElementType ¶
func (WorkspaceSamlConfigurationState) ElementType() reflect.Type
type WorkspaceState ¶
type WorkspaceState struct { // The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present. AccountAccessType pulumi.StringPtrInput // The Amazon Resource Name (ARN) of the Grafana workspace. Arn pulumi.StringPtrInput // The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both. AuthenticationProviders pulumi.StringArrayInput // 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](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html). Configuration pulumi.StringPtrInput // The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY` DataSources pulumi.StringArrayInput // The workspace description. Description pulumi.StringPtrInput // The endpoint of the Grafana workspace. Endpoint pulumi.StringPtrInput // The version of Grafana running on the workspace. GrafanaVersion pulumi.StringPtrInput // The Grafana workspace name. Name pulumi.StringPtrInput // The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to `SNS`. NotificationDestinations pulumi.StringArrayInput // The role name that the workspace uses to access resources through Amazon Organizations. OrganizationRoleName pulumi.StringPtrInput // The Amazon Organizations organizational units that the workspace is authorized to use data sources from. OrganizationalUnits pulumi.StringArrayInput // The permission type of the workspace. If `SERVICE_MANAGED` is specified, the IAM roles and IAM policy attachments are generated automatically. If `CUSTOMER_MANAGED` is specified, the IAM roles and IAM policy attachments will not be created. PermissionType pulumi.StringPtrInput // The IAM role ARN that the workspace assumes. RoleArn pulumi.StringPtrInput SamlConfigurationStatus pulumi.StringPtrInput // The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace. StackSetName pulumi.StringPtrInput // Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level Tags pulumi.StringMapInput // Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. TagsAll pulumi.StringMapInput // The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below. VpcConfiguration WorkspaceVpcConfigurationPtrInput }
func (WorkspaceState) ElementType ¶
func (WorkspaceState) ElementType() reflect.Type
type WorkspaceVpcConfiguration ¶ added in v5.24.0
type WorkspaceVpcConfiguration struct { // The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. SecurityGroupIds []string `pulumi:"securityGroupIds"` // The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect. SubnetIds []string `pulumi:"subnetIds"` }
type WorkspaceVpcConfigurationArgs ¶ added in v5.24.0
type WorkspaceVpcConfigurationArgs struct { // The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect. SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"` // The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect. SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"` }
func (WorkspaceVpcConfigurationArgs) ElementType ¶ added in v5.24.0
func (WorkspaceVpcConfigurationArgs) ElementType() reflect.Type
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput ¶ added in v5.24.0
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext ¶ added in v5.24.0
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput ¶ added in v5.24.0
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext ¶ added in v5.24.0
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
type WorkspaceVpcConfigurationInput ¶ added in v5.24.0
type WorkspaceVpcConfigurationInput interface { pulumi.Input ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput ToWorkspaceVpcConfigurationOutputWithContext(context.Context) WorkspaceVpcConfigurationOutput }
WorkspaceVpcConfigurationInput is an input type that accepts WorkspaceVpcConfigurationArgs and WorkspaceVpcConfigurationOutput values. You can construct a concrete instance of `WorkspaceVpcConfigurationInput` via:
WorkspaceVpcConfigurationArgs{...}
type WorkspaceVpcConfigurationOutput ¶ added in v5.24.0
type WorkspaceVpcConfigurationOutput struct{ *pulumi.OutputState }
func (WorkspaceVpcConfigurationOutput) ElementType ¶ added in v5.24.0
func (WorkspaceVpcConfigurationOutput) ElementType() reflect.Type
func (WorkspaceVpcConfigurationOutput) SecurityGroupIds ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationOutput) SecurityGroupIds() pulumi.StringArrayOutput
The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.
func (WorkspaceVpcConfigurationOutput) SubnetIds ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationOutput) SubnetIds() pulumi.StringArrayOutput
The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutput ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
type WorkspaceVpcConfigurationPtrInput ¶ added in v5.24.0
type WorkspaceVpcConfigurationPtrInput interface { pulumi.Input ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput ToWorkspaceVpcConfigurationPtrOutputWithContext(context.Context) WorkspaceVpcConfigurationPtrOutput }
WorkspaceVpcConfigurationPtrInput is an input type that accepts WorkspaceVpcConfigurationArgs, WorkspaceVpcConfigurationPtr and WorkspaceVpcConfigurationPtrOutput values. You can construct a concrete instance of `WorkspaceVpcConfigurationPtrInput` via:
WorkspaceVpcConfigurationArgs{...} or: nil
func WorkspaceVpcConfigurationPtr ¶ added in v5.24.0
func WorkspaceVpcConfigurationPtr(v *WorkspaceVpcConfigurationArgs) WorkspaceVpcConfigurationPtrInput
type WorkspaceVpcConfigurationPtrOutput ¶ added in v5.24.0
type WorkspaceVpcConfigurationPtrOutput struct{ *pulumi.OutputState }
func (WorkspaceVpcConfigurationPtrOutput) Elem ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationPtrOutput) Elem() WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationPtrOutput) ElementType ¶ added in v5.24.0
func (WorkspaceVpcConfigurationPtrOutput) ElementType() reflect.Type
func (WorkspaceVpcConfigurationPtrOutput) SecurityGroupIds ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput
The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.
func (WorkspaceVpcConfigurationPtrOutput) SubnetIds ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationPtrOutput) SubnetIds() pulumi.StringArrayOutput
The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.
func (WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutput ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
func (WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext ¶ added in v5.24.0
func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput