grafana

package
v5.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LicenseAssociation

type LicenseAssociation struct {
	pulumi.CustomResourceState

	// If `licenseType` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial.
	FreeTrialExpiration pulumi.StringOutput `pulumi:"freeTrialExpiration"`
	// If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license.
	LicenseExpiration pulumi.StringOutput `pulumi:"licenseExpiration"`
	// The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`.
	LicenseType pulumi.StringOutput `pulumi:"licenseType"`
	// The workspace id.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Provides an Amazon Managed Grafana workspace license association resource.

## Example Usage ### Basic configuration

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": "sts:AssumeRole",
					"Effect": "Allow",
					"Sid":    "",
					"Principal": map[string]interface{}{
						"Service": "grafana.amazonaws.com",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{
			AssumeRolePolicy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		exampleWorkspace, err := grafana.NewWorkspace(ctx, "exampleWorkspace", &grafana.WorkspaceArgs{
			AccountAccessType: pulumi.String("CURRENT_ACCOUNT"),
			AuthenticationProviders: pulumi.StringArray{
				pulumi.String("SAML"),
			},
			PermissionType: pulumi.String("SERVICE_MANAGED"),
			RoleArn:        assume.Arn,
		})
		if err != nil {
			return err
		}
		_, err = grafana.NewLicenseAssociation(ctx, "exampleLicenseAssociation", &grafana.LicenseAssociationArgs{
			LicenseType: pulumi.String("ENTERPRISE_FREE_TRIAL"),
			WorkspaceId: exampleWorkspace.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Grafana workspace license association can be imported using the workspace's `id`, e.g.,

```sh

$ pulumi import aws:grafana/licenseAssociation:LicenseAssociation example g-2054c75a02

```

func GetLicenseAssociation

func GetLicenseAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LicenseAssociationState, opts ...pulumi.ResourceOption) (*LicenseAssociation, error)

GetLicenseAssociation gets an existing LicenseAssociation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLicenseAssociation

func NewLicenseAssociation(ctx *pulumi.Context,
	name string, args *LicenseAssociationArgs, opts ...pulumi.ResourceOption) (*LicenseAssociation, error)

NewLicenseAssociation registers a new resource with the given unique name, arguments, and options.

func (*LicenseAssociation) ElementType

func (*LicenseAssociation) ElementType() reflect.Type

func (*LicenseAssociation) ToLicenseAssociationOutput

func (i *LicenseAssociation) ToLicenseAssociationOutput() LicenseAssociationOutput

func (*LicenseAssociation) ToLicenseAssociationOutputWithContext

func (i *LicenseAssociation) ToLicenseAssociationOutputWithContext(ctx context.Context) LicenseAssociationOutput

type LicenseAssociationArgs

type LicenseAssociationArgs struct {
	// The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`.
	LicenseType pulumi.StringInput
	// The workspace id.
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a LicenseAssociation resource.

func (LicenseAssociationArgs) ElementType

func (LicenseAssociationArgs) ElementType() reflect.Type

type LicenseAssociationArray

type LicenseAssociationArray []LicenseAssociationInput

func (LicenseAssociationArray) ElementType

func (LicenseAssociationArray) ElementType() reflect.Type

func (LicenseAssociationArray) ToLicenseAssociationArrayOutput

func (i LicenseAssociationArray) ToLicenseAssociationArrayOutput() LicenseAssociationArrayOutput

func (LicenseAssociationArray) ToLicenseAssociationArrayOutputWithContext

func (i LicenseAssociationArray) ToLicenseAssociationArrayOutputWithContext(ctx context.Context) LicenseAssociationArrayOutput

type LicenseAssociationArrayInput

type LicenseAssociationArrayInput interface {
	pulumi.Input

	ToLicenseAssociationArrayOutput() LicenseAssociationArrayOutput
	ToLicenseAssociationArrayOutputWithContext(context.Context) LicenseAssociationArrayOutput
}

LicenseAssociationArrayInput is an input type that accepts LicenseAssociationArray and LicenseAssociationArrayOutput values. You can construct a concrete instance of `LicenseAssociationArrayInput` via:

LicenseAssociationArray{ LicenseAssociationArgs{...} }

type LicenseAssociationArrayOutput

type LicenseAssociationArrayOutput struct{ *pulumi.OutputState }

func (LicenseAssociationArrayOutput) ElementType

func (LicenseAssociationArrayOutput) Index

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) MapIndex

func (LicenseAssociationMapOutput) ToLicenseAssociationMapOutput

func (o LicenseAssociationMapOutput) ToLicenseAssociationMapOutput() LicenseAssociationMapOutput

func (LicenseAssociationMapOutput) ToLicenseAssociationMapOutputWithContext

func (o LicenseAssociationMapOutput) ToLicenseAssociationMapOutputWithContext(ctx context.Context) LicenseAssociationMapOutput

type LicenseAssociationOutput

type LicenseAssociationOutput struct{ *pulumi.OutputState }

func (LicenseAssociationOutput) ElementType

func (LicenseAssociationOutput) ElementType() reflect.Type

func (LicenseAssociationOutput) FreeTrialExpiration added in v5.4.0

func (o LicenseAssociationOutput) FreeTrialExpiration() pulumi.StringOutput

If `licenseType` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial.

func (LicenseAssociationOutput) LicenseExpiration added in v5.4.0

func (o LicenseAssociationOutput) LicenseExpiration() pulumi.StringOutput

If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license.

func (LicenseAssociationOutput) LicenseType added in v5.4.0

The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`.

func (LicenseAssociationOutput) ToLicenseAssociationOutput

func (o LicenseAssociationOutput) ToLicenseAssociationOutput() LicenseAssociationOutput

func (LicenseAssociationOutput) ToLicenseAssociationOutputWithContext

func (o LicenseAssociationOutput) ToLicenseAssociationOutputWithContext(ctx context.Context) LicenseAssociationOutput

func (LicenseAssociationOutput) WorkspaceId added in v5.4.0

The workspace id.

type LicenseAssociationState

type LicenseAssociationState struct {
	// If `licenseType` is set to `ENTERPRISE_FREE_TRIAL`, this is the expiration date of the free trial.
	FreeTrialExpiration pulumi.StringPtrInput
	// If `licenseType` is set to `ENTERPRISE`, this is the expiration date of the enterprise license.
	LicenseExpiration pulumi.StringPtrInput
	// The type of license for the workspace license association. Valid values are `ENTERPRISE` and `ENTERPRISE_FREE_TRIAL`.
	LicenseType pulumi.StringPtrInput
	// The workspace id.
	WorkspaceId pulumi.StringPtrInput
}

func (LicenseAssociationState) ElementType

func (LicenseAssociationState) ElementType() reflect.Type

type LookupWorkspaceArgs

type LookupWorkspaceArgs struct {
	// Tags assigned to the resource
	Tags map[string]string `pulumi:"tags"`
	// Grafana workspace ID.
	WorkspaceId string `pulumi:"workspaceId"`
}

A collection of arguments for invoking getWorkspace.

type LookupWorkspaceOutputArgs

type LookupWorkspaceOutputArgs struct {
	// Tags assigned to the resource
	Tags pulumi.StringMapInput `pulumi:"tags"`
	// Grafana workspace ID.
	WorkspaceId pulumi.StringInput `pulumi:"workspaceId"`
}

A collection of arguments for invoking getWorkspace.

func (LookupWorkspaceOutputArgs) ElementType

func (LookupWorkspaceOutputArgs) ElementType() reflect.Type

type LookupWorkspaceResult

type LookupWorkspaceResult struct {
	// (Required) Type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present.
	AccountAccessType string `pulumi:"accountAccessType"`
	// ARN of the Grafana workspace.
	Arn string `pulumi:"arn"`
	// (Required) Authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.
	AuthenticationProviders []string `pulumi:"authenticationProviders"`
	// Creation date of the Grafana workspace.
	CreatedDate string `pulumi:"createdDate"`
	// Data sources for the workspace.
	DataSources []string `pulumi:"dataSources"`
	// Workspace description.
	Description string `pulumi:"description"`
	// Endpoint of the Grafana workspace.
	Endpoint string `pulumi:"endpoint"`
	// Version of Grafana running on the workspace.
	GrafanaVersion string `pulumi:"grafanaVersion"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Last updated date of the Grafana workspace.
	LastUpdatedDate string `pulumi:"lastUpdatedDate"`
	// Grafana workspace name.
	Name string `pulumi:"name"`
	// The notification destinations.
	NotificationDestinations []string `pulumi:"notificationDestinations"`
	// The role name that the workspace uses to access resources through Amazon Organizations.
	OrganizationRoleName string `pulumi:"organizationRoleName"`
	// The Amazon Organizations organizational units that the workspace is authorized to use data sources from.
	OrganizationalUnits []string `pulumi:"organizationalUnits"`
	// Permission type of the workspace.
	PermissionType string `pulumi:"permissionType"`
	// IAM role ARN that the workspace assumes.
	RoleArn                 string `pulumi:"roleArn"`
	SamlConfigurationStatus string `pulumi:"samlConfigurationStatus"`
	// AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.
	StackSetName string `pulumi:"stackSetName"`
	// Status of the Grafana workspace.
	Status string `pulumi:"status"`
	// Tags assigned to the resource
	Tags        map[string]string `pulumi:"tags"`
	WorkspaceId string            `pulumi:"workspaceId"`
}

A collection of values returned by getWorkspace.

func LookupWorkspace

func LookupWorkspace(ctx *pulumi.Context, args *LookupWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupWorkspaceResult, error)

Provides an Amazon Managed Grafana workspace data source.

## Example Usage ### Basic configuration

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := grafana.LookupWorkspace(ctx, &grafana.LookupWorkspaceArgs{
			WorkspaceId: "g-2054c75a02",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupWorkspaceResultOutput

type LookupWorkspaceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getWorkspace.

func (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

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

Creation date of the Grafana workspace.

func (LookupWorkspaceResultOutput) DataSources

Data sources for the workspace.

func (LookupWorkspaceResultOutput) Description

Workspace description.

func (LookupWorkspaceResultOutput) ElementType

func (LookupWorkspaceResultOutput) Endpoint

Endpoint of the Grafana workspace.

func (LookupWorkspaceResultOutput) GrafanaVersion

func (o LookupWorkspaceResultOutput) GrafanaVersion() pulumi.StringOutput

Version of Grafana running on the workspace.

func (LookupWorkspaceResultOutput) Id

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

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

IAM role ARN that the workspace assumes.

func (LookupWorkspaceResultOutput) SamlConfigurationStatus

func (o LookupWorkspaceResultOutput) SamlConfigurationStatus() pulumi.StringOutput

func (LookupWorkspaceResultOutput) StackSetName

AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.

func (LookupWorkspaceResultOutput) Status

Status of the Grafana workspace.

func (LookupWorkspaceResultOutput) Tags added in v5.5.0

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

type RoleAssociation added in v5.2.0

type RoleAssociation struct {
	pulumi.CustomResourceState

	// The AWS SSO group ids to be assigned the role given in `role`.
	GroupIds pulumi.StringArrayOutput `pulumi:"groupIds"`
	// The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role).
	Role pulumi.StringOutput `pulumi:"role"`
	// The AWS SSO user ids to be assigned the role given in `role`.
	UserIds pulumi.StringArrayOutput `pulumi:"userIds"`
	// The workspace id.
	//
	// 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/v5/go/aws/grafana"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": "sts:AssumeRole",
					"Effect": "Allow",
					"Sid":    "",
					"Principal": map[string]interface{}{
						"Service": "grafana.amazonaws.com",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{
			AssumeRolePolicy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		exampleWorkspace, err := grafana.NewWorkspace(ctx, "exampleWorkspace", &grafana.WorkspaceArgs{
			AccountAccessType: pulumi.String("CURRENT_ACCOUNT"),
			AuthenticationProviders: pulumi.StringArray{
				pulumi.String("SAML"),
			},
			PermissionType: pulumi.String("SERVICE_MANAGED"),
			RoleArn:        assume.Arn,
		})
		if err != nil {
			return err
		}
		_, err = grafana.NewRoleAssociation(ctx, "exampleRoleAssociation", &grafana.RoleAssociationArgs{
			Role: pulumi.String("ADMIN"),
			UserIds: pulumi.StringArray{
				pulumi.String("USER_ID_1"),
				pulumi.String("USER_ID_2"),
			},
			WorkspaceId: exampleWorkspace.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetRoleAssociation added in v5.2.0

func GetRoleAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleAssociationState, opts ...pulumi.ResourceOption) (*RoleAssociation, error)

GetRoleAssociation gets an existing RoleAssociation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRoleAssociation added in v5.2.0

func NewRoleAssociation(ctx *pulumi.Context,
	name string, args *RoleAssociationArgs, opts ...pulumi.ResourceOption) (*RoleAssociation, error)

NewRoleAssociation registers a new resource with the given unique name, arguments, and options.

func (*RoleAssociation) ElementType added in v5.2.0

func (*RoleAssociation) ElementType() reflect.Type

func (*RoleAssociation) ToRoleAssociationOutput added in v5.2.0

func (i *RoleAssociation) ToRoleAssociationOutput() RoleAssociationOutput

func (*RoleAssociation) ToRoleAssociationOutputWithContext added in v5.2.0

func (i *RoleAssociation) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput

type RoleAssociationArgs added in v5.2.0

type RoleAssociationArgs struct {
	// The AWS SSO group ids to be assigned the role given in `role`.
	GroupIds pulumi.StringArrayInput
	// The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role).
	Role pulumi.StringInput
	// The AWS SSO user ids to be assigned the role given in `role`.
	UserIds pulumi.StringArrayInput
	// The workspace id.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a RoleAssociation resource.

func (RoleAssociationArgs) ElementType added in v5.2.0

func (RoleAssociationArgs) ElementType() reflect.Type

type RoleAssociationArray added in v5.2.0

type RoleAssociationArray []RoleAssociationInput

func (RoleAssociationArray) ElementType added in v5.2.0

func (RoleAssociationArray) ElementType() reflect.Type

func (RoleAssociationArray) ToRoleAssociationArrayOutput added in v5.2.0

func (i RoleAssociationArray) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput

func (RoleAssociationArray) ToRoleAssociationArrayOutputWithContext added in v5.2.0

func (i RoleAssociationArray) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput

type RoleAssociationArrayInput added in v5.2.0

type RoleAssociationArrayInput interface {
	pulumi.Input

	ToRoleAssociationArrayOutput() RoleAssociationArrayOutput
	ToRoleAssociationArrayOutputWithContext(context.Context) RoleAssociationArrayOutput
}

RoleAssociationArrayInput is an input type that accepts RoleAssociationArray and RoleAssociationArrayOutput values. You can construct a concrete instance of `RoleAssociationArrayInput` via:

RoleAssociationArray{ RoleAssociationArgs{...} }

type RoleAssociationArrayOutput added in v5.2.0

type RoleAssociationArrayOutput struct{ *pulumi.OutputState }

func (RoleAssociationArrayOutput) ElementType added in v5.2.0

func (RoleAssociationArrayOutput) ElementType() reflect.Type

func (RoleAssociationArrayOutput) Index added in v5.2.0

func (RoleAssociationArrayOutput) ToRoleAssociationArrayOutput added in v5.2.0

func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutput() RoleAssociationArrayOutput

func (RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext added in v5.2.0

func (o RoleAssociationArrayOutput) ToRoleAssociationArrayOutputWithContext(ctx context.Context) RoleAssociationArrayOutput

type RoleAssociationInput added in v5.2.0

type RoleAssociationInput interface {
	pulumi.Input

	ToRoleAssociationOutput() RoleAssociationOutput
	ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput
}

type RoleAssociationMap added in v5.2.0

type RoleAssociationMap map[string]RoleAssociationInput

func (RoleAssociationMap) ElementType added in v5.2.0

func (RoleAssociationMap) ElementType() reflect.Type

func (RoleAssociationMap) ToRoleAssociationMapOutput added in v5.2.0

func (i RoleAssociationMap) ToRoleAssociationMapOutput() RoleAssociationMapOutput

func (RoleAssociationMap) ToRoleAssociationMapOutputWithContext added in v5.2.0

func (i RoleAssociationMap) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput

type RoleAssociationMapInput added in v5.2.0

type RoleAssociationMapInput interface {
	pulumi.Input

	ToRoleAssociationMapOutput() RoleAssociationMapOutput
	ToRoleAssociationMapOutputWithContext(context.Context) RoleAssociationMapOutput
}

RoleAssociationMapInput is an input type that accepts RoleAssociationMap and RoleAssociationMapOutput values. You can construct a concrete instance of `RoleAssociationMapInput` via:

RoleAssociationMap{ "key": RoleAssociationArgs{...} }

type RoleAssociationMapOutput added in v5.2.0

type RoleAssociationMapOutput struct{ *pulumi.OutputState }

func (RoleAssociationMapOutput) ElementType added in v5.2.0

func (RoleAssociationMapOutput) ElementType() reflect.Type

func (RoleAssociationMapOutput) MapIndex added in v5.2.0

func (RoleAssociationMapOutput) ToRoleAssociationMapOutput added in v5.2.0

func (o RoleAssociationMapOutput) ToRoleAssociationMapOutput() RoleAssociationMapOutput

func (RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext added in v5.2.0

func (o RoleAssociationMapOutput) ToRoleAssociationMapOutputWithContext(ctx context.Context) RoleAssociationMapOutput

type RoleAssociationOutput added in v5.2.0

type RoleAssociationOutput struct{ *pulumi.OutputState }

func (RoleAssociationOutput) ElementType added in v5.2.0

func (RoleAssociationOutput) ElementType() reflect.Type

func (RoleAssociationOutput) GroupIds added in v5.4.0

The AWS SSO group ids to be assigned the role given in `role`.

func (RoleAssociationOutput) Role added in v5.4.0

The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role).

func (RoleAssociationOutput) ToRoleAssociationOutput added in v5.2.0

func (o RoleAssociationOutput) ToRoleAssociationOutput() RoleAssociationOutput

func (RoleAssociationOutput) ToRoleAssociationOutputWithContext added in v5.2.0

func (o RoleAssociationOutput) ToRoleAssociationOutputWithContext(ctx context.Context) RoleAssociationOutput

func (RoleAssociationOutput) UserIds added in v5.4.0

The AWS SSO user ids to be assigned the role given in `role`.

func (RoleAssociationOutput) WorkspaceId added in v5.4.0

func (o RoleAssociationOutput) WorkspaceId() pulumi.StringOutput

The workspace id.

The following arguments are optional:

type RoleAssociationState added in v5.2.0

type RoleAssociationState struct {
	// The AWS SSO group ids to be assigned the role given in `role`.
	GroupIds pulumi.StringArrayInput
	// The grafana role. Valid values can be found [here](https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateInstruction.html#ManagedGrafana-Type-UpdateInstruction-role).
	Role pulumi.StringPtrInput
	// The AWS SSO user ids to be assigned the role given in `role`.
	UserIds pulumi.StringArrayInput
	// The workspace id.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringPtrInput
}

func (RoleAssociationState) ElementType added in v5.2.0

func (RoleAssociationState) ElementType() reflect.Type

type Workspace

type Workspace struct {
	pulumi.CustomResourceState

	// The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present.
	AccountAccessType pulumi.StringOutput `pulumi:"accountAccessType"`
	// The Amazon Resource Name (ARN) of the Grafana workspace.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.
	AuthenticationProviders pulumi.StringArrayOutput `pulumi:"authenticationProviders"`
	// The configuration string for the workspace that you create. For more information about the format and configuration options available, see [Working in your Grafana workspace](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html).
	Configuration pulumi.StringOutput `pulumi:"configuration"`
	// The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY`
	DataSources pulumi.StringArrayOutput `pulumi:"dataSources"`
	// The workspace description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The endpoint of the Grafana workspace.
	Endpoint pulumi.StringOutput `pulumi:"endpoint"`
	// 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`. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official [migration tool](https://github.com/aws-observability/amazon-managed-grafana-migrator).
	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.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below.
	VpcConfiguration WorkspaceVpcConfigurationPtrOutput `pulumi:"vpcConfiguration"`
}

Provides an Amazon Managed Grafana workspace resource.

## Example Usage ### Basic configuration

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": "sts:AssumeRole",
					"Effect": "Allow",
					"Sid":    "",
					"Principal": map[string]interface{}{
						"Service": "grafana.amazonaws.com",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{
			AssumeRolePolicy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		_, err = grafana.NewWorkspace(ctx, "example", &grafana.WorkspaceArgs{
			AccountAccessType: pulumi.String("CURRENT_ACCOUNT"),
			AuthenticationProviders: pulumi.StringArray{
				pulumi.String("SAML"),
			},
			PermissionType: pulumi.String("SERVICE_MANAGED"),
			RoleArn:        assume.Arn,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Grafana Workspace can be imported using the workspace's `id`, e.g.,

```sh

$ pulumi import aws:grafana/workspace:Workspace example g-2054c75a02

```

func GetWorkspace

func GetWorkspace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error)

GetWorkspace gets an existing Workspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkspace

func NewWorkspace(ctx *pulumi.Context,
	name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error)

NewWorkspace registers a new resource with the given unique name, arguments, and options.

func (*Workspace) ElementType

func (*Workspace) ElementType() reflect.Type

func (*Workspace) ToWorkspaceOutput

func (i *Workspace) ToWorkspaceOutput() WorkspaceOutput

func (*Workspace) ToWorkspaceOutputWithContext

func (i *Workspace) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput

type WorkspaceApiKey added in v5.13.0

type WorkspaceApiKey struct {
	pulumi.CustomResourceState

	// The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace.
	Key pulumi.StringOutput `pulumi:"key"`
	// Specifies the name of the API key. Key names must be unique to the workspace.
	KeyName pulumi.StringOutput `pulumi:"keyName"`
	// Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`.
	KeyRole pulumi.StringOutput `pulumi:"keyRole"`
	// Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days.
	SecondsToLive pulumi.IntOutput `pulumi:"secondsToLive"`
	// The ID of the workspace that the API key is valid for.
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Provides an Amazon Managed Grafana workspace API Key resource.

## Example Usage ### Basic configuration

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/grafana"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := grafana.NewWorkspaceApiKey(ctx, "key", &grafana.WorkspaceApiKeyArgs{
			KeyName:       pulumi.String("test-key"),
			KeyRole:       pulumi.String("VIEWER"),
			SecondsToLive: pulumi.Int(3600),
			WorkspaceId:   pulumi.Any(aws_grafana_workspace.Test.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetWorkspaceApiKey added in v5.13.0

func GetWorkspaceApiKey(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkspaceApiKeyState, opts ...pulumi.ResourceOption) (*WorkspaceApiKey, error)

GetWorkspaceApiKey gets an existing WorkspaceApiKey resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkspaceApiKey added in v5.13.0

func NewWorkspaceApiKey(ctx *pulumi.Context,
	name string, args *WorkspaceApiKeyArgs, opts ...pulumi.ResourceOption) (*WorkspaceApiKey, error)

NewWorkspaceApiKey registers a new resource with the given unique name, arguments, and options.

func (*WorkspaceApiKey) ElementType added in v5.13.0

func (*WorkspaceApiKey) ElementType() reflect.Type

func (*WorkspaceApiKey) ToWorkspaceApiKeyOutput added in v5.13.0

func (i *WorkspaceApiKey) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput

func (*WorkspaceApiKey) ToWorkspaceApiKeyOutputWithContext added in v5.13.0

func (i *WorkspaceApiKey) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput

type WorkspaceApiKeyArgs added in v5.13.0

type WorkspaceApiKeyArgs struct {
	// Specifies the name of the API key. Key names must be unique to the workspace.
	KeyName pulumi.StringInput
	// Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`.
	KeyRole pulumi.StringInput
	// Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days.
	SecondsToLive pulumi.IntInput
	// The ID of the workspace that the API key is valid for.
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a WorkspaceApiKey resource.

func (WorkspaceApiKeyArgs) ElementType added in v5.13.0

func (WorkspaceApiKeyArgs) ElementType() reflect.Type

type WorkspaceApiKeyArray added in v5.13.0

type WorkspaceApiKeyArray []WorkspaceApiKeyInput

func (WorkspaceApiKeyArray) ElementType added in v5.13.0

func (WorkspaceApiKeyArray) ElementType() reflect.Type

func (WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutput added in v5.13.0

func (i WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput

func (WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutputWithContext added in v5.13.0

func (i WorkspaceApiKeyArray) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput

type WorkspaceApiKeyArrayInput added in v5.13.0

type WorkspaceApiKeyArrayInput interface {
	pulumi.Input

	ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput
	ToWorkspaceApiKeyArrayOutputWithContext(context.Context) WorkspaceApiKeyArrayOutput
}

WorkspaceApiKeyArrayInput is an input type that accepts WorkspaceApiKeyArray and WorkspaceApiKeyArrayOutput values. You can construct a concrete instance of `WorkspaceApiKeyArrayInput` via:

WorkspaceApiKeyArray{ WorkspaceApiKeyArgs{...} }

type WorkspaceApiKeyArrayOutput added in v5.13.0

type WorkspaceApiKeyArrayOutput struct{ *pulumi.OutputState }

func (WorkspaceApiKeyArrayOutput) ElementType added in v5.13.0

func (WorkspaceApiKeyArrayOutput) ElementType() reflect.Type

func (WorkspaceApiKeyArrayOutput) Index added in v5.13.0

func (WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput added in v5.13.0

func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutput() WorkspaceApiKeyArrayOutput

func (WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext added in v5.13.0

func (o WorkspaceApiKeyArrayOutput) ToWorkspaceApiKeyArrayOutputWithContext(ctx context.Context) WorkspaceApiKeyArrayOutput

type WorkspaceApiKeyInput added in v5.13.0

type WorkspaceApiKeyInput interface {
	pulumi.Input

	ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput
	ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput
}

type WorkspaceApiKeyMap added in v5.13.0

type WorkspaceApiKeyMap map[string]WorkspaceApiKeyInput

func (WorkspaceApiKeyMap) ElementType added in v5.13.0

func (WorkspaceApiKeyMap) ElementType() reflect.Type

func (WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutput added in v5.13.0

func (i WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput

func (WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutputWithContext added in v5.13.0

func (i WorkspaceApiKeyMap) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput

type WorkspaceApiKeyMapInput added in v5.13.0

type WorkspaceApiKeyMapInput interface {
	pulumi.Input

	ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput
	ToWorkspaceApiKeyMapOutputWithContext(context.Context) WorkspaceApiKeyMapOutput
}

WorkspaceApiKeyMapInput is an input type that accepts WorkspaceApiKeyMap and WorkspaceApiKeyMapOutput values. You can construct a concrete instance of `WorkspaceApiKeyMapInput` via:

WorkspaceApiKeyMap{ "key": WorkspaceApiKeyArgs{...} }

type WorkspaceApiKeyMapOutput added in v5.13.0

type WorkspaceApiKeyMapOutput struct{ *pulumi.OutputState }

func (WorkspaceApiKeyMapOutput) ElementType added in v5.13.0

func (WorkspaceApiKeyMapOutput) ElementType() reflect.Type

func (WorkspaceApiKeyMapOutput) MapIndex added in v5.13.0

func (WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput added in v5.13.0

func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutput() WorkspaceApiKeyMapOutput

func (WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext added in v5.13.0

func (o WorkspaceApiKeyMapOutput) ToWorkspaceApiKeyMapOutputWithContext(ctx context.Context) WorkspaceApiKeyMapOutput

type WorkspaceApiKeyOutput added in v5.13.0

type WorkspaceApiKeyOutput struct{ *pulumi.OutputState }

func (WorkspaceApiKeyOutput) ElementType added in v5.13.0

func (WorkspaceApiKeyOutput) ElementType() reflect.Type

func (WorkspaceApiKeyOutput) Key added in v5.13.0

The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace.

func (WorkspaceApiKeyOutput) KeyName added in v5.13.0

Specifies the name of the API key. Key names must be unique to the workspace.

func (WorkspaceApiKeyOutput) KeyRole added in v5.13.0

Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`.

func (WorkspaceApiKeyOutput) SecondsToLive added in v5.13.0

func (o WorkspaceApiKeyOutput) SecondsToLive() pulumi.IntOutput

Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days.

func (WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutput added in v5.13.0

func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutput() WorkspaceApiKeyOutput

func (WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext added in v5.13.0

func (o WorkspaceApiKeyOutput) ToWorkspaceApiKeyOutputWithContext(ctx context.Context) WorkspaceApiKeyOutput

func (WorkspaceApiKeyOutput) WorkspaceId added in v5.13.0

func (o WorkspaceApiKeyOutput) WorkspaceId() pulumi.StringOutput

The ID of the workspace that the API key is valid for.

type WorkspaceApiKeyState added in v5.13.0

type WorkspaceApiKeyState struct {
	// The key token in JSON format. Use this value as a bearer token to authenticate HTTP requests to the workspace.
	Key pulumi.StringPtrInput
	// Specifies the name of the API key. Key names must be unique to the workspace.
	KeyName pulumi.StringPtrInput
	// Specifies the permission level of the API key. Valid values are `VIEWER`, `EDITOR`, or `ADMIN`.
	KeyRole pulumi.StringPtrInput
	// Specifies the time in seconds until the API key expires. Keys can be valid for up to 30 days.
	SecondsToLive pulumi.IntPtrInput
	// The ID of the workspace that the API key is valid for.
	WorkspaceId pulumi.StringPtrInput
}

func (WorkspaceApiKeyState) ElementType added in v5.13.0

func (WorkspaceApiKeyState) ElementType() reflect.Type

type WorkspaceArgs

type WorkspaceArgs struct {
	// The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present.
	AccountAccessType pulumi.StringInput
	// The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.
	AuthenticationProviders pulumi.StringArrayInput
	// The configuration string for the workspace that you create. For more information about the format and configuration options available, see [Working in your Grafana workspace](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html).
	Configuration pulumi.StringPtrInput
	// The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY`
	DataSources pulumi.StringArrayInput
	// The workspace description.
	Description pulumi.StringPtrInput
	// 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`. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official [migration tool](https://github.com/aws-observability/amazon-managed-grafana-migrator).
	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 (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 (WorkspaceMapOutput) ToWorkspaceMapOutput

func (o WorkspaceMapOutput) ToWorkspaceMapOutput() WorkspaceMapOutput

func (WorkspaceMapOutput) ToWorkspaceMapOutputWithContext

func (o WorkspaceMapOutput) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput

type WorkspaceNetworkAccessControl added in v5.32.0

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 added in v5.32.0

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 added in v5.32.0

func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutput added in v5.32.0

func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput

func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutputWithContext added in v5.32.0

func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlOutput

func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutput added in v5.32.0

func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput

func (WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutputWithContext added in v5.32.0

func (i WorkspaceNetworkAccessControlArgs) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput

type WorkspaceNetworkAccessControlInput added in v5.32.0

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 added in v5.32.0

type WorkspaceNetworkAccessControlOutput struct{ *pulumi.OutputState }

func (WorkspaceNetworkAccessControlOutput) ElementType added in v5.32.0

func (WorkspaceNetworkAccessControlOutput) PrefixListIds added in v5.32.0

An array of prefix list IDs.

func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutput added in v5.32.0

func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutput() WorkspaceNetworkAccessControlOutput

func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutputWithContext added in v5.32.0

func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlOutput

func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutput added in v5.32.0

func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput

func (WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext added in v5.32.0

func (o WorkspaceNetworkAccessControlOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput

func (WorkspaceNetworkAccessControlOutput) VpceIds added in v5.32.0

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 added in v5.32.0

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

type WorkspaceNetworkAccessControlPtrOutput added in v5.32.0

type WorkspaceNetworkAccessControlPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceNetworkAccessControlPtrOutput) Elem added in v5.32.0

func (WorkspaceNetworkAccessControlPtrOutput) ElementType added in v5.32.0

func (WorkspaceNetworkAccessControlPtrOutput) PrefixListIds added in v5.32.0

An array of prefix list IDs.

func (WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutput added in v5.32.0

func (o WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutput() WorkspaceNetworkAccessControlPtrOutput

func (WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext added in v5.32.0

func (o WorkspaceNetworkAccessControlPtrOutput) ToWorkspaceNetworkAccessControlPtrOutputWithContext(ctx context.Context) WorkspaceNetworkAccessControlPtrOutput

func (WorkspaceNetworkAccessControlPtrOutput) VpceIds added in v5.32.0

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 added in v5.4.0

func (o WorkspaceOutput) AccountAccessType() pulumi.StringOutput

The type of account access for the workspace. Valid values are `CURRENT_ACCOUNT` and `ORGANIZATION`. If `ORGANIZATION` is specified, then `organizationalUnits` must also be present.

func (WorkspaceOutput) Arn added in v5.4.0

The Amazon Resource Name (ARN) of the Grafana workspace.

func (WorkspaceOutput) AuthenticationProviders added in v5.4.0

func (o WorkspaceOutput) AuthenticationProviders() pulumi.StringArrayOutput

The authentication providers for the workspace. Valid values are `AWS_SSO`, `SAML`, or both.

func (WorkspaceOutput) Configuration added in v5.29.0

func (o WorkspaceOutput) Configuration() pulumi.StringOutput

The configuration string for the workspace that you create. For more information about the format and configuration options available, see [Working in your Grafana workspace](https://docs.aws.amazon.com/grafana/latest/userguide/AMG-configure-workspace.html).

func (WorkspaceOutput) DataSources added in v5.4.0

func (o WorkspaceOutput) DataSources() pulumi.StringArrayOutput

The data sources for the workspace. Valid values are `AMAZON_OPENSEARCH_SERVICE`, `ATHENA`, `CLOUDWATCH`, `PROMETHEUS`, `REDSHIFT`, `SITEWISE`, `TIMESTREAM`, `XRAY`

func (WorkspaceOutput) Description added in v5.4.0

func (o WorkspaceOutput) Description() pulumi.StringPtrOutput

The workspace description.

func (WorkspaceOutput) ElementType

func (WorkspaceOutput) ElementType() reflect.Type

func (WorkspaceOutput) Endpoint added in v5.4.0

func (o WorkspaceOutput) Endpoint() pulumi.StringOutput

The endpoint of the Grafana workspace.

func (WorkspaceOutput) GrafanaVersion added in v5.4.0

func (o WorkspaceOutput) GrafanaVersion() pulumi.StringOutput

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`. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official [migration tool](https://github.com/aws-observability/amazon-managed-grafana-migrator).

func (WorkspaceOutput) Name added in v5.4.0

The Grafana workspace name.

func (WorkspaceOutput) NetworkAccessControl added in v5.32.0

Configuration for network access to your workspace.See Network Access Control below.

func (WorkspaceOutput) NotificationDestinations added in v5.4.0

func (o WorkspaceOutput) NotificationDestinations() pulumi.StringArrayOutput

The notification destinations. If a data source is specified here, Amazon Managed Grafana will create IAM roles and permissions needed to use these destinations. Must be set to `SNS`.

func (WorkspaceOutput) OrganizationRoleName added in v5.4.0

func (o WorkspaceOutput) OrganizationRoleName() pulumi.StringPtrOutput

The role name that the workspace uses to access resources through Amazon Organizations.

func (WorkspaceOutput) OrganizationalUnits added in v5.4.0

func (o WorkspaceOutput) OrganizationalUnits() pulumi.StringArrayOutput

The Amazon Organizations organizational units that the workspace is authorized to use data sources from.

func (WorkspaceOutput) PermissionType added in v5.4.0

func (o WorkspaceOutput) PermissionType() pulumi.StringOutput

The permission type of the workspace. If `SERVICE_MANAGED` is specified, the IAM roles and IAM policy attachments are generated automatically. If `CUSTOMER_MANAGED` is specified, the IAM roles and IAM policy attachments will not be created.

The following arguments are optional:

func (WorkspaceOutput) RoleArn added in v5.4.0

The IAM role ARN that the workspace assumes.

func (WorkspaceOutput) SamlConfigurationStatus added in v5.4.0

func (o WorkspaceOutput) SamlConfigurationStatus() pulumi.StringOutput

func (WorkspaceOutput) StackSetName added in v5.4.0

func (o WorkspaceOutput) StackSetName() pulumi.StringPtrOutput

The AWS CloudFormation stack set name that provisions IAM roles to be used by the workspace.

func (WorkspaceOutput) Tags added in v5.5.0

Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level

func (WorkspaceOutput) TagsAll added in v5.5.0

Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

func (WorkspaceOutput) ToWorkspaceOutput

func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput

func (WorkspaceOutput) ToWorkspaceOutputWithContext

func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput

func (WorkspaceOutput) VpcConfiguration added in v5.24.0

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/v5/go/aws/grafana"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": "sts:AssumeRole",
					"Effect": "Allow",
					"Sid":    "",
					"Principal": map[string]interface{}{
						"Service": "grafana.amazonaws.com",
					},
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		assume, err := iam.NewRole(ctx, "assume", &iam.RoleArgs{
			AssumeRolePolicy: pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		exampleWorkspace, err := grafana.NewWorkspace(ctx, "exampleWorkspace", &grafana.WorkspaceArgs{
			AccountAccessType: pulumi.String("CURRENT_ACCOUNT"),
			AuthenticationProviders: pulumi.StringArray{
				pulumi.String("SAML"),
			},
			PermissionType: pulumi.String("SERVICE_MANAGED"),
			RoleArn:        assume.Arn,
		})
		if err != nil {
			return err
		}
		_, err = grafana.NewWorkspaceSamlConfiguration(ctx, "exampleWorkspaceSamlConfiguration", &grafana.WorkspaceSamlConfigurationArgs{
			EditorRoleValues: pulumi.StringArray{
				pulumi.String("editor"),
			},
			IdpMetadataUrl: pulumi.String("https://my_idp_metadata.url"),
			WorkspaceId:    exampleWorkspace.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Grafana Workspace SAML configuration can be imported using the workspace's `id`, e.g.,

```sh

$ pulumi import aws:grafana/workspaceSamlConfiguration:WorkspaceSamlConfiguration example g-2054c75a02

```

func GetWorkspaceSamlConfiguration

func GetWorkspaceSamlConfiguration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkspaceSamlConfigurationState, opts ...pulumi.ResourceOption) (*WorkspaceSamlConfiguration, error)

GetWorkspaceSamlConfiguration gets an existing WorkspaceSamlConfiguration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkspaceSamlConfiguration

func NewWorkspaceSamlConfiguration(ctx *pulumi.Context,
	name string, args *WorkspaceSamlConfigurationArgs, opts ...pulumi.ResourceOption) (*WorkspaceSamlConfiguration, error)

NewWorkspaceSamlConfiguration registers a new resource with the given unique name, arguments, and options.

func (*WorkspaceSamlConfiguration) ElementType

func (*WorkspaceSamlConfiguration) ElementType() reflect.Type

func (*WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutput

func (i *WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput

func (*WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutputWithContext

func (i *WorkspaceSamlConfiguration) ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput

type WorkspaceSamlConfigurationArgs

type WorkspaceSamlConfigurationArgs struct {
	// The admin role values.
	AdminRoleValues pulumi.StringArrayInput
	// The allowed organizations.
	AllowedOrganizations pulumi.StringArrayInput
	// The editor role values.
	EditorRoleValues pulumi.StringArrayInput
	// The email assertion.
	EmailAssertion pulumi.StringPtrInput
	// The groups assertion.
	GroupsAssertion pulumi.StringPtrInput
	// The IDP Metadata URL. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified.
	IdpMetadataUrl pulumi.StringPtrInput
	// The IDP Metadata XML. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified.
	IdpMetadataXml pulumi.StringPtrInput
	// The login assertion.
	LoginAssertion pulumi.StringPtrInput
	// The login validity duration.
	LoginValidityDuration pulumi.IntPtrInput
	// The name assertion.
	NameAssertion pulumi.StringPtrInput
	// The org assertion.
	OrgAssertion pulumi.StringPtrInput
	// The role assertion.
	RoleAssertion pulumi.StringPtrInput
	// The workspace id.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a WorkspaceSamlConfiguration resource.

func (WorkspaceSamlConfigurationArgs) ElementType

type WorkspaceSamlConfigurationArray

type WorkspaceSamlConfigurationArray []WorkspaceSamlConfigurationInput

func (WorkspaceSamlConfigurationArray) ElementType

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) Index

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) 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) MapIndex

func (WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutput

func (o WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutput() WorkspaceSamlConfigurationMapOutput

func (WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutputWithContext

func (o WorkspaceSamlConfigurationMapOutput) ToWorkspaceSamlConfigurationMapOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationMapOutput

type WorkspaceSamlConfigurationOutput

type WorkspaceSamlConfigurationOutput struct{ *pulumi.OutputState }

func (WorkspaceSamlConfigurationOutput) AdminRoleValues added in v5.4.0

The admin role values.

func (WorkspaceSamlConfigurationOutput) AllowedOrganizations added in v5.4.0

The allowed organizations.

func (WorkspaceSamlConfigurationOutput) EditorRoleValues added in v5.4.0

The editor role values.

func (WorkspaceSamlConfigurationOutput) ElementType

func (WorkspaceSamlConfigurationOutput) EmailAssertion added in v5.4.0

The email assertion.

func (WorkspaceSamlConfigurationOutput) GroupsAssertion added in v5.4.0

The groups assertion.

func (WorkspaceSamlConfigurationOutput) IdpMetadataUrl added in v5.4.0

The IDP Metadata URL. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified.

func (WorkspaceSamlConfigurationOutput) IdpMetadataXml added in v5.4.0

The IDP Metadata XML. Note that either `idpMetadataUrl` or `idpMetadataXml` (but not both) must be specified.

func (WorkspaceSamlConfigurationOutput) LoginAssertion added in v5.4.0

The login assertion.

func (WorkspaceSamlConfigurationOutput) LoginValidityDuration added in v5.4.0

func (o WorkspaceSamlConfigurationOutput) LoginValidityDuration() pulumi.IntOutput

The login validity duration.

func (WorkspaceSamlConfigurationOutput) NameAssertion added in v5.4.0

The name assertion.

func (WorkspaceSamlConfigurationOutput) OrgAssertion added in v5.4.0

The org assertion.

func (WorkspaceSamlConfigurationOutput) RoleAssertion added in v5.4.0

The role assertion.

func (WorkspaceSamlConfigurationOutput) Status added in v5.4.0

The status of the SAML configuration.

func (WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutput

func (o WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutput() WorkspaceSamlConfigurationOutput

func (WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutputWithContext

func (o WorkspaceSamlConfigurationOutput) ToWorkspaceSamlConfigurationOutputWithContext(ctx context.Context) WorkspaceSamlConfigurationOutput

func (WorkspaceSamlConfigurationOutput) WorkspaceId added in v5.4.0

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

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`. Upgrading the workspace version isn't supported, however it's possible to copy content from the old version to the new one using AWS official [migration tool](https://github.com/aws-observability/amazon-managed-grafana-migrator).
	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.
	TagsAll pulumi.StringMapInput
	// The configuration settings for an Amazon VPC that contains data sources for your Grafana workspace to connect to. See VPC Configuration below.
	VpcConfiguration WorkspaceVpcConfigurationPtrInput
}

func (WorkspaceState) ElementType

func (WorkspaceState) ElementType() reflect.Type

type WorkspaceVpcConfiguration added in v5.24.0

type WorkspaceVpcConfiguration struct {
	// The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	// The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.
	SubnetIds []string `pulumi:"subnetIds"`
}

type WorkspaceVpcConfigurationArgs added in v5.24.0

type WorkspaceVpcConfigurationArgs struct {
	// The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.
	SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
	// The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.
	SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"`
}

func (WorkspaceVpcConfigurationArgs) ElementType added in v5.24.0

func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput added in v5.24.0

func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput

func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext added in v5.24.0

func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput

func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput added in v5.24.0

func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput

func (WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext added in v5.24.0

func (i WorkspaceVpcConfigurationArgs) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput

type WorkspaceVpcConfigurationInput added in v5.24.0

type WorkspaceVpcConfigurationInput interface {
	pulumi.Input

	ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput
	ToWorkspaceVpcConfigurationOutputWithContext(context.Context) WorkspaceVpcConfigurationOutput
}

WorkspaceVpcConfigurationInput is an input type that accepts WorkspaceVpcConfigurationArgs and WorkspaceVpcConfigurationOutput values. You can construct a concrete instance of `WorkspaceVpcConfigurationInput` via:

WorkspaceVpcConfigurationArgs{...}

type WorkspaceVpcConfigurationOutput added in v5.24.0

type WorkspaceVpcConfigurationOutput struct{ *pulumi.OutputState }

func (WorkspaceVpcConfigurationOutput) ElementType added in v5.24.0

func (WorkspaceVpcConfigurationOutput) SecurityGroupIds added in v5.24.0

The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.

func (WorkspaceVpcConfigurationOutput) SubnetIds added in v5.24.0

The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.

func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutput added in v5.24.0

func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutput() WorkspaceVpcConfigurationOutput

func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext added in v5.24.0

func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationOutput

func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput added in v5.24.0

func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput

func (WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext added in v5.24.0

func (o WorkspaceVpcConfigurationOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput

type WorkspaceVpcConfigurationPtrInput added in v5.24.0

type WorkspaceVpcConfigurationPtrInput interface {
	pulumi.Input

	ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput
	ToWorkspaceVpcConfigurationPtrOutputWithContext(context.Context) WorkspaceVpcConfigurationPtrOutput
}

WorkspaceVpcConfigurationPtrInput is an input type that accepts WorkspaceVpcConfigurationArgs, WorkspaceVpcConfigurationPtr and WorkspaceVpcConfigurationPtrOutput values. You can construct a concrete instance of `WorkspaceVpcConfigurationPtrInput` via:

        WorkspaceVpcConfigurationArgs{...}

or:

        nil

func WorkspaceVpcConfigurationPtr added in v5.24.0

type WorkspaceVpcConfigurationPtrOutput added in v5.24.0

type WorkspaceVpcConfigurationPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceVpcConfigurationPtrOutput) Elem added in v5.24.0

func (WorkspaceVpcConfigurationPtrOutput) ElementType added in v5.24.0

func (WorkspaceVpcConfigurationPtrOutput) SecurityGroupIds added in v5.24.0

The list of Amazon EC2 security group IDs attached to the Amazon VPC for your Grafana workspace to connect.

func (WorkspaceVpcConfigurationPtrOutput) SubnetIds added in v5.24.0

The list of Amazon EC2 subnet IDs created in the Amazon VPC for your Grafana workspace to connect.

func (WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutput added in v5.24.0

func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutput() WorkspaceVpcConfigurationPtrOutput

func (WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext added in v5.24.0

func (o WorkspaceVpcConfigurationPtrOutput) ToWorkspaceVpcConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceVpcConfigurationPtrOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL