Documentation
¶
Index ¶
- func NewProjectLevelNotifications_Override(p ProjectLevelNotifications, scope constructs.Construct, id *string, ...)
- func ProjectLevelNotifications_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func ProjectLevelNotifications_IsConstruct(x interface{}) *bool
- func ProjectLevelNotifications_IsTerraformElement(x interface{}) *bool
- func ProjectLevelNotifications_IsTerraformResource(x interface{}) *bool
- func ProjectLevelNotifications_TfResourceType() *string
- type ProjectLevelNotifications
- type ProjectLevelNotificationsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProjectLevelNotifications_Override ¶
func NewProjectLevelNotifications_Override(p ProjectLevelNotifications, scope constructs.Construct, id *string, config *ProjectLevelNotificationsConfig)
Create a new {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.7.0/docs/resources/project_level_notifications gitlab_project_level_notifications} Resource.
func ProjectLevelNotifications_GenerateConfigForImport ¶
func ProjectLevelNotifications_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a ProjectLevelNotifications resource upon running "cdktf plan <stack-name>".
func ProjectLevelNotifications_IsConstruct ¶
func ProjectLevelNotifications_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 ProjectLevelNotifications_IsTerraformElement ¶
func ProjectLevelNotifications_IsTerraformElement(x interface{}) *bool
Experimental.
func ProjectLevelNotifications_IsTerraformResource ¶
func ProjectLevelNotifications_IsTerraformResource(x interface{}) *bool
Experimental.
func ProjectLevelNotifications_TfResourceType ¶
func ProjectLevelNotifications_TfResourceType() *string
Types ¶
type ProjectLevelNotifications ¶
type ProjectLevelNotifications 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 Project() *string SetProject(val *string) ProjectInput() *string // 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{} // 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/16.7.0/docs/resources/project_level_notifications gitlab_project_level_notifications}.
func NewProjectLevelNotifications ¶
func NewProjectLevelNotifications(scope constructs.Construct, id *string, config *ProjectLevelNotificationsConfig) ProjectLevelNotifications
Create a new {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.7.0/docs/resources/project_level_notifications gitlab_project_level_notifications} Resource.
type ProjectLevelNotificationsConfig ¶
type ProjectLevelNotificationsConfig 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"` // The ID or URL-encoded path of a project where notifications will be configured. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/gitlabhq/gitlab/16.7.0/docs/resources/project_level_notifications#project ProjectLevelNotifications#project} Project *string `field:"required" json:"project" yaml:"project"` // 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/16.7.0/docs/resources/project_level_notifications#close_issue ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#close_merge_request ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#failed_pipeline ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#fixed_pipeline ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#issue_due ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#level ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#merge_merge_request ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#merge_when_pipeline_succeeds ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#moved_project ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#new_issue ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#new_merge_request ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#new_note ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#push_to_merge_request ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#reassign_issue ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#reassign_merge_request ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#reopen_issue ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#reopen_merge_request ProjectLevelNotifications#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/16.7.0/docs/resources/project_level_notifications#success_pipeline ProjectLevelNotifications#success_pipeline} SuccessPipeline interface{} `field:"optional" json:"successPipeline" yaml:"successPipeline"` }