aws_grafana_workspace

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// AccountAccessType: string, required
	AccountAccessType terra.StringValue `hcl:"account_access_type,attr" validate:"required"`
	// AuthenticationProviders: list of string, required
	AuthenticationProviders terra.ListValue[terra.StringValue] `hcl:"authentication_providers,attr" validate:"required"`
	// Configuration: string, optional
	Configuration terra.StringValue `hcl:"configuration,attr"`
	// DataSources: list of string, optional
	DataSources terra.ListValue[terra.StringValue] `hcl:"data_sources,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// GrafanaVersion: string, optional
	GrafanaVersion terra.StringValue `hcl:"grafana_version,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NotificationDestinations: list of string, optional
	NotificationDestinations terra.ListValue[terra.StringValue] `hcl:"notification_destinations,attr"`
	// OrganizationRoleName: string, optional
	OrganizationRoleName terra.StringValue `hcl:"organization_role_name,attr"`
	// OrganizationalUnits: list of string, optional
	OrganizationalUnits terra.ListValue[terra.StringValue] `hcl:"organizational_units,attr"`
	// PermissionType: string, required
	PermissionType terra.StringValue `hcl:"permission_type,attr" validate:"required"`
	// RoleArn: string, optional
	RoleArn terra.StringValue `hcl:"role_arn,attr"`
	// StackSetName: string, optional
	StackSetName terra.StringValue `hcl:"stack_set_name,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// NetworkAccessControl: optional
	NetworkAccessControl *NetworkAccessControl `hcl:"network_access_control,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VpcConfiguration: optional
	VpcConfiguration *VpcConfiguration `hcl:"vpc_configuration,block"`
}

Args contains the configurations for aws_grafana_workspace.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// WorkspaceId: string, required
	WorkspaceId terra.StringValue `hcl:"workspace_id,attr" validate:"required"`
}

DataArgs contains the configurations for aws_grafana_workspace.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_grafana_workspace.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (agw *DataSource) Attributes() dataAwsGrafanaWorkspaceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (agw *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (agw *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (agw *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type NetworkAccessControl

type NetworkAccessControl struct {
	// PrefixListIds: set of string, required
	PrefixListIds terra.SetValue[terra.StringValue] `hcl:"prefix_list_ids,attr" validate:"required"`
	// VpceIds: set of string, required
	VpceIds terra.SetValue[terra.StringValue] `hcl:"vpce_ids,attr" validate:"required"`
}

type NetworkAccessControlAttributes

type NetworkAccessControlAttributes struct {
	// contains filtered or unexported fields
}

func (NetworkAccessControlAttributes) InternalRef

func (nac NetworkAccessControlAttributes) InternalRef() (terra.Reference, error)

func (NetworkAccessControlAttributes) InternalTokens

func (nac NetworkAccessControlAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkAccessControlAttributes) InternalWithRef

func (NetworkAccessControlAttributes) PrefixListIds

func (NetworkAccessControlAttributes) VpceIds

type NetworkAccessControlState

type NetworkAccessControlState struct {
	PrefixListIds []string `json:"prefix_list_ids"`
	VpceIds       []string `json:"vpce_ids"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_grafana_workspace.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agw *Resource) Attributes() awsGrafanaWorkspaceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (agw *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (agw *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (agw *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (agw *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (agw *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agw *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agw *Resource) State() (*awsGrafanaWorkspaceState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (agw *Resource) StateMust() *awsGrafanaWorkspaceState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (agw *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Update string `json:"update"`
}

type VpcConfiguration

type VpcConfiguration struct {
	// SecurityGroupIds: set of string, required
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr" validate:"required"`
	// SubnetIds: set of string, required
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr" validate:"required"`
}

type VpcConfigurationAttributes

type VpcConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (VpcConfigurationAttributes) InternalRef

func (vc VpcConfigurationAttributes) InternalRef() (terra.Reference, error)

func (VpcConfigurationAttributes) InternalTokens

func (vc VpcConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VpcConfigurationAttributes) InternalWithRef

func (VpcConfigurationAttributes) SecurityGroupIds

func (VpcConfigurationAttributes) SubnetIds

type VpcConfigurationState

type VpcConfigurationState struct {
	SecurityGroupIds []string `json:"security_group_ids"`
	SubnetIds        []string `json:"subnet_ids"`
}

Jump to

Keyboard shortcuts

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