grafana

package
v6.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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/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{
			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

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

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

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

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

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

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{
			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

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

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

func (RoleAssociationOutput) ToRoleAssociationOutput

func (o RoleAssociationOutput) ToRoleAssociationOutput() RoleAssociationOutput

func (RoleAssociationOutput) ToRoleAssociationOutputWithContext

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

func (RoleAssociationOutput) UserIds

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{
			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) ElementType() reflect.Type

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(aws_grafana_workspace.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 (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 (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

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

func (WorkspaceApiKeyOutput) KeyName

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

func (WorkspaceApiKeyOutput) KeyRole

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

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

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

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

type WorkspaceNetworkAccessControlPtrOutput

type WorkspaceNetworkAccessControlPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceNetworkAccessControlPtrOutput) Elem

func (WorkspaceNetworkAccessControlPtrOutput) ElementType

func (WorkspaceNetworkAccessControlPtrOutput) PrefixListIds

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

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

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

The Grafana workspace name.

func (WorkspaceOutput) NetworkAccessControl

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

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

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

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

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{
			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

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

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

The admin role values.

func (WorkspaceSamlConfigurationOutput) AllowedOrganizations

The allowed organizations.

func (WorkspaceSamlConfigurationOutput) EditorRoleValues

The editor role values.

func (WorkspaceSamlConfigurationOutput) ElementType

func (WorkspaceSamlConfigurationOutput) EmailAssertion

The email assertion.

func (WorkspaceSamlConfigurationOutput) GroupsAssertion

The groups assertion.

func (WorkspaceSamlConfigurationOutput) IdpMetadataUrl

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

func (WorkspaceSamlConfigurationOutput) IdpMetadataXml

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

func (WorkspaceSamlConfigurationOutput) LoginAssertion

The login assertion.

func (WorkspaceSamlConfigurationOutput) LoginValidityDuration

func (o WorkspaceSamlConfigurationOutput) LoginValidityDuration() pulumi.IntOutput

The login validity duration.

func (WorkspaceSamlConfigurationOutput) NameAssertion

The name assertion.

func (WorkspaceSamlConfigurationOutput) OrgAssertion

The org assertion.

func (WorkspaceSamlConfigurationOutput) RoleAssertion

The role assertion.

func (WorkspaceSamlConfigurationOutput) Status

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

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`.
	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) 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) SecurityGroupIds

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

func (WorkspaceVpcConfigurationOutput) SubnetIds

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

type WorkspaceVpcConfigurationPtrOutput

type WorkspaceVpcConfigurationPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceVpcConfigurationPtrOutput) Elem

func (WorkspaceVpcConfigurationPtrOutput) ElementType

func (WorkspaceVpcConfigurationPtrOutput) SecurityGroupIds

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

func (WorkspaceVpcConfigurationPtrOutput) SubnetIds

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

Jump to

Keyboard shortcuts

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