globallevelnotifications

package
v13.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

README

gitlab_global_level_notifications

Refer to the Terraform Registry for docs: gitlab_global_level_notifications.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalLevelNotifications_GenerateConfigForImport

func GlobalLevelNotifications_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource

Generates CDKTF code for importing a GlobalLevelNotifications resource upon running "cdktf plan <stack-name>".

func GlobalLevelNotifications_IsConstruct

func GlobalLevelNotifications_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func GlobalLevelNotifications_IsTerraformElement

func GlobalLevelNotifications_IsTerraformElement(x interface{}) *bool

Experimental.

func GlobalLevelNotifications_IsTerraformResource

func GlobalLevelNotifications_IsTerraformResource(x interface{}) *bool

Experimental.

func GlobalLevelNotifications_TfResourceType

func GlobalLevelNotifications_TfResourceType() *string

func NewGlobalLevelNotifications_Override

func NewGlobalLevelNotifications_Override(g GlobalLevelNotifications, scope constructs.Construct, id *string, config *GlobalLevelNotificationsConfig)

Create a new {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications gitlab_global_level_notifications} Resource.

Types

type GlobalLevelNotifications

type GlobalLevelNotifications interface {
	cdktf.TerraformResource
	// Experimental.
	CdktfStack() cdktf.TerraformStack
	CloseIssue() interface{}
	SetCloseIssue(val interface{})
	CloseIssueInput() interface{}
	CloseMergeRequest() interface{}
	SetCloseMergeRequest(val interface{})
	CloseMergeRequestInput() interface{}
	// Experimental.
	Connection() interface{}
	// Experimental.
	SetConnection(val interface{})
	// Experimental.
	ConstructNodeMetadata() *map[string]interface{}
	// Experimental.
	Count() interface{}
	// Experimental.
	SetCount(val interface{})
	// Experimental.
	DependsOn() *[]*string
	// Experimental.
	SetDependsOn(val *[]*string)
	FailedPipeline() interface{}
	SetFailedPipeline(val interface{})
	FailedPipelineInput() interface{}
	FixedPipeline() interface{}
	SetFixedPipeline(val interface{})
	FixedPipelineInput() interface{}
	// Experimental.
	ForEach() cdktf.ITerraformIterator
	// Experimental.
	SetForEach(val cdktf.ITerraformIterator)
	// Experimental.
	Fqn() *string
	// Experimental.
	FriendlyUniqueId() *string
	Id() *string
	IssueDue() interface{}
	SetIssueDue(val interface{})
	IssueDueInput() interface{}
	Level() *string
	SetLevel(val *string)
	LevelInput() *string
	// Experimental.
	Lifecycle() *cdktf.TerraformResourceLifecycle
	// Experimental.
	SetLifecycle(val *cdktf.TerraformResourceLifecycle)
	MergeMergeRequest() interface{}
	SetMergeMergeRequest(val interface{})
	MergeMergeRequestInput() interface{}
	MergeWhenPipelineSucceeds() interface{}
	SetMergeWhenPipelineSucceeds(val interface{})
	MergeWhenPipelineSucceedsInput() interface{}
	MovedProject() interface{}
	SetMovedProject(val interface{})
	MovedProjectInput() interface{}
	NewIssue() interface{}
	SetNewIssue(val interface{})
	NewIssueInput() interface{}
	NewMergeRequest() interface{}
	SetNewMergeRequest(val interface{})
	NewMergeRequestInput() interface{}
	NewNote() interface{}
	SetNewNote(val interface{})
	NewNoteInput() interface{}
	// The tree node.
	Node() constructs.Node
	// Experimental.
	Provider() cdktf.TerraformProvider
	// Experimental.
	SetProvider(val cdktf.TerraformProvider)
	// Experimental.
	Provisioners() *[]interface{}
	// Experimental.
	SetProvisioners(val *[]interface{})
	PushToMergeRequest() interface{}
	SetPushToMergeRequest(val interface{})
	PushToMergeRequestInput() interface{}
	// Experimental.
	RawOverrides() interface{}
	ReassignIssue() interface{}
	SetReassignIssue(val interface{})
	ReassignIssueInput() interface{}
	ReassignMergeRequest() interface{}
	SetReassignMergeRequest(val interface{})
	ReassignMergeRequestInput() interface{}
	ReopenIssue() interface{}
	SetReopenIssue(val interface{})
	ReopenIssueInput() interface{}
	ReopenMergeRequest() interface{}
	SetReopenMergeRequest(val interface{})
	ReopenMergeRequestInput() interface{}
	SuccessPipeline() interface{}
	SetSuccessPipeline(val interface{})
	SuccessPipelineInput() interface{}
	// Experimental.
	TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata
	// Experimental.
	TerraformMetaArguments() *map[string]interface{}
	// Experimental.
	TerraformResourceType() *string
	// Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.
	// Experimental.
	AddMoveTarget(moveTarget *string)
	// Experimental.
	AddOverride(path *string, value interface{})
	// Experimental.
	GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{}
	// Experimental.
	GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable
	// Experimental.
	GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool
	// Experimental.
	GetListAttribute(terraformAttribute *string) *[]*string
	// Experimental.
	GetNumberAttribute(terraformAttribute *string) *float64
	// Experimental.
	GetNumberListAttribute(terraformAttribute *string) *[]*float64
	// Experimental.
	GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64
	// Experimental.
	GetStringAttribute(terraformAttribute *string) *string
	// Experimental.
	GetStringMapAttribute(terraformAttribute *string) *map[string]*string
	// Experimental.
	HasResourceMove() interface{}
	// Experimental.
	ImportFrom(id *string, provider cdktf.TerraformProvider)
	// Experimental.
	InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable
	// Move the resource corresponding to "id" to this resource.
	//
	// Note that the resource being moved from must be marked as moved using it's instance function.
	// Experimental.
	MoveFromId(id *string)
	// Moves this resource to the target resource given by moveTarget.
	// Experimental.
	MoveTo(moveTarget *string, index interface{})
	// Moves this resource to the resource corresponding to "id".
	// Experimental.
	MoveToId(id *string)
	// Overrides the auto-generated logical ID with a specific ID.
	// Experimental.
	OverrideLogicalId(newLogicalId *string)
	ResetCloseIssue()
	ResetCloseMergeRequest()
	ResetFailedPipeline()
	ResetFixedPipeline()
	ResetIssueDue()
	ResetLevel()
	ResetMergeMergeRequest()
	ResetMergeWhenPipelineSucceeds()
	ResetMovedProject()
	ResetNewIssue()
	ResetNewMergeRequest()
	ResetNewNote()
	// Resets a previously passed logical Id to use the auto-generated logical id again.
	// Experimental.
	ResetOverrideLogicalId()
	ResetPushToMergeRequest()
	ResetReassignIssue()
	ResetReassignMergeRequest()
	ResetReopenIssue()
	ResetReopenMergeRequest()
	ResetSuccessPipeline()
	SynthesizeAttributes() *map[string]interface{}
	SynthesizeHclAttributes() *map[string]interface{}
	// Experimental.
	ToHclTerraform() interface{}
	// Experimental.
	ToMetadata() interface{}
	// Returns a string representation of this construct.
	ToString() *string
	// Adds this resource to the terraform JSON output.
	// Experimental.
	ToTerraform() interface{}
}

Represents a {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications gitlab_global_level_notifications}.

func NewGlobalLevelNotifications

func NewGlobalLevelNotifications(scope constructs.Construct, id *string, config *GlobalLevelNotificationsConfig) GlobalLevelNotifications

Create a new {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications gitlab_global_level_notifications} Resource.

type GlobalLevelNotificationsConfig

type GlobalLevelNotificationsConfig struct {
	// Experimental.
	Connection interface{} `field:"optional" json:"connection" yaml:"connection"`
	// Experimental.
	Count interface{} `field:"optional" json:"count" yaml:"count"`
	// Experimental.
	DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"`
	// Experimental.
	ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"`
	// Experimental.
	Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"`
	// Experimental.
	Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"`
	// Experimental.
	Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
	// Enable notifications for closed issues. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#close_issue GlobalLevelNotifications#close_issue}
	CloseIssue interface{} `field:"optional" json:"closeIssue" yaml:"closeIssue"`
	// Enable notifications for closed merge requests. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#close_merge_request GlobalLevelNotifications#close_merge_request}
	CloseMergeRequest interface{} `field:"optional" json:"closeMergeRequest" yaml:"closeMergeRequest"`
	// Enable notifications for failed pipelines. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#failed_pipeline GlobalLevelNotifications#failed_pipeline}
	FailedPipeline interface{} `field:"optional" json:"failedPipeline" yaml:"failedPipeline"`
	// Enable notifications for fixed pipelines. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#fixed_pipeline GlobalLevelNotifications#fixed_pipeline}
	FixedPipeline interface{} `field:"optional" json:"fixedPipeline" yaml:"fixedPipeline"`
	// Enable notifications for due issues. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#issue_due GlobalLevelNotifications#issue_due}
	IssueDue interface{} `field:"optional" json:"issueDue" yaml:"issueDue"`
	// The level of the notification. Valid values are: `disabled`, `participating`, `watch`, `global`, `mention`, `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#level GlobalLevelNotifications#level}
	Level *string `field:"optional" json:"level" yaml:"level"`
	// Enable notifications for merged merge requests. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#merge_merge_request GlobalLevelNotifications#merge_merge_request}
	MergeMergeRequest interface{} `field:"optional" json:"mergeMergeRequest" yaml:"mergeMergeRequest"`
	// Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#merge_when_pipeline_succeeds GlobalLevelNotifications#merge_when_pipeline_succeeds}
	MergeWhenPipelineSucceeds interface{} `field:"optional" json:"mergeWhenPipelineSucceeds" yaml:"mergeWhenPipelineSucceeds"`
	// Enable notifications for moved projects. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#moved_project GlobalLevelNotifications#moved_project}
	MovedProject interface{} `field:"optional" json:"movedProject" yaml:"movedProject"`
	// Enable notifications for new issues. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#new_issue GlobalLevelNotifications#new_issue}
	NewIssue interface{} `field:"optional" json:"newIssue" yaml:"newIssue"`
	// Enable notifications for new merge requests. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#new_merge_request GlobalLevelNotifications#new_merge_request}
	NewMergeRequest interface{} `field:"optional" json:"newMergeRequest" yaml:"newMergeRequest"`
	// Enable notifications for new notes on merge requests. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#new_note GlobalLevelNotifications#new_note}
	NewNote interface{} `field:"optional" json:"newNote" yaml:"newNote"`
	// Enable notifications for push to merge request branches. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#push_to_merge_request GlobalLevelNotifications#push_to_merge_request}
	PushToMergeRequest interface{} `field:"optional" json:"pushToMergeRequest" yaml:"pushToMergeRequest"`
	// Enable notifications for issue reassignments. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#reassign_issue GlobalLevelNotifications#reassign_issue}
	ReassignIssue interface{} `field:"optional" json:"reassignIssue" yaml:"reassignIssue"`
	// Enable notifications for merge request reassignments. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#reassign_merge_request GlobalLevelNotifications#reassign_merge_request}
	ReassignMergeRequest interface{} `field:"optional" json:"reassignMergeRequest" yaml:"reassignMergeRequest"`
	// Enable notifications for reopened issues. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#reopen_issue GlobalLevelNotifications#reopen_issue}
	ReopenIssue interface{} `field:"optional" json:"reopenIssue" yaml:"reopenIssue"`
	// Enable notifications for reopened merge requests. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#reopen_merge_request GlobalLevelNotifications#reopen_merge_request}
	ReopenMergeRequest interface{} `field:"optional" json:"reopenMergeRequest" yaml:"reopenMergeRequest"`
	// Enable notifications for successful pipelines. Can only be used when `level` is `custom`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/17.7.0/docs/resources/global_level_notifications#success_pipeline GlobalLevelNotifications#success_pipeline}
	SuccessPipeline interface{} `field:"optional" json:"successPipeline" yaml:"successPipeline"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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