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 WorkspaceNetworkAccessControl
- type WorkspaceNetworkAccessControlArgs
- func (WorkspaceNetworkAccessControlArgs) ElementType() reflect.Type
- func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput
- func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlOutput
- func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput
- func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput
- type WorkspaceNetworkAccessControlInput
- type WorkspaceNetworkAccessControlOutput
- func (WorkspaceNetworkAccessControlOutput) ElementType() reflect.Type
- func (o WorkspaceNetworkAccessControlOutput) PrefixListIds() pulumi.StringArrayOutput
- func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput
- func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlOutput
- func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput
- func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput
- func (o WorkspaceNetworkAccessControlOutput) VpceIds() pulumi.StringArrayOutput
- type WorkspaceNetworkAccessControlPtrInput
- type WorkspaceNetworkAccessControlPtrOutput
- func (o WorkspaceNetworkAccessControlPtrOutput) Elem() WorkspaceNetworkAccessControlOutput
- func (WorkspaceNetworkAccessControlPtrOutput) ElementType() reflect.Type
- func (o WorkspaceNetworkAccessControlPtrOutput) PrefixListIds() pulumi.StringArrayOutput
- func (o WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput
- func (o WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput
- func (o WorkspaceNetworkAccessControlPtrOutput) VpceIds() pulumi.StringArrayOutput
- 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) NetworkAccessControl() WorkspaceNetworkAccessControlPtrOutput
- 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.StringMapOutputdeprecated
- 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/v6/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v6/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{ Name: pulumi.String("grafana-assume"), AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } exampleWorkspace, 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 } _, err = grafana.NewLicenseAssociation(ctx, "example", &grafana.LicenseAssociationArgs{ LicenseType: pulumi.String("ENTERPRISE_FREE_TRIAL"), WorkspaceId: exampleWorkspace.ID(), }) if err != nil { return err } return nil }) }
```
## Import
Using `pulumi import`, import Grafana workspace license association using the workspace's `id`. For example:
```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 ¶
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 ¶
func (o LicenseAssociationOutput) LicenseExpiration() pulumi.StringOutput
If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license.
func (LicenseAssociationOutput) LicenseType ¶
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 ¶
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/v6/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 ¶
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 ¶
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. // // The following arguments are optional: 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/v6/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v6/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{ Name: pulumi.String("grafana-assume"), AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } exampleWorkspace, 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 } _, err = grafana.NewRoleAssociation(ctx, "example", &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 ¶
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 ¶
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 ¶
func (*RoleAssociation) ElementType() reflect.Type
func (*RoleAssociation) ToRoleAssociationOutput ¶
func (i *RoleAssociation) ToRoleAssociationOutput() RoleAssociationOutput
func (*RoleAssociation) ToRoleAssociationOutputWithContext ¶
func (i *RoleAssociation) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput
type RoleAssociationArgs ¶
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. // // The following arguments are optional: WorkspaceId pulumi.StringInput }
The set of arguments for constructing a RoleAssociation resource.
func (RoleAssociationArgs) ElementType ¶
func (RoleAssociationArgs) ElementType() reflect.Type
type RoleAssociationArray ¶
type RoleAssociationArray []RoleAssociationInput
func (RoleAssociationArray) ElementType ¶
func (RoleAssociationArray) ElementType() reflect.Type
func (RoleAssociationArray) ToRoleAssociationArrayOutput ¶
func (i RoleAssociationArray) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput
func (RoleAssociationArray) ToRoleAssociationArrayOutputWithContext ¶
func (i RoleAssociationArray) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput
type RoleAssociationArrayInput ¶
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 ¶
type RoleAssociationArrayOutput struct{ *pulumi.OutputState }
func (RoleAssociationArrayOutput) ElementType ¶
func (RoleAssociationArrayOutput) ElementType() reflect.Type
func (RoleAssociationArrayOutput) Index ¶
func (o RoleAssociationArrayOutput) Index(i pulumi.IntInput) RoleAssociationOutput
func (RoleAssociationArrayOutput) ToRoleAssociationArrayOutput ¶
func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput
func (RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext ¶
func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput
type RoleAssociationInput ¶
type RoleAssociationInput interface { pulumi.Input ToRoleAssociationOutput() RoleAssociationOutput ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput }
type RoleAssociationMap ¶
type RoleAssociationMap map[string]RoleAssociationInput
func (RoleAssociationMap) ElementType ¶
func (RoleAssociationMap) ElementType() reflect.Type
func (RoleAssociationMap) ToRoleAssociationMapOutput ¶
func (i RoleAssociationMap) ToRoleAssociationMapOutput() RoleAssociationMapOutput
func (RoleAssociationMap) ToRoleAssociationMapOutputWithContext ¶
func (i RoleAssociationMap) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput
type RoleAssociationMapInput ¶
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 ¶
type RoleAssociationMapOutput struct{ *pulumi.OutputState }
func (RoleAssociationMapOutput) ElementType ¶
func (RoleAssociationMapOutput) ElementType() reflect.Type
func (RoleAssociationMapOutput) MapIndex ¶
func (o RoleAssociationMapOutput) MapIndex(k pulumi.StringInput) RoleAssociationOutput
func (RoleAssociationMapOutput) ToRoleAssociationMapOutput ¶
func (o RoleAssociationMapOutput) ToRoleAssociationMapOutput() RoleAssociationMapOutput
func (RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext ¶
func (o RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput
type RoleAssociationOutput ¶
type RoleAssociationOutput struct{ *pulumi.OutputState }
func (RoleAssociationOutput) ElementType ¶
func (RoleAssociationOutput) ElementType() reflect.Type
func (RoleAssociationOutput) GroupIds ¶
func (o RoleAssociationOutput) GroupIds() pulumi.StringArrayOutput
The AWS SSO group ids to be assigned the role given in `role`.
func (RoleAssociationOutput) Role ¶
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 ¶
func (o RoleAssociationOutput) ToRoleAssociationOutput() RoleAssociationOutput
func (RoleAssociationOutput) ToRoleAssociationOutputWithContext ¶
func (o RoleAssociationOutput) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput
func (RoleAssociationOutput) UserIds ¶
func (o RoleAssociationOutput) UserIds() pulumi.StringArrayOutput
The AWS SSO user ids to be assigned the role given in `role`.
func (RoleAssociationOutput) WorkspaceId ¶
func (o RoleAssociationOutput) WorkspaceId() pulumi.StringOutput
The workspace id.
The following arguments are optional:
type RoleAssociationState ¶
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. // // The following arguments are optional: WorkspaceId pulumi.StringPtrInput }
func (RoleAssociationState) ElementType ¶
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"` // Specifies the version of Grafana to support in the new workspace. Supported values are `8.4` and `9.4`. If not specified, defaults to `8.4`. GrafanaVersion pulumi.StringOutput `pulumi:"grafanaVersion"` // The Grafana workspace name. Name pulumi.StringOutput `pulumi:"name"` // Configuration for network access to your workspace.See Network Access Control below. NetworkAccessControl WorkspaceNetworkAccessControlPtrOutput `pulumi:"networkAccessControl"` // 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. // // The following arguments are optional: 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. // // Deprecated: Please use `tags` instead. 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/v6/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v6/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{ Name: pulumi.String("grafana-assume"), 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
Using `pulumi import`, import Grafana Workspace using the workspace's `id`. For example:
```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 ¶
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/v6/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(test.Id), }) if err != nil { return err } return nil }) }
```
func GetWorkspaceApiKey ¶
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 ¶
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 ¶
func (*WorkspaceApiKey) ElementType() reflect.Type
func (*WorkspaceApiKey) ToWorkspaceApiKeyOutput ¶
func (i *WorkspaceApiKey) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput
func (*WorkspaceApiKey) ToWorkspaceApiKeyOutputWithContext ¶
func (i *WorkspaceApiKey) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput
type WorkspaceApiKeyArgs ¶
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 ¶
func (WorkspaceApiKeyArgs) ElementType() reflect.Type
type WorkspaceApiKeyArray ¶
type WorkspaceApiKeyArray []WorkspaceApiKeyInput
func (WorkspaceApiKeyArray) ElementType ¶
func (WorkspaceApiKeyArray) ElementType() reflect.Type
func (WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutput ¶
func (i WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput
func (WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutputWithContext ¶
func (i WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput
type WorkspaceApiKeyArrayInput ¶
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 ¶
type WorkspaceApiKeyArrayOutput struct{ *pulumi.OutputState }
func (WorkspaceApiKeyArrayOutput) ElementType ¶
func (WorkspaceApiKeyArrayOutput) ElementType() reflect.Type
func (WorkspaceApiKeyArrayOutput) Index ¶
func (o WorkspaceApiKeyArrayOutput) Index(i pulumi.IntInput) WorkspaceApiKeyOutput
func (WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput ¶
func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput
func (WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext ¶
func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput
type WorkspaceApiKeyInput ¶
type WorkspaceApiKeyInput interface { pulumi.Input ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput }
type WorkspaceApiKeyMap ¶
type WorkspaceApiKeyMap map[string]WorkspaceApiKeyInput
func (WorkspaceApiKeyMap) ElementType ¶
func (WorkspaceApiKeyMap) ElementType() reflect.Type
func (WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutput ¶
func (i WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput
func (WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutputWithContext ¶
func (i WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput
type WorkspaceApiKeyMapInput ¶
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 ¶
type WorkspaceApiKeyMapOutput struct{ *pulumi.OutputState }
func (WorkspaceApiKeyMapOutput) ElementType ¶
func (WorkspaceApiKeyMapOutput) ElementType() reflect.Type
func (WorkspaceApiKeyMapOutput) MapIndex ¶
func (o WorkspaceApiKeyMapOutput) MapIndex(k pulumi.StringInput) WorkspaceApiKeyOutput
func (WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput ¶
func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput
func (WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext ¶
func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput
type WorkspaceApiKeyOutput ¶
type WorkspaceApiKeyOutput struct{ *pulumi.OutputState }
func (WorkspaceApiKeyOutput) ElementType ¶
func (WorkspaceApiKeyOutput) ElementType() reflect.Type
func (WorkspaceApiKeyOutput) Key ¶
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 ¶
func (o WorkspaceApiKeyOutput) KeyName() pulumi.StringOutput
Specifies the name of the API key. Key names must be unique to the workspace.
func (WorkspaceApiKeyOutput) KeyRole ¶
func (o WorkspaceApiKeyOutput) KeyRole() pulumi.StringOutput
Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`.
func (WorkspaceApiKeyOutput) SecondsToLive ¶
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 ¶
func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput
func (WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext ¶
func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput
func (WorkspaceApiKeyOutput) WorkspaceId ¶
func (o WorkspaceApiKeyOutput) WorkspaceId() pulumi.StringOutput
The ID of the workspace that the API key is valid for.
type WorkspaceApiKeyState ¶
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 ¶
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 // Specifies the version of Grafana to support in the new workspace. Supported values are `8.4` and `9.4`. If not specified, defaults to `8.4`. GrafanaVersion pulumi.StringPtrInput // The Grafana workspace name. Name pulumi.StringPtrInput // Configuration for network access to your workspace.See Network Access Control below. NetworkAccessControl WorkspaceNetworkAccessControlPtrInput // 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. // // The following arguments are optional: 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 WorkspaceNetworkAccessControl ¶
type WorkspaceNetworkAccessControl struct { // An array of prefix list IDs. PrefixListIds []string `pulumi:"prefixListIds"` // An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored. VpceIds []string `pulumi:"vpceIds"` }
type WorkspaceNetworkAccessControlArgs ¶
type WorkspaceNetworkAccessControlArgs struct { // An array of prefix list IDs. PrefixListIds pulumi.StringArrayInput `pulumi:"prefixListIds"` // An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored. VpceIds pulumi.StringArrayInput `pulumi:"vpceIds"` }
func (WorkspaceNetworkAccessControlArgs) ElementType ¶
func (WorkspaceNetworkAccessControlArgs) ElementType() reflect.Type
func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutput ¶
func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput
func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutputWithContext ¶
func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlOutput
func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutput ¶
func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput
func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutputWithContext ¶
func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput
type WorkspaceNetworkAccessControlInput ¶
type WorkspaceNetworkAccessControlInput interface { pulumi.Input ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput ToWorkspaceNetworkAccessControlOutputWithContext(context.Context) WorkspaceNetworkAccessControlOutput }
WorkspaceNetworkAccessControlInput is an input type that accepts WorkspaceNetworkAccessControlArgs and WorkspaceNetworkAccessControlOutput values. You can construct a concrete instance of `WorkspaceNetworkAccessControlInput` via:
WorkspaceNetworkAccessControlArgs{...}
type WorkspaceNetworkAccessControlOutput ¶
type WorkspaceNetworkAccessControlOutput struct{ *pulumi.OutputState }
func (WorkspaceNetworkAccessControlOutput) ElementType ¶
func (WorkspaceNetworkAccessControlOutput) ElementType() reflect.Type
func (WorkspaceNetworkAccessControlOutput) PrefixListIds ¶
func (o WorkspaceNetworkAccessControlOutput) PrefixListIds() pulumi.StringArrayOutput
An array of prefix list IDs.
func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutput ¶
func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput
func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutputWithContext ¶
func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlOutput
func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutput ¶
func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput
func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext ¶
func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput
func (WorkspaceNetworkAccessControlOutput) VpceIds ¶
func (o WorkspaceNetworkAccessControlOutput) VpceIds() pulumi.StringArrayOutput
An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored.
type WorkspaceNetworkAccessControlPtrInput ¶
type WorkspaceNetworkAccessControlPtrInput interface { pulumi.Input ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput ToWorkspaceNetworkAccessControlPtrOutputWithContext(context.Context) WorkspaceNetworkAccessControlPtrOutput }
WorkspaceNetworkAccessControlPtrInput is an input type that accepts WorkspaceNetworkAccessControlArgs, WorkspaceNetworkAccessControlPtr and WorkspaceNetworkAccessControlPtrOutput values. You can construct a concrete instance of `WorkspaceNetworkAccessControlPtrInput` via:
WorkspaceNetworkAccessControlArgs{...} or: nil
func WorkspaceNetworkAccessControlPtr ¶
func WorkspaceNetworkAccessControlPtr(v *WorkspaceNetworkAccessControlArgs) WorkspaceNetworkAccessControlPtrInput
type WorkspaceNetworkAccessControlPtrOutput ¶
type WorkspaceNetworkAccessControlPtrOutput struct{ *pulumi.OutputState }
func (WorkspaceNetworkAccessControlPtrOutput) ElementType ¶
func (WorkspaceNetworkAccessControlPtrOutput) ElementType() reflect.Type
func (WorkspaceNetworkAccessControlPtrOutput) PrefixListIds ¶
func (o WorkspaceNetworkAccessControlPtrOutput) PrefixListIds() pulumi.StringArrayOutput
An array of prefix list IDs.
func (WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutput ¶
func (o WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput
func (WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext ¶
func (o WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput
func (WorkspaceNetworkAccessControlPtrOutput) VpceIds ¶
func (o WorkspaceNetworkAccessControlPtrOutput) VpceIds() pulumi.StringArrayOutput
An array of Amazon VPC endpoint IDs for the workspace. The only VPC endpoints that can be specified here are interface VPC endpoints for Grafana workspaces (using the com.amazonaws.[region].grafana-workspace service endpoint). Other VPC endpoints will be ignored.
type WorkspaceOutput ¶
type WorkspaceOutput struct{ *pulumi.OutputState }
func (WorkspaceOutput) AccountAccessType ¶
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 ¶
func (o WorkspaceOutput) Arn() pulumi.StringOutput
The Amazon Resource Name (ARN) of the Grafana workspace.
func (WorkspaceOutput) AuthenticationProviders ¶
func (o WorkspaceOutput) AuthenticationProviders() pulumi.StringArrayOutput
The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.
func (WorkspaceOutput) Configuration ¶
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 ¶
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 ¶
func (o WorkspaceOutput) Description() pulumi.StringPtrOutput
The workspace description.
func (WorkspaceOutput) ElementType ¶
func (WorkspaceOutput) ElementType() reflect.Type
func (WorkspaceOutput) Endpoint ¶
func (o WorkspaceOutput) Endpoint() pulumi.StringOutput
The endpoint of the Grafana workspace.
func (WorkspaceOutput) GrafanaVersion ¶
func (o WorkspaceOutput) GrafanaVersion() pulumi.StringOutput
Specifies the version of Grafana to support in the new workspace. Supported values are `8.4` and `9.4`. If not specified, defaults to `8.4`.
func (WorkspaceOutput) Name ¶
func (o WorkspaceOutput) Name() pulumi.StringOutput
The Grafana workspace name.
func (WorkspaceOutput) NetworkAccessControl ¶
func (o WorkspaceOutput) NetworkAccessControl() WorkspaceNetworkAccessControlPtrOutput
Configuration for network access to your workspace.See Network Access Control below.
func (WorkspaceOutput) NotificationDestinations ¶
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 ¶
func (o WorkspaceOutput) OrganizationRoleName() pulumi.StringPtrOutput
The role name that the workspace uses to access resources through Amazon Organizations.
func (WorkspaceOutput) OrganizationalUnits ¶
func (o WorkspaceOutput) OrganizationalUnits() pulumi.StringArrayOutput
The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
func (WorkspaceOutput) PermissionType ¶
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.
The following arguments are optional:
func (WorkspaceOutput) RoleArn ¶
func (o WorkspaceOutput) RoleArn() pulumi.StringPtrOutput
The IAM role ARN that the workspace assumes.
func (WorkspaceOutput) SamlConfigurationStatus ¶
func (o WorkspaceOutput) SamlConfigurationStatus() pulumi.StringOutput
func (WorkspaceOutput) StackSetName ¶
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 ¶
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
deprecated
func (o WorkspaceOutput) TagsAll() pulumi.StringMapOutput
Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
Deprecated: Please use `tags` instead.
func (WorkspaceOutput) ToWorkspaceOutput ¶
func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput
func (WorkspaceOutput) ToWorkspaceOutputWithContext ¶
func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
func (WorkspaceOutput) VpcConfiguration ¶
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. // // The following arguments are optional: 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/v6/go/aws/grafana" "github.com/pulumi/pulumi-aws/sdk/v6/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{ Name: pulumi.String("grafana-assume"), AssumeRolePolicy: pulumi.String(json0), }) if err != nil { return err } exampleWorkspace, 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 } _, err = grafana.NewWorkspaceSamlConfiguration(ctx, "example", &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
Using `pulumi import`, import Grafana Workspace SAML configuration using the workspace's `id`. For example:
```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. // // The following arguments are optional: 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 ¶
func (o WorkspaceSamlConfigurationOutput) AdminRoleValues() pulumi.StringArrayOutput
The admin role values.
func (WorkspaceSamlConfigurationOutput) AllowedOrganizations ¶
func (o WorkspaceSamlConfigurationOutput) AllowedOrganizations() pulumi.StringArrayOutput
The allowed organizations.
func (WorkspaceSamlConfigurationOutput) EditorRoleValues ¶
func (o WorkspaceSamlConfigurationOutput) EditorRoleValues() pulumi.StringArrayOutput
The editor role values.
func (WorkspaceSamlConfigurationOutput) ElementType ¶
func (WorkspaceSamlConfigurationOutput) ElementType() reflect.Type
func (WorkspaceSamlConfigurationOutput) EmailAssertion ¶
func (o WorkspaceSamlConfigurationOutput) EmailAssertion() pulumi.StringOutput
The email assertion.
func (WorkspaceSamlConfigurationOutput) GroupsAssertion ¶
func (o WorkspaceSamlConfigurationOutput) GroupsAssertion() pulumi.StringPtrOutput
The groups assertion.
func (WorkspaceSamlConfigurationOutput) IdpMetadataUrl ¶
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 ¶
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 ¶
func (o WorkspaceSamlConfigurationOutput) LoginAssertion() pulumi.StringOutput
The login assertion.
func (WorkspaceSamlConfigurationOutput) LoginValidityDuration ¶
func (o WorkspaceSamlConfigurationOutput) LoginValidityDuration() pulumi.IntOutput
The login validity duration.
func (WorkspaceSamlConfigurationOutput) NameAssertion ¶
func (o WorkspaceSamlConfigurationOutput) NameAssertion() pulumi.StringOutput
The name assertion.
func (WorkspaceSamlConfigurationOutput) OrgAssertion ¶
func (o WorkspaceSamlConfigurationOutput) OrgAssertion() pulumi.StringPtrOutput
The org assertion.
func (WorkspaceSamlConfigurationOutput) RoleAssertion ¶
func (o WorkspaceSamlConfigurationOutput) RoleAssertion() pulumi.StringPtrOutput
The role assertion.
func (WorkspaceSamlConfigurationOutput) Status ¶
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 ¶
func (o WorkspaceSamlConfigurationOutput) WorkspaceId() pulumi.StringOutput
The workspace id.
The following arguments are optional:
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. // // The following arguments are optional: 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 // Specifies the version of Grafana to support in the new workspace. Supported values are `8.4` and `9.4`. If not specified, defaults to `8.4`. GrafanaVersion pulumi.StringPtrInput // The Grafana workspace name. Name pulumi.StringPtrInput // Configuration for network access to your workspace.See Network Access Control below. NetworkAccessControl WorkspaceNetworkAccessControlPtrInput // 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. // // The following arguments are optional: 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. // // Deprecated: Please use `tags` instead. 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 ¶
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 ¶
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 ¶
func (WorkspaceVpcConfigurationArgs) ElementType() reflect.Type
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput ¶
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext ¶
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput ¶
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext ¶
func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
type WorkspaceVpcConfigurationInput ¶
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 ¶
type WorkspaceVpcConfigurationOutput struct{ *pulumi.OutputState }
func (WorkspaceVpcConfigurationOutput) ElementType ¶
func (WorkspaceVpcConfigurationOutput) ElementType() reflect.Type
func (WorkspaceVpcConfigurationOutput) SecurityGroupIds ¶
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 ¶
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 ¶
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext ¶
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput ¶
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext ¶
func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput
type WorkspaceVpcConfigurationPtrInput ¶
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 ¶
func WorkspaceVpcConfigurationPtr(v *WorkspaceVpcConfigurationArgs) WorkspaceVpcConfigurationPtrInput
type WorkspaceVpcConfigurationPtrOutput ¶
type WorkspaceVpcConfigurationPtrOutput struct{ *pulumi.OutputState }
func (WorkspaceVpcConfigurationPtrOutput) Elem ¶
func (o WorkspaceVpcConfigurationPtrOutput) Elem() WorkspaceVpcConfigurationOutput
func (WorkspaceVpcConfigurationPtrOutput) ElementType ¶
func (WorkspaceVpcConfigurationPtrOutput) ElementType() reflect.Type
func (WorkspaceVpcConfigurationPtrOutput) SecurityGroupIds ¶
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 ¶
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 ¶
func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
func (WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext ¶
func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput